We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 349cbda + 969b984 commit e22de31Copy full SHA for e22de31
2 files changed
src/actions/clearHover.ts
@@ -0,0 +1,17 @@
1
+import {LogEventType} from '../constants/internal';
2
+import {step} from '../step';
3
+import {getPlaywrightPage} from '../useContext';
4
+
5
+/**
6
+ * Clears hover from all elements.
7
+ */
8
+export const clearHover = (): Promise<void> =>
9
+ step(
10
+ 'Clear hover from all elements',
11
+ async () => {
12
+ const page = getPlaywrightPage();
13
14
+ await page.mouse.move(0, 0);
15
+ },
16
+ {type: LogEventType.Action},
17
+ );
src/actions/index.ts
@@ -7,6 +7,7 @@ export {
export {blur} from './blur';
export {check} from './check';
export {clearCookies} from './clearCookies';
+export {clearHover} from './clearHover';
export {clearInput} from './clearInput';
export {click} from './click';
export {dispatchEvent} from './dispatchEvent';
0 commit comments