wire-ios
wire-ios copied to clipboard
chore: Tests compatible to iPad - WPB-20998
|
|
Summary
Briefly describe what this PR does.
This PR is about the critical flow tests making it compatible to iPad so that we can run on nightly if all green for ipad as well. To Achieve this we needed to put some conditions, elements where flow is different from iPhone on iPad.
@discardableResult
func onPad(_ block: (() -> Void)? = nil) -> Bool {
guard UIDevice.current.userInterfaceIdiom == .pad else { return false }
block?()
return true
}
Testing
Describe how to verify the changes locally. Attach screenshots or reports if relevant.
Note: 1 Test is still pending to be fixed due to issue https://wearezeta.atlassian.net/browse/WPB-21169
Additional Information
any more info, add here.