Skip to content

Commit

Permalink
e2e: use anvil if USE_ANVIL is present
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Mucha <jakub.mucha@icloud.com>
  • Loading branch information
drptbl committed Oct 16, 2022
1 parent ca227c9 commit e4e7b33
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/e2e/specs/metamask-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,15 @@ describe('Metamask', () => {
);
});
it(`rejectMetamaskTransaction should reject transaction`, () => {
cy.importMetamaskAccount(Cypress.env('PRIVATE_KEY_WITH_FUNDS'));
if (Cypress.env('USE_ANVIL')) {
cy.importMetamaskAccount(
// don't worry my friend, this is just first private key from:
// 'test test test test test test test test test test test junk'
'0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80',
);
} else {
cy.importMetamaskAccount(Cypress.env('PRIVATE_KEY_WITH_FUNDS'));
}
cy.get('#requestPermissions').click();
cy.acceptMetamaskAccess();
cy.get('#createToken').click();
Expand Down

0 comments on commit e4e7b33

Please sign in to comment.