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.0-alpha.9
Node.js version
v20.12.0
Operating system
macOS and linux ubuntu
Run mode
Playwright + Synpress (as plugin)
CI platform (if applicable)
No response
Are you running your tests inside docker? (if applicable)
This issue could be related to docker.
What happened?
I use this code to authenticate user against my dapp
export async function login(page: Page, metamask: MetaMask) {
await page.getByTestId('login-button-header').click();
await page.getByTestId('rk-wallet-option-metaMask').click();
await metamask.connectToDapp();
// my dapp works only on binance smart chain, and default network of metamask is eth mainnet
// so I'm being promted with add network and switch to network popups
await metamask.approveSwitchNetwork();
await metamask.approveNewNetwork();
// this is where issues happens, after approving and adding new network,
// in metamask version v11.9.1 popover is rendered and it block's flow
// below you can see my custom code to close it if it happens, but it does not work
// when I use same code in wallet setup
// try {
// await metamask.notificationPage.page.getByTestId('popover-close').waitFor({ timeout: 3000 });
// await metamask.notificationPage.page.getByTestId('popover-close').click();
// } catch (error) {
// console.log('Network switch prompt not found, continuing...');
// }
await page.getByRole('button', { name: /Sign message/ }).click();
await metamask.confirmSignature();
await expect(page.getByTestId('header-user-menu')).toContainText(/0x[0-9a-f]{2}...[0-9a-f]{4}/);
}
That popover looks like this
This is my code I use to cache authenticated metamask
🔎 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.0-alpha.9
Node.js version
v20.12.0
Operating system
macOS and linux ubuntu
Run mode
Playwright + Synpress (as plugin)
CI platform (if applicable)
No response
Are you running your tests inside docker? (if applicable)
What happened?
I use this code to authenticate user against my dapp
That popover looks like this
This is my code I use to cache authenticated metamask
If I use test with this cache I'm stuck at this screen
What is your expected behavior?
Expected behavior is that popover is automatically closed when it's rendered, not blocking flow
How to reproduce the bug.
helper/user.s
setup wallet
Relevant log output
No response
The text was updated successfully, but these errors were encountered: