Skip to content

Commit 412d1f4

Browse files
Review changes
1 parent d750440 commit 412d1f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mavis/test/pages/sessions/sessions_vaccination_wizard_page.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ def click_change_date_link(self) -> None:
4444
@step("Click on Confirm")
4545
def click_confirm_button(self) -> None:
4646
# Wait for navigation after clicking confirm (redirects to patient page)
47-
with self.page.expect_navigation(wait_until="domcontentloaded", timeout=30000):
47+
with self.page.expect_navigation(wait_until="domcontentloaded", timeout=10000):
4848
self.confirm_button.click()
49-
# Wait for page to stabilize (especially important for Safari)
50-
self.page.wait_for_load_state("networkidle", timeout=10000)
49+
# Assert that the header is visible to ensure the page is ready
50+
expect(self.header.page.locator("header")).to_be_visible()
5151

5252
@step("Click on Confirm in two tabs simultaneously")
5353
def click_confirm_button_in_two_tabs(self) -> None:

0 commit comments

Comments
 (0)