opensearch-project / OpenSearch-Dashboards

📊 Open source visualization dashboards for OpenSearch.
https://opensearch.org/docs/latest/dashboards/index/
Apache License 2.0
1.69k stars 893 forks source link

[BUG] Failed Snapshot Tests After OUI Upgrade #8290

Closed wanglam closed 1 month ago

wanglam commented 1 month ago

Describe the bug

After upgrading the OpenSearch UI (OUI) library, certain snapshot tests in OpenSearch Dashboards are failing.

To Reproduce

  1. Clone the OpenSearch Dashboards repository
  2. Run yarn osd bootstrap
  3. Run yarn test:jest
  4. Observe failed snapshot tests in the following files:
    • src/core/public/chrome/ui/header/__snapshots__/header.test.tsx.snap
    • src/plugins/data_source_management/public/components/data_source_table/__snapshots__/data_source_table.test.tsx.snap
    • src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_connection/__snapshots__/manage_direct_query_data_connections_table.test.tsx.snap

Expected behavior All snapshot tests should pass.

OpenSearch Version N/A

Dashboards Version Latest main branch

Plugins N/A

Screenshots N/A

Host/Environment (please complete the following information):

Additional context N/A

wanglam commented 1 month ago

Not a bug, the root cause was dependency not updated in my local.