pull/633/head
ioedeveloper 4 years ago committed by Liana Husikyan
parent 2c40bdf4eb
commit 7b2c3596ed
  1. 12
      apps/remix-ide-e2e/src/tests/debugger.test.ts
  2. 1
      apps/remix-ide-e2e/src/tests/solidityImport.test.ts

@ -44,8 +44,8 @@ module.exports = {
.setValue('*[data-id="slider"]', '50')
.pause(2000)
.click('*[data-id="dropdownPanelSolidityLocals"]')
// .assert.containsText('*[data-id="solidityLocals"]', 'no locals')
// .assert.containsText('*[data-id="stepdetail"]', 'vm trace step:\n92')
.assert.containsText('*[data-id="solidityLocals"]', 'no locals')
.assert.containsText('*[data-id="stepdetail"]', 'vm trace step:\n92')
},
'Should step back and forward transaction': function (browser: NightwatchBrowser) {
@ -53,12 +53,12 @@ module.exports = {
.waitForElementPresent('*[data-id="buttonNavigatorIntoBack"]')
.scrollAndClick('*[data-id="buttonNavigatorIntoBack"]')
.pause(2000)
// .assert.containsText('*[data-id="stepdetail"]', 'vm trace step:\n91')
// .assert.containsText('*[data-id="stepdetail"]', 'execution step:\n91')
.assert.containsText('*[data-id="stepdetail"]', 'vm trace step:\n91')
.assert.containsText('*[data-id="stepdetail"]', 'execution step:\n91')
.click('*[data-id="buttonNavigatorIntoForward"]')
.pause(2000)
// .assert.containsText('*[data-id="stepdetail"]', 'vm trace step:\n92')
// .assert.containsText('*[data-id="stepdetail"]', 'execution step:\n92')
.assert.containsText('*[data-id="stepdetail"]', 'vm trace step:\n92')
.assert.containsText('*[data-id="stepdetail"]', 'execution step:\n92')
},
'Should jump through breakpoints': function (browser: NightwatchBrowser) {

@ -69,6 +69,7 @@ module.exports = {
.waitForElementPresent('[data-id="compiledErrors"] div:nth-child(3)')
.click('[data-id="compiledErrors"] div:nth-child(3)') // select the second warning which point to ERC20 code
.getEditorValue((content) => {
console.log('content: ', content)
browser.assert.ok(content.indexOf(`contract ERC20 is Context, IERC20`) != -1,
'current displayed content should be from the ERC20 source code')
})

Loading…
Cancel
Save