Skip to content

Commit 26ebee1

Browse files
web-padawanclaude
andauthored
test: activate keyboard mode in popover focus visual tests (#11468)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 698379c commit 26ebee1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/popover/test/visual/base/popover.test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { sendKeys } from '@vaadin/test-runner-commands';
12
import { fixtureSync, nextRender, nextUpdate } from '@vaadin/testing-helpers';
23
import { visualDiff } from '@web/test-runner-visual-regression';
34
import '../../not-animated-styles.js';
@@ -70,6 +71,8 @@ describe('popover', () => {
7071
describe('focus', () => {
7172
beforeEach(async () => {
7273
element.modal = true;
74+
// Activate keyboard mode so that focus-ring is shown on the overlay
75+
await sendKeys({ press: 'Tab' });
7376
target.click();
7477
await nextRender();
7578
});

0 commit comments

Comments
 (0)