diff options
author | Nikola <nikola.gladovic@nextcloud.com> | 2022-03-11 12:17:37 +0300 |
---|---|---|
committer | marco <marcoambrosini@pm.me> | 2022-04-05 12:57:30 +0300 |
commit | 9a504ffe592d7c73a1cf5d9adb02f9f8bc18d284 (patch) | |
tree | b969b86e87c378835102a90b45baa9adce2bd33d /src | |
parent | 08379c696a13a0c3a3eb46f216e1f1cad2e8264d (diff) |
6927: fixed test for room selector
Signed-off-by: Nikola <nikola.gladovic@nextcloud.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/views/RoomSelector.spec.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/views/RoomSelector.spec.js b/src/views/RoomSelector.spec.js index 14da0efe2..4daa617ac 100644 --- a/src/views/RoomSelector.spec.js +++ b/src/views/RoomSelector.spec.js @@ -2,7 +2,7 @@ import mockAxios from '../__mocks__/axios' import { generateOcsUrl } from '@nextcloud/router' import { shallowMount } from '@vue/test-utils' import { CONVERSATION } from '../constants' - +import Button from '@nextcloud/vue/dist/Components/Button' import RoomSelector from './RoomSelector' describe('RoomSelector.vue', () => { @@ -139,8 +139,7 @@ describe('RoomSelector.vue', () => { const list = wrapper.findAll('li') await list.at(1).trigger('click') - - await wrapper.find('button').trigger('click') + await wrapper.findComponent(Button).vm.$emit('click') expect(eventHandler).toHaveBeenCalledWith('token-3') }) |