由于某种原因,
pytest
pytest --output "foldername"
这是预期的行为。输出目录在测试开始时被清理。请参阅https://playwright.dev/docs/api/class-testproject#test-project-output-dir