From ce0936d11ce25235bb8ae1108a298092efd4aaa4 Mon Sep 17 00:00:00 2001 From: pablone Date: Mon, 12 May 2025 14:03:01 +0200 Subject: [PATCH] refactor: refs #8684 change beforeEach to before and remove async from test cases in itemRequest.spec.js --- test/cypress/integration/item/itemRequest.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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}');