|
|
|
@ -27,7 +27,7 @@ module.exports = { |
|
|
|
|
'Should generate test file': function (browser) { |
|
|
|
|
browser.waitForElementPresent('*[data-id="verticalIconsKindfileExplorers"]') |
|
|
|
|
.clickLaunchIcon('fileExplorers') |
|
|
|
|
.switchFile('browser/simple_storage.sol') |
|
|
|
|
.openFile('browser/simple_storage.sol') |
|
|
|
|
.click('*[data-id="verticalIconsKindsolidityUnitTesting"]') |
|
|
|
|
.waitForElementPresent('*[data-id="testTabGenerateTestFile"]') |
|
|
|
|
.click('*[data-id="testTabGenerateTestFile"]') |
|
|
|
@ -100,7 +100,7 @@ module.exports = { |
|
|
|
|
browser.waitForElementPresent('*[data-id="verticalIconsKindfileExplorers"]') |
|
|
|
|
.addFile('compilationError_test.sol', sources[0]['browser/compilationError_test.sol']) |
|
|
|
|
.clickLaunchIcon('fileExplorers') |
|
|
|
|
.switchFile('browser/compilationError_test.sol') |
|
|
|
|
.openFile('browser/compilationError_test.sol') |
|
|
|
|
.clickLaunchIcon('solidityUnitTesting') |
|
|
|
|
.click('*[data-id="testTabCheckAllTests"]') |
|
|
|
|
.clickElementAtPosition('.singleTestLabel', 3) |
|
|
|
@ -115,7 +115,7 @@ module.exports = { |
|
|
|
|
browser.waitForElementPresent('*[data-id="verticalIconsKindfileExplorers"]') |
|
|
|
|
.addFile('deployError_test.sol', sources[0]['browser/deployError_test.sol']) |
|
|
|
|
.clickLaunchIcon('fileExplorers') |
|
|
|
|
.switchFile('browser/deployError_test.sol') |
|
|
|
|
.openFile('browser/deployError_test.sol') |
|
|
|
|
.clickLaunchIcon('solidityUnitTesting') |
|
|
|
|
.click('*[data-id="testTabCheckAllTests"]') |
|
|
|
|
.clickElementAtPosition('.singleTestLabel', 4) |
|
|
|
@ -129,7 +129,7 @@ module.exports = { |
|
|
|
|
browser.waitForElementPresent('*[data-id="verticalIconsKindfileExplorers"]') |
|
|
|
|
.addFile('methodFailure_test.sol', sources[0]['browser/methodFailure_test.sol']) |
|
|
|
|
.clickLaunchIcon('fileExplorers') |
|
|
|
|
.switchFile('browser/methodFailure_test.sol') |
|
|
|
|
.openFile('browser/methodFailure_test.sol') |
|
|
|
|
.clickLaunchIcon('solidityUnitTesting') |
|
|
|
|
.click('*[data-id="testTabCheckAllTests"]') |
|
|
|
|
.clickElementAtPosition('.singleTestLabel', 5) |
|
|
|
@ -150,7 +150,7 @@ function runTests (browser) { |
|
|
|
|
browser |
|
|
|
|
.waitForElementPresent('*[data-id="verticalIconsKindfileExplorers"]') |
|
|
|
|
.clickLaunchIcon('fileExplorers') |
|
|
|
|
.switchFile('browser/3_Ballot.sol') |
|
|
|
|
.openFile('browser/3_Ballot.sol') |
|
|
|
|
.clickLaunchIcon('solidityUnitTesting') |
|
|
|
|
.pause(500) |
|
|
|
|
.scrollAndClick('#runTestsTabRunAction') |
|
|
|
|