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

Merge remote-tracking branch 'origin/main'

parents 0dfdc035 f3dc6cbb
No related branches found
No related tags found
No related merge requests found
Pipeline #1226734 passed
......@@ -38,6 +38,16 @@ Cypress.Commands.add('createAndLogin', (username, role) => {
})
})
Cypress.Commands.add('createAndLoginDrush', (username, role) => {
cy.rememberLatestTaxonomyTerm();
let password = 'random-password-' + Cypress._.random(0, 1e6);
cy.drush('user:create ' + username + ' --password=' + password);
cy.drush('user:role:add ' + role + ' ' + username);
cy.drush('uli --uri ' + Cypress.config('baseUrl') + ' --name ' + username).then((result) => {
cy.visit(result.stdout);
})
})
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