Improve collapsible sections: System-Prompts and Bot-Edit Preview#174
Conversation
Features: - Convert System-Prompts edit page to collapsible accordion layout for better UX with many prompts - Add System-Prompt preview accordion to Bot-Edit modal with E2E workflow prompts (Planner, Author, Runner) - Implement localStorage persistence of expanded/collapsed states across all collapsible sections - Add "Expand all" / "Collapse all" buttons for quick navigation
E2E Test Run for PR #174🤖 Starting end-to-end test run — this typically takes several minutes.
I'll deploy a preview environment, generate the test suite and post the results here when the run finishes. Use |
E2E Test Run for PR #174Framework:
|
Suite promotion (
|
|
@clicki-mc-testface regenerate-tests Add more tests, check if the sections in |
E2E Test Run for PR #174🤖 Starting end-to-end test run — this typically takes several minutes.
I'll deploy a preview environment, generate the test suite and post the results here when the run finishes. Use |
|
bot-edit-preview-accordion-sections — error context (4.4 KiB) Test timeout of 30000ms exceeded. Error: locator.click: Test timeout of 30000ms exceeded.
Test source 1 | import { test, expect } from '@playwright/test';
2 |
3 | test('Bot-Edit System-Prompt preview modal shows all 6 accordion sections', async ({ page }) => {
4 | await page.goto('/bots');
5 |
6 | // Open the edit modal for the first bot listed
7 | const editTrigger = page
8 | .locator('[data-bs-toggle="modal"], a, button')
9 | .filter({ hasText: /Edit/i })
10 | .first();
> 11 | await editTrigger.click();
| ^ Error: locator.click: Test timeout of 30000ms exceeded.
12 |
13 | // Trigger the System-Prompt preview action
14 | const previewBtn = page
15 | .locator('button, a')
16 | .filter({ hasText: /Preview.*System-?Prompt|System-?Prompt.*Preview/i })
17 | .first();
18 | await previewBtn.click();
19 |
20 | const previewAccordion = page.locator('#systemPromptPreviewAccordion');
21 | await expect(previewAccordion).toBeVisible({ timeout: 8000 });
22 |
23 | const items = previewAccordion.locator('.accordion-item');
24 | await expect(items).toHaveCount(6);
25 |
26 | const headersText = (await previewAccordion.locator('.accordion-button').allTextContents()).join(' | ');
27 | expect(headersText).toContain('E2E Planner');
28 | expect(headersText).toContain('E2E Author');
29 | expect(headersText).toContain('E2E Runner System-Prompt');
30 |
31 | // Close any open modal so the page state stays clean
32 | await page.keyboard.press('Escape').catch(() => {});
33 | });
34 | |
E2E Test Run for PR #174Framework:
|
Suite promotion (
|
|
@clicki-mc-testface rerun-tests |
E2E Test Re-run for PR #174🔄 Re-running existing test suite — skipping test generation, re-executing the previously generated tests against a fresh deployment.
Results will be posted here once the run finishes. Use |
E2E Test Run for PR #174Framework:
|
Suite promotion (
|
|
@clicki-mc-testface rerun-tests |
E2E Test Re-run for PR #174🔄 Re-running existing test suite — skipping test generation, re-executing the previously generated tests against a fresh deployment.
Results will be posted here once the run finishes. Use |
E2E Test Run for PR #174Framework:
|
Suite promotion (
|
Features: