2018-03-15 16:30:11 +00:00
|
|
|
const assert = require( 'assert' ),
|
|
|
|
page = require( '../pageobjects/popups.page' );
|
2017-09-01 14:35:04 +00:00
|
|
|
|
2018-03-14 23:50:09 +00:00
|
|
|
describe( 'Dwelling on a valid link', () => {
|
2017-09-01 14:35:04 +00:00
|
|
|
|
2018-03-14 23:50:09 +00:00
|
|
|
before( () => {
|
2017-09-01 14:35:04 +00:00
|
|
|
page.setup();
|
|
|
|
} );
|
|
|
|
|
2018-03-14 23:50:09 +00:00
|
|
|
it( 'I should see a preview', () => {
|
2017-09-01 14:35:04 +00:00
|
|
|
page.open();
|
|
|
|
page.dwellLink();
|
|
|
|
assert( page.seePreview() );
|
|
|
|
} );
|
|
|
|
|
2018-03-14 23:50:09 +00:00
|
|
|
it( 'Abandoning link hides preview', () => {
|
2017-09-01 14:35:04 +00:00
|
|
|
page.open();
|
|
|
|
page.dwellLink();
|
|
|
|
page.abandonLink();
|
|
|
|
assert( page.doNotSeePreview() );
|
|
|
|
} );
|
|
|
|
} );
|