Prepares the UI test environment by mocking global objects and methods.
Sets up a mock document, initializes global application state, and stubs required methods for testing.
Parameters
globalAA: any
The global associative array (application state).
documentProps: any = {}
Optional properties to override or add to the mock document.
Prepares the UI test environment by mocking global objects and methods. Sets up a mock document, initializes global application state, and stubs required methods for testing.