1
0

feat(cypress): use cy.session

Also align repo closer to `create-vue` template and improve cypress integration
This commit is contained in:
Dominik Pschenitschni
2022-12-15 22:35:17 +01:00
parent 6ddfba4f1f
commit 4908469d49
44 changed files with 316 additions and 190 deletions

View File

@ -1,11 +1,7 @@
import {UserFactory} from '../../factories/user'
import '../../support/authenticateUser'
import {createFakeUserAndLogin} from '../../support/authenticateUser'
describe('User Settings', () => {
beforeEach(() => {
UserFactory.create(1)
})
createFakeUserAndLogin()
it('Changes the user avatar', () => {
cy.intercept(`${Cypress.env('API_URL')}/user/settings/avatar/upload`).as('uploadAvatar')