test: refs #8862 enable test isolation for multiple account and invoice specs

This commit is contained in:
Benjamin Esteve 2025-04-15 12:29:49 +02:00
parent 8d6a15eefd
commit 395c3a8ec9
19 changed files with 20 additions and 20 deletions

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('Client fiscal data', () => {
describe('Client fiscal data', { testIsolation: true }, () => {
beforeEach(() => {
cy.viewport(1280, 720);
cy.login('developer');

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,5 +1,5 @@
/// <reference types="cypress" />
describe('InvoiceOut list', () => {
describe('InvoiceOut list', { testIsolation: true }, () => {
const serial = 'Española rapida';
const columnCheckbox =
'.bg-header > :nth-child(1) > .q-checkbox > .q-checkbox__inner';

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('OrderCatalog', () => {
describe('OrderCatalog', { testIsolation: true }, () => {
beforeEach(() => {
cy.login('developer');
cy.viewport(1920, 720);

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"]';
@ -47,7 +47,7 @@ describe('OrderList', () => {
cy.url().should('include', `/order`);
});
it('create order from customer summary', function () {
it('create order from customer summary', () => {
const clientId = 1101;
cy.dataCy('Customer ID_input').type(`${clientId}{enter}`);
cy.get(

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,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,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('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' },