11/* eslint-disable @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires */
22import { assert } from 'chai' ;
3- import * as path from '../../../platform/vscode-path/path' ;
43import { Uri , workspace } from 'vscode' ;
54import { IDisposable } from '../../../platform/common/types' ;
65import { captureScreenShot , IExtensionTestApi } from '../../common.node' ;
@@ -13,8 +12,13 @@ import { IDeepnoteNotebookManager } from '../../../notebooks/types';
1312suite ( 'Deepnote Integration Tests @kernelCore' , function ( ) {
1413 let api : IExtensionTestApi ;
1514 const disposables : IDisposable [ ] = [ ] ;
16- const deepnoteFilePath = Uri . file (
17- path . join ( EXTENSION_ROOT_DIR_FOR_TESTS , 'src' , 'test' , 'datascience' , 'notebook' , 'test.deepnote' )
15+ const deepnoteFilePath = Uri . joinPath (
16+ Uri . file ( EXTENSION_ROOT_DIR_FOR_TESTS ) ,
17+ 'src' ,
18+ 'test' ,
19+ 'datascience' ,
20+ 'notebook' ,
21+ 'test.deepnote'
1822 ) ;
1923 this . timeout ( 240_000 ) ;
2024
@@ -57,7 +61,7 @@ suite('Deepnote Integration Tests @kernelCore', function () {
5761 logger . debug ( `Opened notebook with type: ${ nbDocument . notebookType } , cells: ${ nbDocument . cellCount } ` ) ;
5862
5963 assert . equal ( nbDocument . notebookType , 'deepnote' , 'Notebook type should be deepnote' ) ;
60- assert . isTrue ( nbDocument . cellCount > 0 , 'Notebook should have cells' ) ;
64+ assert . equal ( nbDocument . cellCount , 3 , 'Notebook should have 3 cells' ) ;
6165
6266 assert . equal ( nbDocument . metadata ?. deepnoteProjectId , 'test-project-id' , 'Project ID should match' ) ;
6367 assert . equal ( nbDocument . metadata ?. deepnoteNotebookId , 'main-notebook-id' , 'Notebook ID should match' ) ;
0 commit comments