mediawiki-extensions-Revisi.../tests/browser/features/help.feature
Tobias Gritschacher c2f4b64a3a Refactor help browsertest
- Applied the Given-When-Then rule
- Created alias of "close-help-dialog" step for readability

Bug: T146276
Change-Id: Icc8aeb8720025bd3c6d6bc811713fac48a9919dd
2016-10-10 14:52:24 +00:00

34 lines
1.3 KiB
Gherkin

@chrome @en.wikipedia.beta.wmflabs.org @firefox @integration
Feature: RevisionSlider help
Background:
Given I am logged in
And a page with 2 revision(s) exists
And I have reset my preferences
And RevisionSlider is enabled as a beta feature
And I am on the diff page
Scenario: RevisionSlider tutorial is present on first load
When I click on the expand button
And I wait until the RevisionSlider has loaded
Then The help dialog should be visible
Scenario: RevisionSlider tutorial is not present after it was dismissed once
When I click on the expand button
And I wait until the RevisionSlider has loaded
And I have dismissed the help dialog
And I refresh the page
And I click on the expand button
And I wait until the RevisionSlider has loaded
Then The help dialog should not be present
Scenario: RevisionSlider tutorial sequence works
When I click on the expand button
And I wait until the RevisionSlider has loaded
And I have moved to the next step
And I have moved to the next step
And I have moved to the next step
And I have closed the help dialog at the end
And I refresh the page
And I click on the expand button
And I wait until the RevisionSlider has loaded
Then The help dialog should not be present