test: refs #8862 enable test isolation for multiple account and invoice specs
This commit is contained in:
parent
8d6a15eefd
commit
395c3a8ec9
test/cypress/integration
account
customer
invoiceIn
invoiceOut
item
login
order
route
vnComponent
worker
zone
|
@ -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';
|
||||
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe('invoiceInCorrective', () => {
|
||||
describe('invoiceInCorrective', { testIsolation: true }, () => {
|
||||
beforeEach(() => cy.login('administrative'));
|
||||
|
||||
it('should modify the invoice', () => {
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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' },
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/// <reference types="cypress" />
|
||||
describe('ItemBarcodes', () => {
|
||||
describe('ItemBarcodes', { testIsolation: true }, () => {
|
||||
beforeEach(() => {
|
||||
cy.login('developer');
|
||||
cy.visit(`/#/item/1/barcode`);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/// <reference types="cypress" />
|
||||
describe('Item summary', () => {
|
||||
describe('Item summary', { testIsolation: true }, () => {
|
||||
beforeEach(() => {
|
||||
cy.login('developer');
|
||||
cy.visit(`/#/item/1/summary`);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe('Item tag', () => {
|
||||
describe('Item tag', { testIsolation: true }, () => {
|
||||
beforeEach(() => {
|
||||
cy.login('developer');
|
||||
cy.visit(`/#/item/1/tags`);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/// <reference types="cypress" />
|
||||
describe('Login', () => {
|
||||
describe('Login', { testIsolation: true }, () => {
|
||||
beforeEach(() => {
|
||||
cy.visit('/#/login');
|
||||
cy.get('#switchLanguage').click();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/// <reference types="cypress" />
|
||||
describe('OrderCatalog', () => {
|
||||
describe('OrderCatalog', { testIsolation: true }, () => {
|
||||
beforeEach(() => {
|
||||
cy.login('developer');
|
||||
cy.viewport(1920, 720);
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe('Route', () => {
|
||||
describe('Route', { testIsolation: true }, () => {
|
||||
const getSelector = (colField) =>
|
||||
`tr:last-child > [data-col-field="${colField}"] > .no-padding > .link`;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/// <reference types="cypress" />
|
||||
describe('UserPanel', () => {
|
||||
describe('UserPanel', { testIsolation: true }, () => {
|
||||
beforeEach(() => {
|
||||
cy.viewport(1280, 720);
|
||||
cy.login('developer');
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe('WorkerCreate', () => {
|
||||
describe('WorkerCreate', { testIsolation: true }, () => {
|
||||
const externalRadio = '.q-radio:nth-child(2)';
|
||||
const developerBossId = 120;
|
||||
const payMethodCross =
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe('WorkerNotificationsManager', () => {
|
||||
describe('WorkerNotificationsManager', { testIsolation: true }, () => {
|
||||
const salesPersonId = 18;
|
||||
const developerId = 9;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe('ZoneBasicData', () => {
|
||||
describe('ZoneBasicData', { testIsolation: true }, () => {
|
||||
const priceBasicData = '[data-cy="ZoneBasicDataPrice"]';
|
||||
const saveBtn = '.q-btn-group > .q-btn--standard';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe('ZoneCreate', () => {
|
||||
describe('ZoneCreate', { testIsolation: true }, () => {
|
||||
const data = {
|
||||
Name: { val: 'Zone pickup D' },
|
||||
Price: { val: '3' },
|
||||
|
|
Loading…
Reference in New Issue