diff --git a/test/system/invitation_lists_test.rb b/test/system/invitation_lists_test.rb index 3ec9c6880..a4e50ff91 100644 --- a/test/system/invitation_lists_test.rb +++ b/test/system/invitation_lists_test.rb @@ -26,7 +26,7 @@ def teardown fill_in "Confirm Password", with: example_password click_on "Sign Up" - assert page.has_content?("Tell us about you") + assert_text("Tell us about you") fill_in "First Name", with: "Hanako" fill_in "Last Name", with: "Tanaka" fill_in "Your Team Name", with: "The Testing Team" @@ -40,7 +40,7 @@ def teardown # Click on next to show that bulk invitations will raise an error if not filled out properly. click_on "Next" - assert page.has_content?("Email can't be blank") + assert_text("Email can't be blank") # Fill in the email addresses. email_fields = page.all("label", text: "Email Address") @@ -61,12 +61,12 @@ def teardown sleep 2 end - assert page.has_content?("The Testing Team’s Dashboard") + assert_text("The Testing Team’s Dashboard") within_team_menu_for(display_details) do click_on "Team Members" end - assert page.has_content?("test-0@some-company.com") + assert_text("test-0@some-company.com") invitation = Invitation.find_by(email: "test-0@some-company.com") assert_equal invitation.membership.role_ids, ["admin", "editor"] end diff --git a/test/system/super_scaffolding_partial_test.rb b/test/system/super_scaffolding_partial_test.rb index 032b44ef9..0102c953c 100644 --- a/test/system/super_scaffolding_partial_test.rb +++ b/test/system/super_scaffolding_partial_test.rb @@ -160,9 +160,9 @@ def setup # Number Field Partial fill_in "Number Field Test", with: 47 - assert page.has_content? "State / Province / Region" + assert_text "State / Province / Region" select "United States", from: "Country" - assert page.has_content? "State" + assert_text "State" fill_in "Address", with: "123 Main St." fill_in "City", with: "New York" diff --git a/test/system/tangible_thing_test.rb b/test/system/tangible_thing_test.rb index 0ba3a9263..cc3bcc48e 100644 --- a/test/system/tangible_thing_test.rb +++ b/test/system/tangible_thing_test.rb @@ -53,11 +53,11 @@ class TangibleThingTest < ApplicationSystemTestCase fill_in "Password Field Value", with: "secure-password" fill_in "Phone Field Value", with: "(201) 551-8321" - assert page.has_content? "State / Province" + assert_text "State / Province" select "Japan", from: "Country" - assert page.has_content? "Prefecture" + assert_text "Prefecture" select "United States", from: "Country" - assert page.has_content? "State" + assert_text "State" fill_in "Address", with: "123 Main St." fill_in "City", with: "New York"