transact greet

partest
bunsenstraat 3 weeks ago
parent 5e9d3c05cc
commit 0dcb788725
  1. 10
      apps/remix-ide-e2e/src/tests/metamask.test.ts

@ -130,10 +130,14 @@ const tests = {
'Should run transaction (greet function) on Sepolia Test Network using MetaMask #group1': function (browser: NightwatchBrowser) { 'Should run transaction (greet function) on Sepolia Test Network using MetaMask #group1': function (browser: NightwatchBrowser) {
if (!checkBrowserIsChrome(browser)) return if (!checkBrowserIsChrome(browser)) return
browser.clearConsole().waitForElementPresent('*[data-id="remixIdeSidePanel"]') browser.clearConsole().waitForElementPresent('*[data-id="remixIdeSidePanel"]')
.clickInstance(0)
.clearConsole() .clearConsole()
.waitForElementPresent('*[data-id="pluginManagerSettingsDeployAndRunLLTxSendTransaction"]') .waitForElementPresent('*[data-title="string _message"]')
.click('*[data-id="pluginManagerSettingsDeployAndRunLLTxSendTransaction"]') .setValue('*[data-title="string _message"]', 'test')
.saveScreenshot('./reports/screenshots/metamask_tr7.png')
.waitForElementVisible('*[data-id="greet - transact (not payable)"]')
.saveScreenshot('./reports/screenshots/metamask_tr9.png')
.click('*[data-id="greet - transact (not payable)"]')
.saveScreenshot('./reports/screenshots/metamask_tr8.png')
.perform((done) => { .perform((done) => {
browser.switchBrowserWindow(extension_url, 'MetaMask', (browser) => { browser.switchBrowserWindow(extension_url, 'MetaMask', (browser) => {
browser browser

Loading…
Cancel
Save