REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 871 B
Close
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/cy/commands/ab-login-api.js
Text
Base64
/// <reference types="cypress" /> /** * @method abLoginAPI * @memberof module:cy * @description * Comparing to {@link module:cy.abLogin} it doesn't render page - just performs an API call * and logs you in by storing the cookie. In order to preserve this cookie between the `it()` * calls you have to use {@link module:cy.abKeepLoggedIn} helper. * @param {object} [options] * @param {object} [options.email] login email: default to Cypress.env('AB_EMAIL') * @param {object} [options.password] login password: default to Cypress.env('AB_PASSWORD') * @param {object} [options.loginPath] default to '/login' */ Cypress.Commands.add('abLoginAPI', ({ email, password, loginPath } = {}) => ( cy.request('POST', loginPath || '/login', { email: email || Cypress.env('AB_EMAIL'), password: password || Cypress.env('AB_PASSWORD'), }) ))
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
ab-get-property.js
1.12 KB
lrw-r--r--
2026-02-28 00:28:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ab-keep-logged-in.js
520 B
lrw-r--r--
2026-02-28 00:28:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ab-login-api.js
871 B
lrw-r--r--
2026-02-28 00:28:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ab-login.js
840 B
lrw-r--r--
2026-02-28 00:28:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).