We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca32c73 commit 02650f3Copy full SHA for 02650f3
tests/integration/tests_playwright/test_frontend_path.py
@@ -128,10 +128,12 @@ def test_onload_redirect(
128
# Go to /subpage
129
page.get_by_role("button", name="Go to Subpage!").click()
130
expect(page.get_by_text("This is the sub page!")).to_be_visible()
131
+ expect(page).to_have_url(f"{base_url}/subpage")
132
133
# Click "Bounce to index!" (should redirect to index via on_load)
134
page.get_by_role("button", name="Bounce to index!").click()
135
expect(page.get_by_text("This is the index page!")).to_be_visible()
136
+ expect(page).to_have_url(f"{base_url}/")
137
138
# Optionally, reload /prefix/bouncer/ and check redirect
139
page.goto(f"{base_url}/bouncer/")
0 commit comments