Skip to content

Commit

Permalink
pkp#8051 Fix race condition in tests when assigning participant
Browse files Browse the repository at this point in the history
  • Loading branch information
NateWr committed Dec 15, 2022
1 parent 85f17b4 commit 4cdcee0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,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('td:contains("' + name + '")').parents('tr').find('input[name="userId"]').check();
if (recommendOnly) cy.get('input[name="recommendOnly"]').click();
cy.flushNotifications();
Expand Down

0 comments on commit 4cdcee0

Please sign in to comment.