hotfix: Ticket negative improve #1591

Merged
jsegarra merged 25 commits from hotfix_negative_available into master 2025-04-15 21:04:31 +00:00
1 changed files with 10 additions and 11 deletions
Showing only changes of commit bc75bd9dc0 - Show all commits

View File

@ -7,18 +7,17 @@ describe('OrderList', () => {
});
it('create order', () => {
cy.get('[data-cy="vnTableCreateBtn"]').click();
cy.get('[data-cy="Client_select"]').type('1101');
cy.get('.q-menu').contains('Bruce Wayne').click();
cy.get('[data-cy="Address_select"]').click();
cy.get(
'.q-menu > div> div.q-item:nth-child(1) >div.q-item__section--avatar > i',
).should('have.text', 'star');
cy.get('.q-menu > div> .q-item:nth-child(1)').click();
cy.dataCy('landedDate').find('input').type('06/01/2001');
cy.get('.q-card [data-cy="Agency_select"]').click();
cy.get('.q-menu > div> .q-item:nth-child(1)').click();
cy.dataCy('vnTableCreateBtn').click();
const data = {
Client: { val: 'salesPerson', type: 'select' },
Address: { val: 'salesPerson', type: 'select' },
Landed: { val: '01-01-2024', type: 'date' },
Agency: { val: 'Other agency', type: 'select' },
};
cy.intercept('GET', /\/api\/Orders\/\d/).as('orderSale');
cy.fillInForm(data);
cy.get('[data-cy="FormModelPopup_save"] > .q-btn__content > .block').click();
cy.wait('@orderSale');
cy.get('.q-item > .q-item__label.subtitle').then((text) => {