Skip to content

Missing classes in vuetify element when shallowMount #883

Closed
@trollepierre

Description

@trollepierre

Version

1.0.0-beta.22

Reproduction link

https://codesandbox.io/s/nn2p0w8300

Steps to reproduce

When shallowMounting a with a class="my-custom-class", I cannot find this element through wrapper.find(.my-custom-class) + this class is not present in snapshot

<template>
  <v-container class="my-custom-class">
    
  </v-container>
</template>

What is expected?

<v-container-stub
  class="my-custom-class"
/>

What is actually happening?

<v-container-stub
  tag="div"
/>

Also I cannot do any find(".my-custom-class"). That is a regression compared to beta 20.

ps:
I don't care about tag="div" in this issue. Maybe it could be better to remove Vuetify prop (but it is a "could", not a "must" have in this bug)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions