See this existing html report where we can add attachments: https://github.com/pytest-dev/pytest-html Relates https://github.com/microsoft/playwright-pytest/issues/105