Skip to content
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

question how to use your tool with Cypress/Typescript #6

Open
jradom opened this issue Nov 14, 2020 · 12 comments
Open

question how to use your tool with Cypress/Typescript #6

jradom opened this issue Nov 14, 2020 · 12 comments

Comments

@jradom
Copy link

jradom commented Nov 14, 2020

Hello,

I saw your sample images use Cypress screenshots. So, do you have by any chance a sample code with Cypress with necessary configurations?

Thanks

Jeff

@dmtrKovalenko
Copy link
Owner

dmtrKovalenko commented Nov 14, 2020

Thank you @jradom – I will make an example! Thanks

P.S. there is an example of how to use this tool from node.js it's in the readme – but I will add the Cypress.io example as well!

@jradom
Copy link
Author

jradom commented Nov 14, 2020

sounds great

Thanks (spasibo)

Jeff

@jradom
Copy link
Author

jradom commented Nov 15, 2020 via email

@jradom
Copy link
Author

jradom commented Nov 15, 2020

I was able to run your tool like this under no_modules

but got these errors

SyntaxError: Invalid or unexpected token
at Module._compile (internal/modules/cjs/loader.js:895:18)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Function.Module._load (internal/modules/cjs/loader.js:727:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
at internal/main/run_main_module.js:17:11
radomj-N7JG5L:bin radomj$ node ODiffBin ~/Downloads/case_baseline.png ~/Downloads/case_actual.png ~/Downloads/case_diff.png

@jradom
Copy link
Author

jradom commented Nov 15, 2020

I'd also like to know if I run CLI from Typescript or Cypress if I'll get a return code 0 or 1 when images are identical or mismatched

@jradom
Copy link
Author

jradom commented Nov 17, 2020 via email

@dmtrKovalenko
Copy link
Owner

Sorry, I’ve been working on integrating this with other more complex snapshot-based stuff. But ok I will do a quick demo

@jradom
Copy link
Author

jradom commented Nov 18, 2020

this sounds really great because I was able to use your tool at all but in readme , it had looked really great

Thanks a lot in advance

Jeff

@jradom
Copy link
Author

jradom commented Nov 18, 2020

BTW, where in Ukraine are you located? Just curious

@georgio1972
Copy link

Hello,

I saw your sample images use Cypress screenshots. So, do you have by any chance a sample code with Cypress with necessary configurations?

Thanks

Jeff

Hello Jeff, were you able to make this work in Cypess? I have been trying but since I am pretty new to Cypress/Typescript I don't really know how to configure it correctly. Thanks

@dhamo-pk
Copy link

dhamo-pk commented Nov 1, 2021

Hi @dmtrKovalenko,
odiff looks promising., could you add some more details on how to integrate with cypress? Maybe an example repo would be a great help.

@sadeesh-sdet
Copy link

Hi everyone, Please check this detailed blog post from @gleb about odiff and cypress integration and here is the repo for the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants