perf: refs #6943 #6943 merge command
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Javier Segarra 2024-10-25 10:53:19 +02:00
parent ff559384aa
commit 02f682ac0b
3 changed files with 3 additions and 9 deletions

View File

@ -28,7 +28,7 @@ describe('Client list', () => {
cy.get('.q-mt-lg > .q-btn--standard').click(); cy.get('.q-mt-lg > .q-btn--standard').click();
cy.checkNotification('created'); cy.checkNotification('Data created');
cy.url().should('include', '/summary'); cy.url().should('include', '/summary');
}); });
it('Client list search client', () => { it('Client list search client', () => {

View File

@ -11,7 +11,7 @@ describe('AgencyWorkCenter', () => {
// create // create
cy.get(createButton).click(); cy.get(createButton).click();
cy.get(workCenterCombobox).type('workCenterOne{enter}'); cy.get(workCenterCombobox).type('workCenterOne{enter}');
cy.checkNotification('created'); cy.checkNotification('Data created');
// expect error when duplicate // expect error when duplicate
cy.get(createButton).click(); cy.get(createButton).click();

View File

@ -274,13 +274,7 @@ Cypress.Commands.add('openActions', (row) => {
cy.get('tbody > tr').eq(row).find('.actions > .q-btn').click(); cy.get('tbody > tr').eq(row).find('.actions > .q-btn').click();
}); });
Cypress.Commands.add('checkNotification', (tag) => { Cypress.Commands.add('checkNotification', (text) => {
const defaultTags = {
created: 'Data created',
updated: 'Data saved',
deleted: 'Data deleted',
}; //last
const text = defaultTags[tag] ?? tag;
cy.get('.q-notification') cy.get('.q-notification')
.should('be.visible') .should('be.visible')
.last() .last()