Skip to content

Commit 02650f3

Browse files
committed
Check url at each step
1 parent ca32c73 commit 02650f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/integration/tests_playwright/test_frontend_path.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,12 @@ def test_onload_redirect(
128128
# Go to /subpage
129129
page.get_by_role("button", name="Go to Subpage!").click()
130130
expect(page.get_by_text("This is the sub page!")).to_be_visible()
131+
expect(page).to_have_url(f"{base_url}/subpage")
131132

132133
# Click "Bounce to index!" (should redirect to index via on_load)
133134
page.get_by_role("button", name="Bounce to index!").click()
134135
expect(page.get_by_text("This is the index page!")).to_be_visible()
136+
expect(page).to_have_url(f"{base_url}/")
135137

136138
# Optionally, reload /prefix/bouncer/ and check redirect
137139
page.goto(f"{base_url}/bouncer/")

0 commit comments

Comments
 (0)