LogoRobo.js
Packages@robojs/mock

expectAction()

Function: expectAction()

function expectAction(sessionId, options): Promise<RecordedAction>

Wait for an action and assert it matches expected data

This helper:

  1. Waits for an action of the specified type
  2. Records the assertion for UI persistence
  3. Returns the matching action

Parameters

ParameterType
sessionIdstring
optionsExpectActionOptions

Returns

Promise<RecordedAction>

On this page