File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/test/datascience/notebook Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,9 @@ export async function insertMarkdownCell(source: string) {
61
61
] ) ;
62
62
63
63
await waitForCondition (
64
- async ( ) => activeEditor ?. document . cells [ 0 ] . document . getText ( ) . trim ( ) === source . trim ( ) ,
64
+ async ( ) =>
65
+ activeEditor ?. document . cells [ activeEditor . document . cells . length - 1 ] . document . getText ( ) . trim ( ) ===
66
+ source . trim ( ) ,
65
67
5_000 ,
66
68
'Cell not inserted'
67
69
) ;
@@ -83,7 +85,9 @@ export async function insertPythonCell(source: string) {
83
85
}
84
86
] ) ;
85
87
await waitForCondition (
86
- async ( ) => activeEditor ?. document . cells [ 0 ] . document . getText ( ) . trim ( ) === source . trim ( ) ,
88
+ async ( ) =>
89
+ activeEditor ?. document . cells [ activeEditor . document . cells . length - 1 ] . document . getText ( ) . trim ( ) ===
90
+ source . trim ( ) ,
87
91
5_000 ,
88
92
'Cell not inserted'
89
93
) ;
You can’t perform that action at this time.
0 commit comments