(page: Page, assetdir: Path)
| 53 | |
| 54 | |
| 55 | async def test_should_work(page: Page, assetdir: Path) -> None: |
| 56 | await page.set_content("<input type=file>") |
| 57 | await page.set_input_files("input", assetdir / "file-to-upload.txt") |
| 58 | assert await page.eval_on_selector("input", "input => input.files.length") == 1 |
| 59 | assert ( |
| 60 | await page.eval_on_selector("input", "input => input.files[0].name") |
| 61 | == "file-to-upload.txt" |
| 62 | ) |
| 63 | |
| 64 | |
| 65 | async def test_should_set_from_memory(page: Page) -> None: |
nothing calls this directly
no test coverage detected