-
Notifications
You must be signed in to change notification settings - Fork 54
feat(testcafe): add the support for testcafe #62
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
Conversation
Thanks a lot for your help with this @guiyomh, this will be reviewed and merged soon. |
|
||
let location, size; | ||
|
||
if (this.helpers['Puppeteer']) { | ||
const el = els[0]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the need for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved this assignment from line 373 here. Because that doesn't work like this for TestCafe.
const box = await el.boundingBox(); | ||
size = location = box; | ||
} | ||
|
||
if (this.helpers['WebDriver'] || this.helpers['Appium']) { | ||
const el = els[0]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes for the same reason. I didn't like this duplicate of code. But If you have a better solution, I'm ready to implement it.
@DavertMik could we merge this one? |
@jonatask help me with some testing for this? |
* Issue #60 - Prepare all baselines of test by setting parameter in config (#65) Co-authored-by: Jonatas Kirsch <[email protected]> * Update Dependecies, Fix Fatal Error with mkdirp and Mac (#66) * Update Dependencies * Fix Error on Mac * Avoid failing the test for a given threshold but yet generating the difference image (#63) * Option bypassFailure allowing the user to avoid failing the test for a given threshold but yet generating the difference image * Renamed option to skipFailure Co-authored-by: Jonatas Kirsch <[email protected]> * feat(testcafe): add the support for testcafe (#62) * passing through output settings to resemble.js (#59) Co-authored-by: JANK Michael <[email protected]> * Issue 48 - Add custom assert message (#64) Co-authored-by: Jonatas Kirsch <[email protected]> Co-authored-by: Jonatas Kirsch <[email protected]> Co-authored-by: Jonatas Kirsch <[email protected]> Co-authored-by: Guillaume Camus <[email protected]> Co-authored-by: yankydoo <[email protected]> Co-authored-by: JANK Michael <[email protected]>
This PR adding the support of TestCafe