Skip to content

[BUG] Test 'tooltip with delay show' inconsistent snapshot #1080

Closed
@gabrieljablonski

Description

@gabrieljablonski

Managed to reproduce locally the problem with the workflow sometimes failing, and passing on re-run, though this time it is happening with the newer react-tooltip__show class.

https://github.com/ReactTooltip/react-tooltip/blob/master/src/test/tooltip-props.spec.js#L118-L144

https://github.com/ReactTooltip/react-tooltip/blob/master/src/test/__snapshots__/tooltip-props.spec.js.snap#L86

The snapshot switches between having and not having react-tooltip__show. I believe this is likely because we're not using waitFor() correctly to account for the delayShow timer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugV6It might get fixed/merged before, but most likely only on V6's release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions