diff --git a/src/app/tabs/test-tab.js b/src/app/tabs/test-tab.js
index 5f5df15aab..43deda80be 100644
--- a/src/app/tabs/test-tab.js
+++ b/src/app/tabs/test-tab.js
@@ -239,7 +239,7 @@ module.exports = class TestTab extends ViewPlugin {
}
updateRunAction (currentFile) {
- let el = yo``
+ let el = yo``
const isSolidityActive = this.appManager.actives.includes('solidity')
if (!currentFile || !isSolidityActive) {
el.setAttribute('disabled', 'disabled')
diff --git a/test-browser/tests/solidityUnittests.js b/test-browser/tests/solidityUnittests.js
index d9ec882ca4..236b8b73c7 100644
--- a/test-browser/tests/solidityUnittests.js
+++ b/test-browser/tests/solidityUnittests.js
@@ -43,7 +43,7 @@ module.exports = {
.waitForElementPresent('*[data-id="testTabCheckAllTests"]')
.click('*[data-id="testTabCheckAllTests"]')
.click('.singleTestLabel:nth-of-type(2)')
- .scrollAndClick('#runTestsTabRunAction')
+ .scrollAndClick('*[data-id="testTabRunTestsTabRunAction"]')
.pause(10000)
.assert.containsText('*[data-id="testTabSolidityUnitTestsOutput"]', 'browser/simple_storage_test.sol (MyTest)')
.assert.containsText('*[data-id="testTabSolidityUnitTestsOutput"]', '✓ (Initial value should be100)')
@@ -58,7 +58,7 @@ module.exports = {
.waitForElementPresent('*[data-id="testTabCheckAllTests"]')
.click('*[data-id="testTabCheckAllTests"]')
.click('.singleTestLabel:nth-of-type(3)')
- .scrollAndClick('#runTestsTabRunAction')
+ .scrollAndClick('*[data-id="testTabRunTestsTabRunAction"]')
.pause(10000)
.assert.containsText('*[data-id="testTabSolidityUnitTestsOutput"]', 'browser/ks2b_test.sol (kickstarterTest)')
.assert.containsText('*[data-id="testTabSolidityUnitTestsOutput"]', '✓ (Check project exists)')
@@ -70,10 +70,8 @@ module.exports = {
.clickLaunchIcon('fileExplorers')
.switchFile('browser/3_Ballot.sol')
.clickLaunchIcon('solidityUnitTesting')
- .scrollAndClick('#runTestsTabRunAction')
- .pause(5000)
- .waitForElementPresent('#solidityUnittestsOutput div[class^="testPass"]')
- .pause(20000)
+ .scrollAndClick('*[data-id="testTabRunTestsTabRunAction"]')
+ .pause(30000)
.assert.containsText('*[data-id="testTabSolidityUnitTestsOutput"]', 'browser/4_Ballot_test.sol (BallotTest)')
.assert.containsText('*[data-id="testTabSolidityUnitTestsOutput"]', '✓ (Check winning proposal)')
.assert.containsText('*[data-id="testTabSolidityUnitTestsOutput"]', '✓ (Check winnin proposal with return value)')