-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pagination tests for grid fields to make sure next and previous b…
…uttons work
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
@javascript @retry | ||
Feature: Grid field | ||
As a site administrator | ||
I want to create and manage user accounts on my site | ||
So that I can control access to the CMS | ||
|
||
Background: | ||
Given a "member" "Tayler Alexander" belonging to "Staff group" with "Email"="Alexander.Tayler@gmail.com" | ||
And a "member" "Bethany Bloom" belonging to "Staff group" with "Email"="Bloom.Bethany@gmail.com" | ||
And a "member" "Johnnie Buxton" belonging to "Staff group" with "Email"="Buxton.Johnnie@gmail.com" | ||
And a "member" "Malak Doherty" belonging to "Staff group" with "Email"="Doherty.Malak@gmail.com" | ||
And a "member" "Alice Dudley" belonging to "Staff group" with "Email"="Dudley.Alice@gmail.com" | ||
And a "member" "Samir Evans" belonging to "Staff group" with "Email"="Evans.Samir@gmail.com" | ||
And a "member" "T-Jay Fuller" belonging to "Staff group" with "Email"="Fuller.T-Jay@gmail.com" | ||
And a "member" "Glenda Goddard" belonging to "Staff group" with "Email"="Goddard.Glenda@gmail.com" | ||
And a "member" "Emma Gomez" belonging to "Staff group" with "Email"="Gomez.Emma@gmail.com" | ||
And a "member" "Riaz Hanson" belonging to "Staff group" with "Email"="Hanson.Riaz@gmail.com" | ||
And a "member" "Krish Herman" belonging to "Staff group" with "Email"="Herman.Krish@gmail.com" | ||
And a "member" "Amiee Hoover" belonging to "Staff group" with "Email"="Hoover.Amiee@gmail.com" | ||
And a "member" "Hamzah Horne" belonging to "Staff group" with "Email"="Horne.Hamzah@gmail.com" | ||
And a "member" "Alvin Jaramillo" belonging to "Staff group" with "Email"="Jaramillo.Alvin@gmail.com" | ||
And a "member" "Grover Kaiser" belonging to "Staff group" with "Email"="Kaiser.Grover@gmail.com" | ||
And a "member" "Esha Kerr" belonging to "Staff group" with "Email"="Kerr.Esha@gmail.com" | ||
And a "member" "Ellice Lennon" belonging to "Staff group" with "Email"="Lennon.Ellice@gmail.com" | ||
And a "member" "ADMIN" belonging to "ADMIN group" with "Email"="ADMIN@example.org" | ||
And the "group" "ADMIN group" has permissions "Full administrative rights" | ||
And I am logged in with "ADMIN" permissions | ||
And I go to "/admin/security" | ||
|
||
Scenario: I can paginate through users | ||
When I click the "Users" CMS tab | ||
Then I should see "Alexander.Tayler@gmail.com" in the "#Root_Users" element | ||
And I should not see "Kerr.Esha@gmail.com" | ||
And I should not see "Lennon.Ellice@gmail.com" | ||
And I should not see "ADMIN@example.org" | ||
When I click "Kaiser.Grover@gmail.com" in the "#Root_Users" element | ||
And I follow "Go to next record" | ||
Then the "Email" field should contain "Kerr.Esha@gmail.com" | ||
And I follow "Go to next record" | ||
Then the "Email" field should contain "Lennon.Ellice@gmail.com" | ||
And I follow "Go to next record" | ||
Then the "Email" field should contain "ADMIN@example.org" |