mediawiki-extensions-Popups/tests/selenium/specs/previews.js
jdlrobson cf774be88b Port Popups browser tests to selenium
Bug: T177262
Change-Id: Ie77cf7bc79f454904983ed5cf65dc9fe2b1ececc
2017-11-01 13:31:36 -07:00

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