mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-29 01:44:31 +00:00
ae44042cbf
Change-Id: Ic0a47bd468532824e8648c3f6371cc403896603c
23 lines
483 B
JavaScript
23 lines
483 B
JavaScript
const assert = require( 'assert' ),
|
|
page = require( '../pageobjects/popups.page' );
|
|
|
|
describe( 'Dwelling on a valid link', () => {
|
|
|
|
before( () => {
|
|
page.setup();
|
|
} );
|
|
|
|
it( 'I should see a preview', () => {
|
|
page.open();
|
|
page.dwellLink();
|
|
assert( page.seePreview(), 'Preview is shown.' );
|
|
} );
|
|
|
|
it( 'Abandoning link hides preview', () => {
|
|
page.open();
|
|
page.dwellLink();
|
|
page.abandonLink();
|
|
assert( page.doNotSeePreview(), 'Preview is kept hidden.' );
|
|
} );
|
|
} );
|