diff --git a/e2e/feed-sources.spec.js b/e2e/feed-sources.spec.js index fe46480c..2380d695 100644 --- a/e2e/feed-sources.spec.js +++ b/e2e/feed-sources.spec.js @@ -219,7 +219,7 @@ test.describe("fest", () => { test("It loads create datakilde page", async ({ page }) => { page.getByText("Opret ny datakilde").click(); - await expect(page.locator("#save_feed-source")).toBeVisible(); + await expect(page.locator("#save")).toBeVisible(); }); test("It display error toast on save error", async ({ page }) => { @@ -238,7 +238,7 @@ test.describe("fest", () => { await expect( page.locator(".Toastify").locator(".Toastify__toast--error") ).not.toBeVisible(); - await page.locator("#save_feed-source").click(); + await page.locator("#save").click(); await expect( page.locator(".Toastify").locator(".Toastify__toast--error") ).toBeVisible(); @@ -253,9 +253,9 @@ test.describe("fest", () => { }); test("Cancel create datakilde", async ({ page }) => { page.getByText("Opret ny datakilde").click(); - await expect(page.locator("#cancel_feed-source")).toBeVisible(); - await page.locator("#cancel_feed-source").click(); - await expect(page.locator("#cancel_feed-source")).not.toBeVisible(); + await expect(page.locator("#cancel")).toBeVisible(); + await page.locator("#cancel").click(); + await expect(page.locator("#cancel")).not.toBeVisible(); }); }); diff --git a/e2e/playlist.spec.js b/e2e/playlist.spec.js index 465a1e94..0e118c20 100644 --- a/e2e/playlist.spec.js +++ b/e2e/playlist.spec.js @@ -59,7 +59,7 @@ test.describe("Playlist create tests", () => { await expect( page.locator(".Toastify").locator(".Toastify__toast--success") ).not.toBeVisible(); - await page.locator("#save_playlist").click(); + await page.locator("#save_slide_and_close").click(); await expect( page .locator(".Toastify") diff --git a/src/components/feed-sources/feed-source-form.jsx b/src/components/feed-sources/feed-source-form.jsx index 5b7cdf72..4ad26434 100644 --- a/src/components/feed-sources/feed-source-form.jsx +++ b/src/components/feed-sources/feed-source-form.jsx @@ -116,7 +116,7 @@ function FeedSourceForm({ diff --git a/src/components/playlist/playlist-campaign-form.jsx b/src/components/playlist/playlist-campaign-form.jsx index bb40a183..e194f15e 100644 --- a/src/components/playlist/playlist-campaign-form.jsx +++ b/src/components/playlist/playlist-campaign-form.jsx @@ -283,7 +283,7 @@ function PlaylistCampaignForm({ variant="primary" type="button" onClick={checkInputsHandleSubmit} - id="save_slide_an_close" + id="save_slide_and_close" className="margin-right-button" > {t("save-button-and-close")}