Skip to content

Commit b70d101

Browse files
committed
fix(e2e): stable assertion for logged in session
1 parent fe33ab9 commit b70d101

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

e2e/test/support/ui_test_case.ex

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,8 @@ defmodule E2E.UI.UserTestCase do
5555
|> fill_in(Wallaby.Query.text_field("username"), with: root_email)
5656
|> fill_in(Wallaby.Query.text_field("password"), with: root_password)
5757
|> click(Wallaby.Query.css("#kc-login"))
58-
|> assert_has(
59-
Wallaby.Query.css("h1.f2.f1-m.lh-title.mb1",
60-
text: "Here's what's going on",
61-
timeout: 10_000
62-
)
63-
)
58+
59+
assert current_url(logged_in_session) == "https://#{organization}.#{base_domain}/get_started/"
6460

6561
{:ok, session: logged_in_session, organization: organization, base_domain: base_domain}
6662
rescue

0 commit comments

Comments
 (0)