diff --git a/cypress.json b/cypress.json index d3d18aa1b1b5389ffbe96391c6a49afe999dd3a0..32020b9cff77a241f9703881871ee68561432e72 100755 --- a/cypress.json +++ b/cypress.json @@ -7,6 +7,7 @@ "supportFile": "test/cypress/support/index.js", "videosFolder": "test/cypress/videos", "video": true, + "waitForAnimations": false, "json.schemas": [ { "fileMatch": [ diff --git a/src/pages/Upload.vue b/src/pages/Upload.vue index 03aa2a07cf94232f162940ff99b2e7de81e076b2..e5af380d4e86222836466deb6c01e0ec98387120 100644 --- a/src/pages/Upload.vue +++ b/src/pages/Upload.vue @@ -144,6 +144,7 @@ export default { message: this.$t('loading_failed'), icon: 'report_problem' }) + this.$router.push('/error') }) } } diff --git a/src/statics/icons/favicon.ico b/src/statics/icons/favicon.ico index b9ac11924b535c1c86885d5b9199768f28597fd7..7b9e313b126b387ad49d6cf5c594d6a2ceeb2731 100644 Binary files a/src/statics/icons/favicon.ico and b/src/statics/icons/favicon.ico differ diff --git a/test/cypress/integration/upload/init.spec.js b/test/cypress/integration/upload/init.spec.js index 4bf76598798512ecba4a1a2c318adee900ad522a..f5b5738d5aa4e0569b1a71217b236e70cef4cd12 100755 --- a/test/cypress/integration/upload/init.spec.js +++ b/test/cypress/integration/upload/init.spec.js @@ -107,3 +107,18 @@ describe('Upload page tests', () => { cy.get('.uppy-Informer').contains('You can only upload 10 files ') }) }) + +describe('Getting Extensions', () => { + it('does fail and redirects to error page', () => { + cy.server() + cy.route({ + method: 'GET', + url: '/api/extension', + status: 400, + response: [''] + }).as('supportedExtensions') + cy.visit('/') + cy.wait('@supportedExtensions') + cy.get('[data-cy=general-error-text]').contains('O Ooooh, Something went wrong') + }) +})