docs: what you will learn section (#16314)
This commit is contained in:
parent
ba574637a6
commit
850e14eccf
|
|
@ -5,7 +5,17 @@ title: "Writing Tests"
|
||||||
|
|
||||||
Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met. Playwright comes with [auto-wait](./actionability.md) built in meaning it waits for elements to be actionable prior to performing actions. Playwright provides a [test](./api/class-test.md) function to declare tests and the [expect](https://jestjs.io/docs/expect) function to write assertions.
|
Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met. Playwright comes with [auto-wait](./actionability.md) built in meaning it waits for elements to be actionable prior to performing actions. Playwright provides a [test](./api/class-test.md) function to declare tests and the [expect](https://jestjs.io/docs/expect) function to write assertions.
|
||||||
|
|
||||||
Take a look at the example test included when installing Playwright to see how to write a test using web first assertions, locators and selectors.
|
**You will learn**
|
||||||
|
|
||||||
|
- [How the example test works](/writing-tests.md#the-example-test)
|
||||||
|
- [How to use assertions](/writing-tests.md#assertions)
|
||||||
|
- [How to use locators](/writing-tests.md#locators)
|
||||||
|
- [How tests run in isolation](/writing-tests.md#test-isolation)
|
||||||
|
- [How to use test hooks](/writing-tests.md#using-test-hooks)
|
||||||
|
|
||||||
|
## The Example Test
|
||||||
|
|
||||||
|
Take a look at the example test included when installing Playwright to see how to write a test using [web first assertions](/test-assertions.md), [locators](/locators.md) and [selectors](/selectors.md).
|
||||||
|
|
||||||
```js tab=js-js
|
```js tab=js-js
|
||||||
// @ts-check
|
// @ts-check
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue