8231_testToMaster_2448 #997

Merged
alexm merged 400 commits from 8231_testToMaster_2448 into master 2024-11-26 06:28:29 +00:00
1 changed files with 8 additions and 7 deletions
Showing only changes of commit 0b5be9e67f - Show all commits

View File

@ -280,13 +280,14 @@ Cypress.Commands.add('openActions', (row) => {
cy.get('tbody > tr').eq(row).find('.actions > .q-btn').click();
});
Cypress.Commands.add('checkNotification', (type) => {
const values = {
created: 'Data created',
updated: 'Data saved',
deleted: 'Data deleted',
};
cy.get('.q-notification__message').should('have.text', values[type]);
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('checkValueForm', (id, search) => {