fileforge_qa_testing
Run repeatable pass/fail QA checks for smoke tests, page boot, routes, console, network, forms, and element changes to catch frontend issues before release.
Instructions
Run repeatable pass/fail checks: smoke tests, page boot, routes, console, network, forms and element watches. Use fileforge_page_interaction for individual steps and fileforge_coding_action while fixing code. URL checks load pages in your session. check_console_clean and check_network_clean read a running DevTools session and return SESSION_NOT_STARTED without one. Needs the extension.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Page URL to load. | |
| store | No | Save the result in ~/.fileforge and return a ref. | |
| tabId | No | Tab ID, or "active" for the active tab. | active |
| action | Yes | What to do. Required parameters are in brackets. run_frontend_check (url): Load a page, plus any routes, and list issues on each. Fails on high or critical issues. Stores the result by default. run_smoke_test (url): Load one page without a screenshot and list issues. Fails on high or critical issues. Stores the result by default. check_page_boot (url): Load one page and list issues, without storing anything. Fails on high or critical issues. check_routes (baseUrl, routes): Load each route against baseUrl and list issues per route. Fails on high or critical issues. check_console_clean: Pass only if the running DevTools session on a tab has no console issues. check_network_clean: Pass only if the running DevTools session on a tab has no failed requests. check_forms: Report issues in the forms on an open tab. watch_element (selector): Start watching an element for changes and return a watchId. capture_element_change: Read the changes recorded by watch_element, by watchId or selector. Stores the result by default. | |
| routes | No | Route paths to visit, such as "/pricing". | |
| baseUrl | No | Origin that routes are resolved against. | |
| project | No | Project name that groups stored results. | default |
| watchId | No | ID returned when the watch started. | |
| selector | No | CSS selector of the target element. | |
| timeoutMs | No | Time limit in milliseconds. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | False if the action failed or a check did not pass. | |
| ref | No | Stored result ID, for fileforge_result_action. | |
| data | No | The result. Its shape depends on the action. | |
| meta | No | Tool, action and context. | |
| error | No | Failure code and message. | |
| warnings | No | Notes about a call that still ran. |