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

View File

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