-
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: New documentation * fix: format * chore: API documentation * fix: build * fix: build v2 * fix: minor fixes * fix: switch networks
- Loading branch information
Showing
5 changed files
with
36 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { testWithSynpress } from '@synthetixio/synpress' | ||
import { metaMaskFixtures } from '@synthetixio/synpress/playwright' | ||
import basicSetup from '../wallet-setup/basic.setup' | ||
|
||
const test = testWithSynpress(metaMaskFixtures(basicSetup)) | ||
|
||
const { expect } = test | ||
|
||
test('should add a custom network to MetaMask', async ({ metamask, page }) => { | ||
// Add the custom network | ||
await metamask.addNetwork({ | ||
name: 'Optimism', | ||
rpcUrl: 'https://mainnet.optimism.io', | ||
chainId: 10, | ||
symbol: 'ETH' | ||
}) | ||
|
||
await expect(page.locator('#chainId')).toHaveText('0xa') | ||
}) |
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