GithubHelp home page GithubHelp logo

Comments (10)

mjhea0 avatar mjhea0 commented on June 3, 2024

That means that directory does not exist. Set the path to your snapshots folder in the screenshotsFolder config.

command line example:

$ ./node_modules/.bin/cypress run --env type=base --config screenshotsFolder=cypress/snapshots/base

config file example:

{
  "screenshotsFolder": "cypress/snapshots/actual",
  "trashAssetsBeforeRuns": true,
  "video": false
}

from cypress-visual-regression.

mikeruddy avatar mikeruddy commented on June 3, 2024

I have that in my config. The error happens when I run ./node_modules/.bin/cypress run --env type=actual. I see the screenshots in the baseline and actual directory, but the diff folder stays empty. I also get this warning text early on:

Warning: We failed to trash the existing run results. This error will not alter the exit code.

I'm using node v10.16.0 if that matters.

Here's what I put in my package.json run section

"cypress:baseline": "cypress run --env type=base --config screenshotsFolder=cypress/snapshots/base",
"cypress:compare": "cypress run --env type=actual",

from cypress-visual-regression.

mjhea0 avatar mjhea0 commented on June 3, 2024

Does this directory exist - "/Users/me/Documents/fos_ncui/cypress/snapshots/diff/?

That's the directory that you specified.

from cypress-visual-regression.

mikeruddy avatar mikeruddy commented on June 3, 2024

/cypress/snapshots/diff/

It exists but it's empty. I noticed in your docker setup your files are slightly different. I wonder if that's contributing.

https://github.com/mjhea0/cypress-visual-regression/blob/master/docker/cypress/support/commands.js

from cypress-visual-regression.

mjhea0 avatar mjhea0 commented on June 3, 2024

probably related to this error: #9

what kind of machine are you running?

from cypress-visual-regression.

mikeruddy avatar mikeruddy commented on June 3, 2024

I'm on OSX 10.14

from cypress-visual-regression.

mjhea0 avatar mjhea0 commented on June 3, 2024

@mikeruddy I just made some changes. Can you install version 1.0.3 and try running it again?

from cypress-visual-regression.

mikeruddy avatar mikeruddy commented on June 3, 2024

So it seems to output to the diff directory with a screenshot that's grayed out. The rest of the errors may be on my end.

Warning: We failed to trash the existing run results.

This error will not alter the exit code.

Error: Command failed: /Users/me/Library/Caches/Cypress/3.3.2/Cypress.app/Contents/Resources/app/packages/server/node_modules/trash/lib/macos-trash /Users/me/Documents/app/cypress/videos/visualregression
“visualregression” couldn’t be moved to the trash.

at ChildProcess.exithandler (child_process.js:287:12)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Socket.stream.socket.on (internal/child_process.js:346:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at Pipe._handle.close [as _onclose] (net.js:554:12)

0 passing (14s)
1 failing

  1. Navigation screenshot home screen:
    CypressError: Timed out retrying: Expected to find content: 'Close' but never did.

This may be because I'm never ending the test.

from cypress-visual-regression.

mikeruddy avatar mikeruddy commented on June 3, 2024

[63495:0702/130554.435708:ERROR:gles2_cmd_decoder.cc(4439)] [.RenderWorker-0x7ff44d84c800.GpuRasterization]GL ERROR :GL_INVALID_FRAMEBUFFER_OPERATION : glClear: framebuffer incomplete
[63495:0702/130554.435744:ERROR:gles2_cmd_decoder.cc(4439)] [.RenderWorker-0x7ff44d84c800.GpuRasterization]GL ERROR :GL_INVALID_FRAMEBUFFER_OPERATION : glDrawElements: framebuffer incomplete
[63495:0702/130554.435762:ERROR:gles2_cmd_decoder.cc(4439)] [.RenderWorker-0x7ff44d84c800.GpuRasterization]GL ERROR :GL_INVALID_FRAMEBUFFER_OPERATION : glClear: framebuffer incomplete
[63495:0702/130554.435788:ERROR:gles2_cmd_decoder.cc(4439)] [.RenderWorker-0x7ff44d84c800.GpuRasterization]GL ERROR :GL_INVALID_FRAMEBUFFER_OPERATION : glDrawElements: framebuffer incomplete

Also I'm getting a bunch of console output like this after the test finished. Thought it could be related to the video features but I have that disabled in my settings.

from cypress-visual-regression.

mjhea0 avatar mjhea0 commented on June 3, 2024

Closing. Please re-open if it's still an issue.

from cypress-visual-regression.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.