wire-ios icon indicating copy to clipboard operation
wire-ios copied to clipboard

chore: Tests compatible to iPad - WPB-20998

Open findms opened this issue 1 month ago • 1 comments

TaskWPB-20998 [iOS/QA] XCTest with iPad compatibility


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.

image

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.

findms avatar Oct 16 '25 13:10 findms