How to add delay/condition between, the runner UI hiding, and screenshot being taken #28640
Unanswered
ACoolmanTelicent
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Background
Runner UI
The Cypress app includes Runner UI
Screenshot flow
1 Except with
capture: 'runner'
which is not ideal as it includes the Runner UIProblem
Elements like canvas, can often redraw based off resize/relayout.
In my app the canvas is has not yet redrawn its pixels when the screenshot happens.
Question
How can I add a delay (or a condition) between the Runner UI hiding, and the screenshot.
Prior attempts / Alternatives
Ive only been able to add delays/conditons BEFORE the Runner UI hides, which does not help.
e.g. this screenshot config didn't work for me
1+ I can take a screenshot configured with
capture: 'runner',
, as this leaves the Runner UI onscreen, thus saving a resize/relayout, thus keeping my canvas pixels "populated". But this is not my ideal solution.As a hail mary, I tried to blackout the Render UI, but (as expected) it didn't work
Beta Was this translation helpful? Give feedback.
All reactions