-
Notifications
You must be signed in to change notification settings - Fork 25
fix: ci failure tests - WPB-23003 #4261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: release/cycle-4.15
Are you sure you want to change the base?
Changes from 3 commits
2e5d3bf
e1e887b
ebb94a8
955d0e3
ccf4526
8f5e71a
b31c986
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,13 +53,12 @@ class OptionsOnSettingsPage: PageModel { | |
| let springboard = XCUIApplication(bundleIdentifier: "com.apple.springboard") | ||
| let passcodeField = springboard.secureTextFields["Passcode field"].firstMatch | ||
|
|
||
| guard passcodeField.waitAndTap() | ||
| else { | ||
| XCTFail("Passcode SecureTextField did not appear") | ||
| throw XCTSkip("Passcode field not available") | ||
| // Sometimes the splashscreen stays visible for unexpectedly long. | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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:
it could hide a bigger issue
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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:
openinguserprofile.mp4
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 passcodeField.waitAndTap(timeout: 8.0) { | ||
| try passcodeField.tapIfKeyboardNotFocused().typeText(pass) | ||
| } else { | ||
| passcodeField.typeText(pass) | ||
| } | ||
| try passcodeField.tapIfKeyboardNotFocused().typeText(pass) | ||
|
|
||
| let doneButton = springboard.keyboards.buttons["Done"].firstMatch | ||
| if doneButton.waitAndTap() { | ||
| // Tapped successfully | ||
|
|
||

There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.