Fix[InvoiceInBasicData]: fixed basic data e2e #1361
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix-front#1361
Loading…
Reference in New Issue
No description provided.
Delete Branch "Fix-InvoiceInBasicDataE2E"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -3,3 +3,2 @@
const formInputs = '.q-form > .q-card input';
const firstFormSelect = '.q-card > .vn-row:nth-child(1) > .q-select';
const documentBtns = '[data-cy="dms-buttons"] button';
const documentBtns = '[data-cy="dms-buttons"]';
le sigue un child, correcto?
Porque no lo haces función?
@ -12,3 +11,3 @@
it('should edit the provideer and supplier ref', () => {
cy.selectOption(firstFormSelect, 'Bros');
cy.selectOption('[data-cy="Undeductible VAT_select"]', '4751000000')
podemos hacer el evitar este selectOption? en favor de una "funcion/logica" manual?
@ -29,3 +25,4 @@
cy.get(`${documentBtns} > :nth-child(2)`).click();
cy.get(dialogInputs).eq(0).type(`{selectall}${firtsInput}`);
cy.get('textarea').type(`{selectall}${secondInput}`);
cy.get('[data-cy="FormModelPopup_save"]').click();
Lo pongo como comentario, pero ya que estamos, podemos quitar el cy.get(data-cy) y usar cy.dataCy