Skip to content

Conversation

@Qxisylolo
Copy link
Contributor

@Qxisylolo Qxisylolo commented Nov 10, 2025

Description

截屏2025-11-10 14 05 20 截屏2025-11-10 13 59 27 截屏2025-11-10 15 51 58

Issues Resolved

Screenshot

Testing the changes

Changelog

  • feat: add tests for gauge and bar gauge

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

opensearch-changeset-bot bot added a commit to Qxisylolo/OpenSearch-Dashboards that referenced this pull request Nov 10, 2025
@Qxisylolo Qxisylolo changed the title [Test]add tests for gauge and bar gauge [test(cypress)]add tests for gauge and bar gauge Nov 10, 2025
@Qxisylolo Qxisylolo changed the title [test(cypress)]add tests for gauge and bar gauge test(cypress) add tests for gauge and bar gauge Nov 10, 2025
@codecov
Copy link

codecov bot commented Nov 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.76%. Comparing base (55a9ada) to head (25bdb74).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #10894   +/-   ##
=======================================
  Coverage   60.76%   60.76%           
=======================================
  Files        4533     4533           
  Lines      122129   122129           
  Branches    20461    20461           
=======================================
  Hits        74207    74207           
  Misses      42689    42689           
  Partials     5233     5233           
Flag Coverage Δ
Linux_1 26.57% <ø> (ø)
Linux_2 38.92% <ø> (ø)
Linux_3 39.41% <ø> (ø)
Linux_4 33.75% <ø> (ø)
Windows_1 26.58% <ø> (ø)
Windows_2 38.90% <ø> (ø)
Windows_3 39.42% <ø> (ø)
Windows_4 33.75% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

.within(() => {
cy.getElementByTestId('exploreChartTypeSelector').should('be.visible').click();
});
cy.getElementByTestId(`exploreChartTypeSelector-${options.type}`).should('be.visible').click();
Copy link
Member

@ruanyl ruanyl Nov 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need to change all places that uses createVisualizationWithQuery to pass options.type? Like Pie and Area. Why not just use chartType as before?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, pie and area is already updated

@Qxisylolo Qxisylolo force-pushed the feat/add_tests_bargauge_gauge branch from 9b53fbd to de92f5b Compare November 10, 2025 10:02
@ruanyl ruanyl merged commit 8a0ed5f into opensearch-project:main Nov 11, 2025
81 of 82 checks passed
lunalzm pushed a commit to lunalzm/OpenSearch-Dashboards that referenced this pull request Nov 11, 2025
…0894)

* add tests for gauge and bar gauge

Signed-off-by: Qxisylolo <[email protected]>

---------

Signed-off-by: Qxisylolo <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Co-authored-by: Yulong Ruan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants