Protected ReadonlygamePrivate ReadonlyoriginalThe original setModeInternal function, stored for use in setMode.
Private ReadonlypromptsAn array of prompts with associated callbacks.
Static OptionalrunA Timeout containing an interval used to check prompts.
Is unused during test execution itself, as pre- and post-test hooks automatically set and clear it to avoid deadlocks.
Queue a callback to be executed on the next UI mode change. This can be used to (among other things) simulate inputs or run callbacks mid-phase.
The name of the Phase during which the callback will be executed
The UiMode to wait for
The callback function to execute
OptionalexpireFn: () => booleanOptional function to determine if the prompt has expired
If true, restricts the prompt to only activate when the current AwaitableUiHandler is waiting for input; default false
PrivatedoWrapper function to add coloration to phase logs.
Arguments to original logging function
PrivatedoMethod to perform prompt handling every so often.
Privateset
Helper class to handle executing prompts upon UI mode changes.
Todo
Remove once a UI overhaul occurs - using this correctly effectively requires one to know the entire phase heiarchy