meinaart / cypress-plugin-snapshots

Plugin for snapshot tests in Cypress.io
MIT License
491 stars 116 forks source link

(bug) JSON screenshotConfig:disableTimersAndAnimations is not picked #139

Open askirmas opened 3 years ago

askirmas commented 3 years ago

Describe the bug

// cypress.json
  "env": {
    "cypress-plugin-snapshots": {
      "screenshotConfig": {
        "disableTimersAndAnimations": false
      }
}

changes nothing. Only directly in method toMatchImageSnapshot({disableTimersAndAnimations: false}) To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information): Ubuntu 18, Cypress 4.11, cypress-plugin-snapshots 1.4.3 Additional context Add any other context about the problem here.