playwright/packages
Ross Wollman 64e7557fb9
fix: falsey behavior in route.continue, page.post, testInfo.attach (#11421)
In several of the Playwright APIs, falsey values were not handled correctly. This changeset adds tests (and some fixes):

- route.continue: If options.postData was the empty string, the continue failed to override the post data.
- page.post (application/json with options.data: false|''|0|null): Raw falsey values were getting dropped (i.e. you can't do the equivalent of curl --header application/json … -d 'false'). This has been fixed with most values across all browsers, but an additional fix is needed for 'null' which the channel serializer treats extra specially.
- testInfo.attach: This didn't get reported as an error when options.path was the empty string, but should have been.
#11413 (and its fix #11414) inspired this search as they are the same
class of bug.
2022-01-24 15:06:36 -08:00
..
html-reporter chore: fix html report bottom padding (#11541) 2022-01-21 13:58:55 +01:00
playwright fix(prepare): don't change package files on prepare (#11579) 2022-01-24 11:25:24 -08:00
playwright-chromium fix(prepare): don't change package files on prepare (#11579) 2022-01-24 11:25:24 -08:00
playwright-core fix: falsey behavior in route.continue, page.post, testInfo.attach (#11421) 2022-01-24 15:06:36 -08:00
playwright-firefox fix(prepare): don't change package files on prepare (#11579) 2022-01-24 11:25:24 -08:00
playwright-test fix: falsey behavior in route.continue, page.post, testInfo.attach (#11421) 2022-01-24 15:06:36 -08:00
playwright-webkit fix(prepare): don't change package files on prepare (#11579) 2022-01-24 11:25:24 -08:00
.eslintrc.js chore: don't write into stdout from the test runner, use reporters instead (#11367) 2022-01-12 19:52:40 -08:00