
Product
Socket Now Supports pylock.toml Files
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
@podman-desktop/tests-playwright
Advanced tools
Playwright-based testing libraries for Podman Desktop and its extensions
This document contains information on how to use the E2E testing framework of Podman Desktop on different scenarios. This is particularly useful if you want to execute the tests from a Podman Desktop extension or you want to develop your own.
Prerequisites:
nvm
)This section explains how to develop your own E2E tests for the Podman Desktop app.
Steps:
podman-desktop
)pnpm install
pnpm test:e2e:build
tests/playwright
folderpnpm test:e2e
in order to run them./tests/playwright/output
(this directory can be modified in the playwright.config.ts
file)This section explains how to add the npm package to a repository external to podman-desktop.
Steps:
podman-desktop
)pnpm install
pnpm build
pnpm test:e2e:build
export PODMAN_DESKTOP_ARGS="/complete/path/to/podman-desktop-repo"
(the current directory) [¹]package.json
file to have the following contents:devDependencies
:
"@podman-desktop/tests-playwright": "next",
[²]"@playwright/test": "^1.48.1"
(or the current latest)scripts
:
"test:e2e:setup": "xvfb-maybe --auto-servernum --server-args='-screen 0 1280x960x24' --"
[³]"test:e2e": "cross-env npm run test:e2e:setup npx playwright test tests/src"
pnpm install
, which should extract the contents of the previously built Podman Desktop into the node_modules
folder in your repo@podman-desktop/tests-playwright
from step 3 (optional)pnpm test:e2e
[¹] Remember that environment variables defined this way only work on the terminal they were defined and only for as long as the terminal is active.
[²] Using the value "next" works for local executions of the tests, but if you want to execute the tests remotely you should specify the latest version of the framework, you can find that value here. Remember that this value will be written into the lock file, so if you really want to make sure you are using the actual latest version in the future you should force the update with pnpm add -D @podman-desktop/tests-playwright@next
(the -w
flag may be necessary).
[³] If your project does not already have the xvfb-maybe
dependency, you'll need to add it as well.
This section references how to use @podman-desktop/tests-playwright generated archive file for local development
podman-desktop
)tests/playwright
folder and install its local dependencies by executing pnpm install
tests/playwright
)pnpm build
pnpm run package
, this will produce a .tgz archiveexport PODMAN_DESKTOP_ARGS="/complete/path/to/podman-desktop-repo"
(not the current directory, two folders up)package.json
file to have the following contents under devDependencies
:
"@podman-desktop/tests-playwright": "file:../podman-desktop/tests/playwright"
pnpm install
, which should extract the contents of the previously built Podman Desktop into the node_modules
folder in your repo@podman-desktop/tests-playwright
should be available in your project. If the process was successful, you should be able to find the classes you added on the index.d.ts
file under node_modules/@podman_desktop/tests_playwright/dist
FAQs
Playwright-based testing libraries for Podman Desktop and its extensions
The npm package @podman-desktop/tests-playwright receives a total of 4,169 weekly downloads. As such, @podman-desktop/tests-playwright popularity was classified as popular.
We found that @podman-desktop/tests-playwright demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
Research
Security News
Malicious Ruby gems typosquat Fastlane plugins to steal Telegram bot tokens, messages, and files, exploiting demand after Vietnam’s Telegram ban.