Skip to content

Cypress - Event Analytics flaky test fix #2332

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

Merged
merged 2 commits into from
Feb 3, 2025

Conversation

TackAdam
Copy link
Collaborator

@TackAdam TackAdam commented Feb 1, 2025

Description

Cypress - Event Analytics flaky test fix
Appears that a redux state error is happening in only main where the default timestamp is not showing up for cypress after executing the query: 'source = opensearch_dashboards_sample_data_logs'
This change handles the bug while maintaining normal functionality for 2.x ect...

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@TackAdam TackAdam changed the title fix flaky cypress test for event_analyics Cypress - Event Analytics flaky test fix Feb 1, 2025
@TackAdam TackAdam added the bug Something isn't working label Feb 1, 2025
@TackAdam TackAdam marked this pull request as ready for review February 3, 2025 16:56
.then(($elements) => {
// Handle redux state bug in main not setting default timestamp for cypress
const indexToClick = $elements.length > 1 ? 1 : 0;
cy.wrap($elements.eq(indexToClick)).click({ force: true });
Copy link
Member

Choose a reason for hiding this comment

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

not blocking, this should work without force: true as well.

@TackAdam TackAdam merged commit 3bb49bf into opensearch-project:main Feb 3, 2025
21 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 3, 2025
* fix flaky cypress test for event_analyics

Signed-off-by: Adam Tackett <[email protected]>

* fix flaky cypress test for event_analyics

Signed-off-by: Adam Tackett <[email protected]>

---------

Signed-off-by: Adam Tackett <[email protected]>
Co-authored-by: Adam Tackett <[email protected]>
(cherry picked from commit 3bb49bf)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ps48 pushed a commit that referenced this pull request Feb 3, 2025
* fix flaky cypress test for event_analyics



* fix flaky cypress test for event_analyics



---------



(cherry picked from commit 3bb49bf)

Signed-off-by: Adam Tackett <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Adam Tackett <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants