From 5f652ec22b7260f7ac2c75b81a378c9626fb2986 Mon Sep 17 00:00:00 2001 From: withanage Date: Mon, 11 Nov 2024 19:09:06 +0100 Subject: [PATCH] Cypress tests for invitation based user creation pkp/pkp-lib#9658 --- .../tests/data/10-ApplicationSetup/40-CreateUsers.cy.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/cypress/tests/data/10-ApplicationSetup/40-CreateUsers.cy.js b/cypress/tests/data/10-ApplicationSetup/40-CreateUsers.cy.js index 6220e9a32b9..51d1cc5c7b7 100644 --- a/cypress/tests/data/10-ApplicationSetup/40-CreateUsers.cy.js +++ b/cypress/tests/data/10-ApplicationSetup/40-CreateUsers.cy.js @@ -126,15 +126,8 @@ describe('Data suite tests', function() { } ]; users.forEach(user => { - cy.createUser(user); + cy.createUserByInvitation(user); }); cy.logout(); - var user = users[0]; - if (!('email' in user)) user.email = user.username + '@mailinator.com'; - if (!('password' in user)) user.password = user.username + user.username; - - cy.login(user.username); - cy.resetPassword(user.username, user.password); - cy.logout(); }); })