Skip to content
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

change import in exmaple in testing docs and change delpoy script #3002

Merged
merged 2 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/foundation/testing.md
Expand Up @@ -29,7 +29,7 @@ In order to initialize a test driver you pass it the renderTree and the componen
### Example
Suppose we have a form that takes a `first name`, `last name` and an `address` and we want to test the submitting of this form. Our form component will look something like this:
```jsx
import {Button, TextField, View} from '@wix/wix-react-native-ui-lib';
import {Button, TextField, View} from 'react-native-ui-lib/testkit';

type OnSubmitHandler = (firstName: string, lastName: string, address: string) => void;
const MyForm = (props: {onSubmit: OnSubmitHandler}) => {
Expand All @@ -51,7 +51,7 @@ const MyForm = (props: {onSubmit: OnSubmitHandler}) => {
#### In order to test our flow we would do the following steps:
1. Import the TextField and Button driver from UI-LIB's testkit
```javascript
import {TextFieldDriver, ButtonDriver} from '@wix/react-native-ui-lib/testkit';
import {TextFieldDriver, ButtonDriver} from 'react-native-ui-lib/testkit';
```
2. render our test case
```javascript
Expand Down
2 changes: 1 addition & 1 deletion scripts/deployDocs.sh
Expand Up @@ -8,4 +8,4 @@ echo "Building docs site..."
(cd ./docuilib && npm run build)

echo "Deploying docs..."
(cd ./docuilib && GIT_USER=$username npm run deploy)
(cd ./docuilib && GIT_USER=$username USE_SSH=true npm run deploy)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you run it locally and it worked?

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