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