From c8cdb1f48ae5a6586a364862441c8e146e4633f0 Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Tue, 29 Sep 2020 10:53:25 +0100 Subject: [PATCH] Undo vm trace step change --- apps/remix-ide-e2e/src/tests/debugger.test.ts | 10 +++++----- apps/remix-ide/src/app/tabs/debugger-tab.js | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/debugger.test.ts b/apps/remix-ide-e2e/src/tests/debugger.test.ts index 9cedd916ad..6731a3a4d4 100644 --- a/apps/remix-ide-e2e/src/tests/debugger.test.ts +++ b/apps/remix-ide-e2e/src/tests/debugger.test.ts @@ -45,7 +45,7 @@ module.exports = { .pause(2000) .click('*[data-id="dropdownPanelSolidityLocals"]') .assert.containsText('*[data-id="solidityLocals"]', 'No data available') - .assert.containsText('*[data-id="stepdetail"]', 'vm trace step:\n91') + .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:\n90') - .assert.containsText('*[data-id="stepdetail"]', 'execution step:\n90') - .click('*[data-id="buttonNavigatorIntoForward"]') - .pause(2000) .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') }, 'Should jump through breakpoints': function (browser: NightwatchBrowser) { diff --git a/apps/remix-ide/src/app/tabs/debugger-tab.js b/apps/remix-ide/src/app/tabs/debugger-tab.js index 48b3ca4b43..4d8338018b 100644 --- a/apps/remix-ide/src/app/tabs/debugger-tab.js +++ b/apps/remix-ide/src/app/tabs/debugger-tab.js @@ -86,6 +86,7 @@ class DebuggerTab extends ViewPlugin { deactivate () { this.removeHighlights = true + this.renderComponent() super.deactivate() }