From e24f174420bf47e59a0b5f664b0953f81dd7473c Mon Sep 17 00:00:00 2001 From: d-oit Date: Fri, 19 Jun 2026 20:41:32 +0200 Subject: [PATCH] test(e2e): fix library-to-editor navigation test Unskip the library entity click navigation test and fix the selector to click on the entity row element instead of the nested text span. --- tests/e2e/library.spec.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/e2e/library.spec.ts b/tests/e2e/library.spec.ts index 81e989a..8ecd330 100644 --- a/tests/e2e/library.spec.ts +++ b/tests/e2e/library.spec.ts @@ -59,15 +59,14 @@ test.describe('Library View', () => { await expect(page.locator('text=Library Test Entity')).not.toBeVisible(); }); - // TODO: Fix navigation from Library to Editor - clicking entity doesn't trigger view switch - test.skip('should navigate to editor when clicking an entity', async ({ page }) => { + test('should navigate to editor when clicking an entity', async ({ page }) => { await ensureNavVisible(page); const libBtn = page.locator('.nav-button').filter({ hasText: 'Library', visible: true }).first(); await libBtn.click(); await expect(page.locator('h2:has-text("Library")')).toBeVisible(); - // Click the entity row (click on the entity name text within the virtualized list) - await page.locator('.entity-name-text', { hasText: 'Library Test Entity' }).click(); + // Click the entity row in the virtualized list + await page.locator('.entity-list-row', { hasText: 'Library Test Entity' }).click(); // Should be in Editor now await expect(page.locator('.nav-button[aria-current="page"]')).toHaveText('Editor', { timeout: 10000 });