mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-17 20:41:32 +00:00
0bee0906d4
eslint \ --cache \ --max-warnings 0 \ --report-unused-disable-directives \ --fix \ src tests Change-Id: I051275126ae7fa9affd16c2504017c0584f2d9c7
25 lines
450 B
JavaScript
25 lines
450 B
JavaScript
'use strict';
|
|
|
|
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() );
|
|
} );
|
|
} );
|