cc6b257470
* Move automated api tests to api directory * First pass at automated browser testing
18 lines
544 B
JavaScript
18 lines
544 B
JavaScript
const listenForErrors = require('./lib/errors.js').listenForErrors;
|
|
const videoTest = require('./tests/video.js').videoTest;
|
|
|
|
describe('Video embed page', () => {
|
|
beforeAll(async () => {
|
|
await page.setViewport({ width: 1080, height: 720 });
|
|
listenForErrors(browser, page);
|
|
await page.goto('http://localhost:5309/embed/video');
|
|
});
|
|
|
|
afterAll(async () => {
|
|
await page.waitForTimeout(3000);
|
|
await page.screenshot({ path: 'screenshots/screenshot_video_embed.png', fullPage: true });
|
|
});
|
|
|
|
videoTest(browser, page);
|
|
});
|