diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/playwright/test_profiles.py | 2 | ||||
| -rw-r--r-- | tests/playwright/test_share.py | 3 | 
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/playwright/test_profiles.py b/tests/playwright/test_profiles.py index 7e5fb3c..ffbaab0 100644 --- a/tests/playwright/test_profiles.py +++ b/tests/playwright/test_profiles.py @@ -5,7 +5,7 @@ def test_forbidden(page: Page, playwright_helper):      john = playwright_helper.john_doe()      with page.expect_response(lambda resp: resp.status == 403): -        page.goto(f"/user/{john.id}") +        page.goto(f"/user/{john.id}/")  def test_profile(page: Page, playwright_helper): 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):  | 
