test(e2e): skip cross-domain SSO spec until wp-env supports mapped non-standard ports#1323
Conversation
…n-standard ports The spec at tests/e2e/cypress/integration/060-sso-cross-domain.spec.js has been the sole failing case in the required `cypress (8.2, chrome)` check on every E2E run since it was added in b232e29 (Feb 16 2026). Root cause is an environment limitation, not a product bug: wp-env runs on port 8889 and Ultimate Multisite's domain mapping does not take effect for the mapped host `127.0.0.1:8889` on a non-standard port — the request is 302-redirected back to `localhost:8889` before the subsite is resolved. The spec's own header note acknowledges this, but its assertions still expect the mapping to work end-to-end: - expects 200 from http://127.0.0.1:8889/ (gets 302 to localhost) - expects `sso=login` in the redirect location (never reached) - waits 60 s for /wp-admin/ on mapped host (times out on localhost) Marks the describe block as `describe.skip(...)` with a detailed FIXME documenting: - the precise reason the assertions fail in this env - that 065-sso-redirect-loop.spec.js already covers the SSO trigger logic that works in this env (6/6 passing) - candidate env-reconfiguration paths (port 80, host alias, reverse proxy) that would let the suite be unskipped - the tracking issue (#1322) for restoration Unblocks the required `cypress (8.2, chrome)` status check on PRs to main without pretending the env limitation has been fixed. For #1322
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR updates E2E tests and adds a new membership-update path in the Stripe gateway: the Stripe checkout E2E test now tolerates either a radio or hidden gateway input; the SSO cross-domain spec is skipped with added environment notes; Stripe_Gateway now updates local membership when no Stripe subscription is created for auto-renew flows. ChangesE2E Test Adjustments
Stripe Gateway Updates
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related issues
Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🔨 Build Complete - Ready for Testing!📦 Download Build Artifact (Recommended)Download the zip build, upload to WordPress and test:
🌐 Test in WordPress Playground (Very Experimental)Click the link below to instantly test this PR in your browser - no installation needed! Login credentials: |
|
CLAIM_RELEASED reason=worker_complete runner=superdav42 ts=2026-05-30T06:59:14Z aidevops_version=3.20.5 opencode_version=1.15.12 exit=0 session_count=1 |
🔨 Build Complete - Ready for Testing!📦 Download Build Artifact (Recommended)Download the zip build, upload to WordPress and test:
🌐 Test in WordPress Playground (Very Experimental)Click the link below to instantly test this PR in your browser - no installation needed! Login credentials: |
|
CLAIM_RELEASED reason=worker_complete runner=superdav42 ts=2026-05-30T15:04:24Z aidevops_version=3.20.5 opencode_version=1.15.12 exit=0 session_count=1 |
|
CLAIM_RELEASED reason=process_exit runner=superdav42 ts=2026-05-31T15:31:00Z aidevops_version=3.20.6 opencode_version=1.15.13 exit=0 session_count=1 |
|
MERGE_SUMMARY Summary
Verification
CI focus
|
🔨 Build Complete - Ready for Testing!📦 Download Build Artifact (Recommended)Download the zip build, upload to WordPress and test:
🌐 Test in WordPress Playground (Very Experimental)Click the link below to instantly test this PR in your browser - no installation needed! Login credentials: |
|
CLAIM_RELEASED reason=worker_complete runner=superdav42 ts=2026-06-01T09:26:52Z aidevops_version=3.20.7 opencode_version=1.15.13 |
…ain-env-skip # Conflicts: # tests/e2e/cypress/integration/060-sso-cross-domain.spec.js
|
MERGE_SUMMARY SummaryResolved the merge conflict from Verification
Note: aidevops.sh v3.20.7 plugin for OpenCode v1.15.13 with gpt-5.5 spent 4m and 77,725 tokens on this as a headless worker. |
🔨 Build Complete - Ready for Testing!📦 Download Build Artifact (Recommended)Download the zip build, upload to WordPress and test:
🌐 Test in WordPress Playground (Very Experimental)Click the link below to instantly test this PR in your browser - no installation needed! Login credentials: |
Summary
Skips the cross-domain SSO Cypress spec at
tests/e2e/cypress/integration/060-sso-cross-domain.spec.jsbecause it has never passed onmainand was the sole reason the requiredcypress (8.2, chrome)check failed on every PR. Replaces the failing assertions with adescribe.skip(...)and a detailed FIXME pointing at the env limitation and the restoration tracking issue.Why this is the right fix (not a workaround)
The spec was introduced in
b232e296(Feb 16 2026) and 4/4 tests have failed on every E2E workflow run since. The failure mode is identical every time and matches what the spec's own header note already documents: wp-env runs on port 8889, WordPress only strips ports 80/443, so the mapped host127.0.0.1:8889is not resolved by Ultimate Multisite's domain mapping and the request is 302-redirected back tolocalhost:8889. The assertions below were nevertheless written as if the mapping worked end-to-end:Should resolve mapped domain to the correct subsite200fromhttp://127.0.0.1:8889/302tohttp://localhost:8889/Should trigger SSO redirect when visiting wp-admin on mapped domainsso=loginhttp://localhost:8889/with no SSO paramsShould auto-authenticate on subsite via SSO after main-site login/wp-admin/within 60 shttp://localhost:8889/, times outShould preserve redirect_to parameter through SSO flow/wp-admin/within 60 sThe SSO trigger logic that does work in this env is already covered by
tests/e2e/cypress/integration/065-sso-redirect-loop.spec.js(6/6 passing on the same runs).Verification
describe(...)→describe.skip(...)change plus the FIXME comment block; no production code touched.tests/e2e).cypress (8.2, chrome)check on this PR will now skip the spec entirely, removing the systematic failure that was blocking PR test: executable regression tests for known production bugs (replaces #1312) #1313, fix(sender): use From: as visible To: in BCC strategy; guard SMTP exceptions #1316, fix(checkout): guard billing_zip_code v-if against undefined uses_postal_code #1318, fix(sso): signal SSO denial to broker instead of forcing wp-login.php on anonymous /sso-grant #1321 earlier today (all four merged via admin override in advance of this fix).Tracking restoration
#1322 captures:
065-sso-redirect-loop.spec.jscoverage).065-sso-redirect-loop.spec.js), and verification steps.When the env is reconfigured, remove
describe.skip(...)and the FIXME block — no other test-code changes should be needed.For #1322
Summary by CodeRabbit