Skip to content

Commit

Permalink
Cypress tests for invitation based user creation pkp/pkp-lib#9658
Browse files Browse the repository at this point in the history
  • Loading branch information
withanage committed Nov 11, 2024
1 parent 74dad28 commit d864879
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions cypress/tests/data/10-ApplicationSetup/40-CreateUsers.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
})

0 comments on commit d864879

Please sign in to comment.