synpress icon indicating copy to clipboard operation
synpress copied to clipboard

unlockMetamask().then Error

Open kwdikeman opened this issue 2 years ago • 1 comments

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: Screen Shot 2022-03-15 at 7 16 36 PM

kwdikeman avatar Mar 16 '22 02:03 kwdikeman

Same error

philpetrov avatar Oct 02 '23 02:10 philpetrov