darabos commited on
Commit
badb998
·
1 Parent(s): 60d3af8

Drag a box using its title in the tests.

Browse files
Files changed (1) hide show
  1. lynxkite-app/web/tests/lynxkite.ts +1 -1
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
  }