Skip to content

TransitionStub doesn't work with mount({ template: '...' }) #567

Closed
@denisinvader

Description

@denisinvader

Version

1.0.0-beta.15

Reproduction link

https://github.com/denisinvader/vtu-transition-issue/tree/master

Steps to reproduce

Use the transition in any component. Then tests mount this component by template.

// ...

const wrapper = mount({
  components: { 'test-component': TestComponent },
  template: '<test-component />'
});

// ...

Then update data in wrapper (or trigger an action) that will update transition state.

What is expected?

transition component works synchronously - test pass

What is actually happening?

transition component works asynchronously and element styles equals to "display: none" - test fail


May be it's not the best way - mount testing component by template in configuration, but in a production app I want to test how component works with v-model and updates parent state

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions