From b7d5bb8af63a066d418f43e33f8a0f954e76ed28 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Tue, 6 May 2025 22:22:00 +0200 Subject: fix test for new 403 page --- tests/playwright/test_share.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/playwright') diff --git a/tests/playwright/test_share.py b/tests/playwright/test_share.py index de288a0..dcba899 100644 --- a/tests/playwright/test_share.py +++ b/tests/playwright/test_share.py @@ -29,7 +29,8 @@ def test_view_wrong_link(page: Page, playwright_helper, dbaccess): with page.expect_response(lambda resp: resp.status == 403): page.goto(f"/track/{track.id}?secret=foobar") - assert "Forbidden" in page.content() + assert "No entry" in page.content() + assert "not allowed to access" in page.content() def test_change_link(page: Page, playwright_helper, dbaccess): -- cgit v1.2.3