History

Tighten directory picker e2e tag assertion

Rhys Sullivan committed 4 months ago

Commit 628d2d71 parent 1ef67be1 file · +1 −2Browse files

Unified · Split

e2e/local/custom-tools-directory-picker.test.ts+1−2
@@ -70,8 +70,7 @@ export default defineTool({ · 69 unmodified lines
70 const dialog = page.getByRole("dialog", { name: "Choose directory" });70 const dialog = page.getByRole("dialog", { name: "Choose directory" });
71 await dialog71 await dialog
72 .getByRole("button", { name: /picked-tools/ })72 .getByRole("button", { name: /picked-tools/ })
73 .locator("span")73 .getByText("tools", { exact: true })
74 .filter({ hasText: "tools" })
75 .waitFor({ timeout: 30_000 });74 .waitFor({ timeout: 30_000 });
76 await dialog.getByRole("button", { name: "picked-tools" }).click();75 await dialog.getByRole("button", { name: "picked-tools" }).click();
77 await dialog.getByText("1 tool found:").waitFor({ timeout: 30_000 });76 await dialog.getByText("1 tool found:").waitFor({ timeout: 30_000 });