8602-refatorAndCreateEntry #1584

Merged
pablone merged 31 commits from 8602-refatorAndCreateEntry into test 2025-03-18 08:41:59 +00:00
1 changed files with 15 additions and 0 deletions
Showing only changes of commit d52f60666a - Show all commits

View File

@ -402,3 +402,18 @@ Cypress.Commands.add('clickButtonWithIcon', (iconClass) => {
Cypress.Commands.add('clickButtonWithText', (buttonText) => {
cy.get('.q-btn').contains(buttonText).click();
});
Cypress.Commands.add('getOption', (index = 1) => {
cy.waitForElement('[role="listbox"]');
cy.get(`[role="listbox"] .q-item:nth-child(${index})`).click();
});
Cypress.Commands.add('searchBtnFilterPanel', () => {
cy.get(
'.q-scrollarea__content > .q-btn--standard > .q-btn__content > .q-icon',
).click();
});
Cypress.Commands.add('waitRequest', (alias, cb) => {
cy.wait(alias).then(cb);
});