partest
bunsenstraat 3 weeks ago
parent 35b9a4492f
commit edd4e86246
  1. 6
      apps/remix-ide-e2e/src/tests/metamask.test.ts

@ -100,6 +100,7 @@ const tests = {
if (!checkBrowserIsChrome(browser)) return if (!checkBrowserIsChrome(browser)) return
browser.clearConsole().waitForElementPresent('*[data-id="remixIdeSidePanel"]') browser.clearConsole().waitForElementPresent('*[data-id="remixIdeSidePanel"]')
.clickInstance(0) .clickInstance(0)
.clearConsole()
.waitForElementPresent('*[data-id="pluginManagerSettingsDeployAndRunLLTxSendTransaction"]') .waitForElementPresent('*[data-id="pluginManagerSettingsDeployAndRunLLTxSendTransaction"]')
.click('*[data-id="pluginManagerSettingsDeployAndRunLLTxSendTransaction"]') .click('*[data-id="pluginManagerSettingsDeployAndRunLLTxSendTransaction"]')
.perform((done) => { .perform((done) => {
@ -108,9 +109,10 @@ const tests = {
.maximizeWindow() .maximizeWindow()
.hideMetaMaskPopup() .hideMetaMaskPopup()
.saveScreenshot('./reports/screenshots/metamask_tr1.png') .saveScreenshot('./reports/screenshots/metamask_tr1.png')
.waitForElementPresent('[data-testid="page-container-footer-next"]') .scrollAndClick('[data-testid="page-container-footer-next"]')
//.waitForElementPresent('[data-testid="page-container-footer-next"]')
.saveScreenshot('./reports/screenshots/metamask_tr2.png') .saveScreenshot('./reports/screenshots/metamask_tr2.png')
.click('[data-testid="page-container-footer-next"]') // approve the tx //.click('[data-testid="page-container-footer-next"]') // approve the tx
.switchBrowserTab(0) // back to remix .switchBrowserTab(0) // back to remix
.waitForElementContainsText('*[data-id="terminalJournal"]', 'view on etherscan', 60000) .waitForElementContainsText('*[data-id="terminalJournal"]', 'view on etherscan', 60000)
.waitForElementContainsText('*[data-id="terminalJournal"]', 'from: 0x76a...2708f', 60000) .waitForElementContainsText('*[data-id="terminalJournal"]', 'from: 0x76a...2708f', 60000)

Loading…
Cancel
Save