File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -77,13 +77,23 @@ describe("Command Tests", function() {
7777 await sleep ( 1000 ) ;
7878 }
7979 }
80+ // The check above leaves the language status hover popup open. Close it by clicking
81+ // the same element again (toggle behavior) so it does not overlay sidebar tree items
82+ // on Linux, where ESC alone is not always reliable.
83+ try {
84+ const languageStatus = await statusBar . findElement ( By . xpath ( '//*[@id="status.languageStatus"]' ) ) ;
85+ await languageStatus . click ( ) ;
86+ await sleep ( 300 ) ;
87+ } catch ( _e ) {
88+ // popup may have already been dismissed — ignore
89+ }
8090 }
8191
8292 before ( async function ( ) {
8393 await openProject ( mavenProjectPath ) ;
8494 await openFile ( mavenJavaFilePath ) ;
8595 await waitForLanguageServerReady ( ) ;
86- // Close any lingering hover popup (e.g. language status) that could overlay the sidebar
96+ // Extra safety: send ESC in case any residual overlay is still present
8797 await VSBrowser . instance . driver . actions ( ) . sendKeys ( seleniumWebdriver . Key . ESCAPE ) . perform ( ) ;
8898 await clearNotificationsIfPresent ( ) ;
8999 } ) ;
You can’t perform that action at this time.
0 commit comments