synpress icon indicating copy to clipboard operation
synpress copied to clipboard

Getting CypressError: `cy.screenshot()` timed out waiting `30000ms` to complete.

Open DevKhaira opened this issue 3 years ago • 6 comments

│ Cypress: 9.5.3 │ │ Browser: Chrome 103 │ │ Node Version: v17.3.1 (/usr/local/bin/node) │ │ Specs: 1 found (login.specs.ts) |

This is happening in the 1) "before all" hook for "Connects with Metamask"

Is there any work around to this?

DevKhaira avatar Jul 12 '22 12:07 DevKhaira

Just to add more detail it opens the metamask plugin and the get started button shows

DevKhaira avatar Jul 12 '22 12:07 DevKhaira

same for me stays on metamask welcome page

ishaba avatar Jul 14 '22 12:07 ishaba

Can you write your package.json dependencies?

If you are using jest@27 you will experience this error. Try to downgrade to jest@26

mati-wegotcha avatar Jul 28 '22 20:07 mati-wegotcha

I can confirm that jest@26 does not resolve this issue for me on M1 Mac. It seems to work fine on Linux & Windows

Afitzy98 avatar Aug 01 '22 16:08 Afitzy98

It works fine on jest@27 for Linux & Windows that is

Afitzy98 avatar Aug 01 '22 16:08 Afitzy98

Go to your macos preferences and make sure you have the applications that invoke cypress whitelisted in the automation permissions like so: Screen Shot 2022-08-31 at 11 55 16 AM

marko911 avatar Aug 31 '22 09:08 marko911

Hey, this is old and probably not relevant to latest synpress version. If this issue still persists, please re-open. Thanks!

drptbl avatar Oct 05 '22 23:10 drptbl

@drptbl Should we reopen this one or should I open a new issue? (looks like I can't reopen it) I'm facing this from time to time, without changing anything in config or tests (but can't really say what causes it). I'm using Synpress 3.7.1 and Cypress 12.13.0

image

YakovL avatar Jul 06 '23 18:07 YakovL