diff --git a/frontend/src/views/Layout/AuthLayout_gdd.spec.js b/frontend/src/views/Layout/AuthLayout_gdd.spec.js index aa05b772a..691cb3d0e 100644 --- a/frontend/src/views/Layout/AuthLayout_gdd.spec.js +++ b/frontend/src/views/Layout/AuthLayout_gdd.spec.js @@ -15,6 +15,7 @@ describe('AuthLayoutGdd', () => { meta: { hideFooter: false, }, + path: '/', }, $store: { state: {}, @@ -47,5 +48,20 @@ describe('AuthLayoutGdd', () => { it('has a footer inside the main content', () => { expect(wrapper.find('div.main-content').find('footer.footer').exists()).toBeTruthy() }) + + it('has LanguageSwitch', () => { + expect(wrapper.findComponent({ name: 'LanguageSwitch' }).exists()).toBeTruthy() + }) + + describe('check LanguageSwitch on register page', () => { + beforeEach(() => { + mocks.$route.path = '/register' + wrapper = Wrapper() + }) + + it('has not LanguageSwitch', () => { + expect(wrapper.findComponent({ name: 'LanguageSwitch' }).exists()).toBeFalsy() + }) + }) }) }) diff --git a/frontend/src/views/Layout/AuthLayout_gdd.vue b/frontend/src/views/Layout/AuthLayout_gdd.vue index 3ef8cb36f..4d0f8cb78 100644 --- a/frontend/src/views/Layout/AuthLayout_gdd.vue +++ b/frontend/src/views/Layout/AuthLayout_gdd.vue @@ -2,7 +2,7 @@