File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments