mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-12-25 05:03:22 +00:00
407c1de800
I have seen this failing: https://integration.wikimedia.org/ci/job/mwext-mw-selenium-jessie/9255/console The idea is to pre-set this cookie so the help dialog never shows up in the first place. The tests do not need to look for the element, click it, wait for the dialog to close. This should even speed up the browser tests, I believe. Also this adjustes waiting conditions in several places to address timing issues with failing browser tests. Since these tests should be replaced by Node.js on the long run I added "sleep" in the cases although it's not recommended. Change-Id: Ida381faa390aa62ebaadd3713864676be80abd51
31 lines
1.2 KiB
Gherkin
31 lines
1.2 KiB
Gherkin
@chrome @en.wikipedia.beta.wmflabs.org @firefox @integration
|
|
Feature: RevisionSlider help
|
|
Background:
|
|
Given a page with 2 revision(s) exists
|
|
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 closed the help dialog at the start
|
|
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 |