Skip to content

Commit

Permalink
attempting to fix broken cypress test by waiting for page to load bef…
Browse files Browse the repository at this point in the history
…ore clearing w/ burnettk
  • Loading branch information
jasquat committed Nov 9, 2023
1 parent 2df4917 commit a32e235
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spiffworkflow-frontend/cypress/e2e/process_groups.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ describe('process-groups', () => {
cy.contains(`Process Group: ${groupDisplayName}`);

cy.getBySel('edit-process-group-button').click();
cy.get('input[name=display_name]').clear();
cy.get('input[name=display_name]').type(newGroupDisplayName);
cy.wait(1000); // wait for the page to load before clearing the field
cy.getBySel('process-group-display-name-input').clear();
cy.getBySel('process-group-display-name-input').type(newGroupDisplayName);
cy.contains('Submit').click();
cy.contains(`Process Group: ${newGroupDisplayName}`);

Expand Down
1 change: 1 addition & 0 deletions spiffworkflow-frontend/src/components/ProcessGroupForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export default function ProcessGroupForm({
const textInputs = [
<TextInput
id="process-group-display-name"
data-qa="process-group-display-name-input"
name="display_name"
invalidText="Display Name is required."
invalid={displayNameInvalid}
Expand Down

0 comments on commit a32e235

Please sign in to comment.