Cocos Preview Automated Testing: UI Inspection for Cocos Creator 3.x Previews Using BSK
Introducing the community Skill "Cocos Preview Automated Testing" (@user_4edac78e/cocos-preview-bsk-test, v1.0.3). It is based on browser-skill (bsk) to perform UI automated testing on the localhost:7456 browser preview of Cocos Creator 3.x projects: screenshot-based UI walkthroughs of each page, using evaluate to simulate real mouse events to click buttons within the canvas (bsk click cannot reach them), asserting cc.director node trees and Label text, and generating a visualized HTML report upon test completion. It is triggered when users say "test/verify Cocos game UI", "auto-screenshot to view pages", "interactive flow testing", "UI walkthrough", "click buttons to enter pages", "generate test report". No API Key configuration is required.
Read MoreBrowserSkill Browser Auto-launcher: Auto-launching Edge for bsk Crawling Tasks
BrowserSkill (bsk) scraping and automation require a local Edge browser to be running and the extension connected to the daemon; however, unattended tasks frequently abort due to "browsers connected: 0". The SkillHub community skill "BrowserSkill Browser Auto-Launcher" (@user_656c2e70/bsk-browser-launcher, v1.0.0) utilizes `launch_browser.py` to perform `bsk status` self-checks, launch Edge on demand, and poll for connections. It employs exit codes 0, 3, and 4 to indicate ready, timeout, and session creation failure, respectively; an optional `--start-session` argument outputs `SESSION=id`. This article details the installation command, a typical `bsk` session skeleton, and Windows path dependencies.
Read More