mirror of
https://github.com/seigler/HLS-over-IPFS-video-player
synced 2025-07-27 01:36:14 +00:00
24 lines
567 B
JavaScript
24 lines
567 B
JavaScript
'use strict'
|
|
|
|
'use strict'
|
|
|
|
const { test } = require('@playwright/test');
|
|
const { playwright } = require('test-util-ipfs-example');
|
|
|
|
// Setup
|
|
const play = test.extend({
|
|
...playwright.servers(),
|
|
});
|
|
|
|
play.describe('browser videostream:', () => {
|
|
// DOM
|
|
const status = "#status"
|
|
|
|
play.beforeEach(async ({servers, page}) => {
|
|
await page.goto(`http://localhost:${servers[0].port}/`);
|
|
})
|
|
|
|
play('should properly initialized a IPFS node and stream a video', async ({ page }) => {
|
|
await page.waitForSelector(`${status}:has-text('Video ready')`)
|
|
});
|
|
});
|