Skip to content

Commit

Permalink
fix failing test #1075
Browse files Browse the repository at this point in the history
  • Loading branch information
asuresh-code committed Dec 13, 2024
1 parent 2b0ae3f commit 9fccbfa
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions cypress/e2e/with_mock_data/items.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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"}'
);
});
});
Expand Down

0 comments on commit 9fccbfa

Please sign in to comment.