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:
@@ -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';
|
||||
|
||||
+1
-9
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user