fix e2e with data-id naming

pull/3838/head
Joseph Izang 1 year ago
parent 656325b114
commit 48f12e9f78
  1. 6
      libs/remix-ui/static-analyser/src/lib/components/BasicTitle.tsx

@ -35,13 +35,13 @@ export function calculateWarningStateEntries(entries: [string, any][]) {
export function BasicTitle(props: BasicTitleProps) {
return (
<span>
<span id="ssaRemixtab">
Remix
{props.ssaWarnings.length > 0 ? (
props.hideWarnings === false ? (
props.showLibsWarnings === false ? (
<span
data-id="StaticAnalysisErrorCount"
data-id="RemixStaticAnalysisErrorCount"
className={`badge ${props.ssaWarningsNoLibs.length > 0 ? "badge-warning"
: "badge-danger"
} badge-pill ml-1 px-1 text-center`}
@ -49,7 +49,7 @@ export function BasicTitle(props: BasicTitleProps) {
{props.ssaWarnings.filter(x => x.options.isLibrary === false).length}
</span>
) : (
<span className="badge badge-warning rounded-circle ml-1 text-center">
<span data-id="RemixStaticAnalysisErrorCount" className="badge badge-warning rounded-circle ml-1 text-center">
{props.ssaWarnings.length}
</span>
)

Loading…
Cancel
Save