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.checkNotification('created');
|
||||
cy.checkNotification('Data created');
|
||||
cy.url().should('include', '/summary');
|
||||
});
|
||||
it('Client list search client', () => {
|
||||
|
|
|
@ -11,7 +11,7 @@ describe('AgencyWorkCenter', () => {
|
|||
// create
|
||||
cy.get(createButton).click();
|
||||
cy.get(workCenterCombobox).type('workCenterOne{enter}');
|
||||
cy.checkNotification('created');
|
||||
cy.checkNotification('Data created');
|
||||
|
||||
// expect error when duplicate
|
||||
cy.get(createButton).click();
|
||||
|
|
|
@ -274,13 +274,7 @@ Cypress.Commands.add('openActions', (row) => {
|
|||
cy.get('tbody > tr').eq(row).find('.actions > .q-btn').click();
|
||||
});
|
||||
|
||||
Cypress.Commands.add('checkNotification', (tag) => {
|
||||
const defaultTags = {
|
||||
created: 'Data created',
|
||||
updated: 'Data saved',
|
||||
deleted: 'Data deleted',
|
||||
}; //last
|
||||
const text = defaultTags[tag] ?? tag;
|
||||
Cypress.Commands.add('checkNotification', (text) => {
|
||||
cy.get('.q-notification')
|
||||
.should('be.visible')
|
||||
.last()
|
||||
|
|
Loading…
Reference in New Issue