From 2f2ade07501908a7a143cd5648fab2c77ccdf967 Mon Sep 17 00:00:00 2001 From: jingjingxyk Date: Tue, 5 Dec 2023 02:47:49 +0800 Subject: [PATCH] auto test chromium --- .github/workflows/linux-x86_64.yaml | 2 ++ tools/chromium-auto-test.sh | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux-x86_64.yaml b/.github/workflows/linux-x86_64.yaml index 9b607147..b470faed 100644 --- a/.github/workflows/linux-x86_64.yaml +++ b/.github/workflows/linux-x86_64.yaml @@ -105,6 +105,8 @@ jobs: set -x # bash tools/chromium.sh --xvfb # bash tools/chromium.sh --headless + nohup bash tools/chromium.sh --xvfb & + bash tools/chromium-auto-test.sh - name: Firefox Load Extension run: | diff --git a/tools/chromium-auto-test.sh b/tools/chromium-auto-test.sh index d165f1d6..0035f75f 100644 --- a/tools/chromium-auto-test.sh +++ b/tools/chromium-auto-test.sh @@ -19,9 +19,11 @@ cd ${__DIR__} # 浏览器日志位于 nohup.out 文件 -sleep 10 +sleep 11 curl http://localhost:9222/json/protocol + +exit 0 curl http://127.0.0.1:9222/json/new?https://stackoverflow.com/tags/socat/hot?filter=all curl http://127.0.0.1:9222/json/new?https://patrickhlauke.github.io/recaptcha/ curl http://127.0.0.1:9222/json/new?https://cdn.jsdelivr.net/