FIX Update field names in Behat tests for new search form namespacing

This commit is contained in:
Robbie Averill 2018-09-27 11:39:42 +02:00
parent 5bfc37ff4b
commit 44b92c90bc
1 changed files with 6 additions and 6 deletions

View File

@ -14,7 +14,7 @@ Feature: Search for a page
Scenario: I can search for a page by its title
Given I fill in "Search" with "About Us"
And I press the "Enter" key in the "Term" field
And I press the "Enter" key in the "SearchBox__Term" field
Then I should see "About Us" in the cms list
But I should not see "Contact Us" in the cms list
@ -22,7 +22,7 @@ Feature: Search for a page
Given a "Virtual Page" "My Virtual Page"
When I press the "Advanced" button
And I select "Virtual Page" from "Page type"
And I press the "Enter" key in the "Term" field
And I press the "Enter" key in the "SearchBox__Term" field
Then I should see "My Virtual Page" in the cms list
But I should not see "Contact Us" in the cms list
@ -50,7 +50,7 @@ Feature: Search for a page
Given a "page" "Deleted Page"
And the "page" "Deleted Page" is unpublished
And the "page" "Deleted Page" is deleted
When I press the "Enter" key in the "Term" field
When I press the "Enter" key in the "SearchBox__Term" field
Then I should not see "Deleted Page" in the cms list
When I press the "Advanced" button
And I select "All pages, including archived" from "Page status"
@ -61,7 +61,7 @@ Feature: Search for a page
Given a "page" "Deleted Page"
And the "page" "Deleted Page" is unpublished
And the "page" "Deleted Page" is deleted
When I press the "Enter" key in the "Term" field
When I press the "Enter" key in the "SearchBox__Term" field
Then I should not see "Deleted Page" in the cms list
When I press the "Advanced" button
And I select "Archived pages" from "Page status"
@ -72,7 +72,7 @@ Feature: Search for a page
Scenario: I can include draft pages in my search
Given a "page" "Draft Page"
And the "page" "Draft Page" is not published
When I press the "Enter" key in the "Term" field
When I press the "Enter" key in the "SearchBox__Term" field
Then I should see "Draft Page" in the cms list
When I press the "Advanced" button
And I select "Draft pages" from "Page status"
@ -100,7 +100,7 @@ Feature: Search for a page
Given a "page" "Live Page"
And the "page" "Live Page" is published
And the "page" "Live Page" is deleted
When I press the "Enter" key in the "Term" field
When I press the "Enter" key in the "SearchBox__Term" field
Then I should not see "Live Page" in the cms list
When I press the "Advanced" button
And I select "Live but removed from draft" from "Page status"