feat: refs #8862 enable test isolation for multiple spec files
gitea/salix-front/pipeline/pr-dev This commit is unstable Details

This commit is contained in:
Benjamin Esteve 2025-05-07 10:13:03 +02:00
parent 876f40b4a3
commit 5cad6103a5
9 changed files with 12 additions and 10 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
describe('Vehicle DMS', () => { describe('Vehicle DMS', { testIsolation: true }, () => {
const getSelector = (btnPosition) => const getSelector = (btnPosition) =>
`tr:last-child > .text-right > .no-wrap > :nth-child(${btnPosition}) > .q-btn > .q-btn__content > .q-icon`; `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" /> /// <reference types="cypress" />
const firstRow = 'tbody > :nth-child(1)'; const firstRow = 'tbody > :nth-child(1)';
describe('TicketSale', () => { describe('TicketSale', { testIsolation: true }, () => {
describe('Ticket #23', () => { describe('Ticket #23', () => {
beforeEach(() => { beforeEach(() => {
cy.login('claimManager'); cy.login('claimManager');

View File

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