diff --git a/webapp/components/PageFooter/PageFooter.vue b/webapp/components/PageFooter/PageFooter.vue new file mode 100644 index 000000000..d970792bb --- /dev/null +++ b/webapp/components/PageFooter/PageFooter.vue @@ -0,0 +1,31 @@ + + + diff --git a/webapp/components/PasswordReset/Request.spec.js b/webapp/components/PasswordReset/Request.spec.js index 1804be6a6..63e51cf76 100644 --- a/webapp/components/PasswordReset/Request.spec.js +++ b/webapp/components/PasswordReset/Request.spec.js @@ -6,11 +6,11 @@ const localVue = createLocalVue() localVue.use(Styleguide) config.stubs['sweetalert-icon'] = '' +config.stubs['client-only'] = '' +config.stubs['nuxt-link'] = '' describe('Request', () => { - let wrapper - let Wrapper - let mocks + let wrapper, Wrapper, mocks, stubs beforeEach(() => { mocks = { @@ -23,6 +23,12 @@ describe('Request', () => { loading: false, mutate: jest.fn().mockResolvedValue({ data: { reqestPasswordReset: true } }), }, + $i18n: { + locale: () => 'en', + }, + } + stubs = { + LocaleSwitch: "
", } }) @@ -33,6 +39,7 @@ describe('Request', () => { return mount(Request, { mocks, localVue, + stubs, }) } diff --git a/webapp/components/PasswordReset/Request.vue b/webapp/components/PasswordReset/Request.vue index 8ca2da89b..aa7e67fcf 100644 --- a/webapp/components/PasswordReset/Request.vue +++ b/webapp/components/PasswordReset/Request.vue @@ -1,58 +1,77 @@ + diff --git a/webapp/components/Registration/CreateUserAccount.spec.js b/webapp/components/Registration/CreateUserAccount.spec.js index 75e1ade83..6551211c0 100644 --- a/webapp/components/Registration/CreateUserAccount.spec.js +++ b/webapp/components/Registration/CreateUserAccount.spec.js @@ -7,12 +7,10 @@ const localVue = createLocalVue() localVue.use(Styleguide) config.stubs['sweetalert-icon'] = '' +config.stubs['client-only'] = '' describe('CreateUserAccount', () => { - let wrapper - let Wrapper - let mocks - let propsData + let wrapper, Wrapper, mocks, propsData, stubs beforeEach(() => { mocks = { @@ -27,6 +25,9 @@ describe('CreateUserAccount', () => { }, } propsData = {} + stubs = { + LocaleSwitch: "
", + } }) describe('mount', () => { @@ -35,6 +36,7 @@ describe('CreateUserAccount', () => { mocks, propsData, localVue, + stubs, }) } diff --git a/webapp/components/Registration/CreateUserAccount.vue b/webapp/components/Registration/CreateUserAccount.vue index 9e4d899e7..ebcfb9691 100644 --- a/webapp/components/Registration/CreateUserAccount.vue +++ b/webapp/components/Registration/CreateUserAccount.vue @@ -16,7 +16,10 @@ @submit="submit" >