-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
119 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export const SigningSucceededToastTitle = 'Signing Succeeded' | ||
export const SigningFailedToastTitle = 'Signing Failed' | ||
export const TestIdSiweAuthenticationStatus = 'w3m-authentication-status' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { DEFAULT_SESSION_PARAMS } from './shared/constants' | ||
import { testMWSiwe } from './shared/fixtures/w3m-wallet-fixture' | ||
|
||
testMWSiwe.beforeEach(async ({ modalPage, walletPage }) => { | ||
await modalPage.copyConnectUriToClipboard() | ||
await walletPage.connect() | ||
await walletPage.handleSessionProposal(DEFAULT_SESSION_PARAMS) | ||
}) | ||
|
||
testMWSiwe.afterEach(async ({ modalValidator, walletValidator }) => { | ||
await modalValidator.expectDisconnected() | ||
await walletValidator.expectDisconnected() | ||
}) | ||
|
||
testMWSiwe( | ||
'it should sign in with ethereum', | ||
async ({ modalPage, walletPage, modalValidator, walletValidator }) => { | ||
await modalPage.promptSiwe() | ||
await walletValidator.expectReceivedSign({}) | ||
await walletPage.handleRequest({ accept: true }) | ||
await modalValidator.expectAuthenticated() | ||
await modalValidator.expectConnected() | ||
await walletValidator.expectConnected() | ||
await modalPage.disconnect() | ||
} | ||
) | ||
|
||
testMWSiwe( | ||
'it should reject sign in with ethereum', | ||
async ({ modalPage, walletPage, modalValidator, walletValidator }) => { | ||
await modalPage.promptSiwe() | ||
await walletValidator.expectReceivedSign({}) | ||
await walletPage.handleRequest({ accept: false }) | ||
await modalValidator.expectSignatureDeclined() | ||
await modalPage.cancelSiwe() | ||
await modalValidator.expectUnauthenticated() | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2ec21ef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
web3modal-laboratory – ./
web3modal-laboratory-git-v3-walletconnect1.vercel.app
web3modal-laboratory-walletconnect1.vercel.app
web3modal-laboratory-v3.vercel.app
lab.web3modal.com
2ec21ef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
web3modal-vue-wagmi-ex – ./
web3modal-vue-wagmi-example.vercel.app
web3modal-vue-wagmi-ex-walletconnect1.vercel.app
web3modal-vue-wagmi-ex-git-v3-walletconnect1.vercel.app
2ec21ef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
web3modal-react-wagmi-ex – ./
web3modal-react-wagmi-ex-walletconnect1.vercel.app
web3modal-react-wagmi-example.vercel.app
web3modal-react-wagmi-ex-git-v3-walletconnect1.vercel.app