mirror of
https://github.com/gradio-app/gradio.git
synced 2025-02-11 11:19:58 +08:00
Fix functional chatinterface tests (#9657)
* chanes * add changeset * Update package.json * delete changeset --------- Co-authored-by: Ali Abid <aliabid94@gmail.com> Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
This commit is contained in:
parent
8f6626cd0e
commit
e5d48956f7
@ -82,7 +82,7 @@ for (const test_case of cases) {
|
||||
);
|
||||
const api_recorder = await page.locator("#api-recorder");
|
||||
await api_recorder.click();
|
||||
const n_calls = test_case.includes("non_stream") ? 3 : 5;
|
||||
const n_calls = test_case.includes("non_stream") ? 4 : 6;
|
||||
await expect(page.locator("#num-recorded-api-calls")).toContainText(
|
||||
`🪄 Recorded API Calls [${n_calls}]`
|
||||
);
|
||||
@ -104,6 +104,7 @@ test("test stopping generation", async ({ page }) => {
|
||||
await stop_button.click();
|
||||
|
||||
await expect(page.locator(".bot.message").first()).toContainText("abc");
|
||||
await page.waitForTimeout(1000);
|
||||
|
||||
const current_content = await page
|
||||
.locator(".bot.message")
|
||||
|
Loading…
Reference in New Issue
Block a user