Skip to content

Commit

Permalink
Fix test fixtures and empty realm tests
Browse files Browse the repository at this point in the history
  • Loading branch information
owi92 committed Dec 3, 2024
1 parent 5b16ff3 commit e6c6938
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion frontend/tests/empty.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
4 changes: 3 additions & 1 deletion frontend/tests/fixtures/standard.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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');
Expand Down
1 change: 0 additions & 1 deletion frontend/tests/languageSelection.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e6c6938

Please sign in to comment.