describe('Item Request', () => { beforeEach(() => { cy.login('buyer'); cy.visit(`/#/item/request`); }); it('should fill the id and quantity then check the concept was updated', async () => { cy.get('td[data-row-index="0"][data-col-field="itemFk"]') .should('exist') .type('4'); cy.get('td[data-row-index="0"][data-col-field="saleQuantity"]') .should('exist') .type('10{esc}'); cy.checkNotification('Data saved'); }); it('should now click on the second declain request icon then type the reason', async () => { cy.selectOption('[data-cy="State_select"]', 'Pending'); cy.get('button[title="Discard"]').eq(0).click(); cy.dataCy('discardTextArea').should('exist').type('test(enter)'); cy.checkNotification('Data saved'); }); });