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

chore: enable playwright test extension in vscode#13135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Emyrk merged 5 commits intomainfromstevenmasley/playwright_debug
May 2, 2024
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletionssite/e2e/README.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -41,6 +41,15 @@ pnpm build
pnpm playwright:test
```

To run the playwright debugger from VSCode, just launch VSCode from the nix
environment and have the extension installed.

```shell
# Optionally add '--command zsh' to choose your shell.
nix develop
code .
```

# Enterprise tests

Enterprise tests require a license key to run.
Expand Down
9 changes: 8 additions & 1 deletionsite/e2e/reporter.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -133,7 +133,14 @@ class CoderReporter implements Reporter {
}
}

const logLines = (chunk: string): string[] => chunk.trimEnd().split("\n");
const logLines = (chunk: string | Buffer): string[] => {
if (chunk instanceof Buffer) {
// When running in a debugger, the input to this is a Buffer instead of a string.
// Unsure why, but this prevents the `trimEnd` from throwing an error.
return [chunk.toString()];
}
return chunk.trimEnd().split("\n");
};
Comment on lines +136 to +143
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Debugger fails without this


const exportDebugPprof = async (outputFile: string) => {
const response = await axiosInstance.get(
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp