playwright: adapt tests to hosted

Makes the test's base url, user & password configurable through the
environment. Abstracts differences between hosted and cockpit where
possible to lib, and adds conditionals otherwise.
This commit is contained in:
Sanne Raymaekers 2025-03-05 13:11:42 +01:00 committed by Klara Simickova
parent f0a3574cda
commit 21ec51a69e
4 changed files with 107 additions and 30 deletions

View file

@ -71,6 +71,8 @@ sudo systemctl start osbuild-worker@1
sudo podman run \
-e "PLAYWRIGHT_HTML_OPEN=never" \
-e "CI=true" \
-e "USER=admin" \
-e "PASSWORD=foobar" \
--net=host \
-v "$PWD:/tests" \
--privileged \