Packages@robojs/mock
expectAction()
Function: expectAction()
function expectAction(sessionId, options): Promise<RecordedAction>Wait for an action and assert it matches expected data
This helper:
- Waits for an action of the specified type
- Records the assertion for UI persistence
- Returns the matching action
Parameters
| Parameter | Type |
|---|---|
sessionId | string |
options | ExpectActionOptions |
Returns
Promise<RecordedAction>
