Fix debugger test

pull/5370/head
David Disu 3 years ago committed by yann300
parent 92053e7ae9
commit a1037fd7b0
  1. 6
      apps/remix-ide-e2e/src/commands/createContract.ts
  2. 2
      apps/remix-ide-e2e/src/commands/selectContract.ts
  3. 3
      apps/remix-ide-e2e/src/tests/debugger.test.ts

@ -15,12 +15,12 @@ class CreateContract extends EventEmitter {
function createContract (browser: NightwatchBrowser, inputParams: string, callback: VoidFunction) {
if (inputParams) {
browser.setValue('div[class^="contractActionsContainerSingle"] input', inputParams, function () {
browser.click('#runTabView button[class^="instanceButton"]').pause(500).perform(function () { callback() })
browser.setValue('.udapp_contractActionsContainerSingle > input', inputParams, function () {
browser.click('.udapp_contractActionsContainerSingle > button').pause(500).perform(function () { callback() })
})
} else {
browser
.click('#runTabView button[class^="instanceButton"]')
.click('.udapp_contractActionsContainerSingle > button')
.pause(500)
.perform(function () { callback() })
}

@ -1,7 +1,7 @@
import { NightwatchBrowser } from 'nightwatch'
import EventEmitter from 'events'
const selector = '#runTabView select[class^="contractNames"]'
const selector = '.udapp_contractNames'
class SelectContract extends EventEmitter {
command (this: NightwatchBrowser, contractName: string): NightwatchBrowser {

@ -25,8 +25,7 @@ module.exports = {
'Should debug failing transaction #group1': function (browser: NightwatchBrowser) {
browser.waitForElementVisible('*[data-id="verticalIconsKindudapp"]')
.clickLaunchIcon('udapp')
.waitForElementPresent('*[data-id="universalDappUiTitleExpander"]')
.click('*[data-id="universalDappUiTitleExpander"]')
.clickInstance(0)
.scrollAndClick('*[title="string name, uint256 goal"]')
.setValue('*[title="string name, uint256 goal"]', '"toast", 999')
.click('*[data-id="createProject - transact (not payable)"]')

Loading…
Cancel
Save