mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 10:24:02 +00:00
test: follow formatted shell owners and make playback keyboard focus explicit
This commit is contained in:
1 parent
945a809994
commit
841da87ca4
13 files changed
+90
-83
No files matched your search
@@ -192,6 +192,13 @@ try {
|
||||
window.__godsEyeView.styleManager.getControlState().recording,
|
||||
),
|
||||
);
|
||||
// A focused panel owns Escape to collapse one level. Release panel focus
|
||||
// before testing the global playback shortcut; the canvas is not tabbable.
|
||||
await page.evaluate(() => document.activeElement?.blur());
|
||||
check(
|
||||
'global playback shortcut has document focus',
|
||||
await page.evaluate(() => document.activeElement === document.body),
|
||||
);
|
||||
await page.keyboard.press('Escape');
|
||||
await page.waitForFunction(
|
||||
() =>
|
||||
|
||||
Reference in new issue
Block a user