This commit is contained in:
parent
248288fd89
commit
cb1f717fe0
|
@ -10,7 +10,7 @@ describe('InvoiceOut manual invoice', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should create an invoice from a ticket and go to that invoice', () => {
|
it('should create an invoice from a ticket and go to that invoice', () => {
|
||||||
cy.get('[label="Customer ID"]').type('1101{enter}');
|
cy.searchByLabel('Customer ID', '1101');
|
||||||
cy.get(
|
cy.get(
|
||||||
'[data-q-vs-anchor=""] > :nth-child(1) > .q-checkbox > .q-checkbox__inner'
|
'[data-q-vs-anchor=""] > :nth-child(1) > .q-checkbox > .q-checkbox__inner'
|
||||||
).click();
|
).click();
|
||||||
|
|
|
@ -15,7 +15,7 @@ describe('InvoiceOut summary', () => {
|
||||||
|
|
||||||
it('should generate the invoice PDF', () => {
|
it('should generate the invoice PDF', () => {
|
||||||
cy.get('#searchbar input').type('T1111111{enter}');
|
cy.get('#searchbar input').type('T1111111{enter}');
|
||||||
cy.get('[data-cy="descriptor-more-opts"] > .q-btn__content > .q-icon').click();
|
cy.dataCy('descriptor-more-opts').click();
|
||||||
cy.get('.q-menu > .q-list > :nth-child(6)').click();
|
cy.get('.q-menu > .q-list > :nth-child(6)').click();
|
||||||
cy.dataCy('VnConfirm_confirm').click();
|
cy.dataCy('VnConfirm_confirm').click();
|
||||||
cy.get(notification).should(
|
cy.get(notification).should(
|
||||||
|
@ -26,7 +26,7 @@ describe('InvoiceOut summary', () => {
|
||||||
|
|
||||||
it('should refund the invoice ', () => {
|
it('should refund the invoice ', () => {
|
||||||
cy.get('#searchbar input').type('T1111111{enter}');
|
cy.get('#searchbar input').type('T1111111{enter}');
|
||||||
cy.get('[data-cy="descriptor-more-opts"] > .q-btn__content > .q-icon').click();
|
cy.get('descriptor-more-opts').click();
|
||||||
cy.get('.q-menu > .q-list > :nth-child(7)').click();
|
cy.get('.q-menu > .q-list > :nth-child(7)').click();
|
||||||
cy.get('#q-portal--menu--3 > .q-menu > .q-list > :nth-child(2)').click();
|
cy.get('#q-portal--menu--3 > .q-menu > .q-list > :nth-child(2)').click();
|
||||||
cy.get(notification).should(
|
cy.get(notification).should(
|
||||||
|
@ -37,7 +37,7 @@ describe('InvoiceOut summary', () => {
|
||||||
|
|
||||||
it('should delete an invoice ', () => {
|
it('should delete an invoice ', () => {
|
||||||
cy.get('#searchbar input').type('T2222222{enter}');
|
cy.get('#searchbar input').type('T2222222{enter}');
|
||||||
cy.get('[data-cy="descriptor-more-opts"] > .q-btn__content > .q-icon').click();
|
cy.dataCy('descriptor-more-opts').click();
|
||||||
cy.get('.q-menu > .q-list > :nth-child(4)').click();
|
cy.get('.q-menu > .q-list > :nth-child(4)').click();
|
||||||
cy.dataCy('VnConfirm_confirm').click();
|
cy.dataCy('VnConfirm_confirm').click();
|
||||||
cy.get(notification).should('contains.text', 'InvoiceOut deleted');
|
cy.get(notification).should('contains.text', 'InvoiceOut deleted');
|
||||||
|
@ -45,7 +45,7 @@ describe('InvoiceOut summary', () => {
|
||||||
|
|
||||||
it('should transfer the invoice ', () => {
|
it('should transfer the invoice ', () => {
|
||||||
cy.get('#searchbar input').type('T1111111{enter}');
|
cy.get('#searchbar input').type('T1111111{enter}');
|
||||||
cy.get('[data-cy="descriptor-more-opts"] > .q-btn__content > .q-icon').click();
|
cy.dataCy('descriptor-more-opts').click();
|
||||||
cy.get('.q-menu > .q-list > :nth-child(1)').click();
|
cy.get('.q-menu > .q-list > :nth-child(1)').click();
|
||||||
cy.fillInForm(transferInvoice);
|
cy.fillInForm(transferInvoice);
|
||||||
cy.get('.q-mt-lg > .q-btn').click();
|
cy.get('.q-mt-lg > .q-btn').click();
|
||||||
|
|
Loading…
Reference in New Issue