0
0
Fork 0

Merge branch 'dev' into 6172_transfer_ticket_message_error

This commit is contained in:
Javier Segarra 2023-12-15 08:57:52 +00:00
commit 8cfd775d58
5 changed files with 35 additions and 28 deletions

View File

@ -5,15 +5,26 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [2352.01] - 2023-12-28 ## [2400.01] - 2024-01-04
### Added ### Added
- (carros) => Se añade contador de carros. #6545
- (Reclamaciones) => Se añade la sección para hacer acciones sobre una reclamación. #5654
### Changed
### Fixed
- (Reclamaciones) => Se corrige el color de la barra según el tema y el evento de actualziar cantidades #6334
### Changed
### Fixed
## [2350.01] - 2023-12-14
### Added
- (Carros) => Se añade contador de carros. #6545
- (Reclamaciones) => Se añade la sección para hacer acciones sobre una reclamación. #5654
### Changed
### Fixed
- (Reclamaciones) => Se corrige el color de la barra según el tema y el evento de actualziar cantidades #6334
## [2253.01] - 2023-01-05 ## [2253.01] - 2023-01-05

View File

@ -1,6 +1,6 @@
{ {
"name": "salix-front", "name": "salix-front",
"version": "23.52.01", "version": "24.00.01",
"description": "Salix frontend", "description": "Salix frontend",
"productName": "Salix", "productName": "Salix",
"author": "Verdnatura", "author": "Verdnatura",

View File

@ -6,6 +6,7 @@ describe('WagonCreate', () => {
}); });
it('should create and delete a new wagon', () => { it('should create and delete a new wagon', () => {
cy.waitForElement('.q-card');
cy.get('input').eq(0).type('1234'); cy.get('input').eq(0).type('1234');
cy.get('input').eq(1).type('1234ABCD'); cy.get('input').eq(1).type('1234ABCD');
cy.get('input').eq(2).type('100'); cy.get('input').eq(2).type('100');
@ -16,18 +17,14 @@ describe('WagonCreate', () => {
cy.get('button[type="submit"]').click(); cy.get('button[type="submit"]').click();
// Check data has been saved successfully // Check data has been saved successfully
cy.get('div.text-h6').contains('1234').click(); cy.waitForElement('.q-card');
cy.get('input').eq(0).should('have.value', '1234');
cy.get('input').eq(1).should('have.value', '1234ABCD'); cy.get('.title').should('have.text', '1234');
cy.get('input').eq(2).should('have.value', '100'); cy.get('[title-label="Plate"] > .value > span').should('have.text', '1234ABCD');
cy.get('input').eq(3).should('have.value', 'Wagon Type #1'); cy.get(':nth-child(2) > .value > span').should('have.text', '100');
cy.get(':nth-child(3) > .value > span').should('have.text', 'Wagon Type #1');
// Delete wagon type created // Delete wagon type created
cy.go('back'); cy.get('.actions > .q-btn--standard').click();
cy.get('div.text-h6')
.contains('1234')
.parentsUntil('div.q-card')
.find('div.q-card__actions')
.find('button').last().click();
}); });
}); });

View File

@ -5,13 +5,13 @@ describe('WagonTypeCreate', () => {
cy.visit('/#/wagon/type/create'); cy.visit('/#/wagon/type/create');
}); });
function chooseColor(color){ function chooseColor(color) {
cy.get('div.shelving-down').eq(1).click(); cy.get('div.shelving-down').eq(1).click();
cy.get('div.q-color-picker__cube').eq(color).click(); cy.get('div.q-color-picker__cube').eq(color).click();
cy.get('div.q-card__section').find('button').click(); cy.get('div.q-card__section').find('button').click();
} }
function addTray(position){ function addTray(position) {
cy.get('div.action-button').last().find('button').click(); cy.get('div.action-button').last().find('button').click();
cy.focused().type(position); cy.focused().type(position);
cy.focused().blur(); cy.focused().blur();
@ -38,7 +38,9 @@ describe('WagonTypeCreate', () => {
cy.get('button[type="submit"]').click(); cy.get('button[type="submit"]').click();
// Check data has been saved successfully // Check data has been saved successfully
cy.get('div.text-h6').contains('Example for testing').click(); cy.get(':nth-child(1) > :nth-child(1) > .justify-between > .flex > .title')
.contains('Example for testing')
.click();
cy.get('input').first().should('have.value', 'Example for testing'); cy.get('input').first().should('have.value', 'Example for testing');
cy.get('div.wagon-tray').should('have.length', 4); cy.get('div.wagon-tray').should('have.length', 4);
cy.get('div.position').eq(0).find('input').should('have.value', '150'); cy.get('div.position').eq(0).find('input').should('have.value', '150');
@ -47,11 +49,8 @@ describe('WagonTypeCreate', () => {
// Delete wagon type created // Delete wagon type created
cy.go('back'); cy.go('back');
cy.get('div.text-h6') cy.get(
.contains('Example for testing') ':nth-child(2) > :nth-child(1) > .card-list-body > .actions > .q-btn--standard'
.parentsUntil('div.q-card') ).click();
.find('div.q-card__actions')
.find('button').last().click();
}); });
}); });

View File

@ -1,6 +1,6 @@
describe('WorkerList', () => { describe('WorkerList', () => {
const workerFieldNames = const workerFieldNames =
'.card-list-body > .list-items > :nth-child(2) > .value > span'; '.card-list-body > .list-items > :nth-child(1) > .value > span';
beforeEach(() => { beforeEach(() => {
cy.viewport(1280, 720); cy.viewport(1280, 720);
cy.login('developer'); cy.login('developer');