attempting to fix broken cypress test by waiting for page to load before clearing w/ burnettk

This commit is contained in:
jasquat 2023-11-09 14:59:35 -05:00
parent 45bcba172d
commit 586cb8893d
2 changed files with 4 additions and 2 deletions

View File

@ -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}`);

View File

@ -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}