From 0e7bee479d95334683255da8933dcd92e0bf9477 Mon Sep 17 00:00:00 2001 From: Angelo Veltens Date: Mon, 9 Dec 2024 19:36:37 +0100 Subject: [PATCH] chore: add npm script to start e2e tests with playwright UI --- apps/Readme.md | 7 +++++++ apps/package.json | 2 ++ 2 files changed, 9 insertions(+) diff --git a/apps/Readme.md b/apps/Readme.md index 4b79594..906e623 100644 --- a/apps/Readme.md +++ b/apps/Readme.md @@ -65,6 +65,13 @@ It is also possible to run the tests against the local dev server of [PodOS elem npm run test:elements ``` +To start the test with the Playwright UI run one of those: + +```shell +npm run test:ui +npm run test:elements:ui +``` + #### Test data The tests fire up a Community Solid Server to provide test data, which can be diff --git a/apps/package.json b/apps/package.json index 7c28675..f692b91 100644 --- a/apps/package.json +++ b/apps/package.json @@ -10,6 +10,8 @@ "test:elements": "playwright test --config playwright-elements.config.ts", "test:debug": "playwright test --config playwright-app.config.ts --debug --project=chromium", "test:elements:debug": "playwright test --config playwright-elements.config.ts --debug --project=chromium", + "test:ui": "npm run test -- --ui", + "test:elements:ui": "npm run test:elements -- --ui", "build:latest": "POD_OS_ELEMENTS_VERSION=latest make pos-app-browser" }, "keywords": [],