---
title: "all"
description: "This command is supposed to work similar to Promise.all."
url: https://developers.dhis2.org/docs/cli/cypress/commands/all
source: https://github.com/dhis2/cli-utils-cypress/tree/master/docs/commands/all.md
---

# all

This command is supposed to work similar to `Promise.all`.
The main difference is then `Promise.all` expects promises while `cy.all`
expects functions that return a `cy.` chain.

## Example

```js
cy.all(
    () => cy.get('@value'),
    () => cy.get('.className')
).then(([value, $element]) => {
    // ...
})
```

## API

### Arguments

-   **[...Function]**

### Return

Type: void
Chaining other cypress commands after this command is not supported.
