mirror of
https://github.com/owncast/owncast.git
synced 2024-11-29 11:39:08 +03:00
cc6b257470
* Move automated api tests to api directory * First pass at automated browser testing
17 lines
544 B
JavaScript
17 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);
|
|
});
|