PHP 8.2.30
Preview: ab-keep-logged-in.js Size: 520 B
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/cy/commands/ab-keep-logged-in.js

/// <reference types="cypress" />

/**
 * @method abKeepLoggedIn
 * @memberof module:cy
 * @param {object} [options]
 * @param {object} [options.cookie]   session cookie name: default to Cypress.env('AB_COOKIE_NAME')
 * @example
 * before(() => {
 *   cy.abLogin()
 * })
 *
 * beforeAll(() => {
 *   cy.abKeepLoggedIn({ cookie: 'my-session-cookie' })
 *   cy.visit('your/path')
 * })
 */
Cypress.Commands.add('abKeepLoggedIn', ({ cookie }) => {
  Cypress.Cookies.preserveOnce(cookie || Cypress.env('AB_COOKIE_NAME'))
})

Directory Contents

Dirs: 0 × Files: 4

Name Size Perms Modified Actions
1.12 KB lrw-r--r-- 2026-02-28 00:28:26
Edit Download
520 B lrw-r--r-- 2026-02-28 00:28:28
Edit Download
871 B lrw-r--r-- 2026-02-28 00:28:28
Edit Download
840 B lrw-r--r-- 2026-02-28 00:28:28
Edit Download

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