Skip to content

Commit

Permalink
feat: new test for sprigbnnbotot + parametrised
Browse files Browse the repository at this point in the history
  • Loading branch information
pospisilf committed Sep 27, 2024
1 parent 098cfbd commit a147aa8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/ui-test/tests/spring.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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<Breakpoint>(async () => {
return await textEditor.getPausedBreakpoint();
}, 30000, undefined, 500) as Breakpoint;
Expand Down

0 comments on commit a147aa8

Please sign in to comment.