diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cab1afe67457e9e6148da058c89da86f9cdfe2f1..252584ac6c9895806fa9680c1f803edcef1d3992 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,6 @@ 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 diff --git a/commands.js b/commands.js index d914d983e258aacd88d858bf4e37eef061722777..4a4a186f4b3adb21cd40a50d02913239829468ca 100644 --- a/commands.js +++ b/commands.js @@ -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();