Skip to content

Commit

Permalink
pkp#8700 Give Cypress a chance to retry
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasraoni committed Feb 28, 2023
1 parent ec81829 commit e24b620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ Cypress.Commands.add('createUser', user => {
if (!('password' in user)) user.password = user.username + user.username;
if (!('password2' in user)) user.password2 = user.username + user.username;
if (!('roles' in user)) user.roles = [];
cy.get('div[id=userGridContainer] a:contains("Add User")').click();
cy.get('div[id=userGridContainer] a:contains("Add User")', {timeout: 10_000}).should('be.visible').click();
cy.wait(2000); // Avoid occasional glitches with given name field
cy.get('input[id^="givenName-en_US"]').type(user.givenName, {delay: 0});
cy.get('input[id^="familyName-en_US"]').type(user.familyName, {delay: 0});
Expand Down

0 comments on commit e24b620

Please sign in to comment.