refactor: refs #8219 modified list test, created cypress download folder and added to gitignore
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jon Elias 2025-01-08 07:35:08 +01:00
parent ec40dc6171
commit 9fa2a77c96
3 changed files with 4 additions and 2 deletions

View File

@ -11,6 +11,7 @@ module.exports = defineConfig({
screenshotsFolder: 'test/cypress/screenshots',
supportFile: 'test/cypress/support/index.js',
videosFolder: 'test/cypress/videos',
downloadsFolder: 'test/cypress/downloads',
video: false,
specPattern: 'test/cypress/integration/**/*.spec.js',
experimentalRunAllSpecs: true,

View File

@ -1,2 +1,3 @@
reports/*
screenshots/*
downloads/*

View File

@ -6,7 +6,7 @@ describe('InvoiceOut list', () => {
};
const invoiceError = {
Ticket: { val: '1' },
Serial: { val: 'T - Española rapida', type: 'select' },
Serial: { val: 'Española rapida', type: 'select' },
};
beforeEach(() => {
@ -24,7 +24,7 @@ describe('InvoiceOut list', () => {
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.dataCy('InvoiceOutDownloadPdfBtn').click();
cy.get('.bg-header > :nth-child(1) > .q-checkbox > .q-checkbox__inner').click();