From a147aa8f900e79242d64ff6363e23b3363ae1fa0 Mon Sep 17 00:00:00 2001 From: Filip Pospisil Date: Sat, 28 Sep 2024 00:30:25 +0200 Subject: [PATCH] feat: new test for sprigbnnbotot + parametrised --- src/ui-test/tests/spring.test.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/ui-test/tests/spring.test.ts b/src/ui-test/tests/spring.test.ts index ba6af23..f0b10ad 100644 --- a/src/ui-test/tests/spring.test.ts +++ b/src/ui-test/tests/spring.test.ts @@ -71,6 +71,7 @@ describe.only('Springboot', function () { await VSBrowser.instance.openResources(path.join(path.join(SPRINGBOOT_DIR, 'src', 'main', 'java', 'com', 'acme', 'myproject'), 'Demo.java')); + VSBrowser.instance.takeScreenshot("here7"); textEditor = new TextEditor(); @@ -79,15 +80,26 @@ describe.only('Springboot', function () { return await textEditor.toggleBreakpoint(15); }, 5000); + VSBrowser.instance.takeScreenshot("here8"); + + const btn = await new ActivityBar().getViewControl('Run'); const debugView = (await btn.openView()) as DebugView; const configs = await debugView.getLaunchConfigurations(); + + VSBrowser.instance.takeScreenshot("here9"); + assert.isTrue(configs.includes("Run Camel Spring Boot application and attach Camel debugger")); + + VSBrowser.instance.takeScreenshot("here10"); + await debugView.selectLaunchConfiguration("Run Camel Spring Boot application and attach Camel debugger"); await debugView.start(); + VSBrowser.instance.takeScreenshot("here11"); + const breakpoint = await driver.wait(async () => { return await textEditor.getPausedBreakpoint(); }, 30000, undefined, 500) as Breakpoint;