From 386bef1828598ad5c65e056b162f584cd239e2b7 Mon Sep 17 00:00:00 2001 From: Maxim Leis Date: Fri, 22 Mar 2024 14:30:22 +0100 Subject: [PATCH] test --- src/test/ui-test/utils/extension-settings-helper.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/test/ui-test/utils/extension-settings-helper.ts b/src/test/ui-test/utils/extension-settings-helper.ts index 69df3c4..4c3ea60 100644 --- a/src/test/ui-test/utils/extension-settings-helper.ts +++ b/src/test/ui-test/utils/extension-settings-helper.ts @@ -1,5 +1,5 @@ import * as assert from "assert"; -import { EditorView, LinkSetting, Workbench, TextEditor, Setting } from "vscode-extension-tester"; +import { EditorView, LinkSetting, Workbench, TextEditor, Setting, By, VSBrowser } from "vscode-extension-tester"; export class ExtensionSettings { @@ -115,7 +115,13 @@ export class ExtensionSettings await setting.click(); console.log("here"); - console.log(await setting.getDriver().getPageSource()) + + + const resetElem = await setting.findElement(By.css("a.action-label")) + assert(resetElem != undefined); + await resetElem.click(); + console.log(await VSBrowser.instance.driver.takeScreenshot()) + // } // SetPath