2017-09-01 14:35:04 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const assert = require( 'assert' );
|
|
|
|
const page = require( '../pageobjects/popups.page' );
|
|
|
|
|
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() );
|
|
|
|
} );
|
|
|
|
} );
|