Skip to content

Commit

Permalink
1859: Fixed tests after changes in tables
Browse files Browse the repository at this point in the history
  • Loading branch information
tuj committed Aug 16, 2024
1 parent 5b2fad6 commit f41da91
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion e2e/campaign.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion e2e/playlist.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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);
});
});
2 changes: 1 addition & 1 deletion e2e/slides.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down

0 comments on commit f41da91

Please sign in to comment.