use global fixtures in e2e tests

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

View File

@@ -1,15 +1,5 @@
describe('manage', () => {
beforeEach(() => {
cy.intercept('http://localhost:8000/api/ui_settings/', {
fixture: 'ui_settings/settings.json',
})
cy.intercept('http://localhost:8000/api/correspondents/*', {
fixture: 'correspondents/correspondents.json',
})
cy.intercept('http://localhost:8000/api/tags/*', {
fixture: 'tags/tags.json',
})
})
// also uses global fixtures from cypress/support/e2e.ts
it('should show a list of correspondents with bottom pagination as well', () => {
cy.visit('/correspondents')