Skip to content

Commit a4dab5f

Browse files
authored
chore: fix tooltip test setup (#10696)
1 parent 22b964b commit a4dab5f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/tooltip/test/tooltip.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,12 +545,14 @@ describe('vaadin-tooltip', () => {
545545
tabKeyDown(target);
546546
target.focus();
547547

548-
const tooltip2 = fixtureSync('<vaadin-tooltip></vaadin-tooltip>');
548+
const tooltip2 = fixtureSync('<vaadin-tooltip text="tooltip"></vaadin-tooltip>');
549549
tooltip2.target = target;
550550
await nextRender();
551551
const overlay2 = tooltip2.shadowRoot.querySelector('vaadin-tooltip-overlay');
552552

553553
mouseenter(target);
554+
expect(overlay.opened).to.be.true;
555+
expect(overlay2.opened).to.be.true;
554556

555557
escKeyDown(document.body);
556558
expect(overlay.opened).to.be.false;

0 commit comments

Comments
 (0)