-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(cy): make dispatch available as child command
When used as a child command expects an object to be yielded and merges it into the payload: `cy.wrap({ id: 123 }).dispatch(SOME_ACTION, { value: 'Hello' })` will dispatch `SOME_ACTION` with a payload of `{ id: 123, value: \'Hello\'}`. If null is yielded the action won't be dispatched. This is useful for cleanup commands like `deleteCollective`. Signed-off-by: Max <[email protected]>
- Loading branch information
1 parent
9d54f8b
commit 19c29cc
Showing
1 changed file
with
41 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters