PHP 8.2.30
Preview: cypress.doc.md Size: 947 B
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/cy/cypress.doc.md

### Cypress helpers

This module gathers helpers which can be used when you E2E test your AdminJS dashboard with
{@link https://www.cypress.io/} as we do.

### Usage

First, you have to import helpers to your cypress project. You can do this in:

`/support/index.js` or `/support/commands.js`
```javascript
require('adminjs/cy')
```

and now you can use our helpers

```javascript
/// <reference types="cypress" />
/// <reference types="adminjs/cy" />

context('resources/Company/actions/new', () => {
  before(() => {
    cy.abLoginAPI({ password: Cypress.env('ADMIN_PASSWORD'), email: Cypress.env('ADMIN_EMAIL') })
  })

  beforeEach(() => {
    cy.abKeepLoggedIn({ cookie: Cypress.env('COOKIE_NAME') })
    cy.visit('resources/Company/actions/new')
  })

  //...
})
```

### What we have

Cypress helpers project is currently in the WIP/POC phase, that is why there are not much helpers
here. But you can expect that gradually we will add more.

Directory Contents

Dirs: 1 × Files: 4

Name Size Perms Modified Actions
commands DIR
- drwxr-xr-x 2026-02-28 00:28:28
Edit Download
947 B lrw-r--r-- 2026-02-28 00:31:56
Edit Download
509 B lrw-r--r-- 2026-02-28 00:32:22
Edit Download
197 B lrw-r--r-- 2026-02-28 00:31:40
Edit Download
12.85 KB lrw-r--r-- 2026-02-28 00:31:56
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).