diff options
author | DorraJaouad <dorra.jaoued7@gmail.com> | 2023-06-13 11:13:24 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-08-02 14:12:37 +0000 |
commit | cd1e4c1f7a1414f5f13e7bdaf07ab87cf6f9c2d0 (patch) | |
tree | 1ed1c88089226cc87fcd6fd737dd3b7ae0444b66 /src | |
parent | d2c2c91f17c9572d5bde127a37eb43757aa259fc (diff) |
Enhancement
Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/LeftSidebar/LeftSidebar.spec.js | 10 | ||||
-rw-r--r-- | src/components/LeftSidebar/LeftSidebar.vue | 1 |
2 files changed, 5 insertions, 6 deletions
diff --git a/src/components/LeftSidebar/LeftSidebar.spec.js b/src/components/LeftSidebar/LeftSidebar.spec.js index cddc71fe3..029c8ce91 100644 --- a/src/components/LeftSidebar/LeftSidebar.spec.js +++ b/src/components/LeftSidebar/LeftSidebar.spec.js @@ -626,8 +626,8 @@ describe('LeftSidebar.vue', () => { const ncModalComponent = wrapper.findComponent(NcModal) expect(ncModalComponent.exists()).toBeTruthy() - const input = ncModalComponent.find('input[placeholder="Enter a name for this conversation"]') - expect(input.element.value).toBe(groupsResults[1].label) + const input = ncModalComponent.findComponent({name: 'NcTextField', ref: 'conversationName'}) + expect(input.props('value')).toBe(groupsResults[1].label) // nothing created yet expect(createOneToOneConversationAction).not.toHaveBeenCalled() @@ -648,9 +648,9 @@ describe('LeftSidebar.vue', () => { await wrapper.vm.$nextTick() const ncModalComponent = wrapper.findComponent(NcModal) expect(ncModalComponent.exists()).toBeTruthy() - - const input = ncModalComponent.find('input[placeholder="Enter a name for this conversation"]') - expect(input.element.value).toBe(circlesResults[1].label) + console.log(wrapper.html()) + const input = ncModalComponent.findComponent({name: 'NcTextField', ref: 'conversationName'}) + expect(input.props('value')).toBe(circlesResults[1].label) // nothing created yet expect(createOneToOneConversationAction).not.toHaveBeenCalled() diff --git a/src/components/LeftSidebar/LeftSidebar.vue b/src/components/LeftSidebar/LeftSidebar.vue index 2eb9a233b..250cb53e6 100644 --- a/src/components/LeftSidebar/LeftSidebar.vue +++ b/src/components/LeftSidebar/LeftSidebar.vue @@ -476,7 +476,6 @@ export default { } else { // For other types, show the modal directly this.$refs.newGroupConversation.showModalForItem(item) - this.toggleNewGroupConversation(true) } }, |