feat: refs #8599 added new test and translations
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
763d7679a1
commit
78552a49fa
|
@ -24,6 +24,7 @@ invoiceOut:
|
||||||
min: Min
|
min: Min
|
||||||
max: Max
|
max: Max
|
||||||
hasPdf: Has PDF
|
hasPdf: Has PDF
|
||||||
|
search: Contains
|
||||||
card:
|
card:
|
||||||
issued: Issued
|
issued: Issued
|
||||||
customerCard: Customer card
|
customerCard: Customer card
|
||||||
|
|
|
@ -24,6 +24,7 @@ invoiceOut:
|
||||||
min: Min
|
min: Min
|
||||||
max: Max
|
max: Max
|
||||||
hasPdf: Tiene PDF
|
hasPdf: Tiene PDF
|
||||||
|
search: Contiene
|
||||||
card:
|
card:
|
||||||
issued: Fecha emisión
|
issued: Fecha emisión
|
||||||
customerCard: Ficha del cliente
|
customerCard: Ficha del cliente
|
||||||
|
|
|
@ -9,6 +9,8 @@ describe('InvoiceOut list', () => {
|
||||||
'tbody > :nth-child(1) > :nth-child(1) > .q-checkbox > .q-checkbox__inner ';
|
'tbody > :nth-child(1) > :nth-child(1) > .q-checkbox > .q-checkbox__inner ';
|
||||||
const summaryPopupIcon = '.header > :nth-child(2) > .q-btn__content > .q-icon';
|
const summaryPopupIcon = '.header > :nth-child(2) > .q-btn__content > .q-icon';
|
||||||
const filterBtn = '.q-scrollarea__content > .q-btn--standard > .q-btn__content';
|
const filterBtn = '.q-scrollarea__content > .q-btn--standard > .q-btn__content';
|
||||||
|
const firstSummaryIcon =
|
||||||
|
':nth-child(1) > .text-right > [data-cy="tableAction-0"] > .q-btn__content > .q-icon';
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.viewport(1920, 1080);
|
cy.viewport(1920, 1080);
|
||||||
|
@ -17,7 +19,7 @@ describe('InvoiceOut list', () => {
|
||||||
cy.typeSearchbar('{enter}');
|
cy.typeSearchbar('{enter}');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should download one pdf', () => {
|
it('should download one pdf from the subtoolbar button', () => {
|
||||||
cy.get(firstRowCheckbox).click();
|
cy.get(firstRowCheckbox).click();
|
||||||
cy.dataCy('InvoiceOutDownloadPdfBtn').click();
|
cy.dataCy('InvoiceOutDownloadPdfBtn').click();
|
||||||
});
|
});
|
||||||
|
@ -27,6 +29,12 @@ describe('InvoiceOut list', () => {
|
||||||
cy.dataCy('InvoiceOutDownloadPdfBtn').click();
|
cy.dataCy('InvoiceOutDownloadPdfBtn').click();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('should open the invoice descriptor from table icon', () => {
|
||||||
|
cy.get(firstSummaryIcon).click();
|
||||||
|
cy.get('.cardSummary').should('be.visible');
|
||||||
|
cy.get('.summaryHeader > div').should('include.text', 'A1111111');
|
||||||
|
});
|
||||||
|
|
||||||
it('should open the client descriptor', () => {
|
it('should open the client descriptor', () => {
|
||||||
cy.get(firstRowDescriptor).click();
|
cy.get(firstRowDescriptor).click();
|
||||||
cy.get(summaryPopupIcon).click();
|
cy.get(summaryPopupIcon).click();
|
||||||
|
|
Loading…
Reference in New Issue