wordpress-mobile/WordPressAuthenticator-iOS

Check detecting 2FA code using `UIPasteboard` in iOS 16

selanthiraiyan opened this issue ยท 2 comments

There is a feature to detect 2FA code from the pasteboard and auto-populate it.

This feature uses UIPasteboard, and there have been recent changes to it in iOS 16.0

We should check the behaviour of the code and fix that if needed.

Hey @selanthiraiyan ๐Ÿ‘‹ I came to the Issues page for this very same reason and was happy to see someone else noticed this ๐Ÿ™Œ

I like how you took the pragmatic approach of skipping the failing test and opening an issue about this.

Without knowing about your work, I took a similar approach and marked the failure as expected ๐Ÿค“

Both approaches are legit. Let's see which one gets merged first.

Thanks for the ping, @mokagio

I didn't know about XCTExpectFailure. Looks like it is better to expect failure instead of skipping these tests. TIL. ๐Ÿ™‡

Please feel free to override my changes with your PR if my changes get merged first.