Fixes a test flake where we expect a breading for foregrounding the app.
Design
The test would flake heavily because it wasn't giving enough time for the foreground notification to arrive and be processed. This change introduces a new command where we can pause the processing of commands for a set period, giving the notifier time to receive and process the notification.
Testing
Covered by CI and I've run it >20 times locally without failing once.
Goal
Fixes a test flake where we expect a breading for foregrounding the app.
Design
The test would flake heavily because it wasn't giving enough time for the foreground notification to arrive and be processed. This change introduces a new command where we can pause the processing of commands for a set period, giving the notifier time to receive and process the notification.
Testing
Covered by CI and I've run it >20 times locally without failing once.