Skip to content

Commit 31798ef

Browse files
committed
add step for file checking and wait for file to upload
1 parent b9ba2ce commit 31798ef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mavis/test/pages/import_records.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ def click_continue(self, _coverage: str | None = None) -> None:
8282
@step("Set input file to {1}")
8383
def set_input_file(self, file_path: Path) -> None:
8484
self.file_input.set_input_files(file_path)
85+
self.page.wait_for_load_state()
8586

8687
@step("Fill location combobox with {1}")
8788
def fill_location(self, location: str) -> None:
@@ -219,6 +220,7 @@ def click_uploaded_file_datetime(self, date_time: datetime) -> None:
219220
self.imported_records_tab.click()
220221
first_link.or_(second_link).first.click()
221222

223+
@step("Verify upload output for {file_path}")
222224
def verify_upload_output(self, file_path: Path) -> None:
223225
_expected_errors = self.test_data.get_expected_errors(file_path)
224226
if _expected_errors is not None:

0 commit comments

Comments
 (0)