pull/5370/head
filip mertens 2 years ago
parent 767672cf83
commit c6565f8f58
  1. 3
      apps/remix-ide-e2e/src/commands/addFile.ts
  2. 4
      apps/remix-ide-e2e/src/tests/debugger.test.ts

@ -29,10 +29,9 @@ function addFile (browser: NightwatchBrowser, name: string, content: NightwatchC
.waitForElementContainsText('*[data-id$="/blank"]', '', 60000) .waitForElementContainsText('*[data-id$="/blank"]', '', 60000)
.sendKeys('*[data-id$="/blank"] .remixui_items', name) .sendKeys('*[data-id$="/blank"] .remixui_items', name)
.sendKeys('*[data-id$="/blank"] .remixui_items', browser.Keys.ENTER) .sendKeys('*[data-id$="/blank"] .remixui_items', browser.Keys.ENTER)
.pause(2000)
.waitForElementVisible(`li[data-id="treeViewLitreeViewItem${name}"]`, 60000) .waitForElementVisible(`li[data-id="treeViewLitreeViewItem${name}"]`, 60000)
.waitForElementVisible('xpath', `//*[@data-id='tab-active' and contains(.,'${name}')]`, 60000)
.setEditorValue(content.content) .setEditorValue(content.content)
.pause(1000)
.perform(function () { .perform(function () {
done() done()
}) })

@ -12,6 +12,10 @@ module.exports = {
return sources return sources
}, },
'addfiletest #group10': function (browser: NightwatchBrowser) {
browser.addFile('test.sol', sources[0]['blah.sol'])
},
'Should launch debugger #group1': function (browser: NightwatchBrowser) { 'Should launch debugger #group1': function (browser: NightwatchBrowser) {
browser.addFile('blah.sol', sources[0]['blah.sol']) browser.addFile('blah.sol', sources[0]['blah.sol'])
.clickLaunchIcon('udapp') .clickLaunchIcon('udapp')

Loading…
Cancel
Save