2022-06-02 15:00:41 -07:00
|
|
|
// mock API methods
|
|
|
|
|
|
|
|
|
|
beforeEach(() => {
|
|
|
|
|
cy.intercept('http://localhost:8000/api/ui_settings/', {
|
|
|
|
|
fixture: 'ui_settings/settings.json',
|
2023-01-05 00:36:03 -08:00
|
|
|
}).as('ui-settings')
|
2022-06-02 15:00:41 -07:00
|
|
|
|
2022-12-17 20:09:29 -08:00
|
|
|
cy.intercept('http://localhost:8000/api/users/*', {
|
2022-12-07 08:04:51 -08:00
|
|
|
fixture: 'users/users.json',
|
|
|
|
|
})
|
|
|
|
|
|
2022-12-17 20:09:29 -08:00
|
|
|
cy.intercept('http://localhost:8000/api/groups/*', {
|
2022-12-07 08:04:51 -08:00
|
|
|
fixture: 'groups/groups.json',
|
|
|
|
|
})
|
|
|
|
|
|
2022-06-02 15:00:41 -07:00
|
|
|
cy.intercept('http://localhost:8000/api/remote_version/', {
|
|
|
|
|
fixture: 'remote_version/remote_version.json',
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
cy.intercept('http://localhost:8000/api/saved_views/*', {
|
|
|
|
|
fixture: 'saved_views/savedviews.json',
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
cy.intercept('http://localhost:8000/api/tags/*', {
|
|
|
|
|
fixture: 'tags/tags.json',
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
cy.intercept('http://localhost:8000/api/correspondents/*', {
|
|
|
|
|
fixture: 'correspondents/correspondents.json',
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
cy.intercept('http://localhost:8000/api/document_types/*', {
|
|
|
|
|
fixture: 'document_types/doctypes.json',
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
cy.intercept('http://localhost:8000/api/storage_paths/*', {
|
|
|
|
|
fixture: 'storage_paths/storage_paths.json',
|
|
|
|
|
})
|
|
|
|
|
|
2023-01-05 00:36:03 -08:00
|
|
|
cy.intercept('http://localhost:8000/api/tasks/', {
|
|
|
|
|
fixture: 'tasks/tasks.json',
|
|
|
|
|
})
|
|
|
|
|
|
2022-06-02 15:00:41 -07:00
|
|
|
cy.intercept('http://localhost:8000/api/documents/1/metadata/', {
|
|
|
|
|
fixture: 'documents/1/metadata.json',
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
cy.intercept('http://localhost:8000/api/documents/1/suggestions/', {
|
|
|
|
|
fixture: 'documents/1/suggestions.json',
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
cy.intercept('http://localhost:8000/api/documents/1/thumb/', {
|
|
|
|
|
fixture: 'documents/lorem-ipsum.png',
|
|
|
|
|
})
|
|
|
|
|
})
|