Skip to content

Commit f34f923

Browse files
committed
test: update
1 parent 3770438 commit f34f923

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

test/ui/command.test.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)