diff --git a/apps/remix-ide/src/app/tabs/test-tab.js b/apps/remix-ide/src/app/tabs/test-tab.js index b7abe8d71b..3baab67bf5 100644 --- a/apps/remix-ide/src/app/tabs/test-tab.js +++ b/apps/remix-ide/src/app/tabs/test-tab.js @@ -103,7 +103,8 @@ module.exports = class TestTab extends ViewPlugin { if (eChecked) { checkAll.checked = true - if ((this.readyTestsNumber === this.runningTestsNumber || this.hasBeenStopped) && document.getElementById('runTestsTabStopAction').innerText === ' Stop') { + const stopBtnInnerText = document.getElementById('runTestsTabStopAction').innerText + if ((this.readyTestsNumber === this.runningTestsNumber || this.hasBeenStopped) && stopBtnInnerText.trim() === 'Stop') { runBtn.removeAttribute('disabled') runBtn.setAttribute('title', 'Run tests') }