fix: update E2E tests to match dashboard port selectors #82
No reviewers
Labels
No labels
domain:backend
domain:devops
domain:frontend
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/pal-e-docs-app!82
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "69-fix-e2e-home-selectors"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Updates E2E tests in
home.spec.tsandpublic-readiness.spec.tsto match the new DOM structure introduced by the dashboard port (PR #76). All 7 broken selectors are fixed and the removed Board Progress test is deleted.Changes
e2e/home.spec.ts-- 7 selector/assertion updates:.greeting->.home-title(beforeEach wait + greeting test)getByRole('heading', { level: 2 })->.sidebar-labelwithhasText(section labels are now divs, not h2s).project-list->.project-gridSearch... (/ or Cmd+K)->Search... (/)board progress sectiontest (section no longer exists)e2e/public-readiness.spec.ts-- 4 selector updates:.badge-private->[aria-label="Private note"](lock SVG icons replaced text badges).project-list .project-name a->.project-grid .project-cardboard-progress-nametest (Board Progress section removed)Test Plan
npm run buildpasses cleanly.greeting,.project-list,.board-bar,.board-progress-name,.badge-privateReview Checklist
Related Notes
pal-e-app-- the project this work belongs toQA Review
Selector Accuracy
Verified every test selector against the current source on
main:.home-title<h1 class="home-title">+page.svelte:79.content--home .sidebar-labelhasText "Recently Modified"<div class="sidebar-label">Recently Modified</div>+page.svelte:83.content--home .sidebar-labelhasText "Projects"<div class="sidebar-label">Projects</div>+page.svelte:110.content--home .sidebar-labelhasText "In Progress"<div class="sidebar-label">In Progress</div>+page.svelte:135.content--home .note-list<div class="note-list">+page.svelte:85,137.project-grid<div class="project-grid">+page.svelte:112.project-grid .project-card<a ... class="project-card">+page.svelte:114[aria-label="Private note"]aria-label="Private note"notes/+page.svelte:152,200+layout.svelte:116-120Search... (/)placeholder="Search... (/)"+layout.svelte:133Stale selector scan
Grep across all
e2e/files for old selectors (.greeting,.project-list,.board-bar,.board-progress,.badge-private,Recently Updated,Search... (/ or) returns zero matches.Removed tests
board progress section is rendered with progress bars-- correctly removed, Board Progress section no longer exists in the dashboardhome page does not show "Private Board" in board progress-- correctly removed for same reasonNits
None. The changes are minimal and accurate.
VERDICT: APPROVED