Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7779c0a

Browse files
authored
chore: enable playwright test extension in vscode (#13135)
* chore: enable playwright test extension in vscodeThis enables using the vscode debugger in playwright tests
1 parent699e187 commit7779c0a

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

‎site/e2e/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@ pnpm build
4141
pnpm playwright:test
4242
```
4343

44+
To run the playwright debugger from VSCode, just launch VSCode from the nix
45+
environment and have the extension installed.
46+
47+
```shell
48+
# Optionally add '--command zsh' to choose your shell.
49+
nix develop
50+
code.
51+
```
52+
4453
#Enterprise tests
4554

4655
Enterprise tests require a license key to run.

‎site/e2e/reporter.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,14 @@ class CoderReporter implements Reporter {
133133
}
134134
}
135135

136-
constlogLines=(chunk:string):string[]=>chunk.trimEnd().split("\n");
136+
constlogLines=(chunk:string|Buffer):string[]=>{
137+
if(chunkinstanceofBuffer){
138+
// When running in a debugger, the input to this is a Buffer instead of a string.
139+
// Unsure why, but this prevents the `trimEnd` from throwing an error.
140+
return[chunk.toString()];
141+
}
142+
returnchunk.trimEnd().split("\n");
143+
};
137144

138145
constexportDebugPprof=async(outputFile:string)=>{
139146
constresponse=awaitaxiosInstance.get(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp