diff --git a/cypress/integration/common/profile.js b/cypress/integration/common/profile.js index 6f522573d..1df1e2652 100644 --- a/cypress/integration/common/profile.js +++ b/cypress/integration/common/profile.js @@ -1,10 +1,10 @@ -import { When, Then } from 'cypress-cucumber-preprocessor/steps'; +import { When, Then } from 'cypress-cucumber-preprocessor/steps' /* global cy */ When('I visit my profile page', () => { cy.openPage('profile/peter-pan') -}); +}) Then('I should be able to change my profile picture', () => { const avatarUpload = 'onourjourney.png' @@ -13,24 +13,24 @@ Then('I should be able to change my profile picture', () => { cy.get('#customdropzone').upload( { fileContent, fileName: avatarUpload, mimeType: 'image/png' }, { subjectType: 'drag-n-drop' } - ); - }); + ) + }) cy.get('.profile-avatar img') .should('have.attr', 'src') .and('contains', 'onourjourney') cy.contains('.iziToast-message', 'Upload successful').should( 'have.length', 1 - ); -}); + ) +}) When("I visit another user's profile page", () => { cy.openPage('profile/peter-pan') -}); +}) Then('I cannot upload a picture', () => { cy.get('.ds-card-content') .children() .should('not.have.id', 'customdropzone') .should('have.class', 'ds-avatar') -}); +}) diff --git a/webapp/package.json b/webapp/package.json index 3541c87de..091301ec9 100644 --- a/webapp/package.json +++ b/webapp/package.json @@ -73,7 +73,6 @@ "tiptap-extensions": "1.20.2", "v-tooltip": "~2.0.2", "vue-count-to": "~1.0.13", - "vue-in-viewport-mixin": "^2.0.0", "vue-izitoast": "1.1.2", "vue-sweetalert-icons": "~3.2.0", "vuex-i18n": "~1.11.0", diff --git a/webapp/yarn.lock b/webapp/yarn.lock index 469680cb0..163f9372e 100644 --- a/webapp/yarn.lock +++ b/webapp/yarn.lock @@ -11198,11 +11198,6 @@ vue-hot-reload-api@^2.3.0: resolved "https://registry.yarnpkg.com/vue-hot-reload-api/-/vue-hot-reload-api-2.3.3.tgz#2756f46cb3258054c5f4723de8ae7e87302a1ccf" integrity sha512-KmvZVtmM26BQOMK1rwUZsrqxEGeKiYSZGA7SNWE6uExx8UX/cj9hq2MRV/wWC3Cq6AoeDGk57rL9YMFRel/q+g== -vue-in-viewport-mixin@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/vue-in-viewport-mixin/-/vue-in-viewport-mixin-2.0.0.tgz#696058b06608cfe777cc37c30321d71b11746f55" - integrity sha512-crTph/eA7Sub2rzCnHiCuEXrpEfFSqahCxrv2wtFkMBRtwjVUkN9knHMiYvcciVewxXyOvIRUzMAiSKImUGgsg== - vue-izitoast@1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/vue-izitoast/-/vue-izitoast-1.1.2.tgz#0cf8290f045f8a389ccce4c238836c75a130eb03"