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 98d297b8b9..8dbf12b281 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 @@ -2,12 +2,12 @@ import React, { useState, useRef, useEffect, ReactElement } from 'react' // esli import * as semver from 'semver' import { eachOfSeries } from 'async' // eslint-disable-line import type Web3 from 'web3' -import { OverlayTrigger, Tooltip } from 'react-bootstrap' import { canUseWorker, urlFromVersion } from '@remix-project/remix-solidity' import { Renderer } from '@remix-ui/renderer' // eslint-disable-line import { Toaster } from '@remix-ui/toaster' // eslint-disable-line import { format } from 'util' import './css/style.css' +import { CustomTooltip } from '@remix-ui/helper' const _paq = (window as any)._paq = (window as any)._paq || [] // eslint-disable-line @typescript-eslint/no-explicit-any @@ -297,26 +297,21 @@ export const SolidityUnitTesting = (props: Record) => { // eslint-d let label if (index > -1) { const className = "alert-danger d-inline-block mb-1 mr-1 p-1 failed_" + runningTestFileName - label = ( - At least one contract test failed - - }>
- FAIL -
) + label = ( +
FAIL
+
) } else { const className = "alert-success d-inline-block mb-1 mr-1 p-1 passed_" + runningTestFileName - label = ( - All contract tests passed - - }>
- PASS -
) + label = ( +
PASS
+
) } // show contract and file name with label const ContractCard: ReactElement = ( @@ -343,11 +338,14 @@ export const SolidityUnitTesting = (props: Record) => { // eslint-d const { web3, debugTxHash } = test debugBtn = (
startDebug(debugTxHash, web3)}> - - Start debugging - - }> + + +
) } @@ -674,13 +672,11 @@ export const SolidityUnitTesting = (props: Record) => { // eslint-d }) } - - {"Press 'Enter' to change the path for test files."} - - } + tooltipClasses="text-nowrap" + tooltipId="uiPathInputtooltip" + tooltipText={"Press 'Enter' to change the path for test files."} > ) => { // eslint-d onChange={handleTestDirInput} onClick = {() => { if (inputPathValue === '/') setInputPathValue('')} } /> - - + - Create a test folder - - } + tooltipClasses="text-nowrap" + tooltipId="uiPathInputButtontooltip" + tooltipText="Create a test folder" > - +
- - Generate a sample test file - - } placement={'bottom-start'}> + - - - Check out documentation. - - } placement={'bottom-start'}> - + + + - - + +
- - - {runButtonTitle} - - - }> + - +