Visual Studio Code extension with commands for Playwrightš
MIT License
This Visual Studio Code extension adds predefined commands for Node.js Playwright.
Extensions adds new view called Playwright Helpers. You can open it by clicking on the icon in the Activity Bar.
The Side View provides a convenient way to access all features from this extension.
This extension provides a set of commands that can be executed from the Command Palette.
Ctrl+Shift+P
(Windows/Linux) or Cmd+Shift+P
(macOS).PW Helpers: Initiate New Playwright Project
This extension provides the following features:
Command | Description |
---|---|
playwright-helpers.refreshPlaywrightScripts |
Refresh Playwright Scripts View |
playwright-helpers.refreshTraces |
Refresh Playwright Traces |
playwright-helpers.refreshReports |
Refresh Playwright Reports |
playwright-helpers.initNewProject |
Initiate New Playwright Project |
playwright-helpers.initNewProjectQuick |
Initiate New Playwright Project (with defaults) |
playwright-helpers.checkPlaywrightVersion |
Check Playwright Version |
playwright-helpers.listInstalledPackages |
List Installed Packages |
playwright-helpers.listInstalledGlobalPackages |
List Installed Global Packages |
playwright-helpers.runCodegen |
Run Playwright Codegen |
playwright-helpers.runShowReport |
Run Playwright Show Report |
playwright-helpers.openUiMode |
Open Playwright UI Mode |
playwright-helpers.checkPlaywrightTestVersion |
Check Playwright Test Version |
playwright-helpers.installLatestPlaywrightTest |
Install/Update Latest Playwright Test |
playwright-helpers.installNextPlaywrightTest |
Install/Update Next Playwright Test |
playwright-helpers.checkForPlaywrightTestUpdates |
Check Playwright Test Updates |
playwright-helpers.listInstalledPlaywrightPackages |
List Installed Playwright Packages |
playwright-helpers.uninstallPlaywrightBrowsers |
Uninstall Playwright Browsers (only from current project) |
playwright-helpers.installChromiumPlaywrightBrowser |
Install Chromium Playwright Browser |
playwright-helpers.installWebkitPlaywrightBrowser |
Install Webkit Playwright Browser |
playwright-helpers.installFirefoxPlaywrightBrowser |
Install Firefox Playwright Browser |
playwright-helpers.installAllPlaywrightBrowsers |
Install All Playwright Browsers |
playwright-helpers.uninstallAllPlaywrightBrowsers |
Uninstall All Playwright Browsers |
playwright-helpers.closeAllTerminals |
Close All Terminals |
playwright-helpers.listSystemInfo |
List System Info (using envinfo) |
playwright-helpers.runPrettierOnAllFiles |
Run Prettier on All Files |
playwright-helpers.showTrace |
Show Trace |
playwright-helpers.toggleHideShowCommands |
Toggle Hide/Show Commands |
The Command Composer allows you to compose your own commands by selecting the desired options and parameters.
From graphical user interface you can select options described in documentation and then execute the command:
Currently available commands to compose: https://playwright.dev/docs/test-cli#reference
The Codegen Composer allows you to compose your own codegen command by selecting the desired options and parameters.
The extension provides an easy way to view Playwright traces in a graphical user interface. You can view the traces in a tree view, search for specific tests, and quickly run trace-viewer
to display selected trace.
The extension provides an easy way to view Playwright reports in a graphical user interface. You can view the reports in a tree view and quickly run view-report
to display selected report.
The extension provides an easy way to run Playwright scripts from package.json. You can run scripts from the package.json file by selecting the script from the list.
The extension provides additional context menu commands for the following items:
trace.zip
) - you can quickly view the trace in the Trace Viewer via clicking on file in the Explorer and selecting Show Trace
from the context menu.index.html
) - you can quickly view the report via clicking on index.html
file in the Explorer and selecting Show Report
from the context menu.*.spec.ts
) - you can quickly run the tests via clicking on .spec.ts
file in the Explorer and selecting Run Tests
from the context menu.The extension provides additional CodeLenses for the following items:
test
, only
, skip
) - you can quickly change the test annotations via clicking on the annotation above the testexpect
) - you can quickly add soft or hard assertions via clicking on the annotation above the expect
This project is open source and we welcome contributions from the community. If you would like to contribute, please follow these steps:
Please ensure that your code follows our coding guidelines and includes appropriate tests. We appreciate your contributions and look forward to reviewing your pull requests!
Enjoy!