mirror of
https://github.com/seigler/HLS-over-IPFS-video-player
synced 2025-07-27 01:36:14 +00:00
first version
This commit is contained in:
commit
f5e7c9abbf
17 changed files with 169594 additions and 0 deletions
24
tests/test.js
Normal file
24
tests/test.js
Normal file
|
@ -0,0 +1,24 @@
|
|||
'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')`)
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue