From 6e5e7b2d66ca81131fe0639c3a8eab5303f53161 Mon Sep 17 00:00:00 2001 From: Jonas Raoni Soares da Silva Date: Sun, 26 Mar 2023 20:51:36 +0300 Subject: [PATCH] pkp/pkp-lib#8700 Fixed flaky test --- cypress/support/commands.js | 1 + 1 file changed, 1 insertion(+) diff --git a/cypress/support/commands.js b/cypress/support/commands.js index cfc33e914a3..f502784818c 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -315,6 +315,7 @@ Cypress.Commands.add('assignParticipant', (role, name, recommendOnly) => { cy.get('select[name=filterUserGroupId').select(role); cy.get('input[id^="namegrid-users-userselect-userselectgrid-"]').type(names[1], {delay: 0}); cy.get('form[id="searchUserFilter-grid-users-userselect-userselectgrid"]').find('button[id^="submitFormButton-"]').click(); + cy.waitJQuery(); cy.get('input[name="userId"]').click(); // Assume only one user results from the search. if (recommendOnly) cy.get('input[name="recommendOnly"]').click(); cy.flushNotifications();