Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes failing signup system test on travis #8461

Merged
merged 5 commits into from
Oct 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions test/system/signup_form_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ def setup

find("#create-form #signup-button").click()
path = URI.parse(current_url).request_uri
assert_equal path, "/register"
assert_equal path, "/signup"
#Searches for error
assert_selector("#error-message #errorExplanation", text: "Email")
# error_msg = find("#errorExplanation li").text.gsub('×', '').strip()

# assert_includes(error_msg, "Spam detection -- It doesn't seem like you are a real person!" )
# assert_selector("#error-message #errorExplanation", text: "Email")
# assert_selector("#errorExplanation li", text: "Spam detection -- It doesn't seem like you are a real person! If you disagree or are having trouble, please see https://publiclab.org/registration-test.")

fill_in("username-signup", with: "abc")
fill_in("email", with: "[email protected]")
Expand Down