Skip to content

Commit

Permalink
Merge pull request #5485 from ethereum/checkmetamask
Browse files Browse the repository at this point in the history
fix metamask
  • Loading branch information
bunsenstraat authored Dec 12, 2024
2 parents 3079c61 + 2f4c1f0 commit 1a5686e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
7 changes: 4 additions & 3 deletions apps/remix-ide-e2e/src/tests/metamask.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,13 @@ const tests = {
'Should connect to Sepolia Test Network using MetaMask #group1': function (browser: NightwatchBrowser) {
browser.waitForElementPresent('*[data-id="remixIdeSidePanel"]')
.setupMetamask(passphrase, password)
.useCss().switchBrowserTab(0)
.useCss()
.switchBrowserTab(0)
.refreshPage()
.waitForElementVisible('*[data-id="remixIdeIconPanel"]', 10000)
.click('*[data-id="landingPageStartSolidity"]')
.clickLaunchIcon('udapp')
.switchEnvironment('injected-MetaMask')
.waitForElementPresent('*[data-id="settingsNetworkEnv"]')
.assert.containsText('*[data-id="settingsNetworkEnv"]', 'Sepolia (11155111) network')
.pause(5000)
.switchBrowserWindow(extension_url, 'MetaMask', (browser) => {
browser
Expand All @@ -65,6 +64,8 @@ const tests = {
.click('*[data-testid="page-container-footer-next"]')
})
.switchBrowserTab(0) // back to remix
.waitForElementPresent('*[data-id="settingsNetworkEnv"]')
.assert.containsText('*[data-id="settingsNetworkEnv"]', 'Sepolia (11155111) network')
},

'Should add a contract file #group1': function (browser: NightwatchBrowser) {
Expand Down
5 changes: 3 additions & 2 deletions apps/remix-ide-e2e/src/tests/quickDapp.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ const tests = {
.click('*[data-id="landingPageStartSolidity"]')
.clickLaunchIcon('udapp')
.switchEnvironment('injected-MetaMask')
.waitForElementPresent('*[data-id="settingsNetworkEnv"]')
.assert.containsText('*[data-id="settingsNetworkEnv"]', 'Sepolia (11155111) network')

.pause(5000)
.switchBrowserWindow(extension_url, 'MetaMask', (browser) => {
browser
Expand All @@ -54,6 +53,8 @@ const tests = {
// .click('*[data-testid="popover-close"]')
})
.switchBrowserTab(0) // back to remix
.waitForElementPresent('*[data-id="settingsNetworkEnv"]')
.assert.containsText('*[data-id="settingsNetworkEnv"]', 'Sepolia (11155111) network')
},

'Should load quick-dapp plugin #group1': function (browser: NightwatchBrowser) {
Expand Down
4 changes: 2 additions & 2 deletions apps/remix-ide-e2e/src/tests/runAndDeploy_injected.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ const tests = {
.click('*[data-id="landingPageStartSolidity"]')
.clickLaunchIcon('udapp')
.switchEnvironment('injected-MetaMask')
.waitForElementPresent('*[data-id="settingsNetworkEnv"]')
.assert.containsText('*[data-id="settingsNetworkEnv"]', 'Sepolia (11155111) network')
.pause(5000)
.switchBrowserWindow(extension_url, 'MetaMask', (browser) => {
browser
Expand All @@ -60,6 +58,8 @@ const tests = {
// .click('*[data-testid="popover-close"]')
})
.switchBrowserTab(0) // back to remix
.waitForElementPresent('*[data-id="settingsNetworkEnv"]')
.assert.containsText('*[data-id="settingsNetworkEnv"]', 'Sepolia (11155111) network')
},

'Should add a contract file #group1': function (browser: NightwatchBrowser) {
Expand Down

0 comments on commit 1a5686e

Please sign in to comment.