Skip to content

Event are not retrieved by emitted() when using Collapse from BootstrapVue #758

Closed
@klak-bm

Description

@klak-bm

Version

1.0.0-beta.16

Reproduction link

https://github.com/klak-bm/bv-collapse-problem/

Steps to reproduce

git clone https://github.com/klak-bm/bv-collapse-problem/ && cd bv-collapse-problem/ && npm i && npm test

What is expected?

First test should return emitted events but it does not.

What is actually happening?

0 event returned


I already tried in local with beta.20 but doesnt change anything.

The working test shows that instead of clicking on the button which triggers the "expand", if I force emitting the corresponding event the test is working (I expect another event to be emitted then).

At first, I thought the problem was coming from bootstrap-vue (and their collapse transition) but after discussing with their active members, they took a look and finally told me :
"The show should be emitted regardless of transition
The HTML already has the correct aria expanded and show class
Which makes me think, perhaps the test wrapper on the child component (b-collapse) isn't firing it's event on the test"

"This sounds like a potential Vue test utils bug to be honest"

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions