Xcode UI Testing passwordless authentication

后端 未结 3 1618
忘掉有多难
忘掉有多难 2021-01-26 11:48

How should I test my iPhone app\'s passwordless authentication?

To sign up or log in, UI Testing in Xcode needs the random code that gets emailed to me.

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-26 12:16

    1. Add your email account to the Mail app. Make sure that Push notifications are enabled.

    2. Set the notifications style for Mail to the Alerts style.

    3. In your UI Tests, add the UI interruption monitor to listen for the alert from Mail, which contains the random two-factor authentication code.

提交回复
热议问题