Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: list installed browsers #34258

Closed
wants to merge 2 commits into from
Closed

feat: list installed browsers #34258

wants to merge 2 commits into from

Conversation

resslr
Copy link

@resslr resslr commented Jan 8, 2025

List Installed Browser Command to Solve #34183

CoPilot Generated Summary:

  • Add playwright ls command to list installed browsers in packages/playwright-core/src/cli/commands/ls.ts.
  • Add --list option to npx playwright install command in packages/playwright-core/src/cli/commands/install.ts.
  • Register the new ls command in the CLI program in packages/playwright-core/src/cli/program.ts.
  • Write tests for the playwright ls command in packages/playwright-core/src/cli/commands/ls.test.ts.
  • Add documentation for the new playwright ls command and --list option in docs/src/cli.md.
  • Update .github/actions/run-test/action.yml to use npx playwright install --with-deps --list to list installed browsers.

Add new commands to list installed browsers.

Solves microsoft#34183

* Add `playwright ls` command to list installed browsers in `packages/playwright-core/src/cli/commands/ls.ts`.
* Add `--list` option to `npx playwright install` command in `packages/playwright-core/src/cli/commands/install.ts`.
* Register the new `ls` command in the CLI program in `packages/playwright-core/src/cli/program.ts`.
* Write tests for the `playwright ls` command in `packages/playwright-core/src/cli/commands/ls.test.ts`.
* Add documentation for the new `playwright ls` command and `--list` option in `docs/src/cli.md`.
* Update `.github/actions/run-test/action.yml` to use `npx playwright install --with-deps --list` to list installed browsers.
@resslr resslr changed the title add: list installed browsers feat: list installed browsers Jan 8, 2025
@resslr
Copy link
Author

resslr commented Jan 8, 2025

@microsoft-github-policy-service agree

This comment has been minimized.

Copy link
Member

@Skn0tt Skn0tt left a comment

Choose a reason for hiding this comment

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

This PR does much more than what the issue asked for. Could you remove everything except the --list parameter?

This comment has been minimized.

@resslr
Copy link
Author

resslr commented Jan 12, 2025

This PR does much more than what the issue asked for. Could you remove everything except the --list parameter?

The git history became messed up with a merge so I'm gonna recreate this pr

@resslr resslr closed this Jan 12, 2025
@resslr resslr deleted the patch-1 branch January 12, 2025 13:16

This comment has been minimized.

Copy link
Contributor

Test results for "tests 1"

5 flaky ⚠️ [firefox-page] › tests/page/page-evaluate.spec.ts:403:3 › should throw for too deep reference chain @firefox-ubuntu-22.04-node18
⚠️ [webkit-library] › tests/library/browsercontext-storage-state.spec.ts:77:3 › should round-trip through the file @webkit-ubuntu-22.04-node18
⚠️ [webkit-library] › tests/library/trace-viewer.spec.ts:289:1 › should have correct stack trace @webkit-ubuntu-22.04-node18
⚠️ [webkit-library] › tests/library/trace-viewer.spec.ts:924:1 › should follow redirects @webkit-ubuntu-22.04-node18
⚠️ [webkit-page] › tests/page/page-set-input-files.spec.ts:147:3 › should upload large file @webkit-ubuntu-22.04-node18

37582 passed, 648 skipped
✔️✔️✔️

Merge workflow run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants