File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -71,11 +71,18 @@ test.describe('Notebook', () => {
71
71
await page . goto ( `notebooks/${ tmpPath } /${ notebook } ` ) ;
72
72
73
73
await waitForKernelReady ( page ) ;
74
- // run the two cells
75
- await runAndAdvance ( page ) ;
74
+
75
+ // execute the first cell
76
76
await runAndAdvance ( page ) ;
77
+ await page
78
+ . locator ( '.jp-mod-outputsScrolled' )
79
+ . nth ( 0 )
80
+ . waitFor ( { state : 'visible' } ) ;
77
81
78
- await page . waitForSelector ( '.jp-Cell-outputArea pre' ) ;
82
+ // execute the second cell
83
+ await runAndAdvance ( page ) ;
84
+ // the second cell should not be auto scrolled
85
+ expect ( page . locator ( '.jp-mod-outputsScrolled' ) . nth ( 1 ) ) . toHaveCount ( 0 ) ;
79
86
80
87
const checkCell = async ( n : number ) : Promise < boolean > => {
81
88
const scrolled = await page . $eval ( `.jp-Notebook-cell >> nth=${ n } ` , el =>
You can’t perform that action at this time.
0 commit comments