Skip to content

Missing custom attributes in Vuetify element when shallowMount #884

Open
@trollepierre

Description

@trollepierre

Version

1.0.0-beta.22

Reproduction link

https://codesandbox.io/s/9z5oy2kn3y

Steps to reproduce

When I set some custom attributes in , I cannot see them in the generated snapshot

<template>
  <v-icon
      :style="{color: iconColor}"
      class="icon">
      {{ icon }}
    </v-icon>
</template>

<script>
export default {
  name: "TestComponent",
  props: {
      iconColor: { type: String, default: undefined },
    },
};
</script>

What is expected?

<v-icon-stub
  class="icon"
  style="color: yellow;"
>
cancel
</v-icon-stub>

What is actually happening?

<v-icon-stub
  fakeprops="fakeProps"
>
cancel
</v-icon-stub>

I noticed the fake-props are passing inside the snapshot. I think this is weird also

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions