[英]Testcafe Applitools typescript - Error: Property 'accessibilityValidation' is missing in type
I'm trying to execute the test script found here https://www.npmjs.com/package/@applitools/eyes-testcafe But am receiving an error on typescript transpile.我正在尝试执行在此处找到的测试脚本https://www.npmjs.com/package/@applitools/eyes-testcafe但是我在打字稿转换时收到错误。 The script runs succesfully if saved as a .js.
如果保存为 .js,脚本将成功运行。
test/specs/applitoolsExample.ts:10:19 - error TS2345: Argument of type '{ appName: string; testName: string; browser: { width: number; height: number; name: "firefox"; }[]; t: TestController; }' is not assignable to parameter of type 'OpenOptions'.
Property 'accessibilityValidation' is missing in type '{ appName: string; testName: string; browser: { width: number; height: number; name: "firefox"; }[]; t: TestController; }' but required in type 'OpenOptions'.
10 await eyes.open({
~
11 appName: "Hello World!",
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
14 t,
~~~~~~
15 });
~~~
node_modules/@applitools/eyes-testcafe/ts/eyes.ts:8:9
8 accessibilityValidation: AccessibilitySettings
~~~~~~~~~~~~~~~~~~~~~~~
'accessibilityValidation' is declared here.
Found 1 error.
I am new to js, ts and testcafe so please assume nothing.我是 js、ts 和 testcafe 的新手,所以请不要假设。 Can anyone advise how to make Applitools work in testcafe, with typescript ?
谁能建议如何使用打字稿使 Applitools 在 testcafe 中工作?
It looks like the TypeScript definitions shipped with @applitools/eyes-testcafe
module are incorrect.看起来
@applitools/eyes-testcafe
模块附带的 TypeScript 定义不正确。
Change the test/specs/applitoolsExample.ts
file extension to .js
or write an issue about this problem in the applitools/eyes-testcafe
repository.将
test/specs/applitoolsExample.ts
文件扩展名更改为.js
或在applitools/eyes-testcafe
存储库中编写有关此问题的问题。
I'm trying to execute the test script found here https://www.npmjs.com/package/@applitools/eyes-testcafe But am receiving an error on typescript transpile.我正在尝试执行在这里找到的测试脚本https://www.npmjs.com/package/@applitools/eyes-testcafe但是我收到打字稿转换错误。 The script runs succesfully if saved as a .js.
如果另存为.js,脚本将成功运行。
test/specs/applitoolsExample.ts:10:19 - error TS2345: Argument of type '{ appName: string; testName: string; browser: { width: number; height: number; name: "firefox"; }[]; t: TestController; }' is not assignable to parameter of type 'OpenOptions'.
Property 'accessibilityValidation' is missing in type '{ appName: string; testName: string; browser: { width: number; height: number; name: "firefox"; }[]; t: TestController; }' but required in type 'OpenOptions'.
10 await eyes.open({
~
11 appName: "Hello World!",
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
14 t,
~~~~~~
15 });
~~~
node_modules/@applitools/eyes-testcafe/ts/eyes.ts:8:9
8 accessibilityValidation: AccessibilitySettings
~~~~~~~~~~~~~~~~~~~~~~~
'accessibilityValidation' is declared here.
Found 1 error.
I am new to js, ts and testcafe so please assume nothing.我是js,ts和testcafe的新手,所以请不要做任何假设。 Can anyone advise how to make Applitools work in testcafe, with typescript ?
谁能告诉我如何使testcafe Applitools工作,打字稿?
该问题现已在 @applitools/eyes-testcafe 版本 1.14.3 上解决
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.