test(UserPanel): refs #8683 update initial values and options in user selection
gitea/salix-front/pipeline/pr-dev This commit is unstable Details

This commit is contained in:
Benjamin Esteve 2025-03-10 13:55:36 +01:00
parent aa4cf98d91
commit 37f1882530
1 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ describe('UserPanel', () => {
cy.openUserPanel(); cy.openUserPanel();
// Compruebo la opcion inicial // Compruebo la opcion inicial
cy.get(userWarehouse).should('have.value', 'VNL').click(); cy.get(userWarehouse).should('have.value', 'ORN').click();
// Actualizo la opción // Actualizo la opción
cy.getOption(3); cy.getOption(3);
@ -36,14 +36,14 @@ describe('UserPanel', () => {
cy.openUserPanel(); cy.openUserPanel();
// Compruebo la opcion inicial // Compruebo la opcion inicial
cy.get(userCompany).should('have.value', 'Warehouse One').click(); cy.get(userCompany).should('have.value', 'Inventory').click();
//Actualizo la opción //Actualizo la opción
cy.getOption(2); cy.getOption(3);
//Compruebo la notificación //Compruebo la notificación
cy.get('.q-notification').should('be.visible'); cy.get('.q-notification').should('be.visible');
cy.get(userCompany).should('have.value', 'Warehouse Two'); cy.get(userCompany).should('have.value', 'TestingWarehouse');
//Restauro el valor //Restauro el valor
cy.get(userCompany).click(); cy.get(userCompany).click();