Skip to content

Instantly share code, notes, and snippets.

@ZiiSolutions
Created June 25, 2018 16:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ZiiSolutions/176204b4b6756aff238596988564855a to your computer and use it in GitHub Desktop.
Save ZiiSolutions/176204b4b6756aff238596988564855a to your computer and use it in GitHub Desktop.
@pacreate
Feature: PA Create Latest Images Page - Latest Images Page
Scenario: Verify Latest Images page has infinite scroll
Given I navigate to the images tab at url "/create/images"
And the images view displays 30 images
And I scroll down
And the images view displays 44 images
Scenario: Verify images are displayed correctly
Given I have pictures
When I navigate to the images tab at url "/create/images"
Then the images are listed in published time descending order
And the 1st image displays it's caption
And the 1st image has a download link
And the 1st image is displayed
And the 1st image displays it's published time
And the 1st image displays the source's topic and keywords
And the 1st image's title attribute contains the headline
And the 1st image's alt attribute contains the body text
Scenario: Verify filter drop down
Given I navigate to the images tab at url "/create/images"
When I have the service drop down filter menu
Then the filter menu displays a label which reads "Filter:"
And the filter menu displays drop down items in the order:
| All |
| News |
| Sport |
| Entertainment |
| Lifestyle |
Scenario Outline: User can filter images by service
Given I have pictures for the service "<service>"
And I navigate to the images tab at url "/create/images"
And I have the service drop down filter menu
When I select "<name>" from the filter menu
Then the images are listed in published time descending order
And the 1st image displays it's caption
And the 1st image has a download link
And the 1st image is displayed
And the 1st image displays it's published time
And the 1st image displays the source's topic and keywords
And the 1st image's title attribute contains the headline
And the 1st image's alt attribute contains the body text
Examples:
| service | name |
| paservice:news | News |
| paservice:sport | Sport |
Scenario: User can filter images by service to get no results
And I navigate to the images tab at url "/create/images"
And I have the service drop down filter menu
When I select "Lifestyle" from the filter menu
Then no images are listed with a "— No images —" message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment