mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 07:45:32 +01:00
Refactor to UiSettings
This commit is contained in:
parent
b2307d911e
commit
de89f75707
11 changed files with 30 additions and 30 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue