Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions mavis/test/pages/import_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,8 @@ def verify_upload_output(self, file_path: Path) -> None:
@step("Select year groups {1}")
def select_year_groups(self, *year_groups: int) -> None:
for year_group in year_groups:
if year_group == 0:
self.page.get_by_label("Reception").check()
else:
self.page.get_by_label(text=f"Year {year_group}", exact=True).check()
self.page.locator(f'input[type="checkbox"][value="{year_group}"]').check()

self.click_continue()

def import_class_list(
Expand Down
Loading