File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
packages/compass-e2e-tests Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -1448,7 +1448,7 @@ export const DataModelZoomOutButton = `${DataModelEditor} [aria-label="Minus Ico
14481448export const DataModelZoomInButton = `${ DataModelEditor } [aria-label="Plus Icon"]` ;
14491449export const DataModelPreview = `${ DataModelEditor } [data-testid="model-preview"]` ;
14501450export const DataModelPreviewCollection = ( collectionId : string ) =>
1451- `${ DataModelPreview } [data-nodeid ="${ collectionId } "]` ;
1451+ `${ DataModelPreview } [aria-roleDescription="node"][ data-id ="${ collectionId } "]` ;
14521452export const DataModelPreviewRelationship = ( relationshipId : string ) =>
14531453 `${ DataModelPreview } [aria-roleDescription="edge"][data-id="${ relationshipId } "]` ;
14541454export const DataModelApplyEditor = `${ DataModelEditor } [data-testid="apply-editor"]` ;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments