Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TESTID-140: sidebar spec #9128

Closed
wants to merge 27 commits into from

Conversation

silvaf-dev
Copy link
Contributor

@silvaf-dev silvaf-dev commented Dec 26, 2024

Description

Implements all four test suites required by #8946

Issues Resolved

Screenshot

Screen.Recording.2025-01-08.at.11.1.mp4

Testing the changes

Changelog

  • skip

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

@angle943
Copy link
Contributor

Could you rebase so that the diff only show your changes?

@silvaf-dev
Copy link
Contributor Author

silvaf-dev commented Dec 30, 2024

Could you rebase so that the diff only show your changes?

Done, but it'll still contain more changes than the ones I authored. The reason is I had to pull from Argus' PR in order to recover my lost refactors.
The files I modified were:

  • cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/query_enhancements/sidebar_filtering.spec.js
  • src/plugins/data_explorer/public/components/sidebar/index.tsx (added data-test-subj)
  • cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/query_enhancements/helpers.js (added my functions below verifyDocTableFirstExpandedFieldFirstRowExistsFilterButtonFiltersCorrectField())
  • cypress.config.ts (added a retry)

silvaf-dev and others added 14 commits January 7, 2025 17:05
Signed-off-by: Federico Silva <[email protected]>
Signed-off-by: Federico Silva <[email protected]>
Signed-off-by: Federico Silva <[email protected]>
Signed-off-by: Federico Silva <[email protected]>
Signed-off-by: Federico Silva <[email protected]>
Signed-off-by: Federico Silva <[email protected]>
Signed-off-by: Federico Silva <[email protected]>
Signed-off-by: Federico Silva <[email protected]>
…pensearch-project#9119)

* Add test for filtering functionality for discover, which enables query enhancement
* Make test more robust: Add logic to use date picker start and end buttons if set to absolute times. Check the table length directly instead of number of hits to avoid bug where not all results load.

---------

Signed-off-by: Argus Li <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Signed-off-by: Federico Silva <[email protected]>
…s when out of a workspace (opensearch-project#9024)

* add workspaceAvailability

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

* Changeset file for PR opensearch-project#9024 created/updated

* add tests

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

* update test

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

* fix test use piple

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

* fix test new

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>
Signed-off-by: Federico Silva <[email protected]>
…opensearch-project#9112)

* Add tests for saved search creation and loading for query enhancement
* click on a random element before typing on query editor to bypass the popover that appears
* address pr comments - refactor to create saved search as an api call
* address pr comments - specifically navigate to discover page before setting datasource

Signed-off-by: Justin Kim <[email protected]>

---------

Signed-off-by: Justin Kim <[email protected]>
Signed-off-by: Anan Zhuang <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Co-authored-by: Anan Zhuang <[email protected]>
Signed-off-by: Federico Silva <[email protected]>
Signed-off-by: Federico Silva <[email protected]>
@ananzh
Copy link
Member

ananzh commented Jan 7, 2025

@silvaf-dev from https://github.com/opensearch-project/OpenSearch-Dashboards/actions/runs/12658896186/job/35276829002?pr=9128, it seems that this cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/query_enhancements/utils/sidebar_filtering.js is missing license header and there are some lint issues. Could you add a license header and also run yarn lint --fix to fix?

ananzh added a commit to ananzh/OpenSearch-Dashboards that referenced this pull request Jan 8, 2025
* Refactor this PR opensearch-project#9128
* Clean up structures

Signed-off-by: Anan <[email protected]>
ananzh added a commit to ananzh/OpenSearch-Dashboards that referenced this pull request Jan 8, 2025
* Refactor this PR opensearch-project#9128
* Clean up structures

Signed-off-by: Anan <[email protected]>
@ananzh ananzh added the discover_2.0-test Issues that are specific to the Discover 2.0 testing initiative label Jan 17, 2025
@ananzh
Copy link
Member

ananzh commented Jan 28, 2025

Close it as it is refactored by #9154

@ananzh ananzh closed this Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discover_2.0-test Issues that are specific to the Discover 2.0 testing initiative first-time-contributor Skip-Changelog PRs that are too trivial to warrant a changelog or release notes entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants