Try to fix intermittent test failure (#4190)

This commit is contained in:
Stan Silvert 2023-01-13 07:06:50 -05:00 committed by GitHub
parent d98e240ab1
commit 69344da121
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,8 +8,10 @@ export default class KeyValueInput {
}
fillKeyValue({ key, value }: KeyValueType, index = 0) {
cy.findByTestId(`${this.name}[${index}].key`).clear().type(key);
cy.findByTestId(`${this.name}[${index}].value`).clear().type(value);
cy.findByTestId(`${this.name}[${index}].key`).clear();
cy.findByTestId(`${this.name}[${index}].key`).type(key);
cy.findByTestId(`${this.name}[${index}].value`).clear();
cy.findByTestId(`${this.name}[${index}].value`).type(value);
cy.findByTestId(`${this.name}-add-row`).click();
return this;
}