Skip to content

Commit 4ec2370

Browse files
committed
.
1 parent c6432f2 commit 4ec2370

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

packages/compass-e2e-tests/helpers/selectors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1448,7 +1448,7 @@ export const DataModelZoomOutButton = `${DataModelEditor} [aria-label="Minus Ico
14481448
export const DataModelZoomInButton = `${DataModelEditor} [aria-label="Plus Icon"]`;
14491449
export const DataModelPreview = `${DataModelEditor} [data-testid="model-preview"]`;
14501450
export const DataModelPreviewCollection = (collectionId: string) =>
1451-
`${DataModelPreview} [data-nodeid="${collectionId}"]`;
1451+
`${DataModelPreview} [aria-roleDescription="node"][data-id="${collectionId}"]`;
14521452
export const DataModelPreviewRelationship = (relationshipId: string) =>
14531453
`${DataModelPreview} [aria-roleDescription="edge"][data-id="${relationshipId}"]`;
14541454
export const DataModelApplyEditor = `${DataModelEditor} [data-testid="apply-editor"]`;

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,9 @@ async function selectCollectionOnTheDiagram(
101101

102102
// Click on the collection node to open the drawer
103103
const collectionNode = browser.$(Selectors.DataModelPreviewCollection(ns));
104-
const size = await collectionNode.getSize();
105-
// Normal click doesn't work, we need to click in the middle of the collection node
106-
await collectionNode.click({
107-
x: Math.round(size.width / 2),
108-
y: Math.round(size.height / 2),
109-
});
104+
await collectionNode.waitForClickable();
105+
106+
await collectionNode.click();
110107

111108
await drawer.waitForDisplayed();
112109

0 commit comments

Comments
 (0)