@atomic-testing/component-driver-mui-v9 0.95.0 → 0.96.0
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/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/components/DialogDriver.ts +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atomic-testing/component-driver-mui-v9",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.96.0",
|
|
4
4
|
"description": "Component driver for Material-UI v9",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"@emotion/react": "^11.14.0",
|
|
29
29
|
"@emotion/styled": "^11.14.1",
|
|
30
30
|
"@mui/material": "^9.0.0",
|
|
31
|
-
"@atomic-testing/component-driver-html": "0.
|
|
32
|
-
"@atomic-testing/core": "0.
|
|
33
|
-
"@atomic-testing/
|
|
34
|
-
"@atomic-testing/
|
|
31
|
+
"@atomic-testing/component-driver-html": "0.96.0",
|
|
32
|
+
"@atomic-testing/core": "0.96.0",
|
|
33
|
+
"@atomic-testing/react-18": "0.96.0",
|
|
34
|
+
"@atomic-testing/dom-core": "0.96.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/react": ">=18.0.0",
|
|
@@ -68,8 +68,11 @@ export class DialogDriver<ContentT extends ScenePart> extends ContainerDriver<Co
|
|
|
68
68
|
// drive the full press/release/click sequence on the container's empty corner
|
|
69
69
|
// (the click target must be the container, not the centered paper).
|
|
70
70
|
const cornerClick = { position: { x: 5, y: 5 } } as const;
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
// Raw press/release primitives are protected on ComponentDriver (#1045), so
|
|
72
|
+
// drive them through the interactor against the child's resolved locator.
|
|
73
|
+
const containerLocator = this.parts.dialogContainer.locator;
|
|
74
|
+
await this.interactor.mouseDown(containerLocator, cornerClick);
|
|
75
|
+
await this.interactor.mouseUp(containerLocator, cornerClick);
|
|
73
76
|
await this.parts.dialogContainer.click(cornerClick);
|
|
74
77
|
return this.waitForClose(timeoutMs);
|
|
75
78
|
}
|