Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

device.launchApp with permission doesn't work in iOS 16.4 #4476

Open
1 of 2 tasks
frankA10019 opened this issue Apr 30, 2024 · 1 comment
Open
1 of 2 tasks

device.launchApp with permission doesn't work in iOS 16.4 #4476

frankA10019 opened this issue Apr 30, 2024 · 1 comment

Comments

@frankA10019
Copy link

frankA10019 commented Apr 30, 2024

What happened?

device.launchApp with permission doesn't work, it still has pop up after app launch and test stuck until timeout.
My applesimutils version is 0.9.10.

Below is the message when test stuck:
detox[32742] i The app is busy with the following tasks:
• Run loop "Main Run Loop" is awake.
• There are 1 work items pending on the dispatch queue: "Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)".

If I tap allow button manual. The test run well and success completed. Please help.

What was the expected behaviour?

launch app with no permission dialogue. the test start run.

Was it tested on latest Detox?

  • I have tested this issue on the latest Detox release and it still reproduces.

Did your test throw out a timeout?

Help us reproduce this issue!

describe('Employee', () => {
beforeAll(async () => {
device.launchApp({ permissions: { notifications: 'YES' } });
});
// beforeEach(async () => {
// await device.reloadReactNative();
// });
it('should display welcome message', async () => {
await waitFor(element(by.id('forgetPassword')))
.toHaveText('忘記密碼')
.withTimeout(2000);
});
});

In what environment did this happen?

Detox version: 20.11.1
React Native version: 0.72.4
Has Fabric (React Native's new rendering system) enabled: (yes/no)
Node version:
Device model: iPhone 14 simulator
iOS version: 16.4
macOS version: sonoma 14.1.1(23B81)
Xcode version: 15.2.0
Test-runner (select one): jest / other

Detox logs

Detox logs
detox[32742] i The app is busy with the following tasks:
• Run loop "Main Run Loop" is awake.
• There are 1 work items pending on the dispatch queue: "Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)".

Device logs

Device logs
paste your device.log here!

More data, please!

No response

@frankA10019 frankA10019 changed the title device.launchApp with permission doesn't work device.launchApp with permission doesn't work in iOS 16.4 Apr 30, 2024
@Daha62
Copy link

Daha62 commented May 20, 2024

beforeAll(async () => {
await device.launchApp({
permissions: {notifications: 'YES'}
})
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants