From 9fccbfa4e3c55c0b3a6a31b5a45917926d920c38 Mon Sep 17 00:00:00 2001 From: Anikesh Suresh Date: Fri, 13 Dec 2024 11:00:32 +0000 Subject: [PATCH] fix failing test #1075 --- cypress/e2e/with_mock_data/items.cy.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/cypress/e2e/with_mock_data/items.cy.ts b/cypress/e2e/with_mock_data/items.cy.ts index 677340851..4080ce7c5 100644 --- a/cypress/e2e/with_mock_data/items.cy.ts +++ b/cypress/e2e/with_mock_data/items.cy.ts @@ -909,16 +909,13 @@ describe('Items', () => { .should('be.visible') .within(() => { cy.findByLabelText('File Name *').clear(); - cy.findByLabelText('File Name *').type('test'); + cy.findByLabelText('File Name *').type('test file'); cy.findByLabelText('Title').clear(); - cy.findByLabelText('Title').type('test'); + cy.findByLabelText('Title').type('test title'); cy.findByLabelText('Description').clear(); - cy.findByLabelText('Description').type('test'); - cy.findByLabelText('Description') - .invoke('val') - .should('equal', 'test'); + cy.findByLabelText('Description').type('test description'); }); cy.startSnoopingBrowserMockedRequest(); @@ -933,7 +930,7 @@ describe('Items', () => { expect(patchRequests.length).equal(1); const request = patchRequests[0]; expect(JSON.stringify(await request.json())).equal( - '{"file_name":"test","title": "test","description":"test"}' + '{"file_name":"test file","description":"test description","title":"test title"}' ); }); });