test(web-e2e): assert M3U movie metadata in the visible About block (#1791)

This commit is contained in:
4gray authored and GitHub committed 2026-10-03 11:17:16 +02:00
1 parent c9d169e3dc
commit 9c77e9e41a
1 file changed
+7 -9
+7 -9
View File
@@ -345,17 +345,15 @@ test('@web @m3u @tmdb recognized movies open the VOD detail view', async ({
).toEqual(['app-html-video-player']);
// Metadata patches the mounted view asynchronously. The shell stamps the
// host templates into BOTH the hero and the watch-state About block, so
// every metadata string legitimately resolves twice.
// host templates into BOTH the hero and the watch-state About block, but
// the collapsed hero turns `visibility: hidden` 300ms after mount,
// sometimes before TMDB answers. Assert the copy a watching user sees.
const about = detail(page).locator('app-content-about');
await expect(
detail(page).getByText('Paul Atreides arrives on Arrakis.').first()
).toBeVisible();
await expect(
detail(page).getByText('Denis Villeneuve').first()
).toBeVisible();
await expect(
detail(page).getByText('Science Fiction').first()
about.getByText('Paul Atreides arrives on Arrakis.')
).toBeVisible();
await expect(about.getByText('Denis Villeneuve')).toBeVisible();
await expect(about.getByText('Science Fiction')).toBeVisible();
// A live channel keeps the classic layout.
await sidebarEntry(page, 'Live One').click();