mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix test components/Menu/Sidebar.spec.js
This commit is contained in:
parent
d69c6596f9
commit
cac40195b7
@ -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', () => {
|
||||
|
||||
@ -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">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user