Skip to content

Commit 0653099

Browse files
committed
Rename events from mouseover/mouseout to mouseenter/mouseleave
1 parent 51f64e1 commit 0653099

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/uui-toast-notification-container/lib/uui-toast-notification-container.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,23 +186,23 @@ describe('UUIToastNotificationContainerElement', () => {
186186
expect(toastElement.open).to.be.false;
187187
});
188188

189-
it('mouseover on child item will pause and resume autoClose', async () => {
189+
it('mouseenter on child item will pause and resume autoClose', async () => {
190190
element.autoClose = 20;
191191

192192
element.appendChild(toastElement);
193193

194194
await elementUpdated(element);
195195
await sleep(100);
196196

197-
toastElement.dispatchEvent(new Event('mouseover'));
197+
toastElement.dispatchEvent(new Event('mouseenter'));
198198

199199
await sleep(400); // Enough time to cover if it did happen that the element opened and auto-closed.
200200

201201
// Check that its still open, pause actually did work.
202202
expect((toastElement as any)._animate).to.be.false; // Checking private _animate to ensure that guessed animation time was good.
203203
expect(toastElement.open).to.be.true;
204204

205-
toastElement.dispatchEvent(new Event('mouseout'));
205+
toastElement.dispatchEvent(new Event('mouseleave'));
206206

207207
await sleep(40); // Enough time to cover if it did happen that the element opened and auto-closed.
208208

0 commit comments

Comments
 (0)