diff --git a/e2e/slides.spec.js b/e2e/slides.spec.js index 474fe3fc..5507c01c 100644 --- a/e2e/slides.spec.js +++ b/e2e/slides.spec.js @@ -145,11 +145,7 @@ test.describe("Create slide page works", () => { page.locator(".Toastify").locator(".Toastify__toast--error") ).toBeVisible(); await expect( - page - .locator(".Toastify") - .locator(".Toastify__toast--error") - .getByText(/Husk at tilknytte en skabelon til dit slide/) - .first() + page.locator(".Toastify").locator(".Toastify__toast--error").first() ).toBeVisible(); await expect(page).toHaveURL(/slide\/create/); });