Skip to content

Commit 76714f9

Browse files
committed
fixup: what a drag
1 parent 60b1e0a commit 76714f9

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

packages/compass-e2e-tests/tests/data-modeling-tab.test.ts

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -313,12 +313,6 @@ async function dragDiagramToShowAndClick(
313313
y: baseY,
314314
})
315315
.down({ button: 0 }) // Left mouse button.
316-
.move({
317-
duration: 250,
318-
origin: 'pointer',
319-
x: moveX,
320-
y: moveY,
321-
})
322316
.pause(250)
323317
.move({
324318
duration: 250,
@@ -999,7 +993,13 @@ describe('Data Modeling tab', function () {
999993
);
1000994
await browser.$(Selectors.SideDrawer).click(); // Unfocus the input.
1001995

1002-
// Drag the node into view to ensure the add nested field button is visible.
996+
// Drag the node to show add new field buttons and new fields.
997+
await dragNode(
998+
browser,
999+
Selectors.DataModelPreviewCollection('test.testCollection-one'),
1000+
{ x: -100, y: -200 }
1001+
);
1002+
10031003
await dragDiagramToShowAndClick(
10041004
browser,
10051005
Selectors.DataModelAddNestedFieldBtn('test.testCollection-one', [
@@ -1012,13 +1012,6 @@ describe('Data Modeling tab', function () {
10121012
])
10131013
);
10141014

1015-
// Drag the node to show the new fields.
1016-
await dragNode(
1017-
browser,
1018-
Selectors.DataModelPreviewCollection('test.testCollection-one'),
1019-
{ x: -100, y: -200 }
1020-
);
1021-
10221015
// Ensure the new fields are in the diagram.
10231016
const newFieldText = await browser
10241017
.$(

0 commit comments

Comments
 (0)