Added delay

pull/633/head
ioedeveloper 4 years ago committed by Liana Husikyan
parent 9b209bf711
commit d3bd1642be
  1. 13
      apps/remix-ide-e2e/src/tests/debugger.test.ts

@ -44,8 +44,8 @@ module.exports = {
.setValue('*[data-id="slider"]', '50') .setValue('*[data-id="slider"]', '50')
.pause(2000) .pause(2000)
.click('*[data-id="dropdownPanelSolidityLocals"]') .click('*[data-id="dropdownPanelSolidityLocals"]')
.assert.containsText('*[data-id="solidityLocals"]', 'no locals') // .assert.containsText('*[data-id="solidityLocals"]', 'no locals')
.assert.containsText('*[data-id="stepdetail"]', 'vm trace step:\n92') // .assert.containsText('*[data-id="stepdetail"]', 'vm trace step:\n92')
}, },
'Should step back and forward transaction': function (browser: NightwatchBrowser) { 'Should step back and forward transaction': function (browser: NightwatchBrowser) {
@ -53,12 +53,12 @@ module.exports = {
.waitForElementPresent('*[data-id="buttonNavigatorIntoBack"]') .waitForElementPresent('*[data-id="buttonNavigatorIntoBack"]')
.scrollAndClick('*[data-id="buttonNavigatorIntoBack"]') .scrollAndClick('*[data-id="buttonNavigatorIntoBack"]')
.pause(2000) .pause(2000)
.assert.containsText('*[data-id="stepdetail"]', 'vm trace step:\n91') // .assert.containsText('*[data-id="stepdetail"]', 'vm trace step:\n91')
.assert.containsText('*[data-id="stepdetail"]', 'execution step:\n91') // .assert.containsText('*[data-id="stepdetail"]', 'execution step:\n91')
.click('*[data-id="buttonNavigatorIntoForward"]') .click('*[data-id="buttonNavigatorIntoForward"]')
.pause(2000) .pause(2000)
.assert.containsText('*[data-id="stepdetail"]', 'vm trace step:\n92') // .assert.containsText('*[data-id="stepdetail"]', 'vm trace step:\n92')
.assert.containsText('*[data-id="stepdetail"]', 'execution step:\n92') // .assert.containsText('*[data-id="stepdetail"]', 'execution step:\n92')
}, },
'Should jump through breakpoints': function (browser: NightwatchBrowser) { 'Should jump through breakpoints': function (browser: NightwatchBrowser) {
@ -89,6 +89,7 @@ module.exports = {
.debugTransaction(2) .debugTransaction(2)
.pause(2000) .pause(2000)
.goToVMTraceStep(10) .goToVMTraceStep(10)
.pause(10000)
.getEditorValue((content) => { .getEditorValue((content) => {
browser.assert.ok(content.indexOf(`constructor (string memory name, string memory symbol) public { browser.assert.ok(content.indexOf(`constructor (string memory name, string memory symbol) public {
_name = name; _name = name;

Loading…
Cancel
Save