npx playwright test
Output:
onStepBegin Before Hooks 0
onStepEnd Before Hooks 0
onStepBegin step one 0
onStepBegin attach "my attachment" 0
onStepEnd attach "my attachment" 1
onStepEnd step one 1
onStepBegin step two 1
onStepBegin attach "my attachment" 1
onStepEnd attach "my attachment" 2
onStepEnd step two 2
onStepBegin After Hooks 2
onStepEnd After Hooks 2
onTestEnd 2
Notice attachments count in onStepEnd-s.
npx playwright test --shard 1/1
Merge:
npx playwright merge-reports --reporter ./reporter.ts ./blob-report
Output:
onStepBegin Before Hooks 0
onStepEnd Before Hooks 0
onStepBegin step one 0
onStepBegin attach "my attachment" 0
onStepEnd attach "my attachment" 0
onStepEnd step one 0
onStepBegin step two 0
onStepBegin attach "my attachment" 0
onStepEnd attach "my attachment" 0
onStepEnd step two 0
onStepBegin After Hooks 0
onStepEnd After Hooks 0
onTestEnd 2
Notice 0 attachments count after each step.