Skip to content

A platform for community discussion. Free, open, simple.

DEV: Assert that user has been signed in successfully in system tests (#22892)

Alan Guo Xiang Tan18358c448cde
diff --git a/spec/support/system_helpers.rb b/spec/support/system_helpers.rb
index 381bcea83fc..5c26342d530 100644
--- a/spec/support/system_helpers.rb
+++ b/spec/support/system_helpers.rb
@@ -18,6 +18,8 @@ module SystemHelpers
GlobalSetting.relative_url_root || "",
"/session/#{user.encoded_username}/become.json?redirect=false",
)
+
+ expect(page).to have_content("Signed in to #{user.encoded_username} successfully")
end
def sign_out