Skip to content

Commit

Permalink
[docs] fix ReactSelector import
Browse files Browse the repository at this point in the history
The default import is incorrect
(although it was previously used until [this commit](DevExpress/testcafe-react-selectors@1172b89) 2 years ago)
  • Loading branch information
gilmeir committed May 3, 2020
1 parent 8265449 commit de25092
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -20,7 +20,7 @@ For this purpose, the TestCafe team and community developed libraries of dedicat
The React selectors module provides the `ReactSelector` class that allows you to select DOM elements by the component name. You can get a root element or search through the nested components or elements. In addition, you can obtain the component props and state.

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

const TodoList = ReactSelector('TodoApp TodoList');
const itemsCountStatus = ReactSelector('TodoApp div');
Expand Down Expand Up @@ -130,4 +130,4 @@ test('add new item', async t => {
});
```

To learn about the API, see the [repository documentation](https://github.com/miherlosev/testcafe-aurelia-selectors/blob/master/README.md).
To learn about the API, see the [repository documentation](https://github.com/miherlosev/testcafe-aurelia-selectors/blob/master/README.md).

0 comments on commit de25092

Please sign in to comment.