fix: ci tests
This commit is contained in:
parent
90603a6ccd
commit
27d20eb08b
3 changed files with 3 additions and 6 deletions
|
|
@ -26,10 +26,7 @@ export class GUISelectors {
|
|||
return SelectorUtils.getElementByDataTestId(view, "model-select-button");
|
||||
}
|
||||
|
||||
public static async getModelDropdownOption(view: WebView, option: string) {
|
||||
const listbox = await view.findWebElement(By.xpath('//*[@role="listbox"]'));
|
||||
|
||||
console.log("LISTBOX", await listbox.getText());
|
||||
public static getModelDropdownOption(view: WebView, option: string) {
|
||||
return view.findWebElement(
|
||||
By.xpath(`//*[@role="listbox"]//*[contains(text(), "${option}")]`),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ describe("GUI Test", () => {
|
|||
}).timeout(20_000);
|
||||
|
||||
it("should allow typing text in the editor", async () => {
|
||||
// await GUIActions.selectModelFromDropdown(view, "Mock");
|
||||
await GUIActions.selectModelFromDropdown(view, "Mock");
|
||||
await GUIActions.selectModelFromDropdown(view, "TEST LLM");
|
||||
|
||||
const tiptap = await GUISelectors.getTipTapEditor(view);
|
||||
|
|
|
|||
|
|
@ -629,7 +629,7 @@
|
|||
"e2e:clean": "rm -rf ./e2e/_output",
|
||||
"e2e:all": "npm run e2e:compile && npm run e2e:create-storage && npm run e2e:get-chromedriver && npm run e2e:get-vscode && npm run e2e:sign-vscode && npm run e2e:copy-vsix && npm run e2e:install-vsix && CONTINUE_GLOBAL_DIR=e2e/test-continue npm run e2e:test && npm run e2e:clean",
|
||||
"e2e:quick": "npm run e2e:compile && CONTINUE_GLOBAL_DIR=e2e/test-continue npm run e2e:test && npm run e2e:clean",
|
||||
"e2e:ci": "npm run e2e:compile && npm run e2e:create-storage && npm run e2e:get-chromedriver && npm run e2e:get-vscode && npm run e2e:copy-vsix && npm run e2e:install-vsix && npm run e2e:test"
|
||||
"e2e:ci": "npm run e2e:compile && npm run e2e:create-storage && npm run e2e:get-chromedriver && npm run e2e:get-vscode && npm run e2e:copy-vsix && npm run e2e:install-vsix && CONTINUE_GLOBAL_DIR=e2e/test-continue npm run e2e:test"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "1.6.4",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue