playwright-community / jest-playwright

Running tests using Jest & Playwright
MIT License
531 stars 74 forks source link

how to specify record starting point #798

Closed wanghaisheng closed 2 years ago

wanghaisheng commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Jest configuration (Either in the package.json > jest or in the jest.config.js):

<enter your Jest config here>

Additional context Add any other context about the problem here.

i have set networkidle ,so when network is bad we can get long blank video like this,if i want to record start when page success loaded how

https://user-images.githubusercontent.com/2363295/169873440-c5661954-2179-48a8-85d2-008b23b76542.mp4

mxschmitt commented 2 years ago

Its not possible to specify a recording starting point, this is a Playwright limitation, see here for the upstream feature request: https://github.com/microsoft/playwright/issues/4821

wanghaisheng commented 2 years ago

i use track instead due to poor quality of default record