Skip to content

Commit

Permalink
Update the createGroup command to use <enter> rather than click (#367) (
Browse files Browse the repository at this point in the history
#368)

(cherry picked from commit 4c2232f)

Co-authored-by: Henderson Hummel <[email protected]>
  • Loading branch information
patchback[bot] and Henderson Hummel authored Apr 22, 2021
1 parent 9b2d897 commit 819b68e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,8 @@ Cypress.Commands.add('createGroup', {}, (name) => {

cy.contains('Create').click();

cy.contains('div', 'Name *').findnear('input').first().type(name);

cy.server();
cy.route('POST', Cypress.env('prefix') + '_ui/v1/groups/').as('createGroup');
cy.contains('[role=dialog] button', 'Create').click();
cy.contains('div', 'Name *').findnear('input').first().type(`${name}{enter}`);
cy.wait('@createGroup');
});

Expand Down

0 comments on commit 819b68e

Please sign in to comment.