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