mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-29 22:35:50 -04:00
Fix Communication between frontend and backend (#1201)
Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de> Signed-off-by: Philip Molares <philip.molares@udo.edu> Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
4a18e51c83
commit
9cf7980334
38 changed files with 268 additions and 164 deletions
|
@ -26,7 +26,7 @@ describe('History', () => {
|
|||
describe('Pinning', () => {
|
||||
describe('working', () => {
|
||||
beforeEach(() => {
|
||||
cy.intercept('PUT', '/api/private/history/features', (req) => {
|
||||
cy.intercept('PUT', '/api/private/me/history/features', (req) => {
|
||||
req.reply(200, req.body)
|
||||
})
|
||||
})
|
||||
|
@ -60,7 +60,7 @@ describe('History', () => {
|
|||
|
||||
describe('failing', () => {
|
||||
beforeEach(() => {
|
||||
cy.intercept('PUT', '/api/private/history/features', {
|
||||
cy.intercept('PUT', '/api/private/me/history/features', {
|
||||
statusCode: 401
|
||||
})
|
||||
})
|
||||
|
|
|
@ -45,7 +45,7 @@ export const config = {
|
|||
saml: 'aufSAMLn.de'
|
||||
},
|
||||
maxDocumentLength: 200,
|
||||
specialLinks: {
|
||||
specialUrls: {
|
||||
privacy: 'https://example.com/privacy',
|
||||
termsOfUse: 'https://example.com/termsOfUse',
|
||||
imprint: 'https://example.com/imprint'
|
||||
|
@ -57,8 +57,8 @@ export const config = {
|
|||
issueTrackerUrl: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'
|
||||
},
|
||||
'iframeCommunication': {
|
||||
'editorOrigin': 'http://127.0.0.1:3001',
|
||||
'rendererOrigin': 'http://127.0.0.1:3001'
|
||||
'editorOrigin': 'http://127.0.0.1:3001/',
|
||||
'rendererOrigin': 'http://127.0.0.1:3001/'
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -18,16 +18,21 @@ Cypress.Commands.add('visitTestEditor', (query?: string) => {
|
|||
|
||||
beforeEach(() => {
|
||||
cy.intercept(`/api/private/notes/${ testNoteId }-get`, {
|
||||
'id': 'ABC123',
|
||||
'alias': 'banner',
|
||||
'lastChange': {
|
||||
'userId': 'test',
|
||||
'timestamp': 1600033920
|
||||
},
|
||||
'viewCount': 0,
|
||||
'createTime': 1600033920,
|
||||
'content': '',
|
||||
'authorship': [],
|
||||
'preVersionTwoNote': true
|
||||
"content": "",
|
||||
"metadata": {
|
||||
"id": "ABC11",
|
||||
"alias": "banner",
|
||||
"version": 2,
|
||||
"viewCount": 0,
|
||||
"updateTime": "2021-04-24T09:27:51.000Z",
|
||||
"updateUser": {
|
||||
"userName": "test",
|
||||
"displayName": "Testy",
|
||||
"photo": "",
|
||||
"email": ""
|
||||
},
|
||||
"createTime": "2021-04-24T09:27:51.000Z",
|
||||
"editedBy": []
|
||||
}
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue