Refactor to UiSettings

This commit is contained in:
Michael Shamoon
2022-05-07 08:11:10 -07:00
parent b2307d911e
commit de89f75707
11 changed files with 30 additions and 30 deletions

View File

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

View File

@@ -3,8 +3,8 @@ describe('documents-list', () => {
this.bulkEdits = {}
// mock API methods
cy.intercept('http://localhost:8000/api/frontend_settings/', {
fixture: 'frontend_settings/settings.json',
cy.intercept('http://localhost:8000/api/ui_settings/', {
fixture: 'ui_settings/settings.json',
})
cy.fixture('documents/documents.json').then((documentsJson) => {
// bulk edit

View File

@@ -1,7 +1,7 @@
describe('manage', () => {
beforeEach(() => {
cy.intercept('http://localhost:8000/api/frontend_settings/', {
fixture: 'frontend_settings/settings.json',
cy.intercept('http://localhost:8000/api/ui_settings/', {
fixture: 'ui_settings/settings.json',
})
cy.intercept('http://localhost:8000/api/correspondents/*', {
fixture: 'correspondents/correspondents.json',

View File

@@ -3,8 +3,8 @@ describe('settings', () => {
this.modifiedViews = []
// mock API methods
cy.intercept('http://localhost:8000/api/frontend_settings/', {
fixture: 'frontend_settings/settings.json',
cy.intercept('http://localhost:8000/api/ui_settings/', {
fixture: 'ui_settings/settings.json',
}).then(() => {
cy.fixture('saved_views/savedviews.json').then((savedViewsJson) => {
// saved views PATCH