Skip to content

Tests failing locally in open/headed mode #236

Closed
@drecali

Description

@drecali

Many tests in are failing in click.spec.ts, hover.spec.ts, and mouse.spec.ts when I run them locally in the Cypress Test Runner using the yarn run cypress open command. Please see the screenshots below.

All tests pass in headless mode.

The reason for the headed failures are that the top offset of the element is expected to be an integer but the actual value has a decimal of usually 0.1875.

Is this issue reproducible? Is it a serious issue?

The fix seems quite easy and works well for me locally. We can just change the Cypress comparison to allow for the small deviation. It seems like a relatively safe change.

image

image

image

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions