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:
aliabid94 2024-10-11 14:47:58 -07:00 committed by GitHub
parent 8f6626cd0e
commit e5d48956f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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")