perf: merge previous conflicts
gitea/salix-front/pipeline/pr-master There was a failure building this commit Details

This commit is contained in:
Javier Segarra 2024-11-28 20:21:42 +01:00
parent 1a6fcea160
commit 96e32044a6
3 changed files with 3 additions and 41 deletions

View File

@ -185,7 +185,7 @@ const getItemPackagingType = (ticketSales) => {
:columns="columns"
:without-header="true"
auto-load
:row-click="rowClick"
redirect="ticket"
order="shipped DESC, id"
:disable-option="{ card: true, table: true }"
class="full-width"

View File

@ -1,5 +1,5 @@
/// <reference types="cypress" />
describe('Handle Client list', () => {
describe('Client list', () => {
beforeEach(() => {
cy.viewport(1280, 720);
cy.login('developer');

View File

@ -276,26 +276,6 @@ Cypress.Commands.add('clickButtonsDescriptor', (id) => {
.click();
});
Cypress.Commands.add('openActionDescriptor', (opt) => {
cy.openActionsDescriptor();
const listItem = '[role="menu"] .q-list .q-item';
cy.contains(listItem, opt).click();
1;
});
Cypress.Commands.add('clickButtonsDescriptor', (id) => {
cy.get(`.actions > .q-card__actions> .q-btn:nth-child(${id})`)
.invoke('removeAttr', 'target')
.click();
});
Cypress.Commands.add('openActionDescriptor', (opt) => {
cy.openActionsDescriptor();
const listItem = '[role="menu"] .q-list .q-item';
cy.contains(listItem, opt).click();
1;
});
Cypress.Commands.add('clickButtonsDescriptor', (id) => {
cy.get(`.actions > .q-card__actions> .q-btn:nth-child(${id})`)
.invoke('removeAttr', 'target')
@ -322,7 +302,7 @@ Cypress.Commands.add('checkNotification', (text) => {
});
});
Cypress.Commands.add('checkValueForm', (id, search) => {
Cypress.Commands.add('_checkValueForm', (id, search) => {
cy.get(
`.grid-create > :nth-child(${id})> .q-field > .q-field__inner>.q-field__control> .q-field__control-container>.q-field__native >.q-field__input`
).should('have.value', search);
@ -338,20 +318,6 @@ Cypress.Commands.add('openUserPanel', () => {
).click();
});
Cypress.Commands.add('checkNotification', (text) => {
cy.get('.q-notification')
.should('be.visible')
.last()
.then(($lastNotification) => {
if (!Cypress.$($lastNotification).text().includes(text))
throw new Error(`Notification not found: "${text}"`);
});
});
Cypress.Commands.add('openActions', (row) => {
cy.get('tbody > tr').eq(row).find('.actions > .q-btn').click();
});
Cypress.Commands.add('checkValueForm', (id, search) => {
cy.get(`.grid-create > :nth-child(${id}) `)
.find('input')
@ -364,10 +330,6 @@ Cypress.Commands.add('checkValueSelectForm', (id, search) => {
).should('have.value', search);
});
Cypress.Commands.add('searchByLabel', (label, value) => {
cy.get(`[label="${label}"] > .q-field > .q-field__inner`).type(`${value}{enter}`);
});
Cypress.Commands.add('dataCy', (tag, attr = 'data-cy') => {
return cy.get(`[${attr}="${tag}"]`);
});