|
|
@ -42,7 +42,7 @@ module.exports = { |
|
|
|
.click('*[data-id="verticalIconsKindsolidityUnitTesting"]') |
|
|
|
.click('*[data-id="verticalIconsKindsolidityUnitTesting"]') |
|
|
|
.waitForElementPresent('*[data-id="testTabCheckAllTests"]') |
|
|
|
.waitForElementPresent('*[data-id="testTabCheckAllTests"]') |
|
|
|
.click('*[data-id="testTabCheckAllTests"]') |
|
|
|
.click('*[data-id="testTabCheckAllTests"]') |
|
|
|
.click('.singleTestLabel:nth-of-type(2)') |
|
|
|
.clickElementAtPosition('.singleTestLabel', 1) |
|
|
|
.scrollAndClick('*[data-id="testTabRunTestsTabRunAction"]') |
|
|
|
.scrollAndClick('*[data-id="testTabRunTestsTabRunAction"]') |
|
|
|
.pause(15000) |
|
|
|
.pause(15000) |
|
|
|
.assert.containsText('*[data-id="testTabSolidityUnitTestsOutput"]', 'browser/simple_storage_test.sol (MyTest)') |
|
|
|
.assert.containsText('*[data-id="testTabSolidityUnitTestsOutput"]', 'browser/simple_storage_test.sol (MyTest)') |
|
|
@ -60,7 +60,7 @@ module.exports = { |
|
|
|
.click('*[data-id="verticalIconsKindsolidityUnitTesting"]') |
|
|
|
.click('*[data-id="verticalIconsKindsolidityUnitTesting"]') |
|
|
|
.waitForElementPresent('*[data-id="testTabCheckAllTests"]') |
|
|
|
.waitForElementPresent('*[data-id="testTabCheckAllTests"]') |
|
|
|
.click('*[data-id="testTabCheckAllTests"]') |
|
|
|
.click('*[data-id="testTabCheckAllTests"]') |
|
|
|
.click('.singleTestLabel:nth-of-type(3)') |
|
|
|
.clickElementAtPosition('.singleTestLabel', 2) |
|
|
|
.scrollAndClick('*[data-id="testTabRunTestsTabRunAction"]') |
|
|
|
.scrollAndClick('*[data-id="testTabRunTestsTabRunAction"]') |
|
|
|
.pause(20000) |
|
|
|
.pause(20000) |
|
|
|
.assert.containsText('*[data-id="testTabSolidityUnitTestsOutput"]', 'browser/ks2b_test.sol (kickstarterTest)') |
|
|
|
.assert.containsText('*[data-id="testTabSolidityUnitTestsOutput"]', 'browser/ks2b_test.sol (kickstarterTest)') |
|
|
@ -81,7 +81,7 @@ module.exports = { |
|
|
|
.switchFile('browser/compilationError_test.sol') |
|
|
|
.switchFile('browser/compilationError_test.sol') |
|
|
|
.clickLaunchIcon('solidityUnitTesting') |
|
|
|
.clickLaunchIcon('solidityUnitTesting') |
|
|
|
.click('*[data-id="testTabCheckAllTests"]') |
|
|
|
.click('*[data-id="testTabCheckAllTests"]') |
|
|
|
.click('.singleTestLabel:nth-of-type(4)') |
|
|
|
.clickElementAtPosition('.singleTestLabel', 3) |
|
|
|
.scrollAndClick('*[data-id="testTabRunTestsTabRunAction"]') |
|
|
|
.scrollAndClick('*[data-id="testTabRunTestsTabRunAction"]') |
|
|
|
.pause(10000) |
|
|
|
.pause(10000) |
|
|
|
.waitForElementPresent('*[data-id="testTabSolidityUnitTestsSummary"]') |
|
|
|
.waitForElementPresent('*[data-id="testTabSolidityUnitTestsSummary"]') |
|
|
@ -95,7 +95,7 @@ module.exports = { |
|
|
|
.switchFile('browser/deployError_test.sol') |
|
|
|
.switchFile('browser/deployError_test.sol') |
|
|
|
.clickLaunchIcon('solidityUnitTesting') |
|
|
|
.clickLaunchIcon('solidityUnitTesting') |
|
|
|
.click('*[data-id="testTabCheckAllTests"]') |
|
|
|
.click('*[data-id="testTabCheckAllTests"]') |
|
|
|
.click('.singleTestLabel:nth-of-type(5)') |
|
|
|
.clickElementAtPosition('.singleTestLabel', 4) |
|
|
|
.scrollAndClick('*[data-id="testTabRunTestsTabRunAction"]') |
|
|
|
.scrollAndClick('*[data-id="testTabRunTestsTabRunAction"]') |
|
|
|
.pause(10000) |
|
|
|
.pause(10000) |
|
|
|
.waitForElementPresent('*[data-id="testTabSolidityUnitTestsSummary"]') |
|
|
|
.waitForElementPresent('*[data-id="testTabSolidityUnitTestsSummary"]') |
|
|
@ -109,7 +109,7 @@ module.exports = { |
|
|
|
.switchFile('browser/methodFailure_test.sol') |
|
|
|
.switchFile('browser/methodFailure_test.sol') |
|
|
|
.clickLaunchIcon('solidityUnitTesting') |
|
|
|
.clickLaunchIcon('solidityUnitTesting') |
|
|
|
.click('*[data-id="testTabCheckAllTests"]') |
|
|
|
.click('*[data-id="testTabCheckAllTests"]') |
|
|
|
.click('.singleTestLabel:nth-of-type(6)') |
|
|
|
.clickElementAtPosition('.singleTestLabel', 5) |
|
|
|
.scrollAndClick('*[data-id="testTabRunTestsTabRunAction"]') |
|
|
|
.scrollAndClick('*[data-id="testTabRunTestsTabRunAction"]') |
|
|
|
.pause(15000) |
|
|
|
.pause(15000) |
|
|
|
.waitForElementPresent('*[data-id="testTabSolidityUnitTestsSummary"]') |
|
|
|
.waitForElementPresent('*[data-id="testTabSolidityUnitTestsSummary"]') |
|
|
|