fixed tests 95%

This commit is contained in:
ogerly 2022-05-05 11:15:45 +02:00
parent ded8afe36b
commit cd3751bf99
2 changed files with 7 additions and 2 deletions

View File

@ -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'

View File

@ -1,5 +1,5 @@
<template>
<div class="auth-template page-font-size">
<div class="auth-template" ref="pageFontSize">
<div v-if="mobilStart" class="mobil-start-box d-inline d-sm-inline d-md-inline d-lg-none">
<div class="position-absolute h1 text-white zindex1000 w-100 text-center mt-8">
{{ $t('auth.left.gratitude') }}
@ -140,7 +140,7 @@ export default {
},
methods: {
setTextSize(size) {
document.querySelector('.page-font-size').style.fontSize = size + 'rem'
this.$refs.pageFontSize.style.fontSize = size + 'rem'
},
},
}