@brightspace-ui/core 2.118.4 → 2.118.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "2.118.
|
|
3
|
+
"version": "2.118.5",
|
|
4
4
|
"description": "A collection of accessible, free, open-source web components for building Brightspace applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "https://github.com/BrightspaceUI/core.git",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { sendKeys, sendMouse } from '@web/test-runner-commands';
|
|
2
2
|
|
|
3
3
|
export const focusWithKeyboard = async(element) => {
|
|
4
4
|
await sendKeys({ press: 'Tab' });
|
|
@@ -8,5 +8,5 @@ export const focusWithKeyboard = async(element) => {
|
|
|
8
8
|
export const focusWithMouse = async(element) => {
|
|
9
9
|
const { x, y } = element.getBoundingClientRect();
|
|
10
10
|
await sendMouse({ type: 'click', position: [Math.ceil(x), Math.ceil(y)] });
|
|
11
|
-
await
|
|
11
|
+
await sendMouse({ type: 'move', position: [0, 0] });
|
|
12
12
|
};
|