diff --git a/tests/browser/features/step_definitions/wikidata_descriptions.rb b/tests/browser/features/step_definitions/wikidata_descriptions.rb index 8b70621..305124b 100644 --- a/tests/browser/features/step_definitions/wikidata_descriptions.rb +++ b/tests/browser/features/step_definitions/wikidata_descriptions.rb @@ -1,7 +1,7 @@ -Then(/^I should see a wikidata description$/) do +Then(/^I should see a tagline$/) do expect(on(ArticlePage).wikidata_description_element).to be_visible end -Then(/^I should not see a wikidata description$/) do +Then(/^I should not see a tagline$/) do expect(on(ArticlePage).wikidata_description_element).not_to be_visible end diff --git a/tests/browser/features/wikidata_descriptions.feature b/tests/browser/features/wikidata_descriptions.feature index fdbc552..7c852f2 100644 --- a/tests/browser/features/wikidata_descriptions.feature +++ b/tests/browser/features/wikidata_descriptions.feature @@ -6,16 +6,12 @@ Feature: Wikidata descriptions And I am on the "Main Page" page Scenario: Description does not appear on Main Page - Then I should not see a wikidata description + Then I should not see a tagline Scenario: Description appears on main namespace When I am on the "Albert Einstein" page - Then I should see a wikidata description + Then I should see a tagline Scenario: Description does not appear on non-main namespaces Given I am on the "Talk:Contributions" page - Then I should not see a wikidata description - - Scenario: Description does not appear on special pages - Given I am on the "Special:Contributions" page - Then I should not see a wikidata description + Then I should not see a tagline