You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
💡 Are you able to provide enough information to be able to reproduce your issue locally?
I can provide enough details to reproduce my issue on local environment.
Synpress version
4.0.3
Node.js version
18.20.0
Operating system
macOS Monterey 12.4
Run mode
Playwright + Synpress (as plugin)
CI platform (if applicable)
GitHub Actions (It reproduces locally as well)
Are you running your tests inside docker? (if applicable)
This issue could be related to docker.
What happened?
The 'metamask' fixture can't be used on 'beforeAll' hook because it uses 'page' and 'context'. If the fixture is implemented myself, it will fail too because of 'extensionId' and 'context' fixtures - they also use context. It happens because the Playwright prohibits using them on the beforeAll level because it is created automatically on the beforeEach level - to create an isolated context for each test.
What is your expected behavior?
To give an opportunity to create a browser context ourselves to manage it there. I see that as an opportunity to do an implementation of your default 'context' fixture in the separate function/s (to remove it from fixtures that can block the hooks usages), it allows to await chromium.launchPersistentContext wherever you want.
How to reproduce the bug.
Use the 'metamask' fixture on the 'beforeAll' hook.
Relevant log output
The text was updated successfully, but these errors were encountered:
🔎 Have you searched existing issues to avoid duplicates?
🧪 Have you tested your code using latest version of Synpress?
💡 Are you able to provide enough information to be able to reproduce your issue locally?
Synpress version
4.0.3
Node.js version
18.20.0
Operating system
macOS Monterey 12.4
Run mode
Playwright + Synpress (as plugin)
CI platform (if applicable)
GitHub Actions (It reproduces locally as well)
Are you running your tests inside docker? (if applicable)
What happened?
The 'metamask' fixture can't be used on 'beforeAll' hook because it uses 'page' and 'context'. If the fixture is implemented myself, it will fail too because of 'extensionId' and 'context' fixtures - they also use context. It happens because the Playwright prohibits using them on the beforeAll level because it is created automatically on the beforeEach level - to create an isolated context for each test.
What is your expected behavior?
To give an opportunity to create a browser context ourselves to manage it there. I see that as an opportunity to do an implementation of your default 'context' fixture in the separate function/s (to remove it from fixtures that can block the hooks usages), it allows to await chromium.launchPersistentContext wherever you want.
How to reproduce the bug.
Use the 'metamask' fixture on the 'beforeAll' hook.
Relevant log output
The text was updated successfully, but these errors were encountered: