Files
image-sequencer/test/ui-2/test/title.test.js
2019-12-18 23:28:37 -05:00

14 lines
424 B
JavaScript

const timeout = process.env.SLOWMO ? 30000 : 10000;
const fs = require('fs');
beforeAll(async () => {
path = fs.realpathSync('file://../examples/index.html');
await page.goto('file://' + path, {waitUntil: 'domcontentloaded'});
});
describe('Title of the page', () => {
test('Title of the page', async () => {
const title = await page.title();
expect(title).toBe('Image Sequencer');
}, timeout);
});