mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-12-12 15:35:11 +00:00
eb09ac07b9
Bug: T267199 Change-Id: I357927144c42e67cc449fd1b9ce73ecd770c1481
37 lines
998 B
JavaScript
37 lines
998 B
JavaScript
'use strict';
|
|
|
|
const assert = require( 'assert' ),
|
|
DiffPage = require( '../pageobjects/diff.page' );
|
|
|
|
describe( 'RevisionSlider diff links', function () {
|
|
|
|
beforeEach( function () {
|
|
DiffPage.prepareSimpleTests( 4 );
|
|
DiffPage.ready();
|
|
DiffPage.openSlider();
|
|
} );
|
|
|
|
it( ' older edit diff link can be clicked', function () {
|
|
DiffPage.rsEditOlderButton.click();
|
|
DiffPage.waitUntilFinishedLoading();
|
|
|
|
assert( DiffPage.isOlderPointerOn( 2 ) );
|
|
assert( DiffPage.isNewerPointerOn( 3 ) );
|
|
assert( DiffPage.showsOlderSummary( 2 ) );
|
|
assert( DiffPage.showsNewerSummary( 3 ) );
|
|
} );
|
|
|
|
it( ' newer edit diff link can be clicked', function () {
|
|
DiffPage.rsEditOlderButton.click();
|
|
DiffPage.waitUntilFinishedLoading();
|
|
|
|
DiffPage.rsEditNewerButton.click();
|
|
DiffPage.waitUntilFinishedLoading();
|
|
|
|
assert( DiffPage.isOlderPointerOn( 3 ) );
|
|
assert( DiffPage.isNewerPointerOn( 4 ) );
|
|
assert( DiffPage.showsOlderSummary( 3 ) );
|
|
assert( DiffPage.showsNewerSummary( 4 ) );
|
|
} );
|
|
} );
|