@@ -275,7 +286,7 @@ async function importToNewRefundTicket() {
:default-remove="true"
:default-save="false"
:default-reset="false"
- @on-fetch="(data) => (rows = data)"
+ @on-fetch="setData"
auto-load
>
@@ -283,11 +294,9 @@ async function importToNewRefundTicket() {
:columns="columns"
:rows="rows"
:dense="$q.screen.lt.md"
- :pagination="{ rowsPerPage: 0 }"
row-key="id"
selection="multiple"
v-model:selected="selectedRows"
- hide-pagination
:grid="$q.screen.lt.md"
>
@@ -392,7 +401,7 @@ async function importToNewRefundTicket() {
-
+
{{ t('dialog title') }}
@@ -401,6 +410,7 @@ async function importToNewRefundTicket() {
-
+
-
@@ -493,8 +486,8 @@ async function importToNewRefundTicket() {
en:
mana: Is paid with mana
dialog title: Change destination to all selected rows
- dialogGreuge title: Insert greuges on client card
- ClaimGreugeDescription: Claim Id
+ confirmGreuges: Do you want to insert complaints?
+ confirmGreugesMessage: Insert complaints into the client's record
es:
mana: Cargado al maná
@@ -516,4 +509,6 @@ es:
dialogGreuge title: Insertar greuges en la ficha del cliente
ClaimGreugeDescription: Id reclamación
Id item: Id artículo
+ confirmGreuges: ¿Desea insertar greuges?
+ confirmGreugesMessage: Insertar greuges en la ficha del cliente
diff --git a/test/cypress/integration/claimAction.spec.js b/test/cypress/integration/claimAction.spec.js
index 09023e137e..e93579e2cf 100644
--- a/test/cypress/integration/claimAction.spec.js
+++ b/test/cypress/integration/claimAction.spec.js
@@ -19,7 +19,23 @@ describe('ClaimAction', () => {
cy.fillRow(firstRow, rowData);
});
+ // it('should change destination with 2 rows', () => {
+ // cy.get('[title="Change destination"]').click();
+
+ // const rowData = ['Basura'];
+ // cy.fillRow()
+ // });
+
it('should regularize', () => {
cy.get('[title="Regularize"]').click();
});
+
+ it('should remove the line', () => {
+ cy.fillRow(firstRow, [true]);
+ cy.removeCard();
+ cy.clickConfirm();
+
+ cy.reload();
+ cy.get(firstRow).should('not.exist');
+ });
});
diff --git a/test/cypress/support/commands.js b/test/cypress/support/commands.js
index a67df121e1..d361eee1a4 100755
--- a/test/cypress/support/commands.js
+++ b/test/cypress/support/commands.js
@@ -88,7 +88,8 @@ Cypress.Commands.add('addCard', () => {
cy.get('.q-page-sticky > div > .q-btn').click();
});
Cypress.Commands.add('clickConfirm', () => {
- cy.get('.q-btn--unelevated > .q-btn__content > .block').click();
+ cy.waitForElement('.q-dialog__inner > .q-card');
+ cy.get('.q-card__actions > .q-btn--unelevated > .q-btn__content > .block').click();
});
Cypress.Commands.add('notificationHas', (selector, text) => {