-
Notifications
You must be signed in to change notification settings - Fork 27.9k
fix: Close NDV using correct button (no-changelog) #15745
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
base: master
Are you sure you want to change the base?
Conversation
The test was failing due to how Cypress runs in headless vs non headless mode. Esc not always being registered etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cubic reviewed 1 file and found no issues. Review PR in cubic.dev.
The test was failing due to how Cypress runs in headless vs non headless mode. Esc not always being registered etc.
… into PAY-2815-fix-flaky-project-test
cypress/e2e/39-projects.cy.ts
Outdated
getNdvContainer().should('be.visible'); | ||
cy.get('body').type('{esc}'); | ||
getBackToCanvasButton().click(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit] There's also a clickGetBackToCanvas()
method which does the same thing if you wanted to use that.
cypress/e2e/39-projects.cy.ts
Outdated
// Stub window.open before adding sub-workflow opens a new tab | ||
cy.window().then((win) => { | ||
cy.stub(win, 'open').as('windowOpen').returns(null); | ||
}); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For my own (lack of) Cypress knowledge, we're now stubbing the window.open
call and I assume that stops the tab from opening. How do we ensure the additional nodes are added to the sub-workflow (in the new tab)?
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
The test was failing due to how Cypress runs in headless vs non headless mode. Esc not always being registered etc.
Summary
Fixes the failing project test.
Related Linear tickets, Github issues, and Community forum posts
https://linear.app/n8n/issue/PAY-2815/flaky-ui-projects-when-starting-from-scratch-should-create-sub
Flaky Test Run: https://github.com/n8n-io/n8n/actions/runs/15274055259/job/42956066490 200 passed
Review / Merge checklist
release/backport
(if the PR is an urgent fix that needs to be backported)