File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
mavis/test/pages/sessions Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments