test: refs #6695 enable previously skipped tests across multiple spec files
gitea/salix-front/pipeline/pr-dev This commit is unstable Details

This commit is contained in:
Alex Moreno 2025-02-28 10:10:46 +01:00
parent 9bcbc7333e
commit 0874eec355
7 changed files with 11 additions and 11 deletions

View File

@ -1,6 +1,6 @@
/// <reference types="cypress" /> /// <reference types="cypress" />
// redmine.verdnatura.es/issues/8417 // redmine.verdnatura.es/issues/8417
describe.skip('ClaimPhoto', () => { describe('ClaimPhoto', () => {
beforeEach(() => { beforeEach(() => {
const claimId = 1; const claimId = 1;
cy.login('developer'); cy.login('developer');
@ -12,14 +12,14 @@ describe.skip('ClaimPhoto', () => {
cy.get('label > .q-btn input').selectFile('test/cypress/fixtures/image.jpg', { cy.get('label > .q-btn input').selectFile('test/cypress/fixtures/image.jpg', {
force: true, force: true,
}); });
cy.get('.q-notification__message').should('have.text', 'Data saved'); cy.checkNotification('Data saved');
}); });
it('should add new file with drag and drop', () => { it('should add new file with drag and drop', () => {
cy.get('.container').selectFile('test/cypress/fixtures/image.jpg', { cy.get('.container').selectFile('test/cypress/fixtures/image.jpg', {
action: 'drag-drop', action: 'drag-drop',
}); });
cy.get('.q-notification__message').should('have.text', 'Data saved'); cy.checkNotification('Data saved');
}); });
it('should open first image dialog change to second and close', () => { it('should open first image dialog change to second and close', () => {
@ -45,7 +45,7 @@ describe.skip('ClaimPhoto', () => {
cy.get( cy.get(
'.q-card__actions > .q-btn--unelevated > .q-btn__content > .block', '.q-card__actions > .q-btn--unelevated > .q-btn__content > .block',
).click(); ).click();
cy.get('.q-notification__message').should('have.text', 'Data deleted'); cy.checkNotification('Data deleted');
cy.get( cy.get(
'.multimediaParent > :nth-last-child(1) > .q-btn > .q-btn__content > .q-icon', '.multimediaParent > :nth-last-child(1) > .q-btn > .q-btn__content > .q-icon',
@ -53,6 +53,6 @@ describe.skip('ClaimPhoto', () => {
cy.get( cy.get(
'.q-card__actions > .q-btn--unelevated > .q-btn__content > .block', '.q-card__actions > .q-btn--unelevated > .q-btn__content > .block',
).click(); ).click();
cy.get('.q-notification__message').should('have.text', 'Data deleted'); cy.checkNotification('Data deleted');
}); });
}); });

View File

@ -9,7 +9,7 @@ describe('Client consignee', () => {
cy.get('.q-card').should('be.visible'); cy.get('.q-card').should('be.visible');
}); });
it.skip('check as equalizated', function () { it('check as equalizated', function () {
cy.get('.q-card__section > .address-card').then(($el) => { cy.get('.q-card__section > .address-card').then(($el) => {
let addressCards_before = $el.length; let addressCards_before = $el.length;

View File

@ -29,7 +29,7 @@ describe('InvoiceOut list', () => {
cy.dataCy('InvoiceOutDownloadPdfBtn').click(); cy.dataCy('InvoiceOutDownloadPdfBtn').click();
}); });
it.skip('should open the invoice descriptor from table icon', () => { it('should open the invoice descriptor from table icon', () => {
cy.get(firstSummaryIcon).click(); cy.get(firstSummaryIcon).click();
cy.get('.cardSummary').should('be.visible'); cy.get('.cardSummary').should('be.visible');
cy.get('.summaryHeader > div').should('include.text', 'A1111111'); cy.get('.summaryHeader > div').should('include.text', 'A1111111');

View File

@ -17,7 +17,7 @@ describe('Item list', () => {
}); });
// https://redmine.verdnatura.es/issues/8421 // https://redmine.verdnatura.es/issues/8421
it.skip('should create an item', () => { it('should create an item', () => {
const data = { const data = {
Description: { val: `Test item` }, Description: { val: `Test item` },
Type: { val: `Crisantemo`, type: 'select' }, Type: { val: `Crisantemo`, type: 'select' },

View File

@ -41,7 +41,7 @@ describe('Ticket Lack detail', () => {
cy.wait('@getItemLack'); cy.wait('@getItemLack');
}); });
describe('Table actions', () => { describe('Table actions', () => {
it.skip('should display only one row in the lack list', () => { it('should display only one row in the lack list', () => {
cy.location('href').should('contain', '#/ticket/negative/5'); cy.location('href').should('contain', '#/ticket/negative/5');
cy.get('[data-cy="changeItem"]').should('be.disabled'); cy.get('[data-cy="changeItem"]').should('be.disabled');

View File

@ -1,4 +1,4 @@
describe.skip('WorkerCreate', () => { describe('WorkerCreate', () => {
const externalRadio = '.q-radio:nth-child(2)'; const externalRadio = '.q-radio:nth-child(2)';
const developerBossId = 120; const developerBossId = 120;
const payMethodCross = const payMethodCross =

View File

@ -22,7 +22,7 @@ describe('WorkerNotificationsManager', () => {
); );
}); });
it.skip('should active a notification that is yours', () => { it('should active a notification that is yours', () => {
cy.login('developer'); cy.login('developer');
cy.visit(`/#/worker/${developerId}/notifications`); cy.visit(`/#/worker/${developerId}/notifications`);
cy.waitForElement(activeList); cy.waitForElement(activeList);