Skip to content

Commit

Permalink
test: add missing resetMouse to tests using sendMouse (#8655)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan authored Feb 7, 2025
1 parent f05e3c7 commit 65f03e8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/grid/test/scroll-into-view.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect } from '@vaadin/chai-plugins';
import { sendKeys, sendMouse } from '@vaadin/test-runner-commands';
import { resetMouse, sendKeys, sendMouse } from '@vaadin/test-runner-commands';
import { fixtureSync, nextFrame } from '@vaadin/testing-helpers';
import '../vaadin-grid.js';
import { flushGrid, getContainerCell, getLastVisibleItem, getPhysicalItems } from './helpers.js';
Expand Down Expand Up @@ -48,6 +48,10 @@ describe('scroll into view', () => {
secondDetailsCell = getLastVisibleItem(grid).querySelector('[part~="details-cell"]');
});

afterEach(async () => {
await resetMouse();
});

it('should scroll row into view when focusing programmatically', () => {
verifyRowNotFullyVisible(grid, 1);

Expand Down

0 comments on commit 65f03e8

Please sign in to comment.