Skip to content

Conversation

@guiyomh
Copy link
Contributor

@guiyomh guiyomh commented Apr 14, 2020

This PR adding the support of TestCafe

@puneet0191
Copy link
Member

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];
Copy link
Member

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?

Copy link
Contributor Author

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.

}

if (this.helpers['WebDriver'] || this.helpers['Appium']) {
const el = els[0];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also here?

Copy link
Contributor Author

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.

@puneet0191
Copy link
Member

@DavertMik could we merge this one?

@puneet0191
Copy link
Member

@jonatask help me with some testing for this?

@puneet0191 puneet0191 changed the base branch from master to 1.9.1 April 27, 2020 10:38
@puneet0191 puneet0191 merged commit e8a87df into codeceptjs:1.9.1 Apr 27, 2020
@guiyomh guiyomh deleted the feature/testcafe branch May 5, 2020 07:57
puneet0191 added a commit that referenced this pull request May 16, 2020
* Issue #60 - Prepare all baselines of test by setting parameter in config (#65) Co-authored-by: Jonatas Kirsch <jonatas.kirsch@takeaway.com> * 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 <jonatas.kirsch@takeaway.com> * feat(testcafe): add the support for testcafe (#62) * passing through output settings to resemble.js (#59) Co-authored-by: JANK Michael <Michael.JANK@cns-solutions.net> * Issue 48 - Add custom assert message (#64) Co-authored-by: Jonatas Kirsch <jonatas.kirsch@takeaway.com> Co-authored-by: Jonatas Kirsch <jonataskirsch@gmail.com> Co-authored-by: Jonatas Kirsch <jonatas.kirsch@takeaway.com> Co-authored-by: Guillaume Camus <guiyomh@users.noreply.github.com> Co-authored-by: yankydoo <yankydoo@users.noreply.github.com> Co-authored-by: JANK Michael <Michael.JANK@cns-solutions.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants