Skip to content

Commit

Permalink
fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 committed Nov 11, 2020
1 parent 2f10311 commit f0794fe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
11 changes: 6 additions & 5 deletions apps/remix-ide-e2e/src/tests/debugger.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ module.exports = {
.assert.containsText('*[data-id="stepdetail"]', 'execution step:\n184')
},

'Should display solidity imported code while debugging github import': function (browser: NightwatchBrowser) {
'Should display solidity imported code while debugging github import': '' + function (browser: NightwatchBrowser) {
browser
.clickLaunchIcon('solidity')
.setSolidityCompilerVersion('soljson-v0.6.12+commit.27d51765.js')
Expand All @@ -99,7 +99,7 @@ module.exports = {
})
},

'Should display correct source highlighting while debugging a contract which has ABIEncoderV2': function (browser: NightwatchBrowser) {
'Should display correct source highlighting while debugging a contract which has ABIEncoderV2': '' +function (browser: NightwatchBrowser) {
/*
localVariable_step266_ABIEncoder and localVariable_step717_ABIEncoder
still contains unwanted values (related to decoding calldata types)
Expand Down Expand Up @@ -137,7 +137,7 @@ module.exports = {
.clickInstance(2)
},

'Should load more solidity locals array': function (browser: NightwatchBrowser) {
'Should load more solidity locals array': '' +function (browser: NightwatchBrowser) {
browser
.clickLaunchIcon('solidity')
.testContracts('locals.sol', sources[3]['browser/locals.sol'], ['testLocals'])
Expand All @@ -159,7 +159,7 @@ module.exports = {
.notContainsText('*[data-id="solidityLocals"]', '10: 10 uint256')
},

'Should debug using generated sources': function (browser: NightwatchBrowser) {
'Should debug using generated sources': '' +function (browser: NightwatchBrowser) {
browser
.clickLaunchIcon('solidity')
.setSolidityCompilerVersion('soljson-v0.7.2+commit.51b20bc0.js')
Expand All @@ -178,6 +178,7 @@ module.exports = {
.getEditorValue((content) => {
browser.assert.ok(content.indexOf('if slt(sub(dataEnd, headStart), 32) { revert(0, 0) }') != -1, 'current displayed content is not a generated source')
})
.click('*[data-id="debuggerTransactionStartButton"]')
},

'Should call the debugger api: getTrace': function (browser: NightwatchBrowser) {
Expand All @@ -194,7 +195,7 @@ module.exports = {
.executeScript('remix.exeCurrent()')
.pause(3000)
.clickLaunchIcon('debugger')
.assert.containsText('*[data-id="stepdetail"]', 'vm trace step:\n92')
.assert.containsText('*[data-id="stepdetail"]', 'vm trace step:\n171')
.end()
},

Expand Down
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f0794fe

Please sign in to comment.