Commit affebde1 authored by ioedeveloper's avatar ioedeveloper Committed by Aniket

Added delay to test

parent fb52ee97
...@@ -78,7 +78,7 @@ module.exports = { ...@@ -78,7 +78,7 @@ module.exports = {
.click('*[data-id="testTabCheckAllTests"]') .click('*[data-id="testTabCheckAllTests"]')
.click('.singleTestLabel:nth-of-type(4)') .click('.singleTestLabel:nth-of-type(4)')
.scrollAndClick('*[data-id="testTabRunTestsTabRunAction"]') .scrollAndClick('*[data-id="testTabRunTestsTabRunAction"]')
.pause(5000) .pause(10000)
.waitForElementPresent('*[data-id="testTabSolidityUnitTestsSummary"]') .waitForElementPresent('*[data-id="testTabSolidityUnitTestsSummary"]')
.assert.containsText('*[data-id="testTabSolidityUnitTestsSummary"]', 'SyntaxError: No visibility specified') .assert.containsText('*[data-id="testTabSolidityUnitTestsSummary"]', 'SyntaxError: No visibility specified')
}, },
...@@ -106,9 +106,9 @@ module.exports = { ...@@ -106,9 +106,9 @@ module.exports = {
.click('*[data-id="testTabCheckAllTests"]') .click('*[data-id="testTabCheckAllTests"]')
.click('.singleTestLabel:nth-of-type(6)') .click('.singleTestLabel:nth-of-type(6)')
.scrollAndClick('*[data-id="testTabRunTestsTabRunAction"]') .scrollAndClick('*[data-id="testTabRunTestsTabRunAction"]')
.pause(10000) .pause(15000)
.waitForElementPresent('*[data-id="testTabSolidityUnitTestsSummary"]') .waitForElementPresent('*[data-id="testTabSolidityUnitTestsSummary"]')
.assert.containsText('*[data-id="testTabSolidityUnitTestsSummary"]', 'Method \'add\' can not have parameters inside a test contract') .assert.containsText('*[data-id="testTabSolidityUnitTestsSummary"]', `Method 'add' can not have parameters inside a test contract`)
}, },
'Solidity Unittests': function (browser) { 'Solidity Unittests': function (browser) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment