Remove assertions in sign-in success acceptance tests (#3733)

Why:

* The extra assertions added to the sign-in success acceptance tests do
not behave as reliably as needed. The assertions being removed were
checking an intermediate step of the sign-in success redirect process,
so the test should not be fundamentally changed by removing them. We'll
just be checking the final state rather than the intermediate state and
the final state. The previous commit removing these assertions was only
done on the email signin tests. This commit updates the userpass and
openid_connect tests
This commit is contained in:
Brian Manifold
2024-02-22 13:23:23 -05:00
committed by GitHub
parent 6925af88ea
commit 088cbbd3c4
2 changed files with 0 additions and 8 deletions

View File

@@ -187,8 +187,6 @@ defmodule Web.Acceptance.Auth.OpenIDConnectTest do
|> visit(~p"/#{account}?#{redirect_params}")
|> assert_el(Query.text("Sign in to #{account.name}"))
|> click(Query.link("Sign in with Vault"))
|> assert_el(Query.text("Sign in successful"))
|> assert_path(~p"/#{account}/sign_in/success")
|> assert_el(Query.text("Client redirected"))
|> assert_path(~p"/handle_client_sign_in_callback")
@@ -242,8 +240,6 @@ defmodule Web.Acceptance.Auth.OpenIDConnectTest do
|> assert_el(Query.text("Sign in to #{account.name}"))
|> click(Query.link("Sign in with Vault"))
|> Vault.userpass_flow(oidc_login, oidc_password)
|> assert_el(Query.text("Sign in successful"))
|> assert_path(~p"/#{account}/sign_in/success")
|> assert_el(Query.text("Client redirected"))
|> assert_path(~p"/handle_client_sign_in_callback")

View File

@@ -167,8 +167,6 @@ defmodule Web.Acceptance.Auth.UserPassTest do
session
|> password_login_flow(account, identity.provider_identifier, password, redirect_params)
|> assert_el(Query.text("Sign in successful"))
|> assert_path(~p"/#{account}/sign_in/success")
|> assert_el(Query.text("Client redirected"))
|> assert_path(~p"/handle_client_sign_in_callback")
@@ -232,8 +230,6 @@ defmodule Web.Acceptance.Auth.UserPassTest do
# And then to a client
session
|> password_login_flow(account, identity.provider_identifier, password, redirect_params)
|> assert_el(Query.text("Sign in successful"))
|> assert_path(~p"/#{account}/sign_in/success")
|> assert_el(Query.text("Client redirected"))
|> assert_path(~p"/handle_client_sign_in_callback")