mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-15 09:32:22 +03:00
77e135fb5b
- Brain selection - Chat deletion - Unplug chat - Plug chat
12 lines
353 B
TypeScript
12 lines
353 B
TypeScript
import { expect, Page } from "@playwright/test";
|
|
|
|
export const testDeleteChats = async (page: Page): Promise<void> => {
|
|
const deleteChatButtons = await page.getByTestId("delete-chat-button").all();
|
|
|
|
for (const button of deleteChatButtons) {
|
|
await button.click();
|
|
}
|
|
|
|
expect((await page.getByTestId("chats-list-item").all()).length === 0);
|
|
};
|