Skip to content

Commit badab5b

Browse files
committed
Add a test to ensure 404's still work as expected
1 parent 989f86e commit badab5b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/integration/tests_playwright/test_frontend_path.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,8 @@ def test_onload_redirect(
136136
# Optionally, reload /prefix/bouncer/ and check redirect
137137
page.goto(f"{base_url}/bouncer/")
138138
expect(page.get_by_text("This is the index page!")).to_be_visible()
139+
140+
# Check that 404's work and do not change the url
141+
page.goto(f"{base_url}/not-a-page")
142+
expect(page.get_by_text("404: Page not found")).to_be_visible()
143+
expect(page).to_have_url(f"{base_url}/not-a-page")

0 commit comments

Comments
 (0)