From 2bb474091d163ea72eb986a81505de1129c97fde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Mon, 17 Aug 2020 14:35:21 +0200 Subject: [PATCH 1/2] fix links --- website/docs/MigrationV7.md | 2 +- website/docs/Queries.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/website/docs/MigrationV7.md b/website/docs/MigrationV7.md index 55975664d..89da4b5f6 100644 --- a/website/docs/MigrationV7.md +++ b/website/docs/MigrationV7.md @@ -116,4 +116,4 @@ There are slight differences in how `fireEvent` works in both libraries: +fireEvent(element: ReactTestInstance, eventName: string, ...data: Array) ``` 1. There is no `NativeTestEvent` - second and rest arguments are used instead. -1. There are only 3 short-hand events: [`fireEvent.press`](`/docs/api/#fireeventpress-element-reacttestinstance--void`), [`fireEvent.changeText`](https://callstack.github.io/react-native-testing-library/docs/api/#fireeventchangetext-element-reacttestinstance-data-arrayany--void) and [`fireEvent.scroll`](https://callstack.github.io/react-native-testing-library/docs/api/#fireeventchangetext-element-reacttestinstance-data-arrayany--void). For all other or custom events you can use the base signature. +1. There are only 3 short-hand events: [`fireEvent.press`](api/#fireeventpress-element-reacttestinstance--void), [`fireEvent.changeText`](api/#fireeventchangetext-element-reacttestinstance-data-arrayany--void) and [`fireEvent.scroll`](api/#fireeventscroll-element-reacttestinstance-data-arrayany--void). For all other or custom events you can use the base signature. diff --git a/website/docs/Queries.md b/website/docs/Queries.md index d4c095a9d..ded8da31c 100644 --- a/website/docs/Queries.md +++ b/website/docs/Queries.md @@ -37,7 +37,7 @@ In order to properly use `findBy` and `findAllBy` queries you need at least Reac ::: :::info -`findBy` and `findAllBy` queries accept optional `waitForOptions` object argument which can contain `timeout` and `interval` properies which have the same meaning as respective options for [`waitFor`](https://callstack.github.io/react-native-testing-library/docs/api#waitfor) function. +`findBy` and `findAllBy` queries accept optional `waitForOptions` object argument which can contain `timeout` and `interval` properies which have the same meaning as respective options for [`waitFor`](api#waitfor) function. ::: ## Queries @@ -59,7 +59,7 @@ type ReactTestInstance = { Returns a `ReactTestInstance` with matching text – may be a string or regular expression. -This method will join `` siblings to find matches, similarly to [how React Native handles these components](https://facebook.github.io/react-native/docs/text#containers). This will allow for querying for strings that will be visually rendered together, but may be semantically separate React components. +This method will join `` siblings to find matches, similarly to [how React Native handles these components](https://reactnative.dev/docs/text#containers). This will allow for querying for strings that will be visually rendered together, but may be semantically separate React components. ```jsx import { render } from '@testing-library/react-native'; From 7f9240e6a4fb2ec291283f121de702aabaef5889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Mon, 17 Aug 2020 14:47:52 +0200 Subject: [PATCH 2/2] update projectName to reference the one on github --- website/docusaurus.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 92574230f..28078e7a4 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -6,8 +6,8 @@ const siteConfig = { tagline: 'Helps you to write better tests with less effort.', url: 'https://callstack.github.io', // Your website URL baseUrl: '/react-native-testing-library/', // Base URL for your project - // Used for publishing and more - projectName: '@testing-library/react-native', + // The name of the GitHub repository. Used by the deployment command + projectName: 'react-native-testing-library', organizationName: 'callstack', favicon: 'img/owl.png',