Skip to content

Commit dacce32

Browse files
authored
Merge pull request #511 from Synthetixio/510-disconnectwalletfromdapp-and-disconnectwalletfromalldapps-dont-work
fix: close disconnect popup on disconnectWalletFromAllDapps
2 parents 2155660 + a9eb6af commit dacce32

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

commands/metamask.js

+11
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,17 @@ module.exports = {
452452
);
453453
}
454454

455+
// close popup if present
456+
if (
457+
(await playwright
458+
.metamaskWindow()
459+
.$(mainPageElements.connectedSites.modal)) !== null
460+
) {
461+
await playwright.waitAndClick(
462+
mainPageElements.connectedSites.closeButton,
463+
);
464+
}
465+
455466
await switchToCypressIfNotActive();
456467
return true;
457468
},

0 commit comments

Comments
 (0)