From 4a01c9e9e2650aedf67081889d1a70ac119c516b Mon Sep 17 00:00:00 2001 From: withanage Date: Mon, 11 Nov 2024 19:43:59 +0100 Subject: [PATCH] Cypress tests for invitation based user creation pkp/pkp-lib#9658 --- .../tests/data/10-ApplicationSetup/40-CreateUsers.cy.js | 9 +-------- lib/pkp | 2 +- 2 files changed, 2 insertions(+), 9 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(); }); }) diff --git a/lib/pkp b/lib/pkp index bf64b629ef0..72087f4dabb 160000 --- a/lib/pkp +++ b/lib/pkp @@ -1 +1 @@ -Subproject commit bf64b629ef06e515d4a1177142210d3cafc96681 +Subproject commit 72087f4dabb1e80629b33639e3568501fd309fe2