check visible html instead of internal status

This commit is contained in:
Moriz Wahl 2021-10-07 17:58:19 +02:00
parent 4016e316b2
commit 49f74ae3ab

View File

@ -97,8 +97,8 @@ describe('RegisterSelectCommunity', () => {
expect(apolloQueryMock).toBeCalled()
})
it('has two communities', () => {
expect(wrapper.vm.communities).toHaveLength(2)
it('shows two other communities', () => {
expect(wrapper.findAll('div.bg-secondary')).toHaveLength(2)
})
it('hides the spinner', () => {