2026-07-07 10:37:00 +02:00
|
|
|
import ErrorScreen from '../../../../src/components/AppTemplates/PartialViews/ErrorScreen.vue'
|
2026-10-02 08:13:31 +02:00
|
|
|
import { defaultPlugins, mount } from '../../../../src/testing'
|
2026-07-07 10:37:00 +02:00
|
|
|
describe('The external app error screen component', () => {
|
|
|
|
|
test('displays an icon and a paragraph', () => {
|
|
|
|
|
const wrapper = mount(ErrorScreen, {
|
|
|
|
|
props: {
|
|
|
|
|
message: 'Error when loading the application'
|
|
|
|
|
},
|
|
|
|
|
global: {
|
|
|
|
|
stubs: {
|
|
|
|
|
OcIcon: true
|
|
|
|
|
},
|
|
|
|
|
plugins: [...defaultPlugins()]
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
expect(wrapper.html()).toMatchSnapshot()
|
|
|
|
|
})
|
|
|
|
|
})
|