Skip to content

Commit

Permalink
2807: use locator in spec
Browse files Browse the repository at this point in the history
  • Loading branch information
sinejespersen committed Oct 23, 2024
1 parent 8c22f59 commit 276350b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions e2e/slides.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/);
});
Expand Down

0 comments on commit 276350b

Please sign in to comment.