test: select all vnTable and remove skip/only
gitea/salix-front/pipeline/pr-master This commit looks good
Details
gitea/salix-front/pipeline/pr-master This commit looks good
Details
This commit is contained in:
parent
d13c953a90
commit
2395cd365d
|
@ -1,8 +1,6 @@
|
|||
/// <reference types="cypress" />
|
||||
describe('InvoiceOut list', () => {
|
||||
const serial = 'Española rapida';
|
||||
const columnCheckbox =
|
||||
'.bg-header > :nth-child(1) > .q-checkbox > .q-checkbox__inner';
|
||||
const firstRowDescriptor =
|
||||
'tbody > :nth-child(1) > [data-col-field="clientFk"] > .no-padding > .link';
|
||||
const firstRowCheckbox =
|
||||
|
@ -23,13 +21,12 @@ describe('InvoiceOut list', () => {
|
|||
cy.dataCy('InvoiceOutDownloadPdfBtn').click();
|
||||
});
|
||||
|
||||
it.skip('should download all pdfs', () => {
|
||||
cy.get(columnCheckbox).click();
|
||||
cy.get(columnCheckbox).click();
|
||||
it('should download all pdfs', () => {
|
||||
cy.vnTableSelectAll();
|
||||
cy.dataCy('InvoiceOutDownloadPdfBtn').click();
|
||||
});
|
||||
|
||||
it.skip('should open the invoice descriptor from table icon', () => {
|
||||
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');
|
||||
|
|
|
@ -54,7 +54,7 @@ describe('Handle Items FixedPrice', () => {
|
|||
});
|
||||
|
||||
it('should edit all items', () => {
|
||||
cy.get('.bg-header > :nth-child(1) [data-cy="vnCheckbox"]').click();
|
||||
cy.vnTableSelectAll();
|
||||
cy.dataCy('FixedPriceToolbarEditBtn').should('not.be.disabled');
|
||||
cy.dataCy('FixedPriceToolbarEditBtn').click();
|
||||
cy.dataCy('EditFixedPriceSelectOption').type(grouping);
|
||||
|
@ -65,7 +65,7 @@ describe('Handle Items FixedPrice', () => {
|
|||
});
|
||||
|
||||
it('should remove all items', () => {
|
||||
cy.get('.bg-header > :nth-child(1) [data-cy="vnCheckbox"]').click();
|
||||
cy.vnTableSelectAll();
|
||||
cy.dataCy('crudModelDefaultRemoveBtn').should('not.be.disabled');
|
||||
cy.dataCy('crudModelDefaultRemoveBtn').click();
|
||||
cy.dataCy('VnConfirm_confirm').click();
|
||||
|
|
|
@ -13,6 +13,10 @@ Cypress.Commands.add('waitTableScrollLoad', () =>
|
|||
cy.waitForElement('[data-q-vs-anchor]'),
|
||||
);
|
||||
|
||||
Cypress.Commands.add('vnTableSelectAll', () =>
|
||||
cy.get('.bg-header > :nth-child(1) [data-cy="vnCheckbox"]').click(),
|
||||
);
|
||||
|
||||
Cypress.Commands.add('tableActions', (n = 0, child = 1) =>
|
||||
cy.get(
|
||||
`:nth-child(${child}) > .q-table--col-auto-width > [data-cy="tableAction-${n}"] > .q-btn__content > .q-icon`,
|
||||
|
|
Loading…
Reference in New Issue