mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-15 15:44:45 -04:00
fix: correct test history in cypress environment
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
bd8a5861e7
commit
7d612dd069
3 changed files with 29 additions and 6 deletions
|
@ -3,6 +3,7 @@
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
|
import type { HistoryEntry } from '../../src/api/history/types'
|
||||||
|
|
||||||
describe('History', () => {
|
describe('History', () => {
|
||||||
describe('History Mode', () => {
|
describe('History Mode', () => {
|
||||||
|
@ -29,10 +30,10 @@ describe('History', () => {
|
||||||
{
|
{
|
||||||
identifier: 'cypress',
|
identifier: 'cypress',
|
||||||
title: 'Features',
|
title: 'Features',
|
||||||
lastVisited: '2020-05-16T22:26:56.547Z',
|
lastVisitedAt: '2020-05-16T22:26:56.547Z',
|
||||||
pinStatus: false,
|
pinStatus: false,
|
||||||
tags: []
|
tags: []
|
||||||
}
|
} as HistoryEntry
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
cy.visitHistory()
|
cy.visitHistory()
|
||||||
|
@ -56,10 +57,10 @@ describe('History', () => {
|
||||||
{
|
{
|
||||||
identifier: 'cypress-no-title',
|
identifier: 'cypress-no-title',
|
||||||
title: '',
|
title: '',
|
||||||
lastVisited: '2020-05-16T22:26:56.547Z',
|
lastVisitedAt: '2020-05-16T22:26:56.547Z',
|
||||||
pinStatus: false,
|
pinStatus: false,
|
||||||
tags: []
|
tags: []
|
||||||
}
|
} as HistoryEntry
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
cy.visitHistory()
|
cy.visitHistory()
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue