From dcb43a1134dd541d2bb873e1d8a9de72361f6ba7 Mon Sep 17 00:00:00 2001 From: kyy Date: Fri, 27 Feb 2026 14:50:34 +0900 Subject: [PATCH] =?UTF-8?q?playwrite=20=EB=B9=88=20=ED=8F=AC=ED=8A=B8=20?= =?UTF-8?q?=ED=95=A0=EB=8B=B9=EC=9C=BC=EB=A1=9C=20=ED=8F=AC=ED=8A=B8=20?= =?UTF-8?q?=EC=B6=A9=EB=8F=8C=20=EB=B0=A9=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 87e0a8f0..0eea204a 100644 --- a/Makefile +++ b/Makefile @@ -265,7 +265,9 @@ code-check-userfront-e2e-tests: (cd "$$tmp_dir/userfront-e2e" && $(PLAYWRIGHT_INSTALL_CHROMIUM)) || status=$$?; \ fi; \ if [ $$status -eq 0 ]; then \ - (cd "$$tmp_dir/userfront-e2e" && npm test) || status=$$?; \ + port="$$(node -e "const net=require('node:net'); const s=net.createServer(); s.listen(0,'127.0.0.1',()=>{console.log(s.address().port); s.close();});")"; \ + echo "==> userfront-e2e using PORT=$$port"; \ + (cd "$$tmp_dir/userfront-e2e" && PORT=$$port npm test) || status=$$?; \ fi; \ [ -d "$$tmp_dir/userfront-e2e/playwright-report" ] && cp -R "$$tmp_dir/userfront-e2e/playwright-report" reports/userfront-e2e/ || true; \ [ -d "$$tmp_dir/userfront-e2e/test-results" ] && cp -R "$$tmp_dir/userfront-e2e/test-results" reports/userfront-e2e/ || true; \