Added line breaks to tests to match css/bootstrap line breaks change in ui

pull/11/head
ioedeveloper 4 years ago
parent 522fa3e34d
commit a2a8bba1c7
  1. 2
      apps/remix-ide/test-browser/commands/goToVMTraceStep.js
  2. 2
      apps/remix-ide/test-browser/commands/verifyContracts.js
  3. 18
      apps/remix-ide/test-browser/tests/debugger.test.js
  4. 4
      apps/remix-ide/test-browser/tests/libraryDeployment.test.js
  5. 2
      apps/remix-ide/test-browser/tests/runAndDeploy.js

@ -17,7 +17,7 @@ function goToVMtraceStep (browser, step, incr, done) {
browser.execute(function (step) { browser.execute(function (step) {
return document.querySelector('#stepdetail').innerHTML return document.querySelector('#stepdetail').innerHTML
}, [step], function (result) { }, [step], function (result) {
if (result.value.indexOf('vm trace step:') !== -1 && result.value.indexOf(step) !== -1) { if (result.value.indexOf('vm trace step:\n' + step) !== -1) {
done() done()
} else if (incr > 1000) { } else if (incr > 1000) {
browser.assert.fail('goToVMtraceStep fails', 'info about error', '') browser.assert.fail('goToVMtraceStep fails', 'info about error', '')

@ -25,7 +25,7 @@ function getCompiledContracts (browser, opts, callback) {
.pause(2000) .pause(2000)
.click('*[data-id="treeViewDivcompiler"]') .click('*[data-id="treeViewDivcompiler"]')
.waitForElementVisible('*[data-id="treeViewLicompiler/version"]') .waitForElementVisible('*[data-id="treeViewLicompiler/version"]')
.assert.containsText('*[data-id="treeViewLicompiler/version"]', `version: ${opts.version}`) .assert.containsText('*[data-id="treeViewLicompiler/version"]', `version:\n${opts.version}`)
.perform(done) .perform(done)
} else done() } else done()
}) })

@ -43,7 +43,7 @@ module.exports = {
.setValue('*[data-id="slider"]', 50) .setValue('*[data-id="slider"]', 50)
.pause(2000) .pause(2000)
.assert.containsText('*[data-id="solidityLocals"]', 'no locals') .assert.containsText('*[data-id="solidityLocals"]', 'no locals')
.assert.containsText('*[data-id="stepdetail"]', 'vm trace step: 92') .assert.containsText('*[data-id="stepdetail"]', 'vm trace step:\n92')
}, },
'Should step back and forward transaction': function (browser) { 'Should step back and forward transaction': function (browser) {
@ -51,12 +51,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: 91') .assert.containsText('*[data-id="stepdetail"]', 'vm trace step:\n91')
.assert.containsText('*[data-id="stepdetail"]', 'execution step: 91') .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: 92') .assert.containsText('*[data-id="stepdetail"]', 'vm trace step:\n92')
.assert.containsText('*[data-id="stepdetail"]', 'execution step: 92') .assert.containsText('*[data-id="stepdetail"]', 'execution step:\n92')
}, },
'Should jump through breakpoints': function (browser) { 'Should jump through breakpoints': function (browser) {
@ -66,12 +66,12 @@ module.exports = {
.waitForElementVisible('*[data-id="buttonNavigatorJumpPreviousBreakpoint"]') .waitForElementVisible('*[data-id="buttonNavigatorJumpPreviousBreakpoint"]')
.click('*[data-id="buttonNavigatorJumpPreviousBreakpoint"]') .click('*[data-id="buttonNavigatorJumpPreviousBreakpoint"]')
.pause(2000) .pause(2000)
.assert.containsText('*[data-id="stepdetail"]', 'vm trace step: 0') .assert.containsText('*[data-id="stepdetail"]', 'vm trace step:\n0')
.assert.containsText('*[data-id="stepdetail"]', 'execution step: 0') .assert.containsText('*[data-id="stepdetail"]', 'execution step:\n0')
.click('*[data-id="buttonNavigatorJumpNextBreakpoint"]') .click('*[data-id="buttonNavigatorJumpNextBreakpoint"]')
.pause(2000) .pause(2000)
.assert.containsText('*[data-id="stepdetail"]', 'vm trace step: 184') .assert.containsText('*[data-id="stepdetail"]', 'vm trace step:\n184')
.assert.containsText('*[data-id="stepdetail"]', 'execution step: 184') .assert.containsText('*[data-id="stepdetail"]', 'execution step:\n184')
.end() .end()
}, },

@ -26,7 +26,7 @@ module.exports = {
.waitForElementPresent('.instance:nth-of-type(2)') .waitForElementPresent('.instance:nth-of-type(2)')
.click('.instance:nth-of-type(2) > div > button') .click('.instance:nth-of-type(2) > div > button')
.perform((done) => { .perform((done) => {
browser.testConstantFunction(addressRef, 'get - call', '', '0: uint256: 45').perform(() => { browser.testConstantFunction(addressRef, 'get - call', '', '0:\nuint256: 45').perform(() => {
done() done()
}) })
}) })
@ -96,7 +96,7 @@ function checkDeployShouldSucceed (browser, address, callback) {
.click('.instance:nth-of-type(3) > div > button') .click('.instance:nth-of-type(3) > div > button')
.perform(() => { .perform(() => {
browser browser
.testConstantFunction(addressRef, 'get - call', '', '0: uint256: 45') .testConstantFunction(addressRef, 'get - call', '', '0:\nuint256: 45')
.perform(() => { callback() }) .perform(() => { callback() })
}) })
} }

@ -178,7 +178,7 @@ module.exports = {
.setValue('*[data-id="debuggerTransactionInput"]', '0x959371506b8f6223d71c709ac2eb2d0158104dca2d76ca949f1662712cf0e6db') // debug tx .setValue('*[data-id="debuggerTransactionInput"]', '0x959371506b8f6223d71c709ac2eb2d0158104dca2d76ca949f1662712cf0e6db') // debug tx
.click('*[data-id="debuggerTransactionStartButton"]') .click('*[data-id="debuggerTransactionStartButton"]')
.waitForElementVisible('*[data-id="treeViewDivto"]', 30000) .waitForElementVisible('*[data-id="treeViewDivto"]', 30000)
.assert.containsText('*[data-id="stepdetail"]', 'loaded address: 0x3c943Fb816694d7D1f4C738e3e7823818a88DD6C') .assert.containsText('*[data-id="stepdetail"]', 'loaded address:\n0x3c943Fb816694d7D1f4C738e3e7823818a88DD6C')
.assert.containsText('*[data-id="solidityLocals"]', 'to: 0x6C3CCC7FBA111707D5A1AAF2758E9D4F4AC5E7B1') .assert.containsText('*[data-id="solidityLocals"]', 'to: 0x6C3CCC7FBA111707D5A1AAF2758E9D4F4AC5E7B1')
.end() .end()
}, },

Loading…
Cancel
Save