(page: Page)
| 2958 | test.describe('Priority Color Issues (#1036)', () => { |
| 2959 | // Helper to expand TaskNotes and Views folders |
| 2960 | async function expandViewsFolderForPriorityTests(page: Page): Promise<void> { |
| 2961 | await ensureSidebarExpanded(page); |
| 2962 | |
| 2963 | const tasknotesFolder = page.locator('.nav-folder-title').filter({ hasText: /^TaskNotes$/ }).first(); |
| 2964 | if (await tasknotesFolder.isVisible({ timeout: 5000 }).catch(() => false)) { |
| 2965 | const parentFolder = tasknotesFolder.locator('xpath=ancestor::div[contains(@class, "nav-folder")][1]'); |
| 2966 | const isTasknotesCollapsed = await parentFolder.evaluate(el => el.classList.contains('is-collapsed')).catch(() => true); |
| 2967 | if (isTasknotesCollapsed) { |
| 2968 | await tasknotesFolder.click(); |
| 2969 | await page.waitForTimeout(500); |
| 2970 | } |
| 2971 | } |
| 2972 | |
| 2973 | const viewsFolder = page.locator('.nav-folder-title').filter({ hasText: /^Views$/ }); |
| 2974 | if (await viewsFolder.isVisible({ timeout: 5000 }).catch(() => false)) { |
| 2975 | const parentFolder = viewsFolder.locator('xpath=ancestor::div[contains(@class, "nav-folder")][1]'); |
| 2976 | const isCollapsed = await parentFolder.evaluate(el => el.classList.contains('is-collapsed')).catch(() => true); |
| 2977 | if (isCollapsed) { |
| 2978 | await viewsFolder.click(); |
| 2979 | await page.waitForTimeout(500); |
| 2980 | } |
| 2981 | } |
| 2982 | } |
| 2983 | |
| 2984 | test('should display scheduled events with priority colors in calendar', async () => { |
| 2985 | // Issue #1036: Priority colors should be applied consistently to scheduled events |
no test coverage detected