test(search): open the action search from the toolbar (#5386)

The action-search test could time out before reaching its first search assertion when the runner delayed the second Shift press. Open Search Everywhere through the title-bar button for this test, then enter a query and run the matching action. The adjacent shortcut test exercises double Shift directly.

Co-authored-by: faysou <893862+faysou@users.noreply.github.com>
This commit is contained in:
faysou
2026-11-23 20:02:04 +08:00
committed by GitHub
co-authored by faysou
parent 96395c979f
commit 861acabf77
+1 -1
View File
@@ -14,7 +14,7 @@ test("double Shift opens Search Everywhere with its tabs; Escape closes it", asy
});
test("Search Everywhere finds and runs an action", async ({ workbench: page }) => {
await doubleShift(page);
await page.locator("header").getByRole("button", { name: "Search Everywhere", exact: true }).click();
const dialog = page.getByRole("dialog", { name: "Search Everywhere" });
await dialog.getByRole("combobox").fill("Language Servers");
const option = dialog.getByRole("option", { name: /Language Servers/ }).first();