update e2e tests for settings initialization

This commit is contained in:
Michael Shamoon 2022-05-07 07:17:03 -07:00
parent 35a558ec01
commit b2307d911e
5 changed files with 80 additions and 34 deletions

View file

@ -2,6 +2,9 @@ describe('document-detail', () => {
beforeEach(() => {
this.modifiedDocuments = []
cy.intercept('http://localhost:8000/api/frontend_settings/', {
fixture: 'frontend_settings/settings.json',
})
cy.fixture('documents/documents.json').then((documentsJson) => {
cy.intercept('GET', 'http://localhost:8000/api/documents/1/', (req) => {
let response = { ...documentsJson }