Github Actions with Playwright + Synpress as plugin? #859
-
Currently the tests on CI/CD fail on metamask.acceptAccess() step after clicking a button on the website which opens a metamask window to accept access. The error is on switch to metamask windows step. The tests run fine locally both headed and headless mode. Error: [switchToMetamaskNotification] Max amount of retries to switch to metamask notification window has been reached. It was never found. at Object.switchToMetamaskNotification (/home/runner/work/test-automation/test-automation/node_modules/@synthetixio/synpress/commands/playwright.js:193:13) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
Seems like the metamask setup is done correctly, but it is unable to switch to metamask notification window. |
Beta Was this translation helpful? Give feedback.
I believe it doesn't work on CI because it lacks a screen to render the MetaMask window. You'll have to do something similar to this: https://github.com/Synthetixio/synpress/blob/dev/.github/workflows/e2e_headful.yml