test(identity): add isolated browser mail fixture

This commit is contained in:
TakuyaYagam1 committed 2026-10-07 11:52:38 +03:00
1 parent 86f562f5b6
commit 24638d46d2
20 files changed
+885 -20

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
# Rootless Docker maps container root to the owner of a host bind mount. A
# non-root container UID instead maps to a subordinate host UID and cannot
# write the owner's artifact directory. In rootful Docker, match the host UID.
e2e_playwright_user() {
local security_options=$1
local host_uid=$2
local host_gid=$3
if [[ "$security_options" == *'"name=rootless"'* ]]; then
printf '0:0\n'
return
fi
printf '%s:%s\n' "$host_uid" "$host_gid"
}