test(ios): make settlement alert regression Xcode Cloud-safe - #35
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1db442346d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| XCTAssertEqual( | ||
| SettlementErrorPresentation.message(for: rawError), | ||
| "We couldn't update this settlement. Please try again." | ||
| ) | ||
| XCTAssertEqual( | ||
| SettlementErrorPresentation.message(for: nil), | ||
| "We couldn't update this settlement. Please try again." |
There was a problem hiding this comment.
Exercise the alert binding in the sanitization regression
This now tests only SettlementErrorPresentation in isolation, so it still passes if either settlement alert later bypasses the helper and renders settlementError.errorDescription, which can expose the request ID and server stack used here. The replaced source assertion covered both alert sites; retain an Xcode Cloud-safe assertion that the actual alert presentation paths use the sanitizer rather than claiming alert-level coverage from the helper test alone.
AGENTS.md reference: AGENTS.md:L185-L190
Useful? React with 👍 / 👎.
Summary
Why
Xcode Cloud build 131 compiled and archived successfully, but its PayBackCITests bundle intentionally omits source-scan fixtures. The former regression therefore failed on fixture lookup rather than app behavior. This keeps the same privacy assertion while exercising compiled production code in every test bundle.
Verification