Skip to content

Commit

Permalink
chore: release notes 1.29
Browse files Browse the repository at this point in the history
  • Loading branch information
aslushnikov committed Dec 15, 2022
1 parent 0be1fc8 commit ed81559
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions docs/src/release-notes-js.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,60 @@ title: "Release notes"
toc_max_heading_level: 2
---

## Version 1.29

### Test Runner Update

- Automatic screenshot options to capture full page screenshots or omit background:
```js
// playwright.config.ts
import type { PlaywrightTestConfig } from '@playwright/test';

const config: PlaywrightTestConfig = {
use: {
screenshot: {
mode: 'on',
fullPage: true,
omitBackground: true,
}
}
};

export default config;
```

- Retry blocks of code until they are passing successfully:

```js
await expect(async () => {
const response = await page.request.get('https://api.example.com');
expect(response.status()).toBe(200);
}).toPass();
```

Read more in [our documentation](./test-assertions.md#retrying).

- Playwright Test now respects [`jsconfig.json`](https://code.visualstudio.com/docs/languages/jsconfig).

### New APIs

- New option `json` for [`method: Route.fulfill`]
- [`method: Route.fetch`]
- [`method: Locator.all`]
- New options `args` and `proxy` for [`method: AndroidDevice.launchBrowser`]
- Option `postData` in method [`method: Route.continue`] now supports [serializable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#description) values

### Browser Versions

* Chromium 109.0.5414.46
* Mozilla Firefox 107.0
* WebKit 16.4

This version was also tested against the following stable channels:

* Google Chrome 108
* Microsoft Edge 108

## Version 1.28

<div className="embed-youtube">
Expand Down

0 comments on commit ed81559

Please sign in to comment.