mediawiki-extensions-Multim.../tests/browser/features/mmv.download.feature
Cmcmahon 32cd6c7892 QA: WIP update tests for RSpec3 syntax etc.
Add back a sleep to make the test pass

* make a Then statement with no assertion into a When
* remove Then statements assertions from Given steps
* prefer single quotes per rubocop
* use strings instead of regexes where appropriate for match operator
* use appropriate wait_until syntax
* remove redundant steps that call a single other step
* sort invisible selection criteria from steps to Feature input
* add when_present polling because test is now much faster

Change-Id: I24435362836945833942e87d7caee49c9b34368d
2014-12-15 16:42:34 -07:00

55 lines
2.2 KiB
Gherkin
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@en.wikipedia.beta.wmflabs.org @firefox @chrome @internet_explorer_9 @internet_explorer_10 @internet_explorer_11 @safari @test2.wikipedia.org
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
When I click the download icon
And I click the image
Then the download menu should disappear
Scenario: Image size defaults to original
When I click the download icon
Then the original beginning download image size label should be "4000 × 3000 px jpg"
And the download links should be the original image
Scenario: Attribution area is collapsed by default
When I click the download icon
Then the attribution area should be collapsed
Scenario: Attribution area can be opened
When I click the download icon
And I click on the attribution area
Then the attribution area should be open
Scenario: Attribution area can be closed
When I click the download icon
And I click on the attribution area
And I click on the attribution area close icon
Then the attribution area should be collapsed
Scenario: The small download option has the correct information
When I open the download dropdown
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
Scenario: The medium download option has the correct information
When I open the download dropdown
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
Scenario: The large download option has the correct information
When I open the download dropdown
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"
And the download links should be the 1200 thumbnail