mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-12-11 23:36:07 +00:00
85cc7e2257
Test whether: * "Enable previews" footer link correctly appears/disappears; * A hovercard correctly shows/doesn't show when enabled/disabled. Bug: T133054 Change-Id: I55f311b6b8845e6ebf4cc5698758afd1f9042a45
49 lines
2 KiB
Gherkin
49 lines
2 KiB
Gherkin
@chrome @en.m.wikipedia.beta.wmflabs.org @firefox @test2.m.wikipedia.org @vagrant @integration
|
|
Feature: Popups settings
|
|
Background:
|
|
Given the hover cards test page is installed
|
|
And I am logged in
|
|
And HoverCards is enabled as a beta feature
|
|
And I am on the "Popups test page" page
|
|
And the Hovercards JavaScript module has loaded
|
|
|
|
Scenario: "Enable previews" footer link correctly appears
|
|
And I do not see the enable previews link in the footer
|
|
And I hover over the first valid link
|
|
And I see a hover card
|
|
And I disable previews in the popups settings
|
|
Then I should see the enable previews link in the footer
|
|
|
|
Scenario: Disabling previews in the popup settings correctly disables popups
|
|
And I do not see the enable previews link in the footer
|
|
And I hover over the first valid link
|
|
And I see a hover card
|
|
And I disable previews in the popups settings
|
|
And I hover over the first valid link
|
|
Then I should not see a hover card
|
|
|
|
Scenario: "Enable previews" footer link correctly disappears
|
|
And I do not see the enable previews link in the footer
|
|
And I hover over the first valid link
|
|
And I see a hover card
|
|
And I disable previews in the popups settings
|
|
And I enable previews in the popups settings
|
|
Then I should not see the enable previews link in the footer
|
|
|
|
Scenario: Popups can be enabled via the "Enable previews" footer link
|
|
And I do not see the enable previews link in the footer
|
|
And I hover over the first valid link
|
|
And I see a hover card
|
|
And I disable previews in the popups settings
|
|
And I enable previews in the popups settings
|
|
And I hover over the first valid link
|
|
Then I should see a hover card
|
|
|
|
Scenario: Dismissing settings dialog does not change popups settings
|
|
And I hover over the first valid link
|
|
And I see a hover card
|
|
And I open the popups settings dialog of the first valid link
|
|
And I dismiss the popups settings dialog of the first valid link
|
|
And I hover over the first valid link
|
|
Then I should see a hover card
|