Skip to content

Commit 69bfdfb

Browse files
Re-enable scroll tests
1 parent 181cd9f commit 69bfdfb

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

packages/cursorless-vscode-e2e/src/suite/revealRange.vscode.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ async function preFile() {
3434
});
3535

3636
assert.equal(editor.visibleRanges.length, 1);
37-
// FIXME: Disabled to work around CI failure; see #2243
38-
// assert.equal(editor.visibleRanges[0].start.line, 0);
37+
assert.equal(editor.visibleRanges[0].start.line, 0);
3938
}
4039

4140
async function postFile() {
@@ -61,6 +60,5 @@ async function postFile() {
6160
});
6261

6362
assert.equal(editor.visibleRanges.length, 1);
64-
// FIXME: Disabled to work around CI failure; see #2243
65-
// assert.equal(editor.visibleRanges[0].end.line, editor.document.lineCount - 1);
63+
assert.equal(editor.visibleRanges[0].end.line, editor.document.lineCount - 1);
6664
}

packages/cursorless-vscode-e2e/src/suite/scroll.vscode.test.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { openNewEditor } from "@cursorless/vscode-common";
22
import * as vscode from "vscode";
33
import { endToEndTestSetup } from "../endToEndTestSetup";
44
import { runCursorlessCommand } from "@cursorless/vscode-common";
5+
import assert from "node:assert";
56

67
suite("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

3535
async 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

Comments
 (0)