|
|
|
@ -42,7 +42,7 @@ module.exports = { |
|
|
|
|
|
|
|
|
|
'Should run simple unit test `simple_storage_test.sol` ': function (browser: NightwatchBrowser) { |
|
|
|
|
browser.waitForElementPresent('*[data-id="verticalIconsKindfileExplorers"]') |
|
|
|
|
.addFile('simple_storage_test.sol', sources[0]['browser/tests/simple_storage_test.sol'], false) |
|
|
|
|
.addFile('tests/simple_storage_test.sol', sources[0]['browser/tests/simple_storage_test.sol']) |
|
|
|
|
.click('*[data-id="verticalIconsKindsolidityUnitTesting"]') |
|
|
|
|
.waitForElementPresent('*[data-id="testTabCheckAllTests"]') |
|
|
|
|
.click('*[data-id="testTabCheckAllTests"]') |
|
|
|
@ -62,7 +62,7 @@ module.exports = { |
|
|
|
|
'Should run advance unit test using natspec and experimental ABIEncoderV2 `ks2b_test.sol` ': function (browser: NightwatchBrowser) { |
|
|
|
|
browser.waitForElementPresent('*[data-id="verticalIconsKindfileExplorers"]') |
|
|
|
|
.clickLaunchIcon('fileExplorers') |
|
|
|
|
.addFile('ks2b_test.sol', sources[0]['browser/tests/ks2b_test.sol'], false) |
|
|
|
|
.addFile('tests/ks2b_test.sol', sources[0]['browser/tests/ks2b_test.sol']) |
|
|
|
|
.click('*[data-id="verticalIconsKindsolidityUnitTesting"]') |
|
|
|
|
.waitForElementPresent('*[data-id="testTabCheckAllTests"]') |
|
|
|
|
.click('*[data-id="testTabCheckAllTests"]') |
|
|
|
@ -117,7 +117,7 @@ module.exports = { |
|
|
|
|
|
|
|
|
|
'Should fail on deploy': function (browser: NightwatchBrowser) { |
|
|
|
|
browser.waitForElementPresent('*[data-id="verticalIconsKindfileExplorers"]') |
|
|
|
|
.addFile('deployError_test.sol', sources[0]['browser/tests/deployError_test.sol']) |
|
|
|
|
.addFile('tests/deployError_test.sol', sources[0]['browser/tests/deployError_test.sol']) |
|
|
|
|
.clickLaunchIcon('fileExplorers') |
|
|
|
|
.openFile('browser/tests/deployError_test.sol') |
|
|
|
|
.clickLaunchIcon('solidityUnitTesting') |
|
|
|
@ -131,7 +131,7 @@ module.exports = { |
|
|
|
|
|
|
|
|
|
'Should fail when parameters are to method in test contract': function (browser: NightwatchBrowser) { |
|
|
|
|
browser.waitForElementPresent('*[data-id="verticalIconsKindfileExplorers"]') |
|
|
|
|
.addFile('methodFailure_test.sol', sources[0]['browser/tests/methodFailure_test.sol']) |
|
|
|
|
.addFile('tests/methodFailure_test.sol', sources[0]['browser/tests/methodFailure_test.sol']) |
|
|
|
|
.clickLaunchIcon('fileExplorers') |
|
|
|
|
.openFile('browser/tests/methodFailure_test.sol') |
|
|
|
|
.clickLaunchIcon('solidityUnitTesting') |
|
|
|
@ -145,8 +145,6 @@ module.exports = { |
|
|
|
|
|
|
|
|
|
'Changing current path': function (browser: NightwatchBrowser) { |
|
|
|
|
browser |
|
|
|
|
.clickLaunchIcon('fileExplorers') |
|
|
|
|
.click('li[data-id="treeViewLitreeViewItembrowser/README.txt"') |
|
|
|
|
.waitForElementPresent('*[data-id="verticalIconsKindfileExplorers"]') |
|
|
|
|
.addFile('myTests/simple_storage_test.sol', sources[0]['browser/tests/simple_storage_test.sol']) |
|
|
|
|
.clickLaunchIcon('solidityUnitTesting') |
|
|
|
|