Function
Description
createUserWithUserObject(user, roles, args, options) → Chainable<any>
Create a user via Drush using a JSON user object. See qaUsers.json for the definition. TODO: cy.exec is failing to capture the result of user:create, which should provide the UID. See issue: https://github.com/drush-ops/drush/issues/5660
debugLog(message, args) → Chainable<>
Print a debug message to the Cypress command log.
deleteNodeViaUiWithNid(nid) → Chainable<any>
Delete node via UI given a nid.
deleteNodeWithNid(nid) → Chainable<string>
Delete nod via Drush with nid.
deleteUserWithEmail(email, options) → Chainable<string>
Delete user via Drush given an account email.
deleteUserWithUid(uid, options) → Chainable<string>
Delete user via Drush given a Drupal UID.
deleteUserWithUserName(userName, args, options) → Chainable<string>
Delete user via Drush given a Drupal username.
execDrush(cmd, args, options) → Chainable<string>
Run drush command locally or remotely depending on the environment. Generally you'll use this function and let it figure out how to execute Drush (locally, remotely, native OS, inside container, etc.).
execPantheonDrush(cmd) → Chainable<string>
Run a Pantheon Drush command via SSH. Called by execDrush(). As of 2023-07-01, various Terminus commands, such as "terminus remote:drush", never return. Using ssh tunnel instead.
execViaSsh(__namedParameters) → Chainable<string>
Exec a command via SSH.
expectEmail(mailto, subject) → Chainable<void>
Assert that email has been received to the given address and subject. It is done with one of mail capture software which is configured in
getByLabel(label) → Chainable<HTMLElement>
Get selector by label.
getDrupalConfiguration(objectName, key) → Chainable<any>
Get Drupal configuration via Drush (cget).
getIframeBodyWithId() → Chainable<Subject>
Get Iframe body given an id. Get the iframe > document > body and retry until the body element is not empty
getMid() → Chainable<string>
Extract the media id that was added by automated_testing_kit_preprocess_image().
getNid() → Chainable<string>
Extract the nid placed in the body class by this hook: automated_testing_kit.module:automated_testing_kit_preprocess_html().
getUidWithEmail(email) → Chainable<number>
Return the UID of a user given an email.
getUsernameWithEmail(email) → Chainable<string>
Return the Username of a user given an email.
inputCKEditor(text) → Chainable<void>
Input text into editor.
logInViaForm(account) → Chainable<void>
Log in via the login form. Test this once then switch to faster mechanisms.
logInViaUli(uid) → Chainable<void>
Log in with user:login given a user id.
logOutViaUi() → Chainable<void>
Log out user via the UI.
save() → Chainable<void>
Save entity.
setDrupalConfiguration(objectName, key, value) → Chainable<void>
Set Drupal configuration via Drush (cset).
trace(message, args) → void
Print a trace message to the Cypress command log.