Skip to content

🎥 Make videos programmatically with React

Wait for shortcut recorder focus in browser test

Jonny Burgere9b52a7b7570
diff --git a/packages/example/e2e/studio.test.mts b/packages/example/e2e/studio.test.mts
index 1719cd7cbb..ab66f93063 100644
--- a/packages/example/e2e/studio.test.mts
+++ b/packages/example/e2e/studio.test.mts
@@ -1871,6 +1871,7 @@ test.describe('visual mode', () => {
await playPauseActions.click();
await page.getByText('Remap shortcut', {exact: true}).click();
await expect(playPauseShortcut).toContainText('Press shortcut');
+ await expect(playPauseShortcut).toBeFocused();
await page.keyboard.press('q');
await expect
.poll(() => fs.readFileSync(configFile, 'utf8'))
@@ -1882,6 +1883,7 @@ test.describe('visual mode', () => {
).toBeVisible();
await page.getByText('Remap shortcut', {exact: true}).click();
await expect(playPauseShortcut).toContainText('Press shortcut');
+ await expect(playPauseShortcut).toBeFocused();
await page.keyboard.press('Space');
await expect
.poll(() => fs.readFileSync(configFile, 'utf8'))