Skip to content

Official Crawl4AI Cloud: a hosted web scraping, extraction, and search API for AI agents. Free API key, 1,000 credits a month, no card. Fully open source: this repo is the Apache-2.0 crawler that powers it, and you can self-host it.

fix(test): correct regex group name in headless shell test

ntohidia94041c339fc
diff --git a/deploy/docker/tests/test_security_container_posture.py b/deploy/docker/tests/test_security_container_posture.py
index 647f2d18..871e642d 100644
--- a/deploy/docker/tests/test_security_container_posture.py
+++ b/deploy/docker/tests/test_security_container_posture.py
@@ -67,8 +67,8 @@ class TestDockerfile:
re.DOTALL,
)
assert cache_copy, "Dockerfile must copy Playwright artifacts into appuser's cache"
- assert "chromium-*" in cache_copy.group("commands")
- assert "chromium_headless_shell-*" in cache_copy.group("commands")
+ assert "chromium-*" in cache_copy.group("artifacts")
+ assert "chromium_headless_shell-*" in cache_copy.group("artifacts")
def test_runs_as_non_root(self, dockerfile):
assert re.search(r"^USER\s+appuser", dockerfile, re.MULTILINE)