e2e tests fix

pull/5370/head
aniket-engg 4 years ago
parent c8849174ed
commit c28c84b2cb
  1. 12
      apps/remix-ide-e2e/src/tests/debugger.test.ts
  2. 2
      apps/remix-ide-e2e/src/tests/runAndDeploy.ts
  3. 2
      apps/remix-ide-e2e/src/tests/solidityImport.test.ts

@ -16,7 +16,7 @@ module.exports = {
'Should launch debugger': function (browser: NightwatchBrowser) {
browser.addFile('blah.sol', sources[0]['browser/blah.sol'])
.clickLaunchIcon('udapp')
.waitForElementPresent('*[title="Deploy - transact (not payable)"]', 45000)
.waitForElementPresent('*[title="Deploy - transact (not payable)"]', 65000)
.click('*[title="Deploy - transact (not payable)"]')
.debugTransaction(0)
.assert.containsText('*[data-id="sidePanelSwapitTitle"]', 'DEBUGGER')
@ -45,7 +45,7 @@ module.exports = {
.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="stepdetail"]', 'vm trace step:\n173')
},
'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:\n172')
.assert.containsText('*[data-id="stepdetail"]', 'execution step:\n172')
.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:\n173')
.assert.containsText('*[data-id="stepdetail"]', 'execution step:\n173')
},
'Should jump through breakpoints': function (browser: NightwatchBrowser) {

@ -208,7 +208,7 @@ const sources = [
'browser/Greet.sol': {
content:
`
pragma solidity ^0.7.0;
pragma solidity ^0.8.0;
contract helloWorld {
string public message;

@ -66,7 +66,7 @@ module.exports = {
'Test switch to a github import from a solidity warning': function (browser: NightwatchBrowser) {
browser
.setSolidityCompilerVersion('soljson-v0.8.1+commit.df193b15.js')
.setSolidityCompilerVersion('soljson-v0.7.4+commit.3f05b770.js')
.clickLaunchIcon('fileExplorers')
.click('li[data-id="treeViewLitreeViewItembrowser/README.txt"')
.addFile('Untitled8.sol', sources[7]['browser/Untitled8.sol'])

Loading…
Cancel
Save