Skip to content

Commit

Permalink
Update text for email alert subscription link
Browse files Browse the repository at this point in the history
The default wording for the email alert subscription link was updated to
no longer include the term "alert". This is causing TravelAdviceTest to
fail on this branch, as this test is checking for the now out-of-date
link text.
  • Loading branch information
danacotoran committed Dec 3, 2020
1 parent e7366fe commit 28ad905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/travel_advice_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class TravelAdviceTest < ActionDispatch::IntegrationTest
assert page.has_css?("title", visible: false, text: @content_item["title"])
assert_has_component_title(@content_item["details"]["country"]["name"])

assert page.has_css?("a[href=\"#{@content_item['details']['email_signup_link']}\"]", text: "Get email alerts")
assert page.has_css?("a[href=\"#{@content_item['details']['email_signup_link']}\"]", text: "Get emails")
assert page.has_css?("a[href=\"#{@content_item['base_path']}.atom\"]", text: "Subscribe to feed")

assert page.has_css?(".part-navigation li", count: @content_item["details"]["parts"].size + 1)
Expand Down

0 comments on commit 28ad905

Please sign in to comment.