Kon*_*sky 5 ios react-native detox
使用以下命令从命令行启动应用
detox test --configuration ios.sim.debug
通过以下代码启动应用
await device.launchApp({ permissions: { location: 'always', notifications: 'YES' } })
进行登录流程,直到应用程序通过react-native-permissions询问位置
Permissions.request('location', { type: 'always' })
(事先检查以查看位置权限检查是否已设置为“ always”(在这种情况下,应用程序不询问))
看到系统警报弹出询问确认位置权限
排毒无法看到系统警报弹出,因此无法单击按钮来始终选择位置许可
应该能够在位置许可系统按钮中点击“始终允许”按钮。但是不能。
请参阅我的代码:github.com/wix/Detox/issues/1330。
before(async () => {
await device.launchApp({
permissions: {
location: 'always',
},
});
});
Run Code Online (Sandbox Code Playgroud)
在测试之前启动具有所需权限的应用程序
| 归档时间: |
|
| 查看次数: |
271 次 |
| 最近记录: |