|
|
|
@ -150,7 +150,7 @@ module.exports = { |
|
|
|
|
.clickLaunchIcon('solidityUnitTesting') |
|
|
|
|
.waitForElementPresent('*[data-id="uiPathInput"]', 3000) |
|
|
|
|
.clearValue('*[data-id="uiPathInput"]') |
|
|
|
|
.setValue('*[data-id="uiPathInput"]', 'tests') |
|
|
|
|
.setValue('*[data-id="uiPathInput"]', 'tests1') |
|
|
|
|
.click('*[data-id="testTabGenerateTestFolder"]') |
|
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
|
// creating a new workspace
|
|
|
|
@ -172,9 +172,6 @@ module.exports = { |
|
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
|
.click('*[data-id="treeViewLitreeViewItemcontracts"]') |
|
|
|
|
.openFile('contracts/3_Ballot.sol') |
|
|
|
|
.scrollAndClick('[data-id="pluginManagerComponentDeactivateButtonsolidityUnitTesting"]') |
|
|
|
|
.pause(2000) |
|
|
|
|
.scrollAndClick('[data-id="pluginManagerComponentActivateButtonsolidityUnitTesting"]') |
|
|
|
|
.clickLaunchIcon('solidityUnitTesting') |
|
|
|
|
.pause(2000) |
|
|
|
|
.verify.attributeEquals('*[data-id="uiPathInput"]', 'value', 'tests') |
|
|
|
@ -196,9 +193,7 @@ module.exports = { |
|
|
|
|
.pause(2000) |
|
|
|
|
.scrollAndClick('[data-id="pluginManagerComponentActivateButtonsolidityUnitTesting"]') |
|
|
|
|
.clickLaunchIcon('solidityUnitTesting') |
|
|
|
|
.pause(5000) |
|
|
|
|
.scrollAndClick('#runTestsTabRunAction') |
|
|
|
|
.pause(2000) |
|
|
|
|
.waitForElementVisible('*[data-id="testTabSolidityUnitTestsOutputheader"]', 120000) |
|
|
|
|
.waitForElementPresent('#solidityUnittestsOutput div[class^="testPass"]', 60000) |
|
|
|
|
.waitForElementContainsText('#solidityUnittestsOutput', '/tests/4_Ballot_test.sol', 60000) |
|
|
|
|