use global fixtures in e2e tests

This commit is contained in:
Michael Shamoon
2022-06-02 15:00:41 -07:00
parent ef48762da5
commit bed03b301b
6 changed files with 51 additions and 103 deletions

View File

@@ -1,5 +1,7 @@
describe('settings', () => {
beforeEach(() => {
// also uses global fixtures from cypress/support/e2e.ts
this.modifiedViews = []
// mock API methods
@@ -42,14 +44,6 @@ describe('settings', () => {
req.reply(response)
})
})
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.viewport(1024, 1024)