diff --git a/test/cypress/integration/item/itemRequest.spec.js b/test/cypress/integration/item/itemRequest.spec.js index f57879f00..cf54bc2a8 100644 --- a/test/cypress/integration/item/itemRequest.spec.js +++ b/test/cypress/integration/item/itemRequest.spec.js @@ -3,12 +3,12 @@ describe('Item Request', () => { const itemFkField = `td[data-row-index="${rowIndex}"][data-col-field="itemFk"]`; const saleQuantityField = `td[data-row-index="${rowIndex}"][data-col-field="saleQuantity"]`; - beforeEach(() => { + before(() => { cy.login('buyer'); cy.visit(`/#/item/request`); }); - it('should fill the id and quantity then check the concept was updated', async () => { + it('should fill the id and quantity then check the concept was updated', () => { cy.waitForElement('tbody'); cy.get(itemFkField).should('exist').click(); cy.get(`${itemFkField} input`).should('exist').type('4'); @@ -17,7 +17,7 @@ describe('Item Request', () => { cy.checkNotification('Data saved'); }); - it('should now click on the second deny request icon then type the reason', async () => { + it('should now click on the second deny request icon then type the reason', () => { cy.selectOption('[data-cy="State_select"]', 'Pending'); cy.get('button[title="Discard"]').eq(0).click(); cy.dataCy('discardTextArea').should('exist').type('test{enter}');