History

Exercise custom tools run tab

Rhys Sullivan committed 4 months ago

Commit d778cd31 parent 7c837dc1 file · +9 −0Browse files

Unified · Split

e2e/scenarios/custom-tools.test.ts+9−0
@@ -232,6 +232,15 @@ const addSourceThroughConsole = (input: { · 231 unmodified lines
232 await page.getByRole("button", { name: "echo-tool", exact: true }).click();232 await page.getByRole("button", { name: "echo-tool", exact: true }).click();
233 await page.getByRole("tab", { name: "Run" }).click();233 await page.getByRole("tab", { name: "Run" }).click();
234 expect(await page.getByLabel("Connection").count()).toBe(0);234 expect(await page.getByLabel("Connection").count()).toBe(0);
235 await page.getByLabel("message").fill("from run tab");
236 await page.getByLabel("apps").selectOption("0");
237 await page.getByRole("button", { name: "Run", exact: true }).click();
238 await page
239 .locator("pre")
240 .filter({ hasText: "from run tab" })
241 .filter({ hasText: "v1" })
242 .last()
243 .waitFor({ timeout: 90_000 });
235 });244 });
236 });245 });
237 246