Open TCMiranda opened 8 years ago
Hi,
I never heard of Nightmare, however, it seems to be a great library for that. It is based on Electron which is quite modern. I remember having worked with PhantomJS but the JS engine is very old (comparable to IE7), so it was a big hassle to test in the browser with automation.
Do you have some time to add these tests with Nightmare ?
Well, not much, but I have it already set up. Used about a year ago. So I'll try to update it and post a simple test as soon as i can
where is "dist/index.js" in examples?
you have to run npm run prepublish to generate this file
Thank you for your solution! But when I run index.html in examples, it reports an error: "Couldn't find enough finder patterns:1 patterns found". why? I upload a local image with qrcode.
This means that it did not detect the qrcode.
We support 3 kinds of input: canvas with "qr-canvas" id, image src url and image data.
Our testing framework support only the image data api, because it runs on Node.
I think we should use Nightmare or another similar library to test the browser based apis.
Thanks!