From a41ead3e82a48577d636e85795b55005042ec018 Mon Sep 17 00:00:00 2001 From: Luiz Motta Date: Fri, 13 Dec 2024 11:12:29 -0300 Subject: [PATCH] Add debug console --- .../e2e-tests/extension-editors-smoke.test.ts | 3 +++ .../src/VSCodeTestHelper.ts | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/kie-editors-dev-vscode-extension/e2e-tests/extension-editors-smoke.test.ts b/packages/kie-editors-dev-vscode-extension/e2e-tests/extension-editors-smoke.test.ts index c9650e55884..58c4b443a34 100644 --- a/packages/kie-editors-dev-vscode-extension/e2e-tests/extension-editors-smoke.test.ts +++ b/packages/kie-editors-dev-vscode-extension/e2e-tests/extension-editors-smoke.test.ts @@ -42,8 +42,11 @@ describe("KIE Editors End to End Test Suite - Smoke tests", () => { let folderView: SideBarView; before(async function () { + console.log("DEBUG VS CODE -> SETTING TIMEOUT"); this.timeout(60000); + console.log("DEBUG VS CODE -> NEW INSTANCE"); testHelper = new VSCodeTestHelper(); + console.log("DEBUG VS CODE -> OPENING FOLDER"); folderView = await testHelper.openFolder(RESOURCES); }); diff --git a/packages/vscode-extension-common-test-helpers/src/VSCodeTestHelper.ts b/packages/vscode-extension-common-test-helpers/src/VSCodeTestHelper.ts index 95ad412809c..abdf548c4bd 100644 --- a/packages/vscode-extension-common-test-helpers/src/VSCodeTestHelper.ts +++ b/packages/vscode-extension-common-test-helpers/src/VSCodeTestHelper.ts @@ -105,18 +105,25 @@ export class VSCodeTestHelper { * @returns a promise that resolves to a SideBarView of the openned folder */ public openFolder = async (absoluteFsPath: string): Promise => { + console.log("DEBUG VS CODE -> OPENING RESOURCES"); await this.browser.openResources(absoluteFsPath); + console.log("DEBUG VS CODE -> NEW VIEW CONTROL"); const control = (await new ActivityBar().getViewControl("Explorer")) as ViewControl; + console.log("DEBUG VS CODE -> SIDEBAR VIEW"); this.sidebarView = await control.openView(); + console.log("DEBUG VS CODE -> CHECK IS DISPLAYED"); assert.isTrue(await this.sidebarView.isDisplayed(), "Explorer side bar view was not opened"); + console.log("DEBUG VS CODE -> FOLDER NAME"); const folderName = absoluteFsPath.split(path.sep).pop(); if (folderName == undefined) { throw new Error("Invalid path: " + absoluteFsPath); } - + console.log("DEBUG VS CODE -> SECTION VIEW"); this.workspaceSectionView = await this.sidebarView.getContent().getSection(folderName); + + console.log("DEBUG VS CODE -> RETURNING"); return this.sidebarView; };