From f41da9105e5efcc26307f784d1338114a177f476 Mon Sep 17 00:00:00 2001 From: Troels Ugilt Jensen <6103205+tuj@users.noreply.github.com> Date: Fri, 16 Aug 2024 10:13:08 +0200 Subject: [PATCH] 1859: Fixed tests after changes in tables --- e2e/campaign.spec.js | 2 +- e2e/playlist.spec.js | 3 ++- e2e/slides.spec.js | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/e2e/campaign.spec.js b/e2e/campaign.spec.js index 5b1c7fef..3cb54cf9 100644 --- a/e2e/campaign.spec.js +++ b/e2e/campaign.spec.js @@ -336,7 +336,7 @@ test.describe("Campaign pages work", () => { .click(); await expect( page.locator("#slides-section").locator("tbody").locator("tr td") - ).toHaveCount(7); + ).toHaveCount(6); // Remove slide await page diff --git a/e2e/playlist.spec.js b/e2e/playlist.spec.js index 5590ac22..465a1e94 100644 --- a/e2e/playlist.spec.js +++ b/e2e/playlist.spec.js @@ -105,6 +105,7 @@ test.describe("Playlist create tests", () => { await expect(page.locator("#cancel_playlist")).not.toBeVisible(); }); }); + test.describe("Playlist list tests", () => { test.beforeEach(async ({ page }) => { await page.goto("/admin/playlist/list"); @@ -238,6 +239,6 @@ test.describe("Playlist list tests", () => { test("The correct amount of column headers loaded (playlist list)", async ({ page, }) => { - await expect(page.locator("thead").locator("th")).toHaveCount(6); + await expect(page.locator("thead").locator("th")).toHaveCount(8); }); }); diff --git a/e2e/slides.spec.js b/e2e/slides.spec.js index 9cc0de47..7895caeb 100644 --- a/e2e/slides.spec.js +++ b/e2e/slides.spec.js @@ -491,7 +491,7 @@ test.describe("Slides list works", () => { }); test("The correct amount of column headers loaded", async ({ page }) => { - await expect(page.locator("thead").locator("th")).toHaveCount(7); + await expect(page.locator("thead").locator("th")).toHaveCount(9); }); test("It removes all selected", async ({ page }) => {