File tree Expand file tree Collapse file tree
apps/client-e2e/src/tests/notebooks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { OpenNotebookInVSCode } from '@idl/vscode/shared';
55import expect from 'expect' ;
66import * as vscode from 'vscode' ;
77
8+ import { CLIENT_E2E_CONFIG } from '../client-e2e-config.interface' ;
89import { RunnerFunction } from '../runner.interface' ;
910import { CompareNotebookJSONOutputs } from './helpers/compare-notebook-json-outputs' ;
1011
@@ -24,14 +25,17 @@ export const NotebooksReplaceCellPathsOnStop: RunnerFunction = async (init) => {
2425 const nb = await OpenNotebookInVSCode ( nbUri , true ) ;
2526
2627 // short pause to parse
27- await Sleep ( 500 ) ;
28+ await Sleep ( CLIENT_E2E_CONFIG . DELAYS . DEFAULT ) ;
2829
2930 // run all cells
3031 await vscode . commands . executeCommand ( VSCODE_COMMANDS . NOTEBOOK_RUN_ALL ) ;
3132
3233 // save to disk
3334 await nb . save ( ) ;
3435
36+ // wait
37+ await Sleep ( CLIENT_E2E_CONFIG . DELAYS . PROBLEMS_NOTEBOOK ) ;
38+
3539 // compare outputs
3640 await CompareNotebookJSONOutputs ( expectedUri , nbUri ) ;
3741
You can’t perform that action at this time.
0 commit comments