Skip to content

fix: ci failure tests - WPB-23003#4261

Open
findms wants to merge 7 commits intorelease/cycle-4.15from
fix/ci-failure-tests
Open

fix: ci failure tests - WPB-23003#4261
findms wants to merge 7 commits intorelease/cycle-4.15from
fix/ci-failure-tests

Conversation

@findms
Copy link
Contributor

@findms findms commented Feb 4, 2026

Issue

Flaky tests observed in v4.15.

Changes:

  • Wait to perform action when sync is in progress
  • timeout increased for a test where splash screen shows for long period of time and test fail due to that
  • branch name missing in info on summary - added

Testing

Describe how to test.

ran locally - works fine
image


Checklist

  • Title contains a reference JIRA issue number like [WPB-XXX].
  • Description is filled and free of optional paragraphs.
  • Adds/updates automated tests.

UI accessibility checklist

If your PR includes UI changes, please utilize this checklist:

  • Make sure you use the API for UI elements that support large fonts.
  • All colors are taken from WireDesign.ColorTheme or constructed using WireDesign.BaseColorPalette.
  • New UI elements have Accessibility strings for VoiceOver.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2026

Test Results

2 133 tests   2 105 ✅  3m 17s ⏱️
  364 suites     28 💤
    3 files        0 ❌

Results for commit b31c986.

♻️ This comment has been updated with latest results.

Summary: workflow run #21751336619
Allure report (download zip): html-report-27636-fix_ci-failure-tests

@findms findms changed the title Fix/ci failure tests fix: ci failure tests - WPB-23003 Feb 4, 2026
@findms findms requested review from David-Henner and netbe February 4, 2026 09:19
Copy link
Collaborator

@netbe netbe left a comment

Choose a reason for hiding this comment

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

the changes are ok, but please look at the suggestions, this could hide bigger issues

else {
XCTFail("Passcode SecureTextField did not appear")
throw XCTSkip("Passcode field not available")
// Sometimes the splashscreen stays visible for unexpectedly long.
Copy link
Collaborator

Choose a reason for hiding this comment

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

suggestion: it's good as a workaround, but to me we should investigate what's going on:

  • when does this happen?
  • and extract the app logs when this happens

it could hide a bigger issue

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Completely agree to avoid any workarounds but currently the 2 tests flaky behaviour is weird on Ci not on local:

  • For the test where it fails to open user profile - it simply closes the app when app is in sync doesn;t wait for the next page element which is ~15 seconds
openinguserprofile.mp4
  • Foe the seconds issue: with app lock with passcode - coming from background to foreground, sometime it takes loner on splashscreen so increase the time out and also observed that, without performing tap() if we directly typeText() it works as fallback in case of secureText is not able to locate.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Found it.. the tap is actually being performed not on the exact button.
image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Locally I fail to replicate. This same function is being used few places but all works fine except one test.


if userAccountButton.waitAndTap(timeout: 5.0) {
return try UserProfilePage()
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

suggestion: it would be interesting to know why it's not tappable, because the issue could be somewhere else

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed this fallback as not needed.

Copy link
Contributor

@David-Henner David-Henner left a comment

Choose a reason for hiding this comment

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

Maybe there's another issue somewhere ? I don't feel comfortable working around it unless we're sure there's not something broken

@findms findms requested a review from David-Henner February 6, 2026 12:28
@findms
Copy link
Contributor Author

findms commented Feb 6, 2026

Maybe there's another issue somewhere ? I don't feel comfortable working around it unless we're sure there's not something broken

hey @David-Henner I have revert the fallbacks, but found a potential reason when app is in sync mode fails to perform tap().

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 6, 2026

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