Skip to content

fix(test): replace hardcoded waits with API intercepts in edit tests#757

Open
sumukhswamy wants to merge 2 commits into
opensearch-project:mainfrom
sumukhswamy:fix/flaky-edit-tests
Open

fix(test): replace hardcoded waits with API intercepts in edit tests#757
sumukhswamy wants to merge 2 commits into
opensearch-project:mainfrom
sumukhswamy:fix/flaky-edit-tests

Conversation

@sumukhswamy

Copy link
Copy Markdown
Collaborator

Description

Replace flaky cy.wait(12500) calls with cy.intercept/cy.wait for the reportDefinitions API and add explicit 60s timeouts on element assertions. This prevents race conditions where the report list hasn't loaded before the test tries to click #reportDefinitionDetailsLink.

Issues Resolved

[List any issues this PR will resolve]

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.

@sumukhswamy sumukhswamy force-pushed the fix/flaky-edit-tests branch from 19f2710 to 25db867 Compare May 28, 2026 18:22
@sumukhswamy sumukhswamy added v3.7.0 Issues targeting release v3.7.0 backport 3.7 labels May 28, 2026
@sumukhswamy sumukhswamy force-pushed the fix/flaky-edit-tests branch 6 times, most recently from 44d3b39 to 847a9cf Compare May 28, 2026 20:24
…tests

Replace flaky cy.wait(12500) calls with Cypress retryable assertions.
Use beforeEach to navigate and wait for #reportDefinitionDetailsLink
with a 60s timeout, ensuring the report list is populated before
each test attempts to interact with it. Added retry with reload
to handle index refresh delays between tests.

Signed-off-by: sumukhswamy <sumukhhs@amazon.com>
CVE-2026-41907 (Critical, CVSS 9.8): uuid@8.3.2 via exceljs
- exceljs requires uuid@^8.3.0, max available is 8.3.2 (vulnerable)
- No fix exists within the ^8.x range
- Added yarn resolution to force uuid@^11.1.1 (lowest fixed version)

CVE-2026-44705 (High, CVSS 7.5): tmp@0.2.5 via exceljs
- exceljs requires tmp@^0.2.0, fix available in 0.2.6+
- Removed yarn.lock entry to allow resolution to latest 0.2.x

Signed-off-by: sumukhswamy <sumukhhs@amazon.com>
@sumukhswamy sumukhswamy force-pushed the fix/flaky-edit-tests branch from 847a9cf to 0bcdfcc Compare June 2, 2026 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 3.7 v3.7.0 Issues targeting release v3.7.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant