Skip to content

Upgrade Cypress from 9 to 13 for FTRepo - #2000

Merged
peterzhuamazon merged 13 commits into
opensearch-project:mainfrom
yyfamazon:main
May 6, 2026
Merged

Upgrade Cypress from 9 to 13 for FTRepo#2000
peterzhuamazon merged 13 commits into
opensearch-project:mainfrom
yyfamazon:main

Conversation

@yyfamazon

Copy link
Copy Markdown
Contributor

Description

Upgrade Cypress from 9 to 13 for FTRepo

baseline: #1895
I compare the ci test with baseline, and fix all tests that passed in baseline in this pr.

Issues Resolved
#1996

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: yyfamazon <yyf@amazon.com>
Signed-off-by: yyfamazon <yyf@amazon.com>
Signed-off-by: yyfamazon <yyf@amazon.com>
Signed-off-by: yyfamazon <yyf@amazon.com>
Signed-off-by: yyfamazon <yyf@amazon.com>
Signed-off-by: yyfamazon <yyf@amazon.com>
Signed-off-by: yyfamazon <yyf@amazon.com>
Signed-off-by: yyfamazon <yyf@amazon.com>
Signed-off-by: yyfamazon <yyf@amazon.com>
Signed-off-by: yyfamazon <yyf@amazon.com>
Signed-off-by: yyfamazon <yyf@amazon.com>
Signed-off-by: yyfamazon <yyf@amazon.com>
Signed-off-by: yyfamazon <yyf@amazon.com>
Comment thread cypress/plugins/index.js
path: parsed.pathname + parsed.search,
method,
headers,
rejectUnauthorized: false,
@peterzhuamazon

Copy link
Copy Markdown
Member

Hi @wanglam @ruanyl can we review and merge this PR?

Thanks!

@peterzhuamazon

Copy link
Copy Markdown
Member

Thanks @yyfamazon , merging this based on @wanglam approval.

Thanks!

@peterzhuamazon
peterzhuamazon merged commit 8954788 into opensearch-project:main May 6, 2026
66 of 76 checks passed
cwperks added a commit to cwperks/opensearch-dashboards-functional-test that referenced this pull request May 7, 2026
1. Remove invalid bare cy.intercept() calls: The Cypress 13 upgrade (PR opensearch-project#2000)
   replaced cy.server() with cy.intercept() (no arguments). In Cypress 13,
   cy.intercept() requires at least a URL pattern or RouteMatcher - calling it
   with no arguments throws an error. These bare calls served no purpose and
   are simply removed.

2. Add .json to webpack resolve extensions: The webpack preprocessor config
   was missing .json in its resolve.extensions array, causing module-not-found
   errors for fixture imports that omit the .json extension.

Signed-off-by: Craig Perkins <cwperx@amazon.com>
SuZhou-Joe pushed a commit that referenced this pull request May 8, 2026
* Fix Cypress 13 compatibility issues in security tests

1. Remove invalid bare cy.intercept() calls: The Cypress 13 upgrade (PR #2000)
   replaced cy.server() with cy.intercept() (no arguments). In Cypress 13,
   cy.intercept() requires at least a URL pattern or RouteMatcher - calling it
   with no arguments throws an error. These bare calls served no purpose and
   are simply removed.

2. Add .json to webpack resolve extensions: The webpack preprocessor config
   was missing .json in its resolve.extensions array, causing module-not-found
   errors for fixture imports that omit the .json extension.

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Fix security Cypress 13 test stability

Signed-off-by: Craig Perkins <craig5008@gmail.com>

---------

Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <craig5008@gmail.com>
Co-authored-by: Hailong Cui <ihailong@amazon.com>
angle943 added a commit to angle943/opensearch-dashboards-functional-test that referenced this pull request Jun 8, 2026
…ec.js

The 'usage of discover:searchOnPageLoad' describe block sets
searchOnPageLoad to false, which poisons state for subsequent tests
(refresh interval) in the same file. After the Cypress 9 to 13
upgrade (PR opensearch-project#2000), the setting change does not reliably propagate
and causes cascading failures:

1. searchOnPageLoad test times out waiting for docTable
2. refresh interval test finds no requests logged because
   the page never executed an initial search

Skipping both blocks to unblock 3.7.0 release.

Signed-off-by: Justin Kim <jungkm@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants