1
0
mirror of https://github.com/webslides/WebSlides.git synced 2025-09-01 01:01:47 +02:00

New test: Has only one slide visible

This commit is contained in:
Luis
2017-04-23 18:08:56 +02:00
parent 98717b15a4
commit e5ff650e07

View File

@@ -45,6 +45,15 @@ test.serial('First slide visible', async t => {
.then( ok => { t.truthy(ok); } );
});
test.serial('Has only one slide visible', async t => {
await page_
.evaluate( () => window.ws.slides.filter(
slide => slide.el.style.display != 'none'
).length == 1 )
.then( ok => { t.truthy(ok); } );
});
/**
* Last test
*/