mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-12-12 07:45:15 +00:00
cf774be88b
Bug: T177262 Change-Id: Ie77cf7bc79f454904983ed5cf65dc9fe2b1ececc
25 lines
479 B
JavaScript
25 lines
479 B
JavaScript
'use strict';
|
|
|
|
const assert = require( 'assert' );
|
|
const page = require( '../pageobjects/popups.page' );
|
|
|
|
describe( 'Dwelling on a valid link', function () {
|
|
|
|
before( function () {
|
|
page.setup();
|
|
} );
|
|
|
|
it( 'I should see a preview', function () {
|
|
page.open();
|
|
page.dwellLink();
|
|
assert( page.seePreview() );
|
|
} );
|
|
|
|
it( 'Abandoning link hides preview', function () {
|
|
page.open();
|
|
page.dwellLink();
|
|
page.abandonLink();
|
|
assert( page.doNotSeePreview() );
|
|
} );
|
|
} );
|