mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-16 08:04:45 -04:00
fix(frontend): refactor api error handling
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
e93144eb40
commit
57bfca7b15
44 changed files with 387 additions and 465 deletions
|
@ -23,6 +23,9 @@ describe('Delete note', () => {
|
|||
})
|
||||
|
||||
it('displays an error notification if something goes wrong', () => {
|
||||
cy.intercept('DELETE', `api/private/notes/${testNoteId}`, {
|
||||
statusCode: 400
|
||||
})
|
||||
cy.getByCypressId('sidebar.deleteNote.button').click()
|
||||
cy.getByCypressId('sidebar.deleteNote.modal').should('be.visible')
|
||||
cy.getByCypressId('sidebar.deleteNote.modal.noteTitle').should('be.visible').text().should('eq', '')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue