mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-15 15:44:45 -04:00
fix cypress runs (#755)
This PR fixes the cypress tests, by adding a stub to the put request.
This commit is contained in:
parent
870cc874ea
commit
b3a0411a35
1 changed files with 9 additions and 0 deletions
|
@ -18,6 +18,15 @@ describe('History', () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('Pinning', () => {
|
describe('Pinning', () => {
|
||||||
|
beforeEach(() => {
|
||||||
|
cy.route({
|
||||||
|
method: 'PUT',
|
||||||
|
url: '/api/v2/history/**',
|
||||||
|
status: 401,
|
||||||
|
response: {}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
it('Cards', () => {
|
it('Cards', () => {
|
||||||
cy.get('div.card')
|
cy.get('div.card')
|
||||||
.should('be.visible')
|
.should('be.visible')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue