Skip to content

vitalets/playwright-issues

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Steps

Run Playwright with custom reporter

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.

Run Playwright with Blob reporter and then merge

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.

About

Repository to reproduce Playwright issues

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published