summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/MultimediaViewer/tests/browser/features/mmv.download.feature
blob: fac69f348c9295747852a0e6762bdb9fc0ca5f72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
@chrome @en.wikipedia.beta.wmflabs.org @firefox @integration @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 the download menu appears
      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 the download size options appear
      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 the download size options appear
      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 the download size options appear
      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