diff --git a/libs/remix-ui/solidity-unit-testing/src/lib/solidity-unit-testing.tsx b/libs/remix-ui/solidity-unit-testing/src/lib/solidity-unit-testing.tsx index d3dc85a51f..fd39f69131 100644 --- a/libs/remix-ui/solidity-unit-testing/src/lib/solidity-unit-testing.tsx +++ b/libs/remix-ui/solidity-unit-testing/src/lib/solidity-unit-testing.tsx @@ -47,11 +47,11 @@ export const SolidityUnitTesting = (props: any) => { const clearResults = () => { console.log('clearResults--->') // yo.update(this.resultStatistics, yo``) - // this.call('editor', 'clearAnnotations') + testTab.call('editor', 'clearAnnotations') // this.testsOutput.innerHTML = '' // this.testsOutput.hidden = true - // this.testsExecutionStopped.hidden = true - // this.testsExecutionStoppedError.hidden = true + setTestsExecutionStoppedHidden(true) + setTestsExecutionStoppedErrorHidden(true) } const updateForNewCurrent = async (file = null) => { @@ -189,10 +189,8 @@ export const SolidityUnitTesting = (props: any) => { } const updateRunAction = (currentFile : any = null) => { - console.log('updateRunAction --currentFile-->', currentFile) - // const isSolidityActive = this.appManager.isActive('solidity') - const isSolidityActive = true + const isSolidityActive = testTab.appManager.isActive('solidity') if (!isSolidityActive || !listTests().length) { setDisableRunButton(true) if (!currentFile || (currentFile && currentFile.split('.').pop().toLowerCase() !== 'sol')) { @@ -207,7 +205,6 @@ export const SolidityUnitTesting = (props: any) => { console.log('stopTests') setHasBeenStopped(true) setStopButtonLabel('Stopping') - const stopBtn = document.getElementById('runTestsTabStopAction') setDisableStopButton(true) setDisableRunButton(true) }