Mussel icon indicating copy to clipboard operation
Mussel copied to clipboard

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

Open Ricowere opened this issue 3 years ago • 0 comments

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!

Ricowere avatar Feb 03 '22 13:02 Ricowere