atk_commands.js
Function
Description
createUserWithUserObject(user, roles, args, options)
Create user given user object using Drush. Object is in JSON.
deleteCurrentNodeViaUi(page)
Delete currently opened node.
deleteNodeViaUiWithNid(nid)
Delete node via UI given a nid.
deleteUserWithEmail(email, options)
Delete user via Drush given an account email.
deleteUserWithUid(uid, options)
Delete user via Drush given a Drupal UID.
deleteUserWithUserName(userName, args, options)
Delete user via Drush given a Drupal username.
execDrush(cmd,args, options, failOnNonZeroExit)
Run drush command locally or remotely depending on the environment.
execPantheonDrush(cmd)
Run a Pantheon Drush command via Terminus.
getByLabel(label)
Get selector by label.
getDrushAlias()
Returns Drush alias per environment (in native OS, in native OS+container or in container).
getIframeBodyWithId(iframeId)
Return the body of an iframe given an ID.
getUidWithEmail(email)
Return the UID of a user given an email.
getUsernameWithEmail(email)
Return the Username of a user given an email.
logInViaForm(account)
Given an account (username, password), log in using the form located at loginUrl.
logInViaForm(account)
Log in via the login form.
logInViaUli(uid)
Log in with user:login given a user id.
logOutViaUi()
Log out by visiting the url at logoutUrl.
setDrupalConfiguration(objectName, key, value)
Set Drupal configuration via Drush (cset).
atk_utilities.js
Function
Description
createRandomString(length)
Return string of characters from A-Za-z0-9.
createRandomUser()
Return a user object with random name, email, and password.
readYAML(filename)
Read data from a YAML file located in tests/data.