Comments (10)
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.
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.
Does this directory exist - "/Users/me/Documents/fos_ncui/cypress/snapshots/diff/?
That's the directory that you specified.
from cypress-visual-regression.
/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.
probably related to this error: #9
what kind of machine are you running?
from cypress-visual-regression.
I'm on OSX 10.14
from cypress-visual-regression.
@mikeruddy I just made some changes. Can you install version 1.0.3 and try running it again?
from cypress-visual-regression.
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
- 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.
[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.
Closing. Please re-open if it's still an issue.
from cypress-visual-regression.
Related Issues (20)
- base path different in Jenkins CI, snapshot "doesn't exist" HOT 2
- I see diffs generated, but I don't see tests failing with errorThreshold 0.0 HOT 2
- Add description to change the default threshold from 0 to the README
- Error when Adding Baseline Images The following configuration option is invalid: - testFiles HOT 3
- [Enhancement] "type" var env is confusing HOT 1
- CypressError: `cy.task('moveSnapshot')` failed HOT 3
- Base and Actual being saved in Base folder when running base HOT 1
- [Enhancements] newer version HOT 6
- Add the command to cypress/support/commands.js no work HOT 2
- [BUG] Wrong screenshot position HOT 2
- The "type" environment variable is unknown. HOT 1
- e2e.setupNodeEvents() function: TypeError: (0 , plugin_1.default) is not a function HOT 5
- `env` object in config file or not? HOT 1
- failSilently and ALLOW_VISUAL_REGRESSION_TO_FAIL, confusing HOT 1
- Base in Mac, diff in Jenkins (actual) HOT 7
- Error: Snapshot does not exist after upgrade from 2.1.1 to 3.0.0 HOT 2
- CypressError: cy.task('moveSnapshot') failed HOT 2
- testFiles is deprecated, replace with specPattern
- Base screenshot doesnt get the full screen HOT 1
- Module not found: Can't resolve 'fs' error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cypress-visual-regression.