Skip to content

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

Description

@Ricowere

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!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions