From cd3751bf9981ba34d52e14ac87cd6244e2979e1e Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 5 May 2022 11:15:45 +0200 Subject: [PATCH] fixed tests 95% --- frontend/src/layouts/AuthLayout_gdd.spec.js | 5 +++++ frontend/src/layouts/AuthLayout_gdd.vue | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/frontend/src/layouts/AuthLayout_gdd.spec.js b/frontend/src/layouts/AuthLayout_gdd.spec.js index 4d74e7941..e4aa10a23 100644 --- a/frontend/src/layouts/AuthLayout_gdd.spec.js +++ b/frontend/src/layouts/AuthLayout_gdd.spec.js @@ -55,6 +55,11 @@ describe('AuthLayoutGdd', () => { expect(wrapper.findComponent({ name: 'LanguageSwitch' }).exists()).toBeTruthy() }) + test('test size in setTextSize ', () => { + wrapper.vm.setTextSize('85') + expect(wrapper.vm.$refs.pageFontSize.style.fontSize).toBe('85rem') + }) + // describe('check LanguageSwitch on register page', () => { // beforeEach(() => { // mocks.$route.path = '/register' diff --git a/frontend/src/layouts/AuthLayout_gdd.vue b/frontend/src/layouts/AuthLayout_gdd.vue index 5df87f302..b9da71200 100644 --- a/frontend/src/layouts/AuthLayout_gdd.vue +++ b/frontend/src/layouts/AuthLayout_gdd.vue @@ -1,5 +1,5 @@