Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/cursorless-vscode-e2e/src/isCI.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function isCI() {
return "CI" in process.env;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { sleep } from "@cursorless/common";
import { isLinux } from "@cursorless/node-common";
import {
getCursorlessApi,
openNewNotebookEditor,
Expand All @@ -7,9 +7,15 @@ import {
import assert from "assert";
import { window } from "vscode";
import { endToEndTestSetup } from "../endToEndTestSetup";
import { isCI } from "../isCI";

// Check that setSelection is able to focus the correct cell
suite("Cross-cell set selection", async function () {
// FIXME: This test is flaky on Linux CI, so we skip it there for now
if (isCI() && isLinux()) {
this.ctx.skip();
}

endToEndTestSetup(this);

test("Cross-cell set selection", runTest);
Expand All @@ -20,8 +26,6 @@ async function runTest() {

await openNewNotebookEditor(['"hello"', '"world"']);

await sleep(200);

await hatTokenMap.allocateHats();

await runCursorlessCommand({
Expand Down
2 changes: 1 addition & 1 deletion packages/node-common/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export * from "./FileSystemTutorialContentProvider";
export * from "./getCursorlessRepoRoot";
export * from "./getFixturePaths";
export * from "./getScopeTestPathsRecursively";
export * from "./isWindows";
export * from "./isOS";
export * from "./loadFixture";
export * from "./nodeGetRunMode";
export * from "./runRecordedTest";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ import * as os from "node:os";
export function isWindows() {
return os.platform() === "win32";
}

export function isLinux() {
return os.platform() === "linux";
}
Loading