fix(settings, yjs, ux, ci): default settings, y-leveldb restart resilience, dashboard one-click open, delete error handling, Playwright CI

This commit is contained in:
2026-07-27 03:15:30 +02:00
parent 7f8695456c
commit 126277ab94
13 changed files with 129 additions and 45 deletions
@@ -40,10 +40,9 @@ test('diagnose editor DOM', async () => {
await page.waitForSelector('.dashboard-project-card', { timeout: 10000 });
await page.locator('.dashboard-project-card').first().click();
await page.waitForTimeout(500);
// Dashboard shows a detail panel on the right with 'Projekt öffnen'
await page.locator('button:has-text("Projekt öffnen")').first().click();
await page.waitForTimeout(3000);
// Card click now opens the project directly
await page.waitForSelector('canvas', { timeout: 10000 });
await page.waitForTimeout(1000);
// Take screenshot
const shot = '/tmp/web-cad-clone/frontend/playwright-tests/screenshots/diagnose-editor.png';
@@ -138,15 +138,7 @@ test.describe('Web CAD Exhaustive Browser Tests', () => {
test('01: open project and load CAD editor', async () => {
const stopCapture = captureConsoleErrors(page, 'open project');
await page.locator('.dashboard-project-card').first().click();
await waitForStable(page, 500);
// Dashboard opens detail panel on the right with 'Projekt öffnen'
const openBtn = await page.locator('button:has-text("Projekt öffnen")').first();
if (await openBtn.count() > 0 && await openBtn.isVisible().catch(() => false)) {
await openBtn.click();
} else {
logIssue('Dashboard', 'major', 'Projekt öffnen button not visible', '');
}
// Wait for editor to render: any tool button from the left sidebar is visible
// Card click now opens the project directly
try {
await page.waitForSelector('[data-tool="line"]', { timeout: 10000 });
await waitForStable(page, 1000);
@@ -111,7 +111,7 @@ test('exhaustive tool test v2', async () => {
await page.reload();
await page.waitForSelector('.dashboard-project-card', { timeout: 10000 });
await page.locator('.dashboard-project-card').first().click();
await page.locator('button:has-text("Projekt öffnen")').first().click();
// Card click now opens the project directly
await page.waitForSelector('canvas', { timeout: 10000 });
await page.waitForTimeout(2500);