@@ -2,6 +2,7 @@ import { openNewEditor } from "@cursorless/vscode-common";
22import * as vscode from "vscode" ;
33import { endToEndTestSetup } from "../endToEndTestSetup" ;
44import { runCursorlessCommand } from "@cursorless/vscode-common" ;
5+ import assert from "node:assert" ;
56
67suite ( "scroll" , async function ( ) {
78 endToEndTestSetup ( this ) ;
@@ -27,9 +28,8 @@ async function topWhale() {
2728 ] ,
2829 } ) ;
2930
30- // FIXME: Disabled to work around CI failure; see #2243
31- // assert.equal(editor.visibleRanges.length, 1);
32- // assert.equal(editor.visibleRanges[0].start.line, 1);
31+ assert . equal ( editor . visibleRanges . length , 1 ) ;
32+ assert . equal ( editor . visibleRanges [ 0 ] . start . line , 1 ) ;
3333}
3434
3535async function bottomWhale ( ) {
@@ -40,8 +40,7 @@ async function bottomWhale() {
4040 } ) ;
4141 editor . selections = [ new vscode . Selection ( 1 , 0 , 1 , 0 ) ] ;
4242
43- // FIXME: Disabled to work around CI failure; see #2243
44- // assert.equal(editor.visibleRanges[0].start.line, 1);
43+ assert . equal ( editor . visibleRanges [ 0 ] . start . line , 1 ) ;
4544
4645 await runCursorlessCommand ( {
4746 version : 1 ,
@@ -56,7 +55,6 @@ async function bottomWhale() {
5655 ] ,
5756 } ) ;
5857
59- // FIXME: Disabled to work around CI failure; see #2243
60- // assert.equal(editor.visibleRanges.length, 1);
61- // assert.equal(editor.visibleRanges[0].start.line, 0);
58+ assert . equal ( editor . visibleRanges . length , 1 ) ;
59+ assert . equal ( editor . visibleRanges [ 0 ] . start . line , 0 ) ;
6260}
0 commit comments