build(deps): bump playwright from 1.49.1 to 1.50.1

This commit is contained in:
2025-02-21 17:22:03 -07:00
parent 79c9869e65
commit dc6d9c68a9
174 changed files with 3064 additions and 1955 deletions

View File

@@ -43,10 +43,14 @@ class GitHubLogger {
this._log(message, 'warning', options);
}
}
class GitHubReporter extends _base.BaseReporter {
constructor(...args) {
super(...args);
class GitHubReporter extends _base.TerminalReporter {
constructor(options = {}) {
super(options);
this.githubLogger = new GitHubLogger();
this.screen = {
...this.screen,
colors: _base.noColors
};
}
printsToStdio() {
return false;
@@ -56,7 +60,7 @@ class GitHubReporter extends _base.BaseReporter {
this._printAnnotations();
}
onError(error) {
const errorMessage = (0, _base.formatError)(error, false).message;
const errorMessage = this.formatError(error).message;
this.githubLogger.error(errorMessage);
}
_printAnnotations() {
@@ -82,14 +86,14 @@ class GitHubReporter extends _base.BaseReporter {
}
_printFailureAnnotations(failures) {
failures.forEach((test, index) => {
const title = (0, _base.formatTestTitle)(this.config, test);
const header = (0, _base.formatTestHeader)(this.config, test, {
const title = this.formatTestTitle(test);
const header = this.formatTestHeader(test, {
indent: ' ',
index: index + 1,
mode: 'error'
});
for (const result of test.results) {
const errors = (0, _base.formatResultFailure)(test, result, ' ', _base.colors.enabled);
const errors = (0, _base.formatResultFailure)(this.screen, test, result, ' ');
for (const error of errors) {
var _error$location;
const options = {
@@ -100,7 +104,7 @@ class GitHubReporter extends _base.BaseReporter {
options.line = error.location.line;
options.col = error.location.column;
}
const message = [header, ...(0, _base.formatRetry)(result), error.message].join('\n');
const message = [header, ...(0, _base.formatRetry)(this.screen, result), error.message].join('\n');
this.githubLogger.error(message, options);
}
}