Closed
Description
- The following test snippet:
import { test, expect } from '@playwright/test';
test('should work', async ({ page }) => {
await page.goto('https://playwright.dev');
await expect(page).toHaveScreenshot();
});
- Execute with
--trace on
:
npx playwright test --trace on
- Open trace with
npx playwright show-trace
:
Actual / Expected
The "attach" step (focused on the screenshot) is a top-level step. I'd expect it to be hidden inside the expect.toHaveScreenshot
step.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment