gradio/js/spa/test/chatbot_with_tools.spec.ts
pngwn 2b6cbf2590
Fix published package exports (#9163)
* rename

* save patch

* fix everything

* format

* rm file

* fix stuff

* tweaks

* tweaks

* tweaks

* tweaks

* tweaks

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* fix

* Fix scripts/run_lite.sh and scripts/build_lite.sh (#9170)

* fixes

* fixes

* asd

* asd

* asd

* review comments

* fiux types

* fiux types

* make fileexpolorer public

* format

* lint

* lint

---------

Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com>
2024-08-22 16:38:45 +00:00

17 lines
540 B
TypeScript

import { test, expect } from "@self/tootils";
test("Chatbot can support agentic demos by displaying messages with metadata", async ({
page
}) => {
await page.getByRole("button", { name: "Get San Francisco Weather" }).click();
await expect(
await page.locator("button").filter({ hasText: "💥 Error" }).nth(1)
).toBeVisible();
await expect(
page.locator("span").filter({ hasText: "🛠️ Used tool" })
).toBeVisible();
await expect(
page.locator("button").filter({ hasText: "It's a sunny day in San" })
).toBeVisible();
});