fix test components/Menu/Sidebar.spec.js

This commit is contained in:
ogerly 2022-12-05 12:51:55 +01:00
parent d69c6596f9
commit cac40195b7
2 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@ describe('Sidebar', () => {
})
it('renders the component', () => {
expect(wrapper.find('div.#component-sidebar').exists()).toBeTruthy()
expect(wrapper.find('div#component-sidebar').exists()).toBe(true)
})
describe('the genaral section', () => {
@ -61,7 +61,7 @@ describe('Sidebar', () => {
describe('the specific section', () => {
describe('for standard users', () => {
it('has three nav-item', () => {
expect(wrapper.findAll('ul').at(1).findAll('.nav-item')).toHaveLength(3)
expect(wrapper.findAll('ul').at(1).findAll('.nav-item')).toHaveLength(4)
})
it('has nav-item "navigation.info" in navbar', () => {
@ -90,7 +90,7 @@ describe('Sidebar', () => {
})
it('has four nav-item', () => {
expect(wrapper.findAll('ul').at(1).findAll('.nav-item')).toHaveLength(4)
expect(wrapper.findAll('ul').at(1).findAll('.nav-item')).toHaveLength(5)
})
it('has nav-item "navigation.info" in navbar', () => {

View File

@ -1,5 +1,5 @@
<template>
<div id="component-sidebar ">
<div id="component-sidebar">
<div id="side-menu" ref="sideMenu" class="gradido-border-radius appBoxShadow pt-2 mt-4">
<!-- @mouseout="$emit('toogleMobilMenu')" -->
<div class="mb-6 mt-3">