diff --git a/apps/remix-ide-e2e/src/tests/staticAnalysis.test.ts b/apps/remix-ide-e2e/src/tests/staticAnalysis.test.ts index d254d15eee..b02453fcea 100644 --- a/apps/remix-ide-e2e/src/tests/staticAnalysis.test.ts +++ b/apps/remix-ide-e2e/src/tests/staticAnalysis.test.ts @@ -40,13 +40,17 @@ module.exports = { .pause(10000) .clickLaunchIcon('solidityStaticAnalysis') .waitForElementPresent('#staticanalysisresult .warning', 5000) - .assert.containsText('#verticalIconsKindsolidityStaticAnalysis .remixui_status', '1') // Check warning count + // .assert.containsText('#verticalIconsKindsolidityStaticAnalysis .remixui_status', '1') // Check warning count + .click('*[data-rb-event-key="basic"]') + .assert.containsText('*[data-id="StaticAnalysisErrorCount"]', '1') .verify.elementPresent('input[name="showLibWarnings"]') .verify.not.elementPresent('input[name="showLibWarnings"]:checked') .verify.elementPresent('label[id="headingshowLibWarnings"]') .click('label[id="headingshowLibWarnings"]') .pause(1000) - .assert.containsText('#verticalIconsKindsolidityStaticAnalysis .remixui_status', '382') + // .assert.containsText('#verticalIconsKindsolidityStaticAnalysis .remixui_status', '382') + .click('*[data-rb-event-key="basic"]') + .assert.containsText('*[data-id="StaticAnalysisErrorCount"]', '382') .click('label[id="headingshowLibWarnings"]') .pause(1000) .assert.containsText('#verticalIconsKindsolidityStaticAnalysis .remixui_status', '1') diff --git a/libs/remix-ui/static-analyser/src/lib/components/BasicTitle.tsx b/libs/remix-ui/static-analyser/src/lib/components/BasicTitle.tsx index 8d4b6171ed..d047c6578d 100644 --- a/libs/remix-ui/static-analyser/src/lib/components/BasicTitle.tsx +++ b/libs/remix-ui/static-analyser/src/lib/components/BasicTitle.tsx @@ -31,7 +31,7 @@ export function calculateWarningStateEntries(entries: [string, any][]) { export function BasicTitle(props: BasicTitleProps) { return ( - Basic{props.warningStateEntries.length > 0 && !props.hideWarnings ? {calculateWarningStateEntries(props.warningStateEntries).length}: null} + Basic{props.warningStateEntries.length > 0 && !props.hideWarnings ? {calculateWarningStateEntries(props.warningStateEntries).length}: null} ) } \ No newline at end of file