Commit 9353349e authored by jfriedli's avatar jfriedli
Browse files

Merge branch '45-add-error-message-when-extension-loading-failed' into 'develop'

Resolve "Add Error Message when extension loading failed"

Closes #45

See merge request !87
parents 134646a6 a43d3854
Pipeline #31309 passed with stages
in 38 minutes and 16 seconds
......@@ -7,6 +7,7 @@
"supportFile": "test/cypress/support/index.js",
"videosFolder": "test/cypress/videos",
"video": true,
"waitForAnimations": false,
"json.schemas": [
{
"fileMatch": [
......
......@@ -144,6 +144,7 @@ export default {
message: this.$t('loading_failed'),
icon: 'report_problem'
})
this.$router.push('/error')
})
}
}
......
src/statics/icons/favicon.ico

35.2 KB | W: | H:

src/statics/icons/favicon.ico

35.2 KB | W: | H:

src/statics/icons/favicon.ico
src/statics/icons/favicon.ico
src/statics/icons/favicon.ico
src/statics/icons/favicon.ico
  • 2-up
  • Swipe
  • Onion skin
......@@ -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')
})
})
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment