beginTestAfterPending method
Ends app-launch navigation and starts the authored test journey.
Both lifecycle adapters use this transition so queued launch routes are recorded before the current screen becomes the journey's first screen.
Implementation
Future<void> beginTestAfterPending(String? Function() currentScreen) async {
await flushPending();
beginTest(currentScreen());
}