REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.12 KB
Close
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/cy/commands/ab-get-property.js
Text
Base64
/// <reference types="cypress" /> /** * @method abGetProperty * @description * ### Usage * * ```javascript * // your property in AdminJS * resourceOptions: { * properties: { * isAdmin: {...} * } * } * ``` * * ```javascript * // accessing it in test. * cy.abGetProperty('isAdmin', 'input[type="checkbox"]') * ``` * * `abGetProperty` returns the wrapper Section for a given property. You can pass inner element * which allows you to select `input`, `label`, `options`, etc. inside it. * * @memberof module:cy * @param {string} path path of the property * @param {string} [selector=null] * @example * it('shows disabled checkBox', () => { * cy.abGetProperty('isAdmin', 'input[type="checkbox"]') * .should('be.disabled') * .should('not.be.checked') * * cy.abGetProperty('isAdmin', 'label') * .click() * .should('not.be.checked') * }) */ Cypress.Commands.add('abGetProperty', (path, selector = null) => { let propertySelector = `[data-testid$="-${path}"]` if (selector) { propertySelector = [propertySelector, selector].join(' ') } return cy.get(propertySelector) })
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).