Add new visit functions in e2e tests

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2022-01-30 21:46:43 +01:00
parent 566b3009b6
commit ca5dae3f82
34 changed files with 88 additions and 56 deletions

View file

@ -7,7 +7,7 @@
describe('History', () => {
describe('History Mode', () => {
beforeEach(() => {
cy.visit('/history')
cy.visitHistory()
})
it('Cards', () => {
@ -35,7 +35,7 @@ describe('History', () => {
}
]
})
cy.visit('/history')
cy.visitHistory()
})
it('in table view', () => {
@ -62,7 +62,7 @@ describe('History', () => {
}
]
})
cy.visit('/history')
cy.visitHistory()
})
it('in table view', () => {
@ -79,7 +79,7 @@ describe('History', () => {
describe('Pinning', () => {
beforeEach(() => {
cy.visit('/history')
cy.visitHistory()
})
describe('working', () => {
@ -131,7 +131,7 @@ describe('History', () => {
cy.intercept('GET', '/mock-backend/api/private/me/history', {
body: []
})
cy.visit('/history')
cy.visitHistory()
cy.logout()
})