From 7d612dd069536e23f07561d0df998d3d2e818c99 Mon Sep 17 00:00:00 2001 From: Tilman Vatteroth Date: Wed, 5 Apr 2023 11:44:36 +0200 Subject: [PATCH] fix: correct test history in cypress environment Signed-off-by: Tilman Vatteroth --- frontend/cypress/e2e/history.spec.ts | 9 +++++---- frontend/cypress/fixtures/history-2.json | 13 ++++++++++++- frontend/cypress/fixtures/history.json | 13 ++++++++++++- 3 files changed, 29 insertions(+), 6 deletions(-) diff --git a/frontend/cypress/e2e/history.spec.ts b/frontend/cypress/e2e/history.spec.ts index 91df3515d..96e343655 100644 --- a/frontend/cypress/e2e/history.spec.ts +++ b/frontend/cypress/e2e/history.spec.ts @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: AGPL-3.0-only */ +import type { HistoryEntry } from '../../src/api/history/types' describe('History', () => { describe('History Mode', () => { @@ -29,10 +30,10 @@ describe('History', () => { { identifier: 'cypress', title: 'Features', - lastVisited: '2020-05-16T22:26:56.547Z', + lastVisitedAt: '2020-05-16T22:26:56.547Z', pinStatus: false, tags: [] - } + } as HistoryEntry ] }) cy.visitHistory() @@ -56,10 +57,10 @@ describe('History', () => { { identifier: 'cypress-no-title', title: '', - lastVisited: '2020-05-16T22:26:56.547Z', + lastVisitedAt: '2020-05-16T22:26:56.547Z', pinStatus: false, tags: [] - } + } as HistoryEntry ] }) cy.visitHistory() diff --git a/frontend/cypress/fixtures/history-2.json b/frontend/cypress/fixtures/history-2.json index 0afdc98ff..36477572e 100644 --- a/frontend/cypress/fixtures/history-2.json +++ b/frontend/cypress/fixtures/history-2.json @@ -1 +1,12 @@ -{"version":2,"entries":[{"identifier":"cypress2","title":"cy-Test2","tags":[],"lastVisited":"2019-04-30T09:36:45.249+02:00","pinStatus":false}]} +{ + "version" : 2, + "entries" : [ + { + "identifier" : "cypress2", + "title" : "cy-Test2", + "tags" : [], + "lastVisitedAt" : "2019-04-30T09:36:45.249+02:00", + "pinStatus" : false + } + ] +} diff --git a/frontend/cypress/fixtures/history.json b/frontend/cypress/fixtures/history.json index 98abb1133..57b7b8f1f 100644 --- a/frontend/cypress/fixtures/history.json +++ b/frontend/cypress/fixtures/history.json @@ -1 +1,12 @@ -{"version":2,"entries":[{"identifier":"cypress","title":"cy-Test","tags":[],"lastVisited":"2019-04-30T09:36:45.249+02:00","pinStatus":false}]} +{ + "version" : 2, + "entries" : [ + { + "identifier" : "cypress", + "title" : "cy-Test", + "tags" : [], + "lastVisitedAt" : "2019-04-30T09:36:45.249+02:00", + "pinStatus" : false + } + ] +}