From 506684ae5a09fa0b78ba8e5c48b13aa2241dd112 Mon Sep 17 00:00:00 2001 From: cmoinier Date: Wed, 23 Oct 2024 11:02:44 +0200 Subject: [PATCH] modify attachments e2e test to check if image is not cleaned up --- apps/metadata-editor-e2e/src/e2e/edit.cy.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/metadata-editor-e2e/src/e2e/edit.cy.ts b/apps/metadata-editor-e2e/src/e2e/edit.cy.ts index abed248ec..22db16567 100644 --- a/apps/metadata-editor-e2e/src/e2e/edit.cy.ts +++ b/apps/metadata-editor-e2e/src/e2e/edit.cy.ts @@ -186,6 +186,13 @@ describe('editor form', () => { 'src/fixtures/sample.png' ) cy.editor_publishAndReload() + cy.intercept({ + method: 'GET', + url: '**/attachments/sample.png', + }).as('importUrlRequest') + cy.get('@importUrlRequest') + .its('response.statusCode') + .should('eq', 200) cy.get('@saveStatus').should('eq', 'record_up_to_date') cy.get('gn-ui-image-input').find('img').should('have.length', 1) })