fix(qa): align renderer evidence and attribution keyboard assertions

This commit is contained in:
Sameh Khamis committed 2026-09-11 14:50:57 -07:00
1 parent 01dcecf6e9
commit 67504cd871
5 files changed
+40 -14

No files matched your search

+8 -5
View File
@@ -332,14 +332,17 @@ async function runArbitrationSection(page, { shots, consoleErrors }) {
`session=${escUnderLightbox.session}`,
);
record(
'the lightbox keeps its OWN ESC semantics (Cesium binds none, so it stays)',
lightboxAfterEsc.shown,
'ESC closes attribution without dismissing the launcher underneath',
!lightboxAfterEsc.shown,
`overlay shown=${lightboxAfterEsc.shown}`,
);
// The guard disarms the launcher; it must never break it. Close the overlay
// the way a visitor does and the key comes straight back.
await page.evaluate(() => document.querySelector('.cesium-credit-lightbox-close')?.click());
// The attribution keyboard handler closes the overlay and restores focus.
// A second Escape belongs to the now-uncovered launcher.
const attributionFocusRestored = await page.evaluate(() => (
document.activeElement === document.querySelector('#cesium-credits .cesium-credit-expand-link')
));
record('closing attribution restores its disclosure focus', attributionFocusRestored);
await sleep(300);
const uncovered = await launcherState();
record('closing the lightbox hands the card back the key',