mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-12-23 12:12:50 +00:00
f5de8ee108
* eslint-config-wikimedia: 0.27.0 → 0.28.0 The following rules are failing and were disabled: * modules: * no-mixed-spaces-and-tabs * no-jquery/no-extend * implicit-arrow-linebreak * tests/qunit: * no-jquery/no-extend * grunt-stylelint: 0.19.0 → 0.20.0 * stylelint-config-wikimedia: 0.16.1 → 0.17.1 Change-Id: I3fd3c4a2cbb03d3aa4c8efb658e33d14d24cd518
43 lines
940 B
JavaScript
43 lines
940 B
JavaScript
'use strict';
|
|
|
|
const assert = require( 'assert' ),
|
|
DiffPage = require( '../pageobjects/diff.page' );
|
|
|
|
describe( 'RevisionSlider revision tooltips', () => {
|
|
|
|
before( async () => {
|
|
await DiffPage.prepareSimpleTests( 2 );
|
|
DiffPage.ready();
|
|
await DiffPage.openSlider();
|
|
} );
|
|
|
|
it( 'appears and remains on hovering it', async () => {
|
|
|
|
await DiffPage.dwellRevision( 1 );
|
|
|
|
assert(
|
|
await DiffPage.getTooltip( 1 ).isDisplayed(), 'tooltip 1 should appear'
|
|
);
|
|
assert(
|
|
!await DiffPage.getTooltip( 2 ).isDisplayed(), 'tooltip 2 should not appear'
|
|
);
|
|
|
|
await DiffPage.dwellRevision( 2 );
|
|
|
|
assert(
|
|
await DiffPage.getTooltip( 2 ).isDisplayed(), 'tooltip 2 should appear'
|
|
);
|
|
assert(
|
|
!await DiffPage.getTooltip( 1 ).isDisplayed(), 'tooltip 1 should vanish'
|
|
);
|
|
|
|
await DiffPage.getTooltip( 2 ).moveTo();
|
|
|
|
assert(
|
|
await DiffPage.getTooltip( 2 ).isDisplayed(), 'tooltip 2 should still be visible'
|
|
);
|
|
|
|
} );
|
|
|
|
} );
|