Skip to content

Commit

Permalink
modify attachments e2e test to check if image is not cleaned up
Browse files Browse the repository at this point in the history
  • Loading branch information
cmoinier committed Oct 23, 2024
1 parent f318700 commit 506684a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/metadata-editor-e2e/src/e2e/edit.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
Expand Down

0 comments on commit 506684a

Please sign in to comment.