diff --git a/src/pages/Customer/components/CustomerSummaryTable.vue b/src/pages/Customer/components/CustomerSummaryTable.vue index 244a91c37..612adacc7 100644 --- a/src/pages/Customer/components/CustomerSummaryTable.vue +++ b/src/pages/Customer/components/CustomerSummaryTable.vue @@ -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" diff --git a/test/cypress/integration/client/clientList.spec.js b/test/cypress/integration/client/clientList.spec.js index b70d9afd8..e89b5fc77 100644 --- a/test/cypress/integration/client/clientList.spec.js +++ b/test/cypress/integration/client/clientList.spec.js @@ -1,5 +1,5 @@ /// -describe('Handle Client list', () => { +describe('Client list', () => { beforeEach(() => { cy.viewport(1280, 720); cy.login('developer'); diff --git a/test/cypress/support/commands.js b/test/cypress/support/commands.js index 36e215e8b..a4c933d2e 100755 --- a/test/cypress/support/commands.js +++ b/test/cypress/support/commands.js @@ -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}"]`); });