diff --git a/app/views/home/donate.html.erb b/app/views/home/donate.html.erb index d7ea0a5b2ad..cd6c5695d66 100644 --- a/app/views/home/donate.html.erb +++ b/app/views/home/donate.html.erb @@ -8,5 +8,5 @@
<%= ts("The AO3 has ongoing running costs - electricity for the servers and bandwidth so you can reach them - and one-off costs such as buying new servers as the number of users and works increases. -Any donation to the OTW is a big help. (Don't worry, we'll never connect your AO3 username and your financial information.)").html_safe %>
+Any donation to the OTW is a big help. (Don't worry, we'll never connect your AO3 username and your financial information.)").html_safe %> diff --git a/features/other_a/homepage.feature b/features/other_a/homepage.feature index 3ba09db274e..418a936d11b 100644 --- a/features/other_a/homepage.feature +++ b/features/other_a/homepage.feature @@ -24,3 +24,4 @@ Feature: Various things on the homepage And I follow "Donations" Then I should see "There are two main ways to support the AO3 - donating your time or money" And I should see the page title "Donate or Volunteer" + And I should see a link "donation to the OTW" to "https://donate.transformativeworks.org/otwgive" diff --git a/features/step_definitions/generic_steps.rb b/features/step_definitions/generic_steps.rb index dfb92f099e6..b392f26a921 100644 --- a/features/step_definitions/generic_steps.rb +++ b/features/step_definitions/generic_steps.rb @@ -240,6 +240,10 @@ def assure_xpath_not_present(tag, attribute, value, selector) page.body.should =~ /#{Regexp.escape(text)}/m end +Then "I should see a link {string} to {string}" do |text, href| + expect(page).to have_link(text, href: href) +end + Then /^I should not see a link "([^\"]*)"$/ do |name| text = name + "" page.body.should_not =~ /#{Regexp.escape(text)}/m