Browse Source

testing showing search bar

pull/648/head
JG 3 years ago
parent
commit
a0fd6b4fcd
  1. 5
      spec/requests/schemes_controller_spec.rb

5
spec/requests/schemes_controller_spec.rb

@ -14,6 +14,7 @@ RSpec.describe SchemesController, type: :request do
expect(response).to redirect_to("/account/sign-in") expect(response).to redirect_to("/account/sign-in")
end end
end end
context "when signed in as a support user" do context "when signed in as a support user" do
before do before do
allow(user).to receive(:need_two_factor_authentication?).and_return(false) allow(user).to receive(:need_two_factor_authentication?).and_return(false)
@ -30,6 +31,10 @@ RSpec.describe SchemesController, type: :request do
expect(page).to have_content(scheme.code) expect(page).to have_content(scheme.code)
end end
end end
it "shows a search bar" do
expect(page).to have_field("search", type: "search")
end
end end
end end
end end

Loading…
Cancel
Save