From b3a0411a35166306e33cb18db56b386f40bf3cf0 Mon Sep 17 00:00:00 2001 From: Philip Molares Date: Sun, 15 Nov 2020 18:00:53 +0100 Subject: [PATCH] fix cypress runs (#755) This PR fixes the cypress tests, by adding a stub to the put request. --- cypress/integration/history.spec.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cypress/integration/history.spec.ts b/cypress/integration/history.spec.ts index 2f4d7054e..f5bce9acd 100644 --- a/cypress/integration/history.spec.ts +++ b/cypress/integration/history.spec.ts @@ -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')