mediawiki-extensions-Revisi.../tests/browser/features/autoexpand.feature
Thiemo Kreuz 407c1de800 Use cookie to dismiss help dialog and fix failing browser tests
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
2018-07-03 16:44:28 +02:00

39 lines
1.6 KiB
Gherkin

@chrome @en.wikipedia.beta.wmflabs.org @firefox @integration
Feature: RevisionSlider auto expand
Background:
Given a page with 2 revision(s) exists
Scenario: Revision slider does not automatically expand by default
Given I am on the diff page
Then There should be a RevisionSlider expand button
And RevisionSlider wrapper should be hidden
Scenario: Revision slider expands automatically when auto expand is on
Given I am on the diff page and disabled the help dialog
When I click on the expand button
And RevisionSlider wrapper should be visible
And The RevisionSlider has loaded
And I click on the auto expand button
And I wait for the setting to be saved
And I refresh the page
Then The auto expand button should be visible
And The auto expand button should be on
And RevisionSlider wrapper should be visible
And The RevisionSlider has loaded
Scenario: Revision slider does not expand automatically when auto expand is off
Given I am on the diff page and disabled the help dialog
When I click on the expand button
And RevisionSlider wrapper should be visible
And The RevisionSlider has loaded
And I click on the auto expand button
And I wait for the setting to be saved
And I click on the auto expand button
And I wait for the setting to be saved
And I refresh the page
And I click on the expand button
And RevisionSlider wrapper should be visible
And The RevisionSlider has loaded
Then The auto expand button should be visible
And The auto expand button should be off