Skip to content

Commit e1670cd

Browse files
committed
Update extensionUITest.ts
1 parent dc1f3a0 commit e1670cd

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

test/ui-test/extensionUITest.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function extensionUIAssetsTest(): void {
2222
let yamlItem: ExtensionsViewItem;
2323

2424
before(async function () {
25-
this.timeout(30000);
25+
this.timeout(40000);
2626
driver = VSBrowser.instance.driver;
2727
view = await new ActivityBar().getViewControl('Extensions');
2828
sideBar = await view.openView();
@@ -31,13 +31,22 @@ export function extensionUIAssetsTest(): void {
3131
10000,
3232
"Progress bar hasn't been hidden within the timeout"
3333
);
34+
// wait a bit for sections to load
35+
await new Promise((resolve) => setTimeout(resolve, 3000));
3436
section = (await sideBar.getContent().getSection('Installed')) as ExtensionsViewSection;
3537
await section.expand();
3638
yamlItem = await driver.wait(
3739
async () => {
3840
return await section.findItem(`@installed ${YamlConstants.YAML_NAME}`);
3941
},
40-
5000,
42+
15000,
43+
'There were not visible items available under installed section'
44+
);
45+
yamlItem = await driver.wait(
46+
async () => {
47+
return await section.findItem(`@installed ${YamlConstants.YAML_NAME}`);
48+
},
49+
10000,
4150
'There were not visible items available under installed section'
4251
);
4352
});

0 commit comments

Comments
 (0)