test element update route
This commit is contained in:
parent
299ccc4f58
commit
9cb968afd8
3 changed files with 33 additions and 21 deletions
|
|
@ -111,7 +111,7 @@ describe('admin element editing', () => {
|
|||
cy.resetDb()
|
||||
loginAsAdmin()
|
||||
cy.visit('/admin/element/1')
|
||||
cy.intercept('POST', /\/api\/elements\/1$/).as('updateElement')
|
||||
cy.intercept('POST', /\/api\/element\/update$/).as('updateElement')
|
||||
|
||||
cy.get('[data-cy="admin-element-icon-image-input"]').selectFile(
|
||||
'public/assets/baderech-haavodah-icon.png',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue