This commit is contained in:
2026-09-20 21:52:15 +08:00
parent 5887837407
commit 386ff8cced
6 changed files with 91 additions and 45 deletions
+9 -3
View File
@@ -131,8 +131,14 @@ test('keeps absent business numbers null and internal identifiers out of display
}
})
test('keeps all six quick actions visually neutral until hover or keyboard focus', () => {
assert.doesNotMatch(dashboardView, /featured|quick-action--featured/)
assert.match(dashboardView, /\.quick-action:hover \{[^}]*border-color:[^}]*transform: translateY\(-5px\);/)
test('matches the updated six-action icon and motion treatment', () => {
assert.match(dashboardView, /icon: Forklift/)
assert.doesNotMatch(dashboardView, /PanelsTopLeft/)
assert.match(dashboardView, /featured: true/)
assert.match(dashboardView, /quick-action--featured/)
assert.match(dashboardView, /featured-aura 5s ease-in-out infinite/)
assert.match(dashboardView, /featured-shine 3\.6s ease-in-out infinite/)
assert.match(dashboardView, /\.quick-action:hover \{[^}]*border-color:[^}]*transform: translateY\(-9px\);/)
assert.match(dashboardView, /prefers-reduced-motion: reduce/)
assert.match(dashboardView, /\.client-dashboard a:focus-visible/)
})