test: Isolate Empty Panel Cards From Shared Data (#17234)

Co-authored-by: Lia <lia@librechat.ai>
This commit is contained in:
lia-by-librechat[bot] 2026-10-18 22:58:10 +02:00 • committed by GitHub
parent 41d53a2989
commit d4dd2f3f7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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');