You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting an error cy.task('copyScreenshot') failed with the following error: > ENOENT: no such file or directory, stat '(pathname)' when trying to run for the first time
#99
Closed
faith-berroya opened this issue
Aug 16, 2022
· 4 comments
Hello. I tried to setup our project and added this plugin that uses baseline for visual testing. On my first run, instead of getting an image on my baseline folder, I'm getting this error. Did I miss a step? I have the folder in our repository, same path as to which the error is stating.
I also tried the one below but same result:
```
assertHeaderAndFooterSnapshots(headingName){
this.getHeadingHeader(headingName).eq(0)
.scrollIntoView()
.should('exist')
cy.compareSnapshot('try', 0.1)
this.getHeadingFooter(headingName).eq(0)
.scrollIntoView()
.should('exist')
cy.compareSnapshot('try', 0.1)
}
The text was updated successfully, but these errors were encountered:
faith-berroya
changed the title
Getting an error cy.task('copyScreenshot') failed with the following error: > ENOENT: no such file or directory, stat '/Users/faithberroya/Documents/CreateAutomatedTests/cypress-visual-screenshots/comparison/validate_k3_headers_combintation_k3_tags.feature-try.png' when trying to run for the first time
Getting an error cy.task('copyScreenshot') failed with the following error: > ENOENT: no such file or directory, stat '(pathname)' when trying to run for the first time
Aug 16, 2022
This might have been due to the first Cypress version 10.x issue with windows and the way they handle screenshot folders... this shouldn't be an issue anymore... I will close within a few weeks if no more complaints
Hello. I tried to setup our project and added this plugin that uses baseline for visual testing. On my first run, instead of getting an image on my
baseline
folder, I'm getting this error. Did I miss a step? I have the folder in our repository, same path as to which the error is stating.cypress.config.js
support/command.js
support/e2e.js
require('./commands')
Script:
I also tried the one below but same result:
```
assertHeaderAndFooterSnapshots(headingName){
this.getHeadingHeader(headingName).eq(0)
.scrollIntoView()
.should('exist')
cy.compareSnapshot('try', 0.1)
this.getHeadingFooter(headingName).eq(0)
.scrollIntoView()
.should('exist')
cy.compareSnapshot('try', 0.1)
}
The text was updated successfully, but these errors were encountered: