From 73ca6512935785353ff64cae7e98606bbd635b25 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Mon, 20 Jul 2020 19:20:08 +0530 Subject: [PATCH] trim text --- apps/remix-ide/src/app/tabs/test-tab.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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') }