forked from verdnatura/salix-front
Merge branch 'dev' into 6172_transfer_ticket_message_error
This commit is contained in:
commit
8cfd775d58
23
CHANGELOG.md
23
CHANGELOG.md
|
@ -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/),
|
||||
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
|
||||
- (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
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "salix-front",
|
||||
"version": "23.52.01",
|
||||
"version": "24.00.01",
|
||||
"description": "Salix frontend",
|
||||
"productName": "Salix",
|
||||
"author": "Verdnatura",
|
||||
|
|
|
@ -6,6 +6,7 @@ describe('WagonCreate', () => {
|
|||
});
|
||||
|
||||
it('should create and delete a new wagon', () => {
|
||||
cy.waitForElement('.q-card');
|
||||
cy.get('input').eq(0).type('1234');
|
||||
cy.get('input').eq(1).type('1234ABCD');
|
||||
cy.get('input').eq(2).type('100');
|
||||
|
@ -16,18 +17,14 @@ describe('WagonCreate', () => {
|
|||
cy.get('button[type="submit"]').click();
|
||||
|
||||
// Check data has been saved successfully
|
||||
cy.get('div.text-h6').contains('1234').click();
|
||||
cy.get('input').eq(0).should('have.value', '1234');
|
||||
cy.get('input').eq(1).should('have.value', '1234ABCD');
|
||||
cy.get('input').eq(2).should('have.value', '100');
|
||||
cy.get('input').eq(3).should('have.value', 'Wagon Type #1');
|
||||
cy.waitForElement('.q-card');
|
||||
|
||||
cy.get('.title').should('have.text', '1234');
|
||||
cy.get('[title-label="Plate"] > .value > span').should('have.text', '1234ABCD');
|
||||
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
|
||||
cy.go('back');
|
||||
cy.get('div.text-h6')
|
||||
.contains('1234')
|
||||
.parentsUntil('div.q-card')
|
||||
.find('div.q-card__actions')
|
||||
.find('button').last().click();
|
||||
cy.get('.actions > .q-btn--standard').click();
|
||||
});
|
||||
});
|
||||
|
|
|
@ -5,13 +5,13 @@ describe('WagonTypeCreate', () => {
|
|||
cy.visit('/#/wagon/type/create');
|
||||
});
|
||||
|
||||
function chooseColor(color){
|
||||
function chooseColor(color) {
|
||||
cy.get('div.shelving-down').eq(1).click();
|
||||
cy.get('div.q-color-picker__cube').eq(color).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.focused().type(position);
|
||||
cy.focused().blur();
|
||||
|
@ -38,7 +38,9 @@ describe('WagonTypeCreate', () => {
|
|||
cy.get('button[type="submit"]').click();
|
||||
|
||||
// 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('div.wagon-tray').should('have.length', 4);
|
||||
cy.get('div.position').eq(0).find('input').should('have.value', '150');
|
||||
|
@ -47,11 +49,8 @@ describe('WagonTypeCreate', () => {
|
|||
|
||||
// Delete wagon type created
|
||||
cy.go('back');
|
||||
cy.get('div.text-h6')
|
||||
.contains('Example for testing')
|
||||
.parentsUntil('div.q-card')
|
||||
.find('div.q-card__actions')
|
||||
.find('button').last().click();
|
||||
|
||||
cy.get(
|
||||
':nth-child(2) > :nth-child(1) > .card-list-body > .actions > .q-btn--standard'
|
||||
).click();
|
||||
});
|
||||
});
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
describe('WorkerList', () => {
|
||||
const workerFieldNames =
|
||||
'.card-list-body > .list-items > :nth-child(2) > .value > span';
|
||||
'.card-list-body > .list-items > :nth-child(1) > .value > span';
|
||||
beforeEach(() => {
|
||||
cy.viewport(1280, 720);
|
||||
cy.login('developer');
|
||||
|
|
Loading…
Reference in New Issue