fix: refs #8583 basicData timeControl

This commit is contained in:
Carlos Satorres 2025-02-26 07:59:21 +01:00
parent 9366713e9b
commit 5f12f8436b
3 changed files with 11 additions and 0 deletions

View File

@ -98,6 +98,7 @@ async function setAdvancedSummary(data) {
option-label="name"
option-value="id"
v-model="data.originCountryFk"
data-cy="country"
/>
<VnSelect
:label="t('Education level')"

View File

@ -1,5 +1,7 @@
describe('WorkerBasicData', () => {
const maritalStatusSelect = '[data-cy="MaritalStatus"]';
const countrySelect = '[data-cy="country"]';
const country = 'Alemania';
const nif = '42572374H';
const fi = '[data-cy="fi"]';
beforeEach(() => {
@ -11,6 +13,8 @@ describe('WorkerBasicData', () => {
it('should modify worker summary', () => {
cy.get(maritalStatusSelect).type('Married');
cy.get(fi).type(nif);
cy.get(countrySelect).type(country);
cy.saveCard();
cy.checkNotification('Data saved');
});
});

View File

@ -1,5 +1,9 @@
describe('WorkerTimeControl', () => {
const pastMonth = '.nav-container > .row > :nth-child(1)';
const pastDay =
'[aria-label="Monday, December 4, 2000"][style="min-width: 32.2857px; max-width: 32.2857px; width: 32.2857px;"] > .q-calendar-month__day--label__wrapper > .q-calendar-month__day--label';
const addTime4December =
':nth-child(2) > :nth-child(1) > .column > .q-btn > .q-btn__content > .q-icon';
beforeEach(() => {
cy.viewport(1280, 720);
cy.login('developer');
@ -8,6 +12,8 @@ describe('WorkerTimeControl', () => {
it('should add some entries', () => {
cy.get(pastMonth).click();
cy.get(pastDay).click();
cy.get(addTime4December).click();
});
// it('should try descriptors', () => {