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

☠️ Tapping on the notification stops the UITests execution ☠️ #29

Open
Ricowere opened this issue Feb 3, 2022 · 0 comments
Open

Comments

@Ricowere
Copy link

Ricowere commented Feb 3, 2022

Hello maintainers!

I'm super excited about this library, it's a great work!

We were giving it a try on our project but unfortunately we have discovered when the test taps on the notification, the testing session automatically halts given the simulator is triggering a new application launch.

How to test it? (testing the tests)

  1. Include tearDown method on the unit test.
  2. Either check console or follow the lead using breakpoints.
///  pseudo
app.waitForTapOnNotification(timeout: 5)

/// This wait won't never been satisfied given tearDown is called due to the application halt.
XCTAssertTrue(app.wait(for: .runningForeground, timeout: 10))

You will check the tearDown gets executed right after tapping the notification, given the simulator is triggering a new PID for the app.

Could you confirm you can reproduce on your side? I'd be awesome to get back from your side and tell me that I'm doing something wrongly.

Cheers!

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

No branches or pull requests

1 participant