فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
ci(ux): fast isolated UI handler/route/accessibility regression before slow native Windows sweep
davoodmehraban89 committed
Oct 30, 2026 at 23:21 UTC
4b2f9869ddb1cb14a8944289d8e4ee177b6b525b
1 file changed
+48
.github/workflows/q01-ui-control-checks.yml
new
+48
@@ -0,0 +1,48 @@
1
+name: Q01 — UI control contracts and frontend regression
2
+
3
+on:
4
+ pull_request:
5
+ paths:
6
+ - 'index.html'
7
+ - 'src/**'
8
+ - 'tests/ui-control-structure.test.mjs'
9
+ - 'tests/windows-vm-ui-interaction-audit-browser.js'
10
+ - 'tests/windows-vm-installed-tauri-cdp.cjs'
11
+ - '.github/workflows/q01-ui-control-checks.yml'
12
+ workflow_dispatch:
13
+
14
+permissions:
15
+ contents: read
16
+
17
+concurrency:
18
+ group: q01-ui-${{ github.event.pull_request.number || github.ref }}
19
+ cancel-in-progress: true
20
+
21
+jobs:
22
+ ui-contract:
23
+ name: Test all registered UI handler references and frontend
24
+ runs-on: ubuntu-latest
25
+ timeout-minutes: 20
26
+ steps:
27
+ - name: Checkout exact candidate source
28
+ uses: actions/checkout@v4
29
+ with:
30
+ persist-credentials: false
31
+ - name: Set up Node.js 22
32
+ uses: actions/setup-node@v4
33
+ with:
34
+ node-version: '22'
35
+ cache: npm
36
+ - name: Install locked dependencies
37
+ run: npm ci
38
+ - name: Audit inline controls, sidebar route bindings and keyboard support
39
+ run: node --test tests/ui-control-structure.test.mjs
40
+ - name: Run all accounting and application regression tests
41
+ run: npm test
42
+ - name: Build production frontend
43
+ run: npm run build
44
+ - name: Explain coverage boundary
45
+ run: |
46
+ echo "Static UI references are NOT proof that buttons work." >> "$GITHUB_STEP_SUMMARY"
47
+ echo "Native Windows/WebView2 Q01 sweep is a separate real-click gate." >> "$GITHUB_STEP_SUMMARY"
48
+ echo "Destructive financial actions require independent synthetic workflows." >> "$GITHUB_STEP_SUMMARY"