0
1
Fork 0

Improve address details update test

This commit is contained in:
William Buezas 2024-11-06 19:41:37 -03:00
parent ab7c1d1fe0
commit dff5820ed4
1 changed files with 5 additions and 0 deletions

View File

@ -65,6 +65,11 @@ describe('PendingOrders', () => {
.last()
.find('[data-testid="editAddressBtn"]')
.click();
// Clear form data
cy.get('form input').each(input => {
cy.wrap(input).clear(); // Limpia el valor de cada campo de entrada
});
// Fill form with new data
const addressFormData = getRandomAddressFormData();
fillFormWithData(addressFormData);
cy.dataCy('formDefaultSaveButton').should('not.be.disabled');