Skip to content

Commit

Permalink
Remove unnecessary tests for service_sign_in
Browse files Browse the repository at this point in the history
  • Loading branch information
unoduetre committed Jun 28, 2024
1 parent b027e8a commit 2e17817
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
10 changes: 0 additions & 10 deletions test/integration/service_sign_in/choose_sign_in_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,6 @@

module ServiceSignIn
class ChooseSignInTest < ActionDispatch::IntegrationTest
test "random but valid items do not error" do
payload = GovukSchemas::RandomExample.for_schema(frontend_schema: schema_type)
path = payload["details"]["choose_sign_in"]["slug"]

stub_request(:get, %r{#{path}})
.to_return(status: 200, body: payload.to_json, headers: {})

visit path
end

test "page renders correctly" do
setup_and_visit_choose_sign_in_page("service_sign_in", "/choose-sign-in")

Expand Down
15 changes: 0 additions & 15 deletions test/integration/service_sign_in/create_new_account_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,6 @@

module ServiceSignIn
class CreateNewAccount < ActionDispatch::IntegrationTest
test "random but valid items do not error" do
# Create new account is an optional field, so we need to try a few times to
# get an example with it present.
path = nil
until path
payload = GovukSchemas::RandomExample.for_schema(frontend_schema: schema_type)
path = payload.dig("details", "create_new_account", "slug")
end

stub_request(:get, %r{#{path}})
.to_return(status: 200, body: payload.to_json, headers: {})

visit path
end

test "page renders correctly" do
setup_and_visit_create_new_account_page

Expand Down

0 comments on commit 2e17817

Please sign in to comment.