-
Notifications
You must be signed in to change notification settings - Fork 54
Helper attempts to confirm baseline and comparison images are accessible in write mode #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
shanplourde
added a commit
to shanplourde/codeceptjs-resemblehelper
that referenced
this issue
Jul 8, 2020
@shanplourde thanks a lot, could you please send PR so I could merge with next release. |
puneet0191
pushed a commit
that referenced
this issue
Oct 20, 2020
puneet0191
added a commit
that referenced
this issue
Oct 21, 2020
* support playwright helper (#81) * Default to config.prepareBaseImage if no param specified (#79) * Update index.js We are only downloading the base image if the `options` param explicitly includes the option `{prepareBaseImage: false}`. Otherwise, it will omit downloading the base file, even if the helper configuration includes the prepareBaseImage option. This change allows us to default to the value in the config file if the method doesn't receive that param. * Update index.js * Fix bug - baseline and comparison images write mode (#75) (#76) * Prepare for 1.9.3 release Co-authored-by: Peter Nguyen Tr <[email protected]> Co-authored-by: Carlos <[email protected]> Co-authored-by: Shan <[email protected]>
This has been released and fixed, closing. thank you |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to have Codecept's resemble-helper compare a read-only baseline file to a writable current file. The reason baseline files are read-only are because they are versioned in our version control system, and due to the file locking approach of our version control system (perforce) the files are always read-only until checked out.
The resemble-helper fails when attempting to open the read-only baseline file with a 'file is read-only' error
Console output of error occurring:
It looks like the issue lies in codeceptjs-resemblehelper/index.js, lines 44 - 57:
I think that we just need to update this check to be F_OK | R_OK (write is not necessary for either file, I have confirmed this in a test run)
Details
The text was updated successfully, but these errors were encountered: