Testcafe: Typescript error when using testcafe version 1.6.0

Created on 18 Oct 2019  路  5Comments  路  Source: DevExpress/testcafe

What is the Current behavior?

  • I am currently using create react app plus "typescript": "3.6.0". When I upgraded from version 1.5.0 to v1.6.0 and I ran my tests I get this error:
 Property 'page' does not exist on type 'It'.
Property 'page' does not exist on type 'It'.
Property 'page' does not exist on type 'It'.

Looks like this is similar to or maybe the same as the declare var test on global scope issue

What is the Expected behavior?


I would expect to run the tests.

Your Environment details:

  • testcafe version: testcafe -v1.6.0
  • typescript: 3.6.0
  • node.js version: node -v10.15.3
  • browser name and version: I run it headless
  • platform and version: macOS Mojava 10.14.6
  • other:
TypeScript definitions server critical Auto-locked compiler bug

Most helpful comment

@zsid
Thank you.
I was able to reproduce the issue using your example.
For the team: check this commit at first: https://github.com/DevExpress/testcafe/commit/bfd8985cf30b8a9f97d496afe5f89c07a7ae1842

All 5 comments

Facing same issues

@zsid @Meemaw
Could you please provide more details on how to reproduce the issue on our side? We would really appreciate it if you prepare a sample project which demonstrates the issue.

@AlexKamaev - I have created a branch called typescript error and put the error I am getting in the README.

It is slightly different error from the original one but the underlining problem is the same - typescript is using jest for the type checking etc.

@zsid
Thank you.
I was able to reproduce the issue using your example.
For the team: check this commit at first: https://github.com/DevExpress/testcafe/commit/bfd8985cf30b8a9f97d496afe5f89c07a7ae1842

This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

KaneMorgan picture KaneMorgan  路  3Comments

inikulin picture inikulin  路  3Comments

multivoltage picture multivoltage  路  3Comments

Lukas-Kullmann picture Lukas-Kullmann  路  3Comments

fnlctrl picture fnlctrl  路  3Comments