fix(test): prevent Email_settings stale getAllWorkspaces intercept - #42211
Conversation
Visiting /applications while logged out let LoginFromAPI wait on a 401 workspace response with no responseMeta. Match the passing test 5 order and drop CypressReload().
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. WalkthroughThe email settings Cypress tests remove redundant application-page visits and reloads. Test 2 uses direct API login. Test 6 navigates to the applications page after login. ChangesEmail settings regression tests
Priority: ⬇️ Low — Defer this narrow Cypress test fix because it only stabilizes the Email settings regression spec without changing product behavior. Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to Email settings regression tests now authenticate before application navigation and remove redundant reloads, addressing the stale intercept failure path without changing product behavior. No current merge-blocking risk remains. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Fewer visits cross the test flight Comment |
|
/ci-test-limit-count run_count=3 specs_to_run=cypress/e2e/Regression/ClientSide/AdminSettings/Email_settings_Spec.ts |
|
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/34226849613. |
|
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/34226849613. |
Description
Email_settings_Specfailed all Cypress retries in isolation (run 34177523488). Tests 4 and 6 visited/applicationswhile logged out, thenLoginFromAPIwaited on@getAllWorkspacesand consumed a 401 body with noresponseMeta.processNetworkStatusthen threwCannot read properties of undefined (reading 'status').CypressReload()on that path also mixedcy.reload()withcy.log()from the global fail handler.Test 5 already used logout → login page →
LoginFromAPI→/applicationsand passed every retry. This PR matches that order, drops the redundant reloads, and logs test 2 in explicitly. Prior HTML-body wait (#41893) did not cover this.Fixes https://linear.app/appsmith/issue/APP-15931
Testing
Suggested Cypress tags or specs:
@tag.EmailAutomation
/ok-to-test tags="@tag.Email"
🔍 Cypress test results
Communication
Should the DevRel and Marketing teams inform users about this change?
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/34225280782
Commit: e90b107
Cypress dashboard.
Tags:
@tag.EmailSpec:
Tue, 08 Sep 2026 12:37:23 UTC
Summary by CodeRabbit