XCTest: Is it possible to test SplashScreen in UI Test automation

87 views Asked by At

I'm wondering if it is possible to test app's splash screen in UI Test automation.

My idea is to assert 1 UI element during splash screen presented, but sometimes it appear then disappear too fast, UI test just cannot catch it.

        // Launch the app for the first time
        startFreshApp()
        // Verify that splash screen is opened
        XCTAssert(onboardingPage.splashScreen.waitForExistence(timeout: 20))
0

There are 0 answers