fix: restore case study drawer interactions

This commit is contained in:
2026-09-09 23:17:39 +03:30
parent 24cd86ede7
commit b87a1be8fc
6 changed files with 22 additions and 19 deletions

View File

@@ -47,6 +47,7 @@ test('project cards separate case study navigation from live links', async () =>
assert.match(source, /rel="noopener noreferrer"/);
assert.match(source, /project\.liveUrl/);
assert.match(source, /caseStudyInput/);
assert.match(source, /closest\('a, button/);
});
test('the case study drawer has accessible and pointer-safe dismissal paths', async () => {
@@ -63,6 +64,8 @@ test('the case study drawer has accessible and pointer-safe dismissal paths', as
assert.match(component, /setPointerCapture/);
assert.match(component, /navigator\.clipboard/);
assert.match(component, /aria-live="polite"/);
assert.match(component, /data-case-study-initial-focus/);
assert.doesNotMatch(component, /data-case-study-heading/);
assert.match(styles, /::backdrop/);
assert.match(styles, /env\(safe-area-inset-bottom/);
assert.match(styles, /prefers-reduced-motion:\s*reduce/);