perf: refs #6943 #6943 merge command
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
ff559384aa
commit
02f682ac0b
|
@ -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', () => {
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue