2016-03-25 12:32:35 +00:00
|
|
|
|
@chrome @en.wikipedia.beta.wmflabs.org @firefox @integration @internet_explorer @safari @test2.wikipedia.org
|
2014-10-03 12:55:42 +00:00
|
|
|
|
Feature: Download menu
|
|
|
|
|
|
|
|
|
|
Background:
|
|
|
|
|
Given I am viewing an image using MMV
|
|
|
|
|
|
|
|
|
|
Scenario: Download menu can be opened
|
|
|
|
|
When I click the download icon
|
|
|
|
|
Then the download menu should appear
|
|
|
|
|
|
|
|
|
|
Scenario: Clicking the image closes the download menu
|
2014-12-08 16:20:42 +00:00
|
|
|
|
When I click the download icon
|
2015-02-11 19:28:13 +00:00
|
|
|
|
And the download menu appears
|
2014-12-08 16:20:42 +00:00
|
|
|
|
And I click the image
|
2014-10-03 12:55:42 +00:00
|
|
|
|
Then the download menu should disappear
|
|
|
|
|
|
|
|
|
|
Scenario: Image size defaults to original
|
2014-12-08 16:20:42 +00:00
|
|
|
|
When I click the download icon
|
|
|
|
|
Then the original beginning download image size label should be "4000 × 3000 px jpg"
|
2014-10-03 12:55:42 +00:00
|
|
|
|
And the download links should be the original image
|
|
|
|
|
|
|
|
|
|
Scenario: Attribution area is collapsed by default
|
2014-12-08 16:20:42 +00:00
|
|
|
|
When I click the download icon
|
2014-10-03 12:55:42 +00:00
|
|
|
|
Then the attribution area should be collapsed
|
|
|
|
|
|
|
|
|
|
Scenario: Attribution area can be opened
|
2014-12-08 16:20:42 +00:00
|
|
|
|
When I click the download icon
|
|
|
|
|
And I click on the attribution area
|
2014-10-03 12:55:42 +00:00
|
|
|
|
Then the attribution area should be open
|
|
|
|
|
|
|
|
|
|
Scenario: Attribution area can be closed
|
2014-12-08 16:20:42 +00:00
|
|
|
|
When I click the download icon
|
|
|
|
|
And I click on the attribution area
|
|
|
|
|
And I click on the attribution area close icon
|
2014-10-03 12:55:42 +00:00
|
|
|
|
Then the attribution area should be collapsed
|
|
|
|
|
|
|
|
|
|
Scenario: The small download option has the correct information
|
2014-12-08 16:20:42 +00:00
|
|
|
|
When I open the download dropdown
|
2015-02-13 11:18:27 +00:00
|
|
|
|
And the download size options appear
|
2014-12-08 16:20:42 +00:00
|
|
|
|
And I click the small download size
|
|
|
|
|
And the download size options disappears
|
|
|
|
|
Then the download image size label should be "193 × 145 px jpg"
|
|
|
|
|
And the download links should be the 193 thumbnail
|
2014-10-03 12:55:42 +00:00
|
|
|
|
|
|
|
|
|
Scenario: The medium download option has the correct information
|
2014-12-08 16:20:42 +00:00
|
|
|
|
When I open the download dropdown
|
2015-02-13 11:18:27 +00:00
|
|
|
|
And the download size options appear
|
2014-12-08 16:20:42 +00:00
|
|
|
|
And I click the medium download size
|
|
|
|
|
And the download size options disappears
|
|
|
|
|
Then the download image size label should be "640 × 480 px jpg"
|
|
|
|
|
And the download links should be the 640 thumbnail
|
2014-10-03 12:55:42 +00:00
|
|
|
|
|
|
|
|
|
Scenario: The large download option has the correct information
|
2014-12-08 16:20:42 +00:00
|
|
|
|
When I open the download dropdown
|
2015-02-13 11:18:27 +00:00
|
|
|
|
And the download size options appear
|
2014-12-08 16:20:42 +00:00
|
|
|
|
And I click the large download size
|
|
|
|
|
And the download size options disappears
|
|
|
|
|
Then the download image size label should be "1200 × 900 px jpg"
|
2016-03-25 12:32:35 +00:00
|
|
|
|
And the download links should be the 1200 thumbnail
|