Skip to content
Snippets Groups Projects
Commit 2f09084e authored by jurgenhaas's avatar jurgenhaas
Browse files

Upgrade to 14.1.0

Add new command "loginDrush"
parent 92e2d965
Branches main
Tags 14.1.0
No related merge requests found
Pipeline #1432427 passed
variables:
VERSION: ${CI_COMMIT_TAG}
CYPRESS_VERSION: 13.16.0
CYPRESS_VERSION: 14.1.0
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
......
......@@ -40,14 +40,18 @@ Cypress.Commands.add('createAndLogin', (username, role) => {
})
})
Cypress.Commands.add('createAndLoginDrush', (username, role) => {
let password = 'random-password-' + Cypress._.random(0, 1e6);
cy.createDrupalUser(username, password, role);
Cypress.Commands.add('loginDrush', (username) => {
cy.drush('uli --uri ' + Cypress.config('baseUrl') + ' --name ' + username).then((result) => {
cy.visit(result.stdout);
})
})
Cypress.Commands.add('createAndLoginDrush', (username, role) => {
let password = 'random-password-' + Cypress._.random(0, 1e6);
cy.createDrupalUser(username, password, role);
cy.loginDrush(username);
})
Cypress.Commands.add('deleteLogin', (username) => {
cy.drush('user:cancel --delete-content ' + username);
cy.deleteTestTaxonomyTerms();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment