fix cypress runs (#755)

This PR fixes the cypress tests, by adding a stub to the put request.
This commit is contained in:
Philip Molares 2020-11-15 18:00:53 +01:00 committed by GitHub
parent 870cc874ea
commit b3a0411a35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,6 +18,15 @@ describe('History', () => {
})
describe('Pinning', () => {
beforeEach(() => {
cy.route({
method: 'PUT',
url: '/api/v2/history/**',
status: 401,
response: {}
})
})
it('Cards', () => {
cy.get('div.card')
.should('be.visible')