Skip to content

Upgrade to cypress 15.10.x, use expose, disallow env#9837

Open
jrafanie wants to merge 1 commit intoManageIQ:masterfrom
jrafanie:cypress-15-10
Open

Upgrade to cypress 15.10.x, use expose, disallow env#9837
jrafanie wants to merge 1 commit intoManageIQ:masterfrom
jrafanie:cypress-15-10

Conversation

@jrafanie
Copy link
Member

@jrafanie jrafanie requested a review from a team as a code owner February 17, 2026 22:41
@miq-bot
Copy link
Member

miq-bot commented Feb 17, 2026

Checked commit jrafanie@edb9f41 with ruby 3.3.10, rubocop 1.56.3, haml-lint 0.69.0, and yamllint
0 files checked, 0 offenses detected
Everything looks fine. 🍪

cy.then(() => {
// If waitOnlyIfRequestIntercepted is true, check if the request was intercepted
// and then wait for the response
const interceptedAliasesMap = Cypress.expose('interceptedAliases') || {};
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious why we got rid of cy.getInterceptedApiAliases() here. Was it because it wasn’t working as expected?

I can vaguely remember this, I did return cy.getInterceptedApiAliases().then((interceptedAliasesMap)... so I could chain interceptApi for further operations (like in the selectAccordionItem command). But now it seems to work even without returning the chain from here, nice!

Copy link
Member Author

Choose a reason for hiding this comment

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

Let me check. I walked 🤖 through the suggested changes. Maybe it realized it wasn't used. Let me verify before merge.

Copy link
Contributor

@asirvadAbrahamVarghese asirvadAbrahamVarghese left a comment

Choose a reason for hiding this comment

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

Looks fine to me

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.

3 participants

Comments