Skip to content

[Bug]: Getting error while trying to use plugin cypress-plugin-visual-regression-diff (please, details in description) #308

Open
@sakilandeswari

Description

@sakilandeswari

Describe the Bug

while running cypress component with plugin cypress-plugin-visual-regression-diff, getting below error

command executed: npx nx run-many -t component-test -p bindings-ng-pos --parallel=false --skip-nx-cache --watch

Error
taskcp-visual-regression-diff-getScreenshotPathInfo, Object{4}, {log: false}
AFTER ALL (FAILED)
1
taskcp-visual-regression-diff-cleanupImages, {log: false}
CypressError
cy.task('cp-visual-regression-diff-cleanupImages') failed with the following error:

The 'task' event has not been registered in the setupNodeEvents method. You must register it before using cy.task()

Fix this in your setupNodeEvents method here:

Steps to reproduce

Followed steps mentioned in the below page
https://github.com/FRSOURCE/cypress-plugin-visual-regression-diff

Expected behavior

Visual comparison should work fine without any issue

no reference in document to resolve this issue

Additional context

No response

Package version

3.3.10

Device

Chrome Browser - Mac

OS and version

Mac OS Sonama 14.1.2 (23B92)

Browser and version

Chrome 120.0.6099.109

Node version

20.8.0

I can work on it by myself

  • Yes
  • No

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions