Skip to content

Commit 3f221c3

Browse files
committed
AO3-6751 Cucumber test for "Relationships by Character" link
1 parent 54f5298 commit 3f221c3

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

features/step_definitions/tag_steps.rb

-13
Original file line numberDiff line numberDiff line change
@@ -468,16 +468,3 @@
468468
expect_any_instance_of(Tag).not_to receive(:update_filters_for_filterables)
469469
end
470470

471-
472-
Given /^I am on the fandom tag page for a fandom with a period, "(.*?)"$/ do |tag_name|
473-
tag = Tag.find_by_name(tag_name)
474-
visit tag_path(tag)
475-
end
476-
477-
When /^I click on "(.*?)"$/ do |link|
478-
click_link(link)
479-
end
480-
481-
Then /^I should not see "(.*?)"$/ do |error_message|
482-
page.should_not have_content(error_message)
483-
end
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Feature: Fandom Relationship Tags Link
22

3-
Scenario: Click on "Relationships by Character" on a fandom tag page
4-
Given I am on the fandom tag page for a fandom with a period, "Harry Potter - J.K. Rowling"
5-
When I click on "Relationship tags in this fandom"
3+
Scenario: Click on "Relationships by Character" on a fandom tag containing periods
4+
Given a canonical fandom "Harry Potter - J. K. Rowling"
5+
When I view the tag "Harry Potter - J. K. Rowling"
6+
And I follow "Relationship tags in this fandom"
67
Then I should not see "The page you were looking for doesn't exist."
8+
And I should see "Relationships by Character"

0 commit comments

Comments
 (0)