Fix webapp tests

This commit is contained in:
Wolfgang Huß 2024-01-25 12:57:12 +01:00
parent bd17506a9f
commit 0ef5adb66c

View File

@ -113,9 +113,9 @@ describe('AvatarMenu.vue', () => {
expect(settingsLink.exists()).toBe(true) expect(settingsLink.exists()).toBe(true)
}) })
it('displays a total of 4 links', () => { it('displays a total of 6 links', () => {
const allLinks = wrapper.findAll('.ds-menu-item') const allLinks = wrapper.findAll('.ds-menu-item')
expect(allLinks).toHaveLength(4) expect(allLinks).toHaveLength(6)
}) })
}) })
@ -139,9 +139,9 @@ describe('AvatarMenu.vue', () => {
expect(moderationLink.exists()).toBe(true) expect(moderationLink.exists()).toBe(true)
}) })
it('displays a total of 5 links', () => { it('displays a total of 7 links', () => {
const allLinks = wrapper.findAll('.ds-menu-item') const allLinks = wrapper.findAll('.ds-menu-item')
expect(allLinks).toHaveLength(5) expect(allLinks).toHaveLength(7)
}) })
}) })
@ -165,9 +165,9 @@ describe('AvatarMenu.vue', () => {
expect(adminLink.exists()).toBe(true) expect(adminLink.exists()).toBe(true)
}) })
it('displays a total of 6 links', () => { it('displays a total of 8 links', () => {
const allLinks = wrapper.findAll('.ds-menu-item') const allLinks = wrapper.findAll('.ds-menu-item')
expect(allLinks).toHaveLength(6) expect(allLinks).toHaveLength(8)
}) })
}) })
}) })