mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-12-25 13:32:53 +00:00
57762e0417
Bug: T165036 Change-Id: I17d374eaac6627ca6a8ba178862b2a9cff2538c0
23 lines
435 B
JavaScript
23 lines
435 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() );
|
|
} );
|
|
|
|
it( 'Abandoning link hides preview', () => {
|
|
page.open();
|
|
page.dwellLink();
|
|
page.abandonLink();
|
|
assert( page.doNotSeePreview() );
|
|
} );
|
|
} );
|