docs: link to input page instead of locators

This PR changes the actions link from the locators page to the (actions)[https://playwright.dev/docs/input) page which seems better to me logically.

Signed-off-by: Matan Borenkraout <Matanbobi@gmail.com>
This commit is contained in:
Matan Borenkraout 2024-05-24 23:32:49 +03:00 committed by GitHub
parent 0e0b426e47
commit 391e808e5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,7 +18,7 @@ If you use DOM Testing Library in the browser (for example, you bundle end-to-en
| [screen](https://testing-library.com/docs/queries/about#screen) | [page](./api/class-page) and [component](./api/class-locator) | | [screen](https://testing-library.com/docs/queries/about#screen) | [page](./api/class-page) and [component](./api/class-locator) |
| [queries](https://testing-library.com/docs/queries/about) | [locators](./locators) | | [queries](https://testing-library.com/docs/queries/about) | [locators](./locators) |
| [async helpers](https://testing-library.com/docs/dom-testing-library/api-async) | [assertions](./test-assertions) | | [async helpers](https://testing-library.com/docs/dom-testing-library/api-async) | [assertions](./test-assertions) |
| [user events](https://testing-library.com/docs/user-event/intro) | [actions](./api/class-locator) | | [user events](https://testing-library.com/docs/user-event/intro) | [actions](./input) |
| `await user.click(screen.getByText('Click me'))` | `await component.getByText('Click me').click()` | | `await user.click(screen.getByText('Click me'))` | `await component.getByText('Click me').click()` |
| `await user.click(await screen.findByText('Click me'))` | `await component.getByText('Click me').click()` | | `await user.click(await screen.findByText('Click me'))` | `await component.getByText('Click me').click()` |
| `await user.type(screen.getByLabel('Password'), 'secret')` | `await component.getByLabel('Password').fill('secret')` | | `await user.type(screen.getByLabel('Password'), 'secret')` | `await component.getByLabel('Password').fill('secret')` |