mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
adapt nav bar unit tests to avatar design changes
This commit is contained in:
parent
4f88965449
commit
b77f46ee6d
@ -47,14 +47,13 @@ describe('AuthNavbar', () => {
|
||||
|
||||
describe('.avatar element', () => {
|
||||
it('is rendered', () => {
|
||||
expect(wrapper.find('button.avatar').exists()).toBeTruthy()
|
||||
expect(wrapper.find('div.vue-avatar--wrapper').exists()).toBeTruthy()
|
||||
})
|
||||
|
||||
it("has the user's initials", () => {
|
||||
expect(
|
||||
// wrapper.find('button.b-avatar').find('.b-avatar-text > span:nth-child(1)').text(),
|
||||
wrapper.find('.vue-avatar--wrapper').text(),
|
||||
).toBe(`${wrapper.vm.$store.state.firstName[0]}${wrapper.vm.$store.state.lastName[0]}`)
|
||||
expect(wrapper.find('.vue-avatar--wrapper').text()).toBe(
|
||||
`${wrapper.vm.$store.state.firstName[0]}${wrapper.vm.$store.state.lastName[0]}`,
|
||||
)
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user