Skip to content

Commit

Permalink
e2e: siwe
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Mucha <[email protected]>
  • Loading branch information
drptbl committed Nov 17, 2022
1 parent 961c0c4 commit a5be9cc
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/e2e/enable-later/siwe-spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
describe('SIWE', () => {
context('Test commands', () => {
it(`acceptMetamaskAccess should work with SIWE signature request after connecting a wallet`, () => {
cy.setupMetamask(
'test test test test test test test test test test test junk',
'mainnet',
'Tester@1234',
);
cy.origin('https://login.xyz', () => {
cy.visit('/');
cy.get('[data-action="submit"]').click();
cy.get(
'#WEB3_CONNECT_MODAL_ID .web3modal-provider-wrapper:nth-child(1)',
).click();
});
cy.acceptMetamaskAccess({ signInSignature: true }).then(connected => {
expect(connected).to.be.true;
});
});
});
});

0 comments on commit a5be9cc

Please sign in to comment.