synpress
synpress copied to clipboard
unlockMetamask().then Error
I have a script that does the initial setup and imports the accounts I need for testing. I then change the support/index.js to SKIP_METAMASK_SETUP and INSTALL.
As I got through the rest of the scripts I want to just call the unlockMetamask() to unlock and proceed with tests. Once unlocked I can change accounts as necessary.
usage: NOTE: The commented cy.setupMetamask works but is slow and does some additional items after login which is not wanted.
it(`unlockMetamask`, () => {
cy.unlockMetamask(localpass.PASSWORD).then(unlocked => {
expect(unlocked).to.be.true;
});
// cy.setupMetamask(localpass.SECRET_WORDS, localpass.NETWORK_NAME, localpass.PASSWORD).then(setupFinished => {
// expect(setupFinished).to.be.true;
// });
});
Erorr:
Same error