Spaces:
Running
Running
Drag a box using its title in the tests.
Browse files
lynxkite-app/web/tests/lynxkite.ts
CHANGED
@@ -107,7 +107,7 @@ export class Workspace {
|
|
107 |
targetPosition?: { x: number; y: number },
|
108 |
) {
|
109 |
// Move a box around, it is a best effort operation, the exact target position may not be reached
|
110 |
-
const box = await this.getBox(boxId).boundingBox();
|
111 |
if (!box) {
|
112 |
return;
|
113 |
}
|
|
|
107 |
targetPosition?: { x: number; y: number },
|
108 |
) {
|
109 |
// Move a box around, it is a best effort operation, the exact target position may not be reached
|
110 |
+
const box = await this.getBox(boxId).locator(".title").boundingBox();
|
111 |
if (!box) {
|
112 |
return;
|
113 |
}
|