fix ssa e2e

pull/3642/head
Joseph Izang 2 years ago
parent 9c5db6ed87
commit 136d3ab918
  1. 8
      apps/remix-ide-e2e/src/tests/staticAnalysis.test.ts
  2. 2
      libs/remix-ui/static-analyser/src/lib/components/BasicTitle.tsx

@ -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')

@ -31,7 +31,7 @@ export function calculateWarningStateEntries(entries: [string, any][]) {
export function BasicTitle(props: BasicTitleProps) {
return (
<span className="rounded-circle">Basic{props.warningStateEntries.length > 0 && !props.hideWarnings ? <i className="badge badge-info rounded-circle ml-2">{calculateWarningStateEntries(props.warningStateEntries).length}</i>: null}
<span className="rounded-circle">Basic{props.warningStateEntries.length > 0 && !props.hideWarnings ? <i data-id="StaticAnalysisErrorCount" className="badge badge-info rounded-circle ml-2">{calculateWarningStateEntries(props.warningStateEntries).length}</i>: null}
</span>
)
}
Loading…
Cancel
Save