Merge pull request 'test: refs #8862 add Cypress isolation tests for various ticket and zone components' (!1698) from 8862-testIsolationFalse into dev
gitea/salix-front/pipeline/head This commit looks good Details

Reviewed-on: #1698
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
Alex Moreno 2025-05-09 06:05:14 +00:00
commit a4c4d987c7
33 changed files with 33 additions and 31 deletions

View File

@ -64,5 +64,6 @@ export default defineConfig({
...timeouts,
includeShadowDom: true,
waitForAnimations: true,
testIsolation: false,
},
});

View File

@ -1,4 +1,4 @@
describe('Account descriptor', () => {
describe('Account descriptor', { testIsolation: true }, () => {
const descriptorOptions = '[data-cy="descriptor-more-opts-menu"] > .q-list';
const url = '/#/account/1/summary';

View File

@ -1,5 +1,5 @@
/// <reference types="cypress" />
describe('ClaimDevelopment', () => {
describe('ClaimDevelopment', { testIsolation: true }, () => {
const claimId = 1;
const firstLineReason = 'tbody > :nth-child(1) > :nth-child(2)';
const thirdRow = 'tbody > :nth-child(3)';

View File

@ -1,5 +1,5 @@
/// <reference types="cypress" />
describe('Client fiscal data', () => {
describe('Client fiscal data', { testIsolation: true }, () => {
beforeEach(() => {
cy.viewport(1280, 720);
cy.login('developer');

View File

@ -1,5 +1,5 @@
/// <reference types="cypress" />
describe('Client list', () => {
describe('Client list', { testIsolation: true }, () => {
beforeEach(() => {
cy.login('developer');
cy.visit('/#/customer/list', {

View File

@ -1,5 +1,5 @@
/// <reference types="cypress" />
describe('Entry PreAccount Functionality', () => {
describe('Entry PreAccount Functionality', { testIsolation: true }, () => {
beforeEach(() => {
cy.login('administrative');
cy.visit('/#/entry/pre-account');

View File

@ -1,6 +1,6 @@
/// <reference types="cypress" />
import moment from 'moment';
describe('InvoiceInBasicData', () => {
describe('InvoiceInBasicData', { testIsolation: true }, () => {
const dialogInputs = '.q-dialog input';
const getDocumentBtns = (opt) => `[data-cy="dms-buttons"] > :nth-child(${opt})`;
const futureDate = moment().add(1, 'days').format('DD-MM-YYYY');

View File

@ -1,4 +1,4 @@
describe('invoiceInCorrective', () => {
describe('invoiceInCorrective', { testIsolation: true }, () => {
beforeEach(() => cy.login('administrative'));
it('should modify the invoice', () => {

View File

@ -1,4 +1,4 @@
describe('InvoiceInDescriptor', () => {
describe('InvoiceInDescriptor', { testIsolation: true }, () => {
beforeEach(() => cy.login('administrative'));
describe('more options', () => {

View File

@ -24,6 +24,7 @@ describe('InvoiceOut list', () => {
});
it.skip('should download all pdfs', () => {
cy.get(columnCheckbox).click();
cy.get(columnCheckbox).click();
cy.dataCy('InvoiceOutDownloadPdfBtn').click();
});

View File

@ -1,5 +1,5 @@
/// <reference types="cypress" />
describe('InvoiceOut summary', () => {
describe('InvoiceOut summary', { testIsolation: true }, () => {
const transferInvoice = {
Client: { val: 'employee', type: 'select' },
Type: { val: 'Error in customer data', type: 'select' },

View File

@ -1,5 +1,5 @@
/// <reference types="cypress" />
describe('ItemBarcodes', () => {
describe('ItemBarcodes', { testIsolation: true }, () => {
beforeEach(() => {
cy.login('developer');
cy.visit(`/#/item/1/barcode`);

View File

@ -1,5 +1,5 @@
/// <reference types="cypress" />
describe('Item summary', () => {
describe('Item summary', { testIsolation: true }, () => {
beforeEach(() => {
cy.login('developer');
cy.visit(`/#/item/1/summary`);

View File

@ -1,4 +1,4 @@
describe('Item tag', () => {
describe('Item tag', { testIsolation: true }, () => {
beforeEach(() => {
cy.login('developer');
cy.visit(`/#/item/1/tags`);

View File

@ -1,5 +1,5 @@
/// <reference types="cypress" />
describe('Login', () => {
describe('Login', { testIsolation: true }, () => {
beforeEach(() => {
cy.visit('/#/login');
cy.get('#switchLanguage').click();

View File

@ -1,5 +1,5 @@
/// <reference types="cypress" />
describe('Logout', () => {
describe('Logout', { testIsolation: true }, () => {
beforeEach(() => {
cy.login('developer');
cy.visit(`/#/dashboard`);

View File

@ -1,5 +1,5 @@
/// <reference types="cypress" />
describe('Monitor Tickets Table', () => {
describe('Monitor Tickets Table', { testIsolation: true }, () => {
beforeEach(() => {
cy.viewport(1920, 1080);
cy.login('salesPerson');

View File

@ -1,5 +1,5 @@
/// <reference types="cypress" />
describe.skip('OrderCatalog', () => {
describe.skip('OrderCatalog', { testIsolation: true }, () => {
beforeEach(() => {
cy.login('developer');
cy.viewport(1920, 1080);

View File

@ -1,5 +1,5 @@
/// <reference types="cypress" />
describe('OrderList', () => {
describe('OrderList', { testIsolation: true }, () => {
const clientCreateSelect = '#formModel [data-cy="Client_select"]';
const addressCreateSelect = '#formModel [data-cy="Address_select"]';
const agencyCreateSelect = '#formModel [data-cy="Agency_select"]';

View File

@ -1,4 +1,4 @@
describe('Cmr list', () => {
describe('Cmr list', { testIsolation: true }, () => {
const getLinkSelector = (colField) =>
`tr:first-child > [data-col-field="${colField}"] > .no-padding > .link`;

View File

@ -1,4 +1,4 @@
describe('RouteAutonomous', () => {
describe('RouteAutonomous', { testIsolation: true }, () => {
const getLinkSelector = (colField, link = true) =>
`tr:first-child > [data-col-field="${colField}"] > .no-padding${
link ? ' > .link' : ''

View File

@ -1,4 +1,4 @@
describe('Route', () => {
describe('Route', { testIsolation: true }, () => {
const getSelector = (colField) =>
`tr:last-child > [data-col-field="${colField}"] > .no-padding > .link`;

View File

@ -1,4 +1,4 @@
describe('Vehicle DMS', () => {
describe('Vehicle DMS', { testIsolation: true }, () => {
const getSelector = (btnPosition) =>
`tr:last-child > .text-right > .no-wrap > :nth-child(${btnPosition}) > .q-btn > .q-btn__content > .q-icon`;

View File

@ -1,7 +1,7 @@
/// <reference types="cypress" />
const firstRow = 'tbody > :nth-child(1)';
describe('TicketSale', () => {
describe('TicketSale', { testIsolation: true }, () => {
describe('Ticket #23', () => {
beforeEach(() => {
cy.login('claimManager');

View File

@ -1,5 +1,5 @@
/// <reference types="cypress" />
describe('UserPanel', () => {
describe('UserPanel', { testIsolation: true }, () => {
beforeEach(() => {
cy.viewport(1280, 720);
cy.login('developer');

View File

@ -1,5 +1,5 @@
/// <reference types="cypress" />
describe('VnBreadcrumbs', () => {
describe('VnBreadcrumbs', { testIsolation: true }, () => {
const lastBreadcrumb = '.q-breadcrumbs--last > .q-breadcrumbs__el';
beforeEach(() => {
cy.login('developer');

View File

@ -1,6 +1,6 @@
const { randomNumber, randomString } = require('../../support');
describe('VnLocation', () => {
describe('VnLocation', { testIsolation: true }, () => {
const locationOptions = '[role="listbox"] > div.q-virtual-scroll__content > .q-item';
const dialogInputs = '.q-dialog label input';
const createLocationButton = '.q-form > .q-card > .vn-row:nth-child(6) .--add-icon';

View File

@ -1,5 +1,5 @@
/// <reference types="cypress" />
describe('VnLog', () => {
describe('VnLog', { testIsolation: true }, () => {
beforeEach(() => {
cy.login('developer');
cy.visit(`/#/claim/${1}/log`);

View File

@ -1,4 +1,4 @@
describe('WorkerCreate', () => {
describe('WorkerCreate', { testIsolation: true }, () => {
const externalRadio = '.q-radio:nth-child(2)';
const developerBossId = 120;
const payMethodCross =

View File

@ -1,4 +1,4 @@
describe('WorkerManagement', () => {
describe('WorkerManagement', { testIsolation: true }, () => {
const nif = '12091201A';
const searchButton = '.q-scrollarea__content > .q-btn--standard > .q-btn__content';
const url = '/#/worker/management';

View File

@ -1,4 +1,4 @@
describe('WorkerNotificationsManager', () => {
describe('WorkerNotificationsManager', { testIsolation: true }, () => {
const salesPersonId = 18;
const developerId = 9;

View File

@ -1,4 +1,4 @@
describe('ZoneBasicData', () => {
describe('ZoneBasicData', { testIsolation: true }, () => {
const priceBasicData = '[data-cy="ZoneBasicDataPrice"]';
const saveBtn = '.q-btn-group > .q-btn--standard';

View File

@ -1,4 +1,4 @@
describe('ZoneCreate', () => {
describe('ZoneCreate', { testIsolation: true }, () => {
const data = {
Name: { val: 'Zone pickup D' },
Price: { val: '3' },