Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
"lodash": "^4.18.1",
"markdown-it": "^14.2.0",
"mkdirp": "^3.0.1",
"mocha": "^11.7.5",
"mocha": "^11.7.6",
"module-alias": "^2.3.4",
"node-yaml-parser": "^0.0.9",
"npm-run-all": "^4.1.5",
Expand Down
35 changes: 21 additions & 14 deletions test/ui/suite/componentContextMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,15 @@ export function testComponentContextMenu() {
}
});

afterEach(async function () {
await VSBrowser.instance.driver.wait(
async () => true,
1000
);
});

it('Start Dev works', async function () {
this.timeout(60_000);
this.timeout(80_000);

await waitForItemStable(getSection, componentName, true);

Expand Down Expand Up @@ -145,7 +152,7 @@ export function testComponentContextMenu() {
expect(terminalText).to.include('Press any key to close this terminal');
});

it('Start/Stop Dev on Podman works', async () => {
it('Start/Stop Dev on Podman works', async function () {
this.timeout(80_000);

await stabilizeComponentsView(getSection);
Expand Down Expand Up @@ -208,7 +215,8 @@ export function testComponentContextMenu() {
expect(terminalText).to.contain('Kubernetes components');
});

it('Show dev terminal works', async () => {
it('Show dev terminal works', async function () {
this.timeout(80_000);
const component = await waitForItemStable(getSection, componentName, false);

//open menu and select show dev terminal
Expand All @@ -220,7 +228,7 @@ export function testComponentContextMenu() {
expect(tabName).to.contain(expectedTabName);
});

it('Debug works', async () => {
it('Debug works', async function () {
this.timeout(80_000);

const component = await waitForItemStable(getSection, componentName, false);
Expand All @@ -240,19 +248,18 @@ export function testComponentContextMenu() {
const debugConsole = await bottomBar.openDebugConsoleView();

//wait for console to have text
// await new Promise((res) => setTimeout(res, 1_000));
const bottomBarText = await bottomBar.getDriver().wait(
async () => {
const text = await debugConsole.getText();
async () => {
const text = await debugConsole.getText();

if (text && text.includes('App started on PORT')) {
return text;
}
if (text && text.includes('App started on PORT')) {
return text;
}

return null;
},
20_000,
'Debug console did not contain expected output'
return null;
},
20_000,
'Debug console did not contain expected output'
);

expect(bottomBarText).to.contain('App started on PORT');
Expand Down
Loading