testcafe-react-selectors icon indicating copy to clipboard operation
testcafe-react-selectors copied to clipboard

Typescript ReactSelector support withKey function

Open gothraven opened this issue 5 years ago • 3 comments

I have checked if there was already a similar reported issue but I haven't find anything so far, I would like to report that withKey() function gives the following error.

import { ReactSelector } from 'testcafe-react-selectors';

const example = ReactSelector('Grid').withKey('example');

TS2339: Property 'withKey' does not exist on type 'Selector'.

Versions:

~ node --version
v8.16.2

~ npm --version
6.4.1

~ cat package.json | grep "testcafe-react-selectors"
"testcafe-react-selectors": "^4.0.0",

gothraven avatar Jan 16 '20 11:01 gothraven

Hello @gothraven,

I was not able to reproduce this behavior. Could you please specify the testcafe version you are using?

arubtsov avatar Jan 17 '20 15:01 arubtsov

I'll drop all testcafe related packages if any of them would help

~ cat package.json | grep "testcafe"
"eslint-plugin-testcafe": "^0.2.1",
"testcafe": "^1.2.1",
"testcafe-react-selectors": "^4.0.0",

gothraven avatar Jan 17 '20 16:01 gothraven

Hi @gothraven ,

Please update to the latest TestCafe version. If it doesn't help, provide us with a simple test example on which we will be able to reproduce the issue.

aleks-pro avatar Jan 20 '20 13:01 aleks-pro