add a util function to get the global context inside e2e
This commit is contained in:
parent
8c52642cdb
commit
f023ee4a76
1 changed files with 7 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue