add a util function to get the global context inside e2e

This commit is contained in:
Jacob Kim 2025-06-27 19:28:33 -07:00
parent 8c52642cdb
commit f023ee4a76

View file

@ -2,8 +2,15 @@ import { expect } from "chai";
import { Key } from "vscode-extension-tester";
import { DEFAULT_TIMEOUT } from "./constants";
import path = require("path");
export class TestUtils {
public static CONTINUE_GLOBAL_DIR = process.env.CONTINUE_GLOBAL_DIR ?? "";
public static getGlobalContextFilePath(): string {
return path.join(TestUtils.CONTINUE_GLOBAL_DIR, "index", "globalContext.json");
}
/**
* In many cases it might be more useful to use existing Selenium
* utilities. For example: