@playwright/test 1.35.0 → 1.36.0-alpha-jun-9-2023

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -166,11 +166,18 @@ class TeleReporterReceiver {
166
166
  (_this$_reporter$onErr = (_this$_reporter6 = this._reporter).onError) === null || _this$_reporter$onErr === void 0 ? void 0 : _this$_reporter$onErr.call(_this$_reporter6, error);
167
167
  }
168
168
  _onStdIO(type, testId, resultId, data, isBase64) {
169
- var _this$_reporter$onStd, _this$_reporter7, _this$_reporter$onStd2, _this$_reporter8;
170
169
  const chunk = isBase64 ? globalThis.Buffer ? Buffer.from(data, 'base64') : atob(data) : data;
171
170
  const test = testId ? this._tests.get(testId) : undefined;
172
171
  const result = test && resultId ? test.resultsMap.get(resultId) : undefined;
173
- if (type === 'stdout') (_this$_reporter$onStd = (_this$_reporter7 = this._reporter).onStdOut) === null || _this$_reporter$onStd === void 0 ? void 0 : _this$_reporter$onStd.call(_this$_reporter7, chunk, test, result);else (_this$_reporter$onStd2 = (_this$_reporter8 = this._reporter).onStdErr) === null || _this$_reporter$onStd2 === void 0 ? void 0 : _this$_reporter$onStd2.call(_this$_reporter8, chunk, test, result);
172
+ if (type === 'stdout') {
173
+ var _this$_reporter$onStd, _this$_reporter7;
174
+ result === null || result === void 0 ? void 0 : result.stdout.push(chunk);
175
+ (_this$_reporter$onStd = (_this$_reporter7 = this._reporter).onStdOut) === null || _this$_reporter$onStd === void 0 ? void 0 : _this$_reporter$onStd.call(_this$_reporter7, chunk, test, result);
176
+ } else {
177
+ var _this$_reporter$onStd2, _this$_reporter8;
178
+ result === null || result === void 0 ? void 0 : result.stderr.push(chunk);
179
+ (_this$_reporter$onStd2 = (_this$_reporter8 = this._reporter).onStdErr) === null || _this$_reporter$onStd2 === void 0 ? void 0 : _this$_reporter$onStd2.call(_this$_reporter8, chunk, test, result);
180
+ }
174
181
  }
175
182
  _onEnd(result) {
176
183
  var _this$_reporter$onEnd, _this$_reporter9;
@@ -97,7 +97,7 @@ class TeleReporterEmitter {
97
97
  });
98
98
  }
99
99
  onStdOut(chunk, test, result) {
100
- this._onStdIO('stdio', chunk, test, result);
100
+ this._onStdIO('stdout', chunk, test, result);
101
101
  }
102
102
  onStdErr(chunk, test, result) {
103
103
  this._onStdIO('stderr', chunk, test, result);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playwright/test",
3
- "version": "1.35.0",
3
+ "version": "1.36.0-alpha-jun-9-2023",
4
4
  "description": "A high-level API to automate web browsers",
5
5
  "repository": "github:Microsoft/playwright",
6
6
  "homepage": "https://playwright.dev",
@@ -41,7 +41,7 @@
41
41
  "license": "Apache-2.0",
42
42
  "dependencies": {
43
43
  "@types/node": "*",
44
- "playwright-core": "1.35.0"
44
+ "playwright-core": "1.36.0-alpha-jun-9-2023"
45
45
  },
46
46
  "optionalDependencies": {
47
47
  "fsevents": "2.3.2"