perf: only screenshot on failure, revert timeout to 25min

AfterStep was capturing a screenshot after every step (~1191 of 1446 steps).
Each screenshot requires IPC round-trip: getFirstWebContentsView  capturePage
 serialize PNG  transfer buffer  fs.writeFile. On CI this costs ~200-400ms
per step, totaling ~6 minutes of pure screenshot overhead.

Now screenshots are only taken for FAILED steps, saving ~6 minutes on CI.
This brings the total test time well within the 25-minute budget.
This commit is contained in:
linonetwo 2026-04-02 02:22:52 +08:00
parent acced7d685
commit 0d304dd5cd
3 changed files with 11 additions and 13 deletions

View file

@ -52,7 +52,7 @@ jobs:
# Set Chinese locale for i18n testing
LANG: zh_CN.UTF-8
LC_ALL: zh_CN.UTF-8
timeout-minutes: 60
timeout-minutes: 25
# Upload test artifacts (screenshots, logs)
- name: Upload test artifacts