Skip to content

Commit

Permalink
Fixed documentation heading level
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Apr 6, 2023
1 parent 73a569e commit cd71684
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playwright/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ or you can set how long the whole test should run:
test.setTimeout(60 * minute);
```

## Testing Not Displayed Elements
### Testing Not Displayed Elements

This is also related to the asynchronous work. You should never test that something
is NOT displayed on the page because it is not guaranteed that it will not
Expand All @@ -188,7 +188,7 @@ await expect(page.locator('[role="dialog"]')).not.toBeVisible();
The last check actually waits until the popup disappears. It is OK if it takes
some short time to close the popup.

## Locators
### Locators

By default the text locators search for a *substring*! If there are similar
labels present you might get errors for multiple elements found.
Expand Down

0 comments on commit cd71684

Please sign in to comment.