Skip to content

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

Merged
merged 1 commit into from
Apr 27, 2020

Conversation

guiyomh
Copy link
Contributor

@guiyomh guiyomh commented Apr 14, 2020

This PR adding the support of TestCafe

Verified

This commit was signed with the committer’s verified signature.
mathieucarbou Mathieu Carbou
@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.

const box = await el.boundingBox();
size = location = box;
}

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

Verified

This commit was signed with the committer’s verified signature.
mathieucarbou Mathieu Carbou
* 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]>
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

Successfully merging this pull request may close these issues.

None yet

2 participants