refactor: refs #7527 update test descriptions for consistency and add code field in travel thermographs tests
gitea/salix-front/pipeline/pr-dev This commit is unstable Details

This commit is contained in:
Jose Antonio Tubau 2025-05-09 16:01:19 +02:00
parent ffafab33d1
commit 9721dc957f
14 changed files with 31 additions and 30 deletions

View File

@ -1,11 +1,27 @@
/// <reference types="cypress" />
describe('Client consignee', () => {
describe('CustomerAddress (consignee)', () => {
beforeEach(() => {
cy.viewport(1280, 720);
cy.login('developer');
cy.visit('#/customer/1107/address');
});
it('Should change default address', () => {
cy.dataCy('setDefaultAddress')
.first()
.should('have.attr', 'style')
.and('include', '"FILL" 1');
cy.dataCy('setDefaultAddress').last().click();
cy.dataCy('setDefaultAddress')
.first()
.should('have.attr', 'style')
.and('include', '"FILL" 0');
cy.dataCy('setDefaultAddress')
.last()
.should('have.attr', 'style')
.and('include', '"FILL" 1');
});
it('check as equalizated', () => {
cy.get('.q-card__section > .address-card').then(($el) => {
const addressCards_before = $el.length;
@ -40,22 +56,6 @@ describe('Client consignee', () => {
).should('have.class', 'q-checkbox__inner--truthy');
});
it('Should change default address', () => {
cy.dataCy('setDefaultAddress')
.first()
.should('have.attr', 'style')
.and('include', '"FILL" 1');
cy.dataCy('setDefaultAddress').last().click();
cy.dataCy('setDefaultAddress')
.first()
.should('have.attr', 'style')
.and('include', '"FILL" 0');
cy.dataCy('setDefaultAddress')
.last()
.should('have.attr', 'style')
.and('include', '"FILL" 1');
});
it('Should edit address', () => {
const updateData = {
Consignee: { val: 'Stark tower' },

View File

@ -1,5 +1,5 @@
/// <reference types="cypress" />
describe('Client balance', () => {
describe('CustomerBalance', () => {
beforeEach(() => {
cy.login('developer');
cy.visit('#/customer/1101/balance');

View File

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

View File

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

View File

@ -1,5 +1,5 @@
/// <reference types="cypress" />
describe('Client credits', () => {
describe('CustomerCredits', () => {
beforeEach(() => {
cy.viewport(1280, 720);
cy.login('developer');

View File

@ -1,4 +1,4 @@
describe('Customer DMS', () => {
describe('CustomerDms', () => {
beforeEach(() => {
cy.viewport(1920, 1080);
cy.login('developer');

View File

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

View File

@ -1,5 +1,5 @@
/// <reference types="cypress" />
describe('Client greuges', () => {
describe('CustomerGreuges', () => {
beforeEach(() => {
cy.viewport(1280, 720);
cy.login('developer');

View File

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

View File

@ -1,5 +1,5 @@
/// <reference types="cypress" />
describe('Client notes', () => {
describe('CustomerNotes', () => {
beforeEach(() => {
cy.viewport(1280, 720);
cy.login('developer');

View File

@ -1,5 +1,5 @@
/// <reference types="cypress" />
describe('Client recoveries', () => {
describe('CustomerRecoveries', () => {
beforeEach(() => {
cy.viewport(1280, 720);
cy.login('developer');

View File

@ -1,5 +1,5 @@
/// <reference types="cypress" />
describe('Client notes', () => {
describe('CustomerSms', () => {
beforeEach(() => {
cy.viewport(1280, 720);
cy.login('developer');

View File

@ -1,5 +1,5 @@
/// <reference types="cypress" />
describe('Client web-access', () => {
describe('CustomerWebAccess', () => {
beforeEach(() => {
cy.viewport(1280, 720);
cy.login('developer');

View File

@ -4,6 +4,7 @@ describe('TravelThermographs', () => {
editBtn: 'vnTableCell_editFile',
removeBtn: 'vnTableCell_removeThermograph',
temperatureField: 'vnTableCell_temperatureFk',
codeField: 'vnTableCell_thermographFk',
}
beforeEach(() => {
cy.login('developer');
@ -26,7 +27,7 @@ describe('TravelThermographs', () => {
force: true,
});
cy.dataCy('FormModelPopup_save').click();
cy.checkNotification('Thermograph created');
cy.dataCy(selectors.codeField).invoke('text').should('contain', data.Thermograph.val);
});
it('Should edit thermograph', () => {