diff --git a/frontend/tests/empty.spec.ts b/frontend/tests/empty.spec.ts index 5243a4c80..136d6e634 100644 --- a/frontend/tests/empty.spec.ts +++ b/frontend/tests/empty.spec.ts @@ -9,7 +9,6 @@ test("Empty Tobira", async ({ page, browserName }) => { await page.goto("/"); await test.step("Looks empty", async () => { - await expect(page.locator("h1").nth(0)).toContainText("Tobira Videoportal"); await expect(page.locator("main").nth(0)).toContainText("No pages yet"); expect(await page.isVisible("text='Login'")).toBe(true); }); diff --git a/frontend/tests/fixtures/standard.sql b/frontend/tests/fixtures/standard.sql index 56e3d2836..fbfc44b99 100644 --- a/frontend/tests/fixtures/standard.sql +++ b/frontend/tests/fixtures/standard.sql @@ -273,6 +273,8 @@ values ('ready', '06a71e43-94cd-472d-a345-952979489e88', 'Unlisted video in seri -- ----- Realms --------------------------------------------------------------- +-- Title for homepage: +update realms set name = 'Tobira Videoportal' where id = 0; insert into realms (parent, path_segment, name, child_order) values (0, 'animals', 'Animal videos', 'by_index'); insert into realms (parent, path_segment, name, child_order) @@ -302,7 +304,7 @@ insert into realms (parent, path_segment, name, child_order) values ((select id from realms where full_path = '/love'), 'turtles', 'Turtles', 'alphabetic:desc'); insert into realms (parent, path_segment, name) -values ((select id from realms where full_path = '/moon'), 'finanzamt', 'Finanzamt'); +values ((select id from realms where full_path = '/moon'), 'finanzamt', 'Finanzamt'); insert into realms (parent, path_segment, name) values ((select id from realms where full_path = '/@morgan'), 'apple', 'Apple'); diff --git a/frontend/tests/languageSelection.spec.ts b/frontend/tests/languageSelection.spec.ts index acadb403e..049c5aa96 100644 --- a/frontend/tests/languageSelection.spec.ts +++ b/frontend/tests/languageSelection.spec.ts @@ -7,7 +7,6 @@ test("Language selection", async ({ page }) => { const german = page.getByRole("checkbox", { name: "Deutsch" }); await page.goto("/"); - await page.waitForSelector("h1"); await test.step("Language button is present and opens menu", async () => { await page.getByRole("button", { name: "Language selection" }).click();