diff --git a/cypress/support/commands.js b/cypress/support/commands.js index 6ab99279f7b..5a15fafc9b1 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -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});