mediawiki-extensions-Popups/tests/selenium/specs/previews.js

23 lines
435 B
JavaScript
Raw Normal View History

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() );
} );
} );