From 276350b521b201aac658fa1073546a7ba9bae4a3 Mon Sep 17 00:00:00 2001 From: Sine Jespersen Date: Wed, 23 Oct 2024 14:20:13 +0200 Subject: [PATCH] 2807: use locator in spec --- e2e/slides.spec.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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/); });