Skip to content

Commit 96718e6

Browse files
committed
make batch selection more reliable
1 parent eacc55b commit 96718e6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

mavis/test/pages/sessions/sessions_vaccination_wizard_page.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from mavis.test.utils import (
1111
expect_alert_text,
1212
expect_details,
13+
reload_until_element_is_visible,
1314
)
1415

1516

@@ -47,7 +48,13 @@ def expect_consent_refused_text(self, parent: Parent) -> None:
4748

4849
@step("Choose batch {1}")
4950
def choose_batch(self, batch_name: str) -> None:
50-
self.page.get_by_role("radio", name=batch_name).check()
51+
batch_radio = self.page.get_by_role("radio", name=batch_name)
52+
53+
reload_until_element_is_visible(
54+
self.page,
55+
batch_radio,
56+
)
57+
batch_radio.check()
5158
self.click_continue_button()
5259

5360
def record_vaccination(

0 commit comments

Comments
 (0)