Fix fixture organization

[ci skip]
This commit is contained in:
Michael Shamoon
2022-03-23 21:32:42 -07:00
parent 787ee454ff
commit 9a042118f9
10 changed files with 9 additions and 8 deletions

View File

@@ -58,15 +58,15 @@ describe('documents-list', () => {
})
cy.intercept('http://localhost:8000/api/tags/*', {
fixture: 'documents/tags.json',
fixture: 'tags/tags.json',
})
cy.intercept('http://localhost:8000/api/correspondents/*', {
fixture: 'documents/correspondents.json',
fixture: 'correspondents/correspondents.json',
})
cy.intercept('http://localhost:8000/api/document_types/*', {
fixture: 'documents/doctypes.json',
fixture: 'document_types/doctypes.json',
})
cy.visit('/documents')

View File

@@ -1,10 +1,10 @@
describe('documents-list', () => {
beforeEach(() => {
cy.intercept('http://localhost:8000/api/correspondents/*', {
fixture: 'manage/correspondents.json',
fixture: 'correspondents/correspondents.json',
})
cy.intercept('http://localhost:8000/api/tags/*', {
fixture: 'manage/tags.json',
fixture: 'tags/tags.json',
})
})

View File

@@ -3,7 +3,7 @@ describe('settings', () => {
this.modifiedViews = []
// mock API methods
cy.fixture('settings/savedviews.json').then((savedViewsJson) => {
cy.fixture('saved_views/savedviews.json').then((savedViewsJson) => {
// saved views PATCH
cy.intercept(
'PATCH',