Cypress.Commands.add('selectTravel', (warehouse = '1') => { cy.get('i[data-cy="Travel_icon"]').click(); cy.get('input[data-cy="Warehouse Out_select"]').type(warehouse); cy.get('div[role="listbox"] > div > div[role="option"]').eq(0).click(); cy.get('button[data-cy="save-filter-travel-form"]').click(); cy.get('tr').eq(1).click(); }); Cypress.Commands.add('deleteEntry', () => { cy.get('[data-cy="descriptor-more-opts"]').should('be.visible').click(); cy.waitForElement('div[data-cy="delete-entry"]').click(); cy.url().should('include', 'list'); }); Cypress.Commands.add('createEntry', () => { cy.get('button[data-cy="vnTableCreateBtn"]').click(); cy.selectTravel('one'); cy.get('button[data-cy="FormModelPopup_save"]').click(); cy.url().should('include', 'summary'); cy.get('.q-notification__message').eq(0).should('have.text', 'Data created'); });