Skip to content

Rerunning tests generates a new id everytime #4

@PrashantAshok

Description

@PrashantAshok

Version: @marko/testing-library@3.0.0

Details

This is basically what is in my template

<ebay-icon name="chevron-up"/>

First time it runs, it generates

<span
  class="icon icon--chevron-up"
  id="c3-3"/>

But the next time it runs, jest fails the tests and complains with the error that the id has changed.

Received content doesn't match the file .html.
    - Snapshot
    + Received
    @@ -14,11 +14,11 @@
          </span>
          <span
            class="icon icon--chevron-up"
    -       id="c3-3"
    +       id="c2-3"
          />

Expected Behavior

The ids shouldn't change between test runs

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