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
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
This commit is contained in:
parent
ffafab33d1
commit
9721dc957f
|
@ -1,11 +1,27 @@
|
||||||
/// <reference types="cypress" />
|
/// <reference types="cypress" />
|
||||||
describe('Client consignee', () => {
|
describe('CustomerAddress (consignee)', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.viewport(1280, 720);
|
cy.viewport(1280, 720);
|
||||||
cy.login('developer');
|
cy.login('developer');
|
||||||
cy.visit('#/customer/1107/address');
|
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', () => {
|
it('check as equalizated', () => {
|
||||||
cy.get('.q-card__section > .address-card').then(($el) => {
|
cy.get('.q-card__section > .address-card').then(($el) => {
|
||||||
const addressCards_before = $el.length;
|
const addressCards_before = $el.length;
|
||||||
|
@ -40,22 +56,6 @@ describe('Client consignee', () => {
|
||||||
).should('have.class', 'q-checkbox__inner--truthy');
|
).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', () => {
|
it('Should edit address', () => {
|
||||||
const updateData = {
|
const updateData = {
|
||||||
Consignee: { val: 'Stark tower' },
|
Consignee: { val: 'Stark tower' },
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/// <reference types="cypress" />
|
/// <reference types="cypress" />
|
||||||
describe('Client balance', () => {
|
describe('CustomerBalance', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.login('developer');
|
cy.login('developer');
|
||||||
cy.visit('#/customer/1101/balance');
|
cy.visit('#/customer/1101/balance');
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/// <reference types="cypress" />
|
/// <reference types="cypress" />
|
||||||
describe('Client basic data', () => {
|
describe('CustomerBasicData', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.viewport(1280, 720);
|
cy.viewport(1280, 720);
|
||||||
cy.login('developer');
|
cy.login('developer');
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/// <reference types="cypress" />
|
/// <reference types="cypress" />
|
||||||
describe('Client billing data', () => {
|
describe('CustomerBillingData', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.viewport(1280, 720);
|
cy.viewport(1280, 720);
|
||||||
cy.login('developer');
|
cy.login('developer');
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/// <reference types="cypress" />
|
/// <reference types="cypress" />
|
||||||
describe('Client credits', () => {
|
describe('CustomerCredits', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.viewport(1280, 720);
|
cy.viewport(1280, 720);
|
||||||
cy.login('developer');
|
cy.login('developer');
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
describe('Customer DMS', () => {
|
describe('CustomerDms', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.viewport(1920, 1080);
|
cy.viewport(1920, 1080);
|
||||||
cy.login('developer');
|
cy.login('developer');
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/// <reference types="cypress" />
|
/// <reference types="cypress" />
|
||||||
describe('Client fiscal data', { testIsolation: true }, () => {
|
describe('CustomerFiscalData', { testIsolation: true }, () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.viewport(1280, 720);
|
cy.viewport(1280, 720);
|
||||||
cy.login('developer');
|
cy.login('developer');
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/// <reference types="cypress" />
|
/// <reference types="cypress" />
|
||||||
describe('Client greuges', () => {
|
describe('CustomerGreuges', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.viewport(1280, 720);
|
cy.viewport(1280, 720);
|
||||||
cy.login('developer');
|
cy.login('developer');
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/// <reference types="cypress" />
|
/// <reference types="cypress" />
|
||||||
describe('Client list', { testIsolation: true }, () => {
|
describe('CustomerList', { testIsolation: true }, () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.login('developer');
|
cy.login('developer');
|
||||||
cy.visit('/#/customer/list', {
|
cy.visit('/#/customer/list', {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/// <reference types="cypress" />
|
/// <reference types="cypress" />
|
||||||
describe('Client notes', () => {
|
describe('CustomerNotes', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.viewport(1280, 720);
|
cy.viewport(1280, 720);
|
||||||
cy.login('developer');
|
cy.login('developer');
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/// <reference types="cypress" />
|
/// <reference types="cypress" />
|
||||||
describe('Client recoveries', () => {
|
describe('CustomerRecoveries', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.viewport(1280, 720);
|
cy.viewport(1280, 720);
|
||||||
cy.login('developer');
|
cy.login('developer');
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/// <reference types="cypress" />
|
/// <reference types="cypress" />
|
||||||
describe('Client notes', () => {
|
describe('CustomerSms', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.viewport(1280, 720);
|
cy.viewport(1280, 720);
|
||||||
cy.login('developer');
|
cy.login('developer');
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/// <reference types="cypress" />
|
/// <reference types="cypress" />
|
||||||
describe('Client web-access', () => {
|
describe('CustomerWebAccess', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.viewport(1280, 720);
|
cy.viewport(1280, 720);
|
||||||
cy.login('developer');
|
cy.login('developer');
|
||||||
|
|
|
@ -4,6 +4,7 @@ describe('TravelThermographs', () => {
|
||||||
editBtn: 'vnTableCell_editFile',
|
editBtn: 'vnTableCell_editFile',
|
||||||
removeBtn: 'vnTableCell_removeThermograph',
|
removeBtn: 'vnTableCell_removeThermograph',
|
||||||
temperatureField: 'vnTableCell_temperatureFk',
|
temperatureField: 'vnTableCell_temperatureFk',
|
||||||
|
codeField: 'vnTableCell_thermographFk',
|
||||||
}
|
}
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.login('developer');
|
cy.login('developer');
|
||||||
|
@ -26,7 +27,7 @@ describe('TravelThermographs', () => {
|
||||||
force: true,
|
force: true,
|
||||||
});
|
});
|
||||||
cy.dataCy('FormModelPopup_save').click();
|
cy.dataCy('FormModelPopup_save').click();
|
||||||
cy.checkNotification('Thermograph created');
|
cy.dataCy(selectors.codeField).invoke('text').should('contain', data.Thermograph.val);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Should edit thermograph', () => {
|
it('Should edit thermograph', () => {
|
||||||
|
|
Loading…
Reference in New Issue