mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-20 06:51:59 +00:00
test: Isolate Empty Panel Cards From Shared Data (#17234)
Co-authored-by: Lia <lia@librechat.ai>
This commit is contained in:
parent
41d53a2989
commit
d4dd2f3f7e
1 changed files with 6 additions and 0 deletions
|
|
@ -22,6 +22,12 @@ test.describe('empty panel cards', () => {
|
|||
test('the empty prompts panel is drawn like the other panels @scenario:empty-prompts-panel-matches-other-panels', async ({
|
||||
page,
|
||||
}) => {
|
||||
await page.route('**/api/tags', (route) => route.fulfill({ json: [] }));
|
||||
await page.route('**/api/prompts/groups?**', (route) =>
|
||||
route.fulfill({
|
||||
json: { promptGroups: [], pageNumber: '1', pageSize: '10', pages: 0, has_more: false },
|
||||
}),
|
||||
);
|
||||
await page.goto('/c/new', { timeout: 10000 });
|
||||
|
||||
const prompts = await openPanelCard(page, 'Prompts', 'No prompts yet');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue