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
7070 const dialog = page.getByRole("dialog", { name: "Choose directory" });
7171 await dialog
7272 .getByRole("button", { name: /picked-tools/ })
73− .locator("span")
74− .filter({ hasText: "tools" })
73+ .getByText("tools", { exact: true })
7574 .waitFor({ timeout: 30_000 });
7675 await dialog.getByRole("button", { name: "picked-tools" }).click();
7776 await dialog.getByText("1 tool found:").waitFor({ timeout: 30_000 });