(page: Page)
| 20 | |
| 21 | |
| 22 | def test_expect_file_chooser(page: Page) -> None: |
| 23 | page.set_content("<input type=file></input>") |
| 24 | with page.expect_file_chooser() as fc_info: |
| 25 | page.click('input[type="file"]') |
| 26 | fc = fc_info.value |
| 27 | fc.set_files( |
| 28 | {"name": "test.txt", "mimeType": "text/plain", "buffer": b"Hello World"} |
| 29 | ) |
| 30 | |
| 31 | |
| 32 | def test_set_input_files_should_preserve_last_modified_timestamp( |
nothing calls this directly
no test coverage detected