Skip to content

Conversation

@KaylaBrady
Copy link
Collaborator

@KaylaBrady KaylaBrady commented Sep 3, 2025

Summary

Ticket: CI | ios flaky tests again

What is this PR for?
Fuller fix that I considered but didn't do in #1275.

This PR does a few things to improve the stability and readability of these tests

  • Removes use of cascading publishers, instead testing based on current state of the VM
  • Removes custom route52Objects set in favor of TestData
  • Removes tests that are more effectively covered by tests of lower-level views, like tests of specific display values (predictions, schedules, alerts)

iOS
- [ ] If you added any user-facing strings on iOS, are they included in Localizable.xcstrings?
- [ ] Add temporary machine translations, marked "Needs Review"

Testing

What testing have you done?

  • Ran these tests locally and confirmed they all pass. Time will tell for CI!


sut.inspection.inspect(after: 0.5) { view in
XCTAssertNotNil(try view.view(NearbyTransitView.self)
.find(text: "Error loading data"))
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This test was passing no matter what text was passed here. As it turns out, the error banner isn't actually a child of NearbyTransitView, so removed this test and added coverage to NearbyTransitPage & ErrorBanner tests.

@KaylaBrady KaylaBrady marked this pull request as ready for review September 3, 2025 13:26
@KaylaBrady KaylaBrady requested a review from a team as a code owner September 3, 2025 13:26
@KaylaBrady KaylaBrady added this pull request to the merge queue Sep 3, 2025
Merged via the queue into main with commit ab736fe Sep 3, 2025
7 checks passed
@KaylaBrady KaylaBrady deleted the kb-flaky-again branch September 3, 2025 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants