Skip to content

test: enhance FailedTestCaseSampleData tests with mock Table component

8d4d3ea
Select commit
Loading
Failed to load commit list.
Merged

test: fix FailedTestCaseSampleData tests with mock Table component #28028

test: enhance FailedTestCaseSampleData tests with mock Table component
8d4d3ea
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / [open-metadata-ui] SonarCloud Code Analysis succeeded May 11, 2026 in 7m 53s

Annotations

Check warning on line 318 in src/components/common/Table/Table.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

This assertion is unnecessary since the receiver accepts the original type of the expression.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ4WDIHnIt9R48Kr6gaC&open=AZ4WDIHnIt9R48Kr6gaC&pullRequest=28028

Check warning on line 520 in src/hooks/useGridEditController.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Prefer `Number.parseInt` over `parseInt`.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ4WDbR1It9R48Kr6gtf&open=AZ4WDbR1It9R48Kr6gtf&pullRequest=28028

Check warning on line 149 in src/pages/CustomizableDataMarketplacePage/CustomizableDataMarketplacePage.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

This assertion is unnecessary since the receiver accepts the original type of the expression.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ4WDV9IIt9R48Kr6gm6&open=AZ4WDV9IIt9R48Kr6gm6&pullRequest=28028

Check warning on line 117 in src/components/MyData/Widgets/KPIWidget/KPILegend/KPILegend.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Prefer `Math.max()` to simplify ternary expressions.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ4WDMf2It9R48Kr6geI&open=AZ4WDMf2It9R48Kr6geI&pullRequest=28028

Check warning on line 408 in src/components/OntologyExplorer/utils/graphStyles.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Unexpected negated condition.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ4WDS6EIt9R48Kr6gj8&open=AZ4WDS6EIt9R48Kr6gj8&pullRequest=28028

Check warning on line 161 in src/components/WorkflowDefinitions/WorkflowBuilder/forms/UserApprovalForm.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Prefer `Number.parseInt` over `parseInt`.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ4WDNeyIt9R48Kr6ge7&open=AZ4WDNeyIt9R48Kr6ge7&pullRequest=28028

Check warning on line 86 in src/utils/QueryBuilderUtils.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

This assertion is unnecessary since it does not change the type of the expression.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ4WDY-NIt9R48Kr6gqo&open=AZ4WDY-NIt9R48Kr6gqo&pullRequest=28028

Check warning on line 173 in src/components/BlockEditor/Extensions/BlockAndDragDrop/BlockAndDragHandle.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Prefer `Number.parseInt` over `parseInt`.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ4WDGp7It9R48Kr6gYt&open=AZ4WDGp7It9R48Kr6gYt&pullRequest=28028

Check failure on line 302 in src/components/common/AsyncSelectList/TreeAsyncSelectList.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ4WDJziIt9R48Kr6gb8&open=AZ4WDJziIt9R48Kr6gb8&pullRequest=28028

Check warning on line 79 in src/components/AlertBar/AlertBar.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Unexpected negated condition.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ4WDUgTIt9R48Kr6glT&open=AZ4WDUgTIt9R48Kr6glT&pullRequest=28028

Check warning on line 204 in src/utils/KnowledgePageUtils.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Default parameters should be last.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ4WDXnBIt9R48Kr6go0&open=AZ4WDXnBIt9R48Kr6go0&pullRequest=28028

Check warning on line 139 in src/components/Customization/CustomizeTabWidget/CustomizeTabWidget.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

This assertion is unnecessary since the receiver accepts the original type of the expression.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ4WDP75It9R48Kr6gg2&open=AZ4WDP75It9R48Kr6gg2&pullRequest=28028

Check failure on line 89 in src/components/ActivityFeed/TaskFeedCard/TaskFeedCardNew.component.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ4WDNH7It9R48Kr6geo&open=AZ4WDNH7It9R48Kr6geo&pullRequest=28028

Check warning on line 225 in src/components/MyData/CustomizableComponents/CustomiseHomeModal/CustomiseHomeModal.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Visible, non-interactive elements with click handlers must have at least one keyboard listener.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ4WDMHPIt9R48Kr6gd1&open=AZ4WDMHPIt9R48Kr6gd1&pullRequest=28028

Check warning on line 122 in src/components/Settings/Services/AddIngestion/AddIngestion.component.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

The empty object is useless.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ4WDOZoIt9R48Kr6gfv&open=AZ4WDOZoIt9R48Kr6gfv&pullRequest=28028

Check warning on line 58 in src/components/common/FocusTrap/FocusTrapWithContainer.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Remove this redundant jump.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ4WDKbKIt9R48Kr6gcY&open=AZ4WDKbKIt9R48Kr6gcY&pullRequest=28028

Check warning on line 51 in src/components/SearchSettings/FieldValueBoostList/FieldValueBoostList.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Unexpected negated condition.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ4WDTs_It9R48Kr6gk8&open=AZ4WDTs_It9R48Kr6gk8&pullRequest=28028

Check warning on line 149 in src/components/common/FileUpload/MUIFileUpload.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

'If' statement should not be the only statement in 'else' block

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ4WDJexIt9R48Kr6gbq&open=AZ4WDJexIt9R48Kr6gbq&pullRequest=28028

Check warning on line 234 in src/components/DataQuality/AddTestCaseList/AddTestCaseList.component.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

This assertion is unnecessary since the receiver accepts the original type of the expression.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ4WDL5GIt9R48Kr6gdi&open=AZ4WDL5GIt9R48Kr6gdi&pullRequest=28028

Check warning on line 191 in src/components/WorkflowDefinitions/WorkflowBuilder/WorkflowCanvas.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ4WDN7lIt9R48Kr6gfc&open=AZ4WDN7lIt9R48Kr6gfc&pullRequest=28028

Check warning on line 650 in src/utils/ExploreUtils.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Unexpected negated condition.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ4WDaQxIt9R48Kr6gsY&open=AZ4WDaQxIt9R48Kr6gsY&pullRequest=28028

Check warning on line 67 in src/components/Alerts/DestinationFormItem/TeamAndUserSelectItem/TeamAndUserSelectItem.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Use `.includes()`, rather than `.indexOf()`, when checking for existence.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ4WDRUJIt9R48Kr6gio&open=AZ4WDRUJIt9R48Kr6gio&pullRequest=28028

Check warning on line 96 in src/rest/suggestionsAPI.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

This assertion is unnecessary since it does not change the type of the expression.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ4WDbpKIt9R48Kr6gtr&open=AZ4WDbpKIt9R48Kr6gtr&pullRequest=28028

Check warning on line 799 in src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

This assertion is unnecessary since it does not change the type of the expression.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ4WDPvGIt9R48Kr6ggr&open=AZ4WDPvGIt9R48Kr6ggr&pullRequest=28028

Check warning on line 210 in src/components/common/NavigationBlocker/NavigationBlocker.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Prefer `globalThis` over `window`.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ4WDJSzIt9R48Kr6gbf&open=AZ4WDJSzIt9R48Kr6gbf&pullRequest=28028