mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fixed tests 95%
This commit is contained in:
parent
ded8afe36b
commit
cd3751bf99
@ -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'
|
||||
|
||||
@ -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'
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user