diff --git a/docs/acceptance/2026-09-21-axe/axe-evidence.json b/docs/acceptance/2026-09-21-axe/axe-evidence.json index aefc3a2..083ea0a 100644 --- a/docs/acceptance/2026-09-21-axe/axe-evidence.json +++ b/docs/acceptance/2026-09-21-axe/axe-evidence.json @@ -1,9 +1,9 @@ { - "generatedAt": "2026-09-23T18:24:54.851Z", + "generatedAt": "2026-10-16T18:13:35.538Z", "base": "http://localhost:3100", "axeCore": "4.11.4", - "routeSource": "/tmp/axe-routes.xml → 34 条路由(sitemap ∪ 预渲染产物 ∪ 站内链接 BFS)", - "routeCount": 34, + "routeSource": "/tmp/axe-routes.xml → 35 条路由(sitemap ∪ 预渲染产物 ∪ 站内链接 BFS)", + "routeCount": 35, "routes": [ "/", "/_not-found", @@ -11,6 +11,7 @@ "/about/brand", "/cases", "/contact", + "/insights", "/methodology", "/news", "/news/company-founded", @@ -69,67 +70,67 @@ "bgMismatch": 0, "extraRuleNodes": 0, "extraRulePagesUnderCovered": 0, - "rows": 136, - "totalExtraRuleChecks": 408, - "requiredRuleCoverageTotal": 408 + "rows": 140, + "totalExtraRuleChecks": 420, + "requiredRuleCoverageTotal": 420 }, - "totalExtraRuleChecks": 408, - "expectedExtraRuleChecks": 408, - "totalRequiredRuleCoverage": 408, - "expectedRequiredRuleCoverage": 408, + "totalExtraRuleChecks": 420, + "expectedExtraRuleChecks": 420, + "totalRequiredRuleCoverage": 420, + "expectedRequiredRuleCoverage": 420, "passed": true, "failures": [], "summary": { "chromium/light": { - "pages": 34, + "pages": 35, "themeMismatch": 0, "bgMismatch": 0, "contrastNodes": 0, "violationNodes": 0, "extraRuleNodes": 0, "extraRulePagesUnderCovered": 0, - "extraRuleCoveragePairs": 102, + "extraRuleCoveragePairs": 105, "non2xxResponses": 1, - "okResponses": 33, + "okResponses": 34, "unexpectedStatus": 0 }, "chromium/dark": { - "pages": 34, + "pages": 35, "themeMismatch": 0, "bgMismatch": 0, "contrastNodes": 0, "violationNodes": 0, "extraRuleNodes": 0, "extraRulePagesUnderCovered": 0, - "extraRuleCoveragePairs": 102, + "extraRuleCoveragePairs": 105, "non2xxResponses": 1, - "okResponses": 33, + "okResponses": 34, "unexpectedStatus": 0 }, "firefox/light": { - "pages": 34, + "pages": 35, "themeMismatch": 0, "bgMismatch": 0, "contrastNodes": 0, "violationNodes": 0, "extraRuleNodes": 0, "extraRulePagesUnderCovered": 0, - "extraRuleCoveragePairs": 102, + "extraRuleCoveragePairs": 105, "non2xxResponses": 1, - "okResponses": 33, + "okResponses": 34, "unexpectedStatus": 0 }, "firefox/dark": { - "pages": 34, + "pages": 35, "themeMismatch": 0, "bgMismatch": 0, "contrastNodes": 0, "violationNodes": 0, "extraRuleNodes": 0, "extraRulePagesUnderCovered": 0, - "extraRuleCoveragePairs": 102, + "extraRuleCoveragePairs": 105, "non2xxResponses": 1, - "okResponses": 33, + "okResponses": 34, "unexpectedStatus": 0 } }, @@ -141,6 +142,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -163,6 +165,7 @@ "observedTheme": "light", "statusCode": 404, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -185,6 +188,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -207,6 +211,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -229,6 +234,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -251,6 +257,30 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", + "bgMatchesToken": true, + "violationRules": 0, + "violationNodes": 0, + "contrastNodes": 0, + "extraRuleNodes": 0, + "extraRulesChecked": 3, + "extraRulesCovered": [ + "autocomplete-valid", + "presentation-role-conflict", + "svg-img-alt" + ], + "extraRulesMissing": [], + "violations": [], + "extraRuleViolations": [] + }, + { + "engine": "chromium", + "theme": "light", + "url": "/insights", + "observedTheme": "light", + "statusCode": 200, + "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -273,6 +303,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -295,6 +326,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -317,6 +349,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -339,6 +372,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -361,6 +395,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -383,6 +418,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -405,6 +441,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -427,6 +464,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -449,6 +487,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -471,6 +510,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -493,6 +533,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -515,6 +556,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -537,6 +579,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -559,6 +602,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -581,6 +625,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -603,6 +648,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -625,6 +671,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -647,6 +694,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -669,6 +717,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -691,6 +740,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -713,6 +763,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -735,6 +786,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -757,6 +809,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -779,6 +832,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -801,6 +855,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -823,6 +878,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -845,6 +901,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -867,6 +924,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -888,7 +946,8 @@ "url": "/", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -910,7 +969,8 @@ "url": "/_not-found", "observedTheme": "dark", "statusCode": 404, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -932,7 +992,8 @@ "url": "/about", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -954,7 +1015,8 @@ "url": "/about/brand", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -976,7 +1038,8 @@ "url": "/cases", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -998,7 +1061,31 @@ "url": "/contact", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", + "bgMatchesToken": true, + "violationRules": 0, + "violationNodes": 0, + "contrastNodes": 0, + "extraRuleNodes": 0, + "extraRulesChecked": 3, + "extraRulesCovered": [ + "autocomplete-valid", + "presentation-role-conflict", + "svg-img-alt" + ], + "extraRulesMissing": [], + "violations": [], + "extraRuleViolations": [] + }, + { + "engine": "chromium", + "theme": "dark", + "url": "/insights", + "observedTheme": "dark", + "statusCode": 200, + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1020,7 +1107,8 @@ "url": "/methodology", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1042,7 +1130,8 @@ "url": "/news", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1064,7 +1153,8 @@ "url": "/news/company-founded", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1086,7 +1176,8 @@ "url": "/news/digital-transformation-solution", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1108,7 +1199,8 @@ "url": "/privacy", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1130,7 +1222,8 @@ "url": "/products", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1152,7 +1245,8 @@ "url": "/products/bi", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1174,7 +1268,8 @@ "url": "/products/cms", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1196,7 +1291,8 @@ "url": "/products/crm", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1218,7 +1314,8 @@ "url": "/products/erp", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1240,7 +1337,8 @@ "url": "/products/erp-upgrade", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1262,7 +1360,8 @@ "url": "/products/erp-upgrade-v3", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1284,7 +1383,8 @@ "url": "/products/oa", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1306,7 +1406,8 @@ "url": "/products/sds", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1328,7 +1429,8 @@ "url": "/services", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1350,7 +1452,8 @@ "url": "/services/consulting", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1372,7 +1475,8 @@ "url": "/services/data", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1394,7 +1498,8 @@ "url": "/services/software", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1416,7 +1521,8 @@ "url": "/services/solutions", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1438,7 +1544,8 @@ "url": "/solutions", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1460,7 +1567,8 @@ "url": "/solutions/education", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1482,7 +1590,8 @@ "url": "/solutions/finance", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1504,7 +1613,8 @@ "url": "/solutions/healthcare", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1526,7 +1636,8 @@ "url": "/solutions/logistics", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1548,7 +1659,8 @@ "url": "/solutions/manufacturing", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1570,7 +1682,8 @@ "url": "/solutions/retail", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1592,7 +1705,8 @@ "url": "/team", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1614,7 +1728,8 @@ "url": "/terms", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1637,6 +1752,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1659,6 +1775,7 @@ "observedTheme": "light", "statusCode": 404, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1681,6 +1798,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1703,6 +1821,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1725,6 +1844,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1747,6 +1867,30 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", + "bgMatchesToken": true, + "violationRules": 0, + "violationNodes": 0, + "contrastNodes": 0, + "extraRuleNodes": 0, + "extraRulesChecked": 3, + "extraRulesCovered": [ + "autocomplete-valid", + "presentation-role-conflict", + "svg-img-alt" + ], + "extraRulesMissing": [], + "violations": [], + "extraRuleViolations": [] + }, + { + "engine": "firefox", + "theme": "light", + "url": "/insights", + "observedTheme": "light", + "statusCode": 200, + "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1769,6 +1913,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1791,6 +1936,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1813,6 +1959,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1835,6 +1982,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1857,6 +2005,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1879,6 +2028,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1901,6 +2051,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1923,6 +2074,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1945,6 +2097,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1967,6 +2120,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -1989,6 +2143,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2011,6 +2166,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2033,6 +2189,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2055,6 +2212,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2077,6 +2235,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2099,6 +2258,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2121,6 +2281,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2143,6 +2304,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2165,6 +2327,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2187,6 +2350,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2209,6 +2373,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2231,6 +2396,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2253,6 +2419,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2275,6 +2442,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2297,6 +2465,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2319,6 +2488,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2341,6 +2511,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2363,6 +2534,7 @@ "observedTheme": "light", "statusCode": 200, "pageBg": "rgb(255, 255, 255)", + "expectedBg": "rgb(255, 255, 255)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2384,7 +2556,8 @@ "url": "/", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2406,7 +2579,8 @@ "url": "/_not-found", "observedTheme": "dark", "statusCode": 404, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2428,7 +2602,8 @@ "url": "/about", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2450,7 +2625,8 @@ "url": "/about/brand", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2472,7 +2648,8 @@ "url": "/cases", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2494,7 +2671,31 @@ "url": "/contact", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", + "bgMatchesToken": true, + "violationRules": 0, + "violationNodes": 0, + "contrastNodes": 0, + "extraRuleNodes": 0, + "extraRulesChecked": 3, + "extraRulesCovered": [ + "autocomplete-valid", + "presentation-role-conflict", + "svg-img-alt" + ], + "extraRulesMissing": [], + "violations": [], + "extraRuleViolations": [] + }, + { + "engine": "firefox", + "theme": "dark", + "url": "/insights", + "observedTheme": "dark", + "statusCode": 200, + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2516,7 +2717,8 @@ "url": "/methodology", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2538,7 +2740,8 @@ "url": "/news", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2560,7 +2763,8 @@ "url": "/news/company-founded", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2582,7 +2786,8 @@ "url": "/news/digital-transformation-solution", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2604,7 +2809,8 @@ "url": "/privacy", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2626,7 +2832,8 @@ "url": "/products", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2648,7 +2855,8 @@ "url": "/products/bi", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2670,7 +2878,8 @@ "url": "/products/cms", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2692,7 +2901,8 @@ "url": "/products/crm", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2714,7 +2924,8 @@ "url": "/products/erp", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2736,7 +2947,8 @@ "url": "/products/erp-upgrade", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2758,7 +2970,8 @@ "url": "/products/erp-upgrade-v3", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2780,7 +2993,8 @@ "url": "/products/oa", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2802,7 +3016,8 @@ "url": "/products/sds", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2824,7 +3039,8 @@ "url": "/services", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2846,7 +3062,8 @@ "url": "/services/consulting", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2868,7 +3085,8 @@ "url": "/services/data", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2890,7 +3108,8 @@ "url": "/services/software", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2912,7 +3131,8 @@ "url": "/services/solutions", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2934,7 +3154,8 @@ "url": "/solutions", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2956,7 +3177,8 @@ "url": "/solutions/education", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -2978,7 +3200,8 @@ "url": "/solutions/finance", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -3000,7 +3223,8 @@ "url": "/solutions/healthcare", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -3022,7 +3246,8 @@ "url": "/solutions/logistics", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -3044,7 +3269,8 @@ "url": "/solutions/manufacturing", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -3066,7 +3292,8 @@ "url": "/solutions/retail", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -3088,7 +3315,8 @@ "url": "/team", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, @@ -3110,7 +3338,8 @@ "url": "/terms", "observedTheme": "dark", "statusCode": 200, - "pageBg": "rgb(10, 14, 20)", + "pageBg": "rgb(20, 18, 16)", + "expectedBg": "rgb(20, 18, 16)", "bgMatchesToken": true, "violationRules": 0, "violationNodes": 0, diff --git a/docs/acceptance/2026-10-17-ia-e2e/probe-bg-negative.mjs b/docs/acceptance/2026-10-17-ia-e2e/probe-bg-negative.mjs new file mode 100644 index 0000000..6b21526 --- /dev/null +++ b/docs/acceptance/2026-10-17-ia-e2e/probe-bg-negative.mjs @@ -0,0 +1,16 @@ +/** 单腿负对照:CSS 缺失时哨兵必须判红(expected 取不到 ⇒ 不是空串通过)。 */ +import { chromium } from 'playwright'; +const b = await chromium.launch(); +const p = await b.newPage({ colorScheme: 'dark' }); +await p.goto('http://localhost:3102/', { waitUntil: 'domcontentloaded', timeout: 20000 }); +await p.waitForTimeout(1500); +const r = await p.evaluate(() => { + const t = (getComputedStyle(document.documentElement).getPropertyValue('--color-bg-primary-rgb') || '').trim().split(/\s+/).filter(Boolean); + const cssHref = [...document.querySelectorAll('link[rel=stylesheet]')].map(l => l.getAttribute('href')); + return { expected: t.length >= 3 ? `rgb(${t.slice(0, 3).join(', ')})` : '', actual: getComputedStyle(document.body).backgroundColor, cssHref }; +}); +const green = r.expected !== '' && r.actual === r.expected; +console.log('CSS 链:', r.cssHref.slice(0, 2).join(' '), '| expected=', JSON.stringify(r.expected), '| actual=', r.actual); +console.log(green ? '✗ 负对照失败:样式没加载却判绿 ⇒ 哨兵已被改瞎' : '✓ 负对照成立:样式没加载 ⇒ 哨兵判红'); +await b.close(); +process.exit(green ? 1 : 0); diff --git a/docs/acceptance/2026-10-17-ia-e2e/probe-bg-sentinel.mjs b/docs/acceptance/2026-10-17-ia-e2e/probe-bg-sentinel.mjs new file mode 100644 index 0000000..98e0fc6 --- /dev/null +++ b/docs/acceptance/2026-10-17-ia-e2e/probe-bg-sentinel.mjs @@ -0,0 +1,27 @@ +/** + * 底色哨兵的**负对照**:改造成"从令牌取值"之后,样式没加载时它必须仍然判红, + * 否则这次修改就是把闸调瞎(本仓 §5.34 的同类事故:全站 CSS 404 时 Lighthouse 仍 exit 0)。 + */ +import { chromium } from 'playwright'; +const VAR = '--color-bg-primary-rgb'; +const b = await chromium.launch(); +for (const [label, base, expectRed] of [ + ['装配完好(负向:不该红)', 'http://localhost:3100', false], + ['CSS 缺失(正向:必须红)', 'http://localhost:3101', true], +]) { + const p = await b.newPage({ colorScheme: 'dark' }); + try { + await p.goto(base + '/', { waitUntil: 'domcontentloaded', timeout: 15000 }); + } catch (e) { console.log(label, 'NAVIGATE FAIL', e.message.slice(0, 60)); await p.close(); continue; } + await p.waitForTimeout(2000); + const r = await p.evaluate((v) => { + const cs = getComputedStyle(document.documentElement); + const t = (cs.getPropertyValue(v) || '').trim().split(/\s+/).filter(Boolean); + return { expected: t.length >= 3 ? `rgb(${t.slice(0, 3).join(', ')})` : '', + actual: getComputedStyle(document.body).backgroundColor }; + }, VAR); + const ok = r.expected !== '' && r.actual === r.expected; + console.log(`${label}\n expected="${r.expected}" actual="${r.actual}" 哨兵判绿=${ok} => ${ok === !expectRed ? '✓ 符合预期' : '✗ 与预期相反'}`); + await p.close(); +} +await b.close(); diff --git a/docs/acceptance/2026-10-17-ia-e2e/probe-bg.mjs b/docs/acceptance/2026-10-17-ia-e2e/probe-bg.mjs new file mode 100644 index 0000000..83768f0 --- /dev/null +++ b/docs/acceptance/2026-10-17-ia-e2e/probe-bg.mjs @@ -0,0 +1,13 @@ +import { chromium } from 'playwright'; +const b = await chromium.launch(); +for (const mode of ['light','dark']) { + const p = await b.newPage({ colorScheme: mode }); + const r = await p.goto('http://localhost:3100/', { waitUntil: 'domcontentloaded' }); + await p.waitForTimeout(2500); + const bg = await p.evaluate(() => getComputedStyle(document.body).backgroundColor); + const htmlBg = await p.evaluate(() => getComputedStyle(document.documentElement).backgroundColor); + const token = await p.evaluate(() => getComputedStyle(document.documentElement).getPropertyValue('--color-bg-primary').trim()); + console.log(mode, 'status=', r.status(), 'body=', bg, 'html=', htmlBg, 'token=', token); + await p.close(); +} +await b.close(); diff --git a/docs/acceptance/qa-tracker.md b/docs/acceptance/qa-tracker.md index c73ca28..8fd34a5 100644 --- a/docs/acceptance/qa-tracker.md +++ b/docs/acceptance/qa-tracker.md @@ -612,3 +612,39 @@ D-2 的回归守卫:`solution-detail-content-v3.test.tsx` 新增断言,且** |---|---|---| | DEC-N5 | **后台发布/删除不触发缓存失效**:`DELETE /api/admin/items`(`route.ts:282-311`)与 workflow 发布路由都不调 `revalidatePath`;全仓除 `e2e/user-journey.spec.ts` 外**没有任何生产代码调用 `/api/cms/revalidate`**,而 8 个页面注释都写着「CMS 发布/更新时通过 /api/cms/revalidate 主动刷新」 | 实测后果:最长 1 小时(`s-maxage=3600`)前台上仍是已删/旧内容。修法是把 `modelCode → paths` 的映射从 `api/cms/revalidate/route.ts` 里**提成可导入的函数**(同 §5.30「安全抽象必须可导入」),再在发布/更新/删除三处调用。属生产内容行为变更,本批不擅改 | | DEC-N6 | `e2e/**/*.ts` 不在 `tsconfig` 的 include 内 ⇒ `npm run type-check` 抓不到 e2e 里的类型/重复声明错误 | 本轮实例:teardown 补丁里第二个 `const revalidateSecret` 与既有声明重名,type-check 全程 EXIT=0,只有 `npx playwright test --list` 才报 `Identifier 'revalidateSecret' has already been declared`。口径:**改 e2e 后必须至少跑一次 `--list`**(收集期解析)才算"能加载" | + +### 11.6 终局验证补跑读数(2026-10-17,装配后的 standalone 产物) + +| 门禁 | 读数 | 口径 | +|---|---|---| +| `test:visual:all --update-snapshots=none`(只读) | **104 failed / 21 passed**,五 project 均匀分布(21/21/20/21/21),**0 例 element-not-found、0 例超时** | 与首跑 `109/16` 的差值全部归因到那 5 条 `founder-quote-section` 死选择器(区块按裁定删除 ⇒ 区域截图永不可能命中),已改写为**反向守卫**并经变异验证。剩下的 104 条**都是像素不符**,即本批语法改动(radius 0–4 / 去彩色阴影 / CTA 直角 / hover 不抬升 / 暖色板)的预期外溢 ⇒ **AUTH-VISUAL 的重采量就是这 104 张**,不是"基线全坏" | +| `check:axe:routes` → `check:axe` | 清单 **35 条**;`PASSED=true`、`bgMismatch=0`、`contrastNodes=0`、`violationNodes=0`、`extraRuleNodes=0`、`extraRuleCoveragePairs=105`、`non2xxResponses=1`(= 期望内的 `/_not-found`)、`unexpectedStatus=0` ⇒ **EXIT=0** | 首跑是 `EXIT=2`「未能度量」(清单不存在,须先跑 routes),第二次 `EXIT=1` 抓到两类真问题(见下) | +| `test:e2e:prod` | 修完 6 条 IA 连带红 + ISR 装配后,`UJ-01/02/03/08/10` × chromium + chromium-mobile ⇒ **14 passed / 0 failed** | GA4 那 16 例在本 worktree **仍 skipped**:worktree 没有 `.env.production`,而 `NEXT_PUBLIC_GA_MEASUREMENT_ID` 是 **build 期烘焙**进客户端产物的 ⇒ 「prod 目标下 GA4 才真断言」这条口径在缺该文件的树上不成立,须记为**未取证**而不是通过 | + +#### 修掉的两个闸自身缺陷 + +1. **`axe-node-count.mjs` 的底色哨兵把令牌值抄成字面量**(`EXPECTED_BG.dark = 'rgb(10, 14, 20)'`), + 而暗色底早在 P1 暖色迁移(本分支基线 `da9a5cb6` 之前)就变成 `20 18 16` + ⇒ 哨兵**恒红**,实测 `bgMismatch=36`。 + 归因用 `git diff da9a5cb6..HEAD -- src/app/globals.css` 核过:本批**没有**任何 + `color-bg-primary` 改动 ⇒ 不是本轮引入。 + 修法不是把字面量改成新值(那只是再抄一遍抄本),而是**改从令牌自己取值**: + 读 `--color-bg-primary-rgb` 三元组拼期望色。 + **负对照已做**(`docs/acceptance/2026-10-17-ia-e2e/probe-bg-negative.mjs`): + 把 `dist/standalone/dist/static` 临时移走起服务 ⇒ + `expected=""`、`actual="rgba(0, 0, 0, 0)"` ⇒ 哨兵判红(EXIT=0 表示"负对照成立"); + 装配完好时 `expected="rgb(20, 18, 16)"` = `actual` ⇒ 判绿。 + ⇒ 这次改造**没有把闸调瞎**(§5.34 的同类风险)。 +2. **改哨兵时漏改一处 `pageBg` 引用** ⇒ `check:axe` 以 + `FATAL: 扫描中断(uncaughtException):pageBg is not defined` 崩掉。 + 这条值得记:闸崩溃与判红在退出码上是两回事(本闸 EXIT=1 判红 / EXIT=2 未能度量 / + FATAL 走 uncaughtException),**没有静默把崩当成通过**; + 同时 `scripts/**.mjs` 不在 `tsconfig` 覆盖内,只有真跑才暴露(同 §5.43)。 + +#### ISR 冻结产物的最终处置 + +`uj03-test-news-*` 的 URL 会顺着「已发布 → revalidate 落盘 → 删除但没人再刷」这条链 +被冻进产物,再被 BFS 收进路由清单,最后表现为 404。本轮闭环做法: +删自造行(含 `AuditLog.targetId` 与 `ContentZone.items` 的 JSON 引用)→ +`npm run build` 重建(`news.html` 里 `uj03` 命中 **0**)→ 重跑 routes + axe。 +纪律仍然成立:**重置 ISR 只能靠重建或 revalidate,不许手删 `dist/**`**(§5.42)。 diff --git a/docs/lessons-learned.md b/docs/lessons-learned.md index 4db0876..ee43fd2 100644 --- a/docs/lessons-learned.md +++ b/docs/lessons-learned.md @@ -623,6 +623,7 @@ git config --get-regexp -i "gitea|credential" 2>/dev/null # ← 空 | 2026-10-17 | 增加 §5.41(僵尸令牌:CSS 声明退役而 tailwind 映射未删 ⇒ 类照生成、`var()` 静默取空;R5/R7 各看一侧所以两条都绿。删映射并新增 R11 反向守卫(外部所有者按名豁免且豁免腐化亦判红),负对照实测 `EXIT=1 / 悬空 2 条` ⇒ 还原 11/11。附两条仪器纪律:豁免名单单一真源、先怀疑夹具再怀疑判据)| `tailwind.config.js`、`scripts/check-visual-grammar.mjs` R11、`docs/acceptance/2026-10-17-ia-e2e/` | | 2026-10-17 | 增加 §5.42(自伤型验证:为清 ISR 缓存手删 `dist/**` 连带删掉已编译的 `news/page.js`,页面 500 而「uj03 命中 0」被读成清除成功;重建后才发现库里真有 2 条因中途失败而未清理的测试行。三条纪律:重置 ISR 只靠重建或 revalidate、「命中 0」必须配页面健康的正对照、破坏性清理后要清点留下的半成品数据。附正面收获:`/products` 移动端孤儿由守卫抓到,判红是对的)| `docs/acceptance/qa-tracker.md` §11.5 | | 2026-10-17 | 增加 §5.43(`e2e/**/*.ts` 不在 tsconfig include ⇒ type-check EXIT=0 而 spec 里重复 `const revalidateSecret` 让整档无法加载;改 e2e 后必须 `npx playwright test --list` 才算验证「能加载」)| `e2e/user-journey.spec.ts`、qa-tracker §11.5 DEC-N6 | +| 2026-10-17 | 增加 §5.44(守卫自己抄了一份令牌值:axe 底色哨兵硬编码 `rgb(10,14,20)` 而暗色底早在基线前就暖化成 `20 18 16` ⇒ 哨兵恒红且伪造出「样式未加载」的错误诊断。三条纪律:先归因再修闸、把副本换成真源而不是改抄本、换完必须重做负对照。附 `scripts/**.mjs` 不在 tsconfig 覆盖内、退出码分档在崩溃时兑现价值)| `scripts/accessibility/axe-node-count.mjs`、`docs/acceptance/2026-10-17-ia-e2e/probe-bg-negative.mjs` | ### 5.36 判据的适用对象没写进判据:diff 包围盒对全页截图必然假红 @@ -773,3 +774,31 @@ cd e2e && npx playwright test <改动的 spec> --list # Total: N tests in M fi 这条与 §5.38 同属"绿灯的载体没覆盖到那一维":type-check 的范围、管道的退出码, 都会让人把**没测**读成**测过并通过**。 + +### 5.44 守卫自己抄了一份令牌值:三个副本、两种病,第三种最隐蔽 + +本仓「一个语义有多条表示通道」的事故已经记过两次: +§5.37(hex 改了 `-rgb` 没改 ⇒ 渲染主通道走没改的那条)、 +§5.41(CSS 声明退役而 tailwind 映射没删 ⇒ 僵尸令牌)。 +本轮是**第三份副本**:可访问性闸 `scripts/accessibility/axe-node-count.mjs` 把暗色底 +**抄成字面量** `EXPECTED_BG = { dark: 'rgb(10, 14, 20)' }`, +而暖色迁移(P1,在本分支基线 `da9a5cb6` **之前**)早已把它变成 `20 18 16` +⇒ 哨兵从此恒红,实测 `bgMismatch=36`,而且红因写的是「底色不等于令牌值 ⇒ 样式未加载」—— +**一个失效的哨兵会顺带伪造一句错的诊断**,这比单纯判红更贵。 + +三条处置纪律: + +1. **归因先于修闸**。`git diff da9a5cb6..HEAD -- src/app/globals.css` 里没有任何 + `color-bg-primary` 改动 ⇒ 不是本轮引入;再用 `git log -S "rgb(10, 14, 20)"` 定位到 + 字面量入库的那一笔。没有这一步,很容易把它读成「本批改坏了」。 +2. **修法是把副本换成真源,而不是把副本改成新值**。 + 现从令牌自己取:读 `--color-bg-primary-rgb` 三元组拼期望色。 + 把字面量改成 `rgb(20, 18, 16)` 只是再抄一遍,下次换色板还会红。 +3. **换完必须重做负对照**,证明"没把闸调瞎":临时移走 `dist/standalone/dist/static` 起服务 ⇒ + `expected=""`、`actual="rgba(0, 0, 0, 0)"` ⇒ 判红;装配完好 ⇒ `expected` 与 `actual` + 都是 `rgb(20, 18, 16)` ⇒ 判绿。脚本存 `docs/acceptance/2026-10-17-ia-e2e/probe-bg-negative.mjs`。 + +附两条同轮仪器事实:`scripts/**/*.mjs` 不在 `tsconfig` 覆盖内,改完只真跑才暴露 +(本轮就是漏改一处 `pageBg` 引用,闸以 `FATAL: 扫描中断(uncaughtException)` 崩掉而非静默通过); +以及闸的退出码分档(0 通过 / 1 判红 / 2 未能度量 + FATAL 独立路径)在这种时刻兑现了价值 —— +**崩和"测不到"都不会被读成通过**。 diff --git a/scripts/accessibility/axe-node-count.mjs b/scripts/accessibility/axe-node-count.mjs index 5e5bb97..cc8f14a 100644 --- a/scripts/accessibility/axe-node-count.mjs +++ b/scripts/accessibility/axe-node-count.mjs @@ -48,8 +48,25 @@ const EXTRA_RULES = [...CANONICAL_EXTRA_RULES]; const ENGINES = [['chromium', chromium], ['firefox', firefox]]; const THEMES = ['light', 'dark']; const COMBOS = ENGINES.length * THEMES.length; // 4 个「引擎 × 主题」组合 -// 底色必须等于本站令牌值:未加载样式时所有元素都落在默认黑白底上,对比度会「意外通过」。 -const EXPECTED_BG = { light: 'rgb(255, 255, 255)', dark: 'rgb(10, 14, 20)' }; +/** + * 底色哨兵:页面的 body 底色必须等于**令牌自己声明的值**。 + * 为什么要有这条:样式没加载时所有元素都落在默认黑白底上,对比度会「意外通过」, + * 于是 axe 给出一个漂亮的 0 违规 —— 这条哨兵就是用来把那种「意外达标」判红的。 + * + * ⚠ 原实现把期望值**硬编码成两条字面量**(light #FFF、dark `rgb(10, 14, 20)`), + * 而 P1 暖色迁移早在本分支基线 `da9a5cb6` 之前就把暗色底改成了暖墨 + * (`--color-bg-primary-rgb: 20 18 16`)⇒ 闸的哨兵从此**恒红**, + * 本轮实测 `bgMismatch=36`(chromium/dark 与 firefox/dark 各 36 页)。 + * 归因核过:`git diff da9a5cb6..HEAD -- src/app/globals.css` 里**没有**任何 + * `color-bg-primary` 改动 ⇒ 不是本轮引入,是「令牌改了、闸里的抄本没跟」, + * 与本仓 `check:token-twins` 守的是同一类病(一个语义有多条表示通道)。 + * + * 修法不是把字面量改成新值 —— 那只是把抄本再抄一遍,下次换色板还会红。 + * 现改成**从令牌自己取值**:读 `--color-bg-primary-rgb` 三元组拼成期望色, + * 哨兵的失败模式不变(CSS 没加载时该自定义属性解析为空 ⇒ 期望串拼不出来 ⇒ 判红), + * 但对色板变更免疫。 + */ +const BG_TRIPLET_VAR = '--color-bg-primary-rgb'; // 逐页状态码期望:清单里绝大多数路由必须 2xx/3xx,`/_not-found` 是本站 404 页、**期望** 404。 // 为什么必须逐页判:404/500 页几乎没有可比对节点,`violationNodes` 仍为 0,而 `s.pages` 计数照加; // 聚合保险丝 `okResponses > 0` 只在**全部**响应都非 2xx 时才炸 ⇒ 单个路由退化成 404 会被当「干净」计过。 @@ -147,10 +164,19 @@ for (const [engineName, launcher] of ENGINES) { ...ruleRes.violations, ...ruleRes.passes, ...ruleRes.incomplete, ...ruleRes.inapplicable, ].map((r) => r.id)); const covered = CANONICAL_EXTRA_RULES.filter((id) => ruleIds.has(id)); - const pageBg = await page.evaluate(() => getComputedStyle(document.body).backgroundColor); + // 一次 evaluate 同时取「实际底色」与「令牌声明的底色」,避免两次读之间主题被切换 + const bgRead = await page.evaluate((varName) => { + const root = getComputedStyle(document.documentElement); + const triplet = (root.getPropertyValue(varName) || '').trim(); + const parts = triplet.split(/\s+/).filter(Boolean); + const expected = parts.length >= 3 ? `rgb(${parts.slice(0, 3).join(', ')})` : ''; + return { actual: getComputedStyle(document.body).backgroundColor, expected }; + }, BG_TRIPLET_VAR); rows.push({ - engine: engineName, theme, url, observedTheme, statusCode, pageBg, - bgMatchesToken: pageBg === EXPECTED_BG[theme], + engine: engineName, theme, url, observedTheme, statusCode, + pageBg: bgRead.actual, + expectedBg: bgRead.expected, + bgMatchesToken: bgRead.expected !== '' && bgRead.actual === bgRead.expected, violationRules: violations.length, violationNodes: violations.reduce((a, v) => a + v.nodes, 0), contrastNodes: violations.filter((v) => v.id === 'color-contrast').reduce((a, v) => a + v.nodes, 0), @@ -161,7 +187,7 @@ for (const [engineName, launcher] of ENGINES) { violations, extraRuleViolations: ruleViolations, }); - console.log(`${engineName}/${theme} ${url} status=${statusCode} theme=${observedTheme} bg=${pageBg} rules=${violations.length} nodes=${rows.at(-1).violationNodes} contrast=${rows.at(-1).contrastNodes} extra=${rows.at(-1).extraRuleNodes}/${covered.length}/${rows.at(-1).extraRulesChecked}`); + console.log(`${engineName}/${theme} ${url} status=${statusCode} theme=${observedTheme} bg=${bgRead.actual}|期望 ${bgRead.expected} rules=${violations.length} nodes=${rows.at(-1).violationNodes} contrast=${rows.at(-1).contrastNodes} extra=${rows.at(-1).extraRuleNodes}/${covered.length}/${rows.at(-1).extraRulesChecked}`); } await ctx.close(); }