forked from verdnatura/salix-front
refactor: refs #8219 modified list test, created cypress download folder and added to gitignore
This commit is contained in:
parent
ec40dc6171
commit
9fa2a77c96
|
@ -11,6 +11,7 @@ module.exports = defineConfig({
|
||||||
screenshotsFolder: 'test/cypress/screenshots',
|
screenshotsFolder: 'test/cypress/screenshots',
|
||||||
supportFile: 'test/cypress/support/index.js',
|
supportFile: 'test/cypress/support/index.js',
|
||||||
videosFolder: 'test/cypress/videos',
|
videosFolder: 'test/cypress/videos',
|
||||||
|
downloadsFolder: 'test/cypress/downloads',
|
||||||
video: false,
|
video: false,
|
||||||
specPattern: 'test/cypress/integration/**/*.spec.js',
|
specPattern: 'test/cypress/integration/**/*.spec.js',
|
||||||
experimentalRunAllSpecs: true,
|
experimentalRunAllSpecs: true,
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
reports/*
|
reports/*
|
||||||
screenshots/*
|
screenshots/*
|
||||||
|
downloads/*
|
|
@ -6,7 +6,7 @@ describe('InvoiceOut list', () => {
|
||||||
};
|
};
|
||||||
const invoiceError = {
|
const invoiceError = {
|
||||||
Ticket: { val: '1' },
|
Ticket: { val: '1' },
|
||||||
Serial: { val: 'T - Española rapida', type: 'select' },
|
Serial: { val: 'Española rapida', type: 'select' },
|
||||||
};
|
};
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -24,7 +24,7 @@ describe('InvoiceOut list', () => {
|
||||||
cy.dataCy('InvoiceOutFilterAmountBtn').find('input').type('8.88{enter}');
|
cy.dataCy('InvoiceOutFilterAmountBtn').find('input').type('8.88{enter}');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should download a pdf', () => {
|
it('should download all pdfs', () => {
|
||||||
cy.get('.bg-header > :nth-child(1) > .q-checkbox > .q-checkbox__inner').click();
|
cy.get('.bg-header > :nth-child(1) > .q-checkbox > .q-checkbox__inner').click();
|
||||||
cy.dataCy('InvoiceOutDownloadPdfBtn').click();
|
cy.dataCy('InvoiceOutDownloadPdfBtn').click();
|
||||||
cy.get('.bg-header > :nth-child(1) > .q-checkbox > .q-checkbox__inner').click();
|
cy.get('.bg-header > :nth-child(1) > .q-checkbox > .q-checkbox__inner').click();
|
||||||
|
|
Loading…
Reference in New Issue