From 49f74ae3ab07d1997c0098eafd9cea08a0a60aaa Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Thu, 7 Oct 2021 17:58:19 +0200 Subject: [PATCH] check visible html instead of internal status --- frontend/src/views/Pages/RegisterSelectCommunity.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/Pages/RegisterSelectCommunity.spec.js b/frontend/src/views/Pages/RegisterSelectCommunity.spec.js index ba63ca295..dbcd950b8 100644 --- a/frontend/src/views/Pages/RegisterSelectCommunity.spec.js +++ b/frontend/src/views/Pages/RegisterSelectCommunity.spec.js @@ -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', () => {