Merge pull request 'fix: refs #8347 remove skip, fix unpaid' (!1273) from 8347-fixCustomerUnpaidTest into dev
gitea/salix-front/pipeline/head This commit looks good Details

Reviewed-on: #1273
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
Alex Moreno 2025-01-24 10:28:57 +00:00
commit 16ca18c945
3 changed files with 5 additions and 3 deletions

View File

@ -50,7 +50,8 @@ const filterClientFindOne = {
> >
<template #form="{ data }"> <template #form="{ data }">
<VnRow> <VnRow>
<QCheckbox :label="t('Unpaid client')" v-model="data.unpaid" /> <QCheckbox :label="t('Unpaid client')" v-model="data.unpaid"
data-cy="UnpaidCheckBox" />
</VnRow> </VnRow>
<VnRow class="row q-gutter-md q-mb-md" v-show="data.unpaid"> <VnRow class="row q-gutter-md q-mb-md" v-show="data.unpaid">

View File

@ -15,7 +15,7 @@ describe('Client list', () => {
}); });
}); });
it.skip('Client list create new client', () => { it('Client list create new client', () => {
cy.addBtnClick(); cy.addBtnClick();
const randomInt = Math.floor(Math.random() * 90) + 10; const randomInt = Math.floor(Math.random() * 90) + 10;

View File

@ -1,5 +1,6 @@
/// <reference types="cypress" /> /// <reference types="cypress" />
describe('Client unpaid', () => { describe('Client unpaid', () => {
const UnpaidCheckBox = '[data-cy="UnpaidCheckBox"]';
beforeEach(() => { beforeEach(() => {
cy.viewport(1280, 720); cy.viewport(1280, 720);
cy.login('developer'); cy.login('developer');
@ -7,7 +8,7 @@ describe('Client unpaid', () => {
it('Should add unpaid', () => { it('Should add unpaid', () => {
cy.visit('#/customer/1102/others/unpaid'); cy.visit('#/customer/1102/others/unpaid');
cy.get('.q-card').should('be.visible'); cy.get('.q-card').should('be.visible');
cy.get('.q-checkbox__inner').click(); cy.get(UnpaidCheckBox).click();
cy.dataCy('customerUnpaidAmount').find('input').type('100'); cy.dataCy('customerUnpaidAmount').find('input').type('100');
cy.dataCy('customerUnpaidDate').find('input').type('01/01/2001'); cy.dataCy('customerUnpaidDate').find('input').type('01/01/2001');
cy.get('.q-btn-group > .q-btn--standard').click(); cy.get('.q-btn-group > .q-btn--standard').click();