diff --git a/frontend/src/components/tablesDrawer/TableList.test.ts b/frontend/src/components/tablesDrawer/TableList.test.ts index e02a02ff6a..c8ad9623f6 100644 --- a/frontend/src/components/tablesDrawer/TableList.test.ts +++ b/frontend/src/components/tablesDrawer/TableList.test.ts @@ -62,13 +62,9 @@ describe('TableList', () => { expect(wrapper.element).toMatchSnapshot() }) - it('renders list', () => { - expect(wrapper.find('.v-list--density-default').exists()).toBe(true) - }) - it('sets active room', async () => { const setActiveRoomSpy = vi.spyOn(useActiveRoomStore(), 'setActiveRoom') - await wrapper.find('.table').trigger('click') + await wrapper.find('.table .action').trigger('click') expect(setActiveRoomSpy).toHaveBeenCalledWith(testTables[0].joinLink) }) @@ -76,7 +72,7 @@ describe('TableList', () => { describe('when a table is clicked', () => { beforeEach(async () => { wrapper = Wrapper() - await wrapper.find('.table').trigger('click') + await wrapper.find('.table .action').trigger('click') await flushPromises() })