mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-10 10:06:15 -08:00
test(stalker): assert retained video ownership without source timing
This commit is contained in:
1 parent
dd562386a2
commit
7166c1e594
1 file changed
+2
-2
@@ -18,7 +18,7 @@ export async function verifyStalkerCategorySearch(page: Page): Promise<void> {
|
||||
const player = page.locator('app-web-player-view');
|
||||
await expect(player).toBeVisible();
|
||||
const video = player.locator('video').first();
|
||||
const source = await video.getAttribute('src');
|
||||
const videoNode = await video.elementHandle();
|
||||
const playerNode = await player.elementHandle();
|
||||
|
||||
await player.hover();
|
||||
@@ -55,7 +55,7 @@ export async function verifyStalkerCategorySearch(page: Page): Promise<void> {
|
||||
expect(await playerNode?.evaluate((element) => element.isConnected)).toBe(
|
||||
true
|
||||
);
|
||||
await expect(video).toHaveAttribute('src', source ?? '');
|
||||
expect(await videoNode?.evaluate((element) => element.isConnected)).toBe(true);
|
||||
|
||||
await sidebarSearch.fill('');
|
||||
await sidebarSearch.press('Enter');
|
||||
|
||||
Reference in new issue
Block a user