File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
packages/compass-e2e-tests Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -1447,13 +1447,13 @@ export const DataModelPreviewCollection = (collectionId: string) =>
14471447 `${ DataModelPreview } [data-nodeid="${ collectionId } "]` ;
14481448export const DataModelApplyEditor = `${ DataModelEditor } [data-testid="apply-editor"]` ;
14491449export const DataModelEditorApplyButton = `${ DataModelApplyEditor } [data-testid="apply-button"]` ;
1450- export const DataModelDownloadButton = 'button[aria-label="Download"]' ;
14511450export const DataModelUndoButton = 'button[aria-label="Undo"]' ;
14521451export const DataModelRedoButton = 'button[aria-label="Redo"]' ;
14531452export const DataModelExportButton = 'button[aria-label="Export"]' ;
14541453export const DataModelExportModal = '[data-testid="export-diagram-modal"]' ;
14551454export const DataModelExportPngOption = `${ DataModelExportModal } input[aria-label="PNG"]` ;
14561455export const DataModelExportJsonOption = `${ DataModelExportModal } input[aria-label="JSON"]` ;
1456+ export const DataModelExportDiagramOption = `${ DataModelExportModal } input[aria-label="Diagram File"]` ;
14571457export const DataModelExportModalConfirmButton =
14581458 '[data-testid="export-button"]' ;
14591459export const DataModelsListItem = ( diagramName ?: string ) => {
Original file line number Diff line number Diff line change @@ -386,7 +386,7 @@ describe('Data Modeling tab', function () {
386386 expect ( text ) . to . include ( 'String string' . toLowerCase ( ) ) ;
387387 } ) ;
388388
389- it ( 'downloads the data model and opens it' , async function ( ) {
389+ it ( 'exports the data model to compass format and imports it back ' , async function ( ) {
390390 const dataModelName = 'Test Export Model - Save-Open' ;
391391 exportFileName = `${ dataModelName } .compass` ;
392392 await setupDiagram ( browser , {
@@ -406,8 +406,12 @@ describe('Data Modeling tab', function () {
406406
407407 await browser . waitForAnimations ( dataModelEditor ) ;
408408
409- await browser . clickVisible ( Selectors . DataModelDownloadButton ) ;
410- await browser . waitForAnimations ( dataModelEditor ) ;
409+ await browser . clickVisible ( Selectors . DataModelExportButton ) ;
410+ const exportModal = browser . $ ( Selectors . DataModelExportModal ) ;
411+ await exportModal . waitForDisplayed ( ) ;
412+
413+ await browser . clickParent ( Selectors . DataModelExportDiagramOption ) ;
414+ await browser . clickVisible ( Selectors . DataModelExportModalConfirmButton ) ;
411415
412416 const { fileExists, filePath } = await waitForFileDownload (
413417 exportFileName ,
You can’t perform that action at this time.
0 commit comments