Try to fix intermittent test failure (#4190)
This commit is contained in:
parent
d98e240ab1
commit
69344da121
1 changed files with 4 additions and 2 deletions
|
@ -8,8 +8,10 @@ export default class KeyValueInput {
|
||||||
}
|
}
|
||||||
|
|
||||||
fillKeyValue({ key, value }: KeyValueType, index = 0) {
|
fillKeyValue({ key, value }: KeyValueType, index = 0) {
|
||||||
cy.findByTestId(`${this.name}[${index}].key`).clear().type(key);
|
cy.findByTestId(`${this.name}[${index}].key`).clear();
|
||||||
cy.findByTestId(`${this.name}[${index}].value`).clear().type(value);
|
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();
|
cy.findByTestId(`${this.name}-add-row`).click();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue