Skip to content

Fix alerting dashboards multi-index update tests failing - #2129

Merged
peterzhuamazon merged 1 commit into
opensearch-project:mainfrom
vikhy-aws:main
Aug 1, 2026
Merged

Fix alerting dashboards multi-index update tests failing#2129
peterzhuamazon merged 1 commit into
opensearch-project:mainfrom
vikhy-aws:main

Conversation

@vikhy-aws

@vikhy-aws vikhy-aws commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Description

The "to have multiple indices" tests in bucket_level_monitor_spec.js and query_level_monitor_spec.js fail because:

  1. cy.get('#index').click() triggers an async fetch (/api/alerting/remote/indexes) that causes a React re-render, detaching the DOM element before .type() can execute.
  2. Each {enter} within .type() also triggers a re-render that detaches the input element mid-command.

The fix breaks the chained Cypress command into separate cy.get('#index') calls for each operation (click, type index-a, type index-b, blur). This forces Cypress to re-query the DOM between each step, ensuring the element is always attached.

Issues resolved

Fixes opensearch-project/alerting-dashboards-plugin#1492

Testing

image image

Check List

  • 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.

Signed-off-by: vikhy-aws <191836418+vikhy-aws@users.noreply.github.com>
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown

PR Reviewer Guide 🔍

(Review updated until commit 0c79fd8)

Here are some key observations to aid the review process:

🧪 PR contains tests
🔒 No security concerns identified
✅ No TODO sections
🔀 No multiple PR themes
⚡ No major issues detected

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown

Persistent review updated to latest commit 0c79fd8

@peterzhuamazon
peterzhuamazon merged commit 744b2dc into opensearch-project:main Aug 1, 2026
55 of 64 checks passed
peterzhuamazon pushed a commit that referenced this pull request Aug 1, 2026
(cherry picked from commit 744b2dc)

Signed-off-by: vikhy-aws <191836418+vikhy-aws@users.noreply.github.com>
Signed-off-by: opensearch-ci-bot <opensearch-infra@amazon.com>
Co-authored-by: Sai Vikhyath Kudhroli <191836418+vikhy-aws@users.noreply.github.com>
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.

[AUTOCUT] Integration Test Failed for alertingDashboards-3.8.0

2 participants