Skip to content

Comments

test(e2e): add comprehensive Timeline E2E tests for EPIC-06#259

Merged
steilerDev merged 1 commit intobetafrom
test/6-e2e-timeline
Feb 24, 2026
Merged

test(e2e): add comprehensive Timeline E2E tests for EPIC-06#259
steilerDev merged 1 commit intobetafrom
test/6-e2e-timeline

Conversation

@steilerDev
Copy link
Owner

Summary

  • Replaces the stub TimelinePage POM with a full implementation covering all EPIC-06 features (401 lines, 50+ locators and helpers)
  • Adds 5 new E2E test files in e2e/tests/timeline/ with comprehensive coverage:
    • timeline-gantt.spec.ts — Gantt chart render, sidebar, zoom controls, arrow toggle, empty/no-dates states, sidebar navigation, dark mode
    • timeline-milestones.spec.ts — Milestone panel CRUD (create/edit/delete), diamond marker assertions, filter dropdown, form validation
    • timeline-calendar.spec.ts — View toggle (Gantt/Calendar), month/week grids, navigation, today button, URL param persistence, dark mode
    • timeline-schedule.spec.ts — Auto-schedule dialog (open/cancel/confirm), no-changes disabled state, error handling, accessibility
    • timeline-responsive.spec.ts — No horizontal scroll, mobile/tablet layout, keyboard navigation (ArrowDown/Enter on sidebar rows), ARIA roles/labels
  • Adds createMilestoneViaApi / deleteMilestoneViaApi helpers to apiHelpers.ts
  • Adds milestones, timeline, schedule API constants to testData.ts
  • Removes Timeline stub test from stub-pages.spec.ts — Timeline has graduated to a full feature page

Test coverage overview

File Test count Key scenarios
timeline-gantt.spec.ts 17 Chart/sidebar render, zoom, arrows, empty states, dark mode
timeline-milestones.spec.ts 18 Panel CRUD, diamond markers, filter dropdown, validation
timeline-calendar.spec.ts 19 View toggle, month/week modes, navigation, URL params
timeline-schedule.spec.ts 11 Dialog lifecycle, no-changes, error state
timeline-responsive.spec.ts 16 No-scroll, keyboard nav, ARIA/roles

Test plan

  • CI E2E smoke tests pass (the @smoke-tagged tests run automatically)
  • Full E2E suite passes against beta after merge
  • Timeline page heading loads on desktop and mobile (@responsive tag)
  • Gantt chart renders with mocked data — chart, sidebar, header all visible
  • Zoom level buttons toggle correctly via aria-pressed
  • Arrow toggle button changes aria-pressed state
  • Calendar view renders month grid with current month/year in period label
  • Calendar navigation advances/retreats the period label
  • Milestone panel opens, shows empty state, creates/edits/deletes milestones
  • Auto-schedule dialog opens, cancel works, confirm sends PATCH requests
  • All keyboard navigation tests pass (ArrowDown/Enter on sidebar rows)
  • No horizontal scroll on body on any viewport

🤖 Generated with Claude Code

Replaces the stub TimelinePage POM with a full implementation covering all
EPIC-06 features. Adds 5 test files (77 tests total) across:

- timeline-gantt.spec.ts: Chart render, sidebar, zoom controls, arrow toggle,
  empty/no-dates states, sidebar click navigation, dark mode
- timeline-milestones.spec.ts: Panel open/close, milestone CRUD via UI, diamond
  marker assertions, filter dropdown, form validation
- timeline-calendar.spec.ts: View toggle, month/week grids, navigation, today
  button, URL param persistence, dark mode
- timeline-schedule.spec.ts: Auto-schedule dialog open/cancel/confirm, no-changes
  disabled state, error handling
- timeline-responsive.spec.ts: No horizontal scroll, mobile/tablet layout, keyboard
  navigation (Arrow keys + Enter on sidebar rows), ARIA roles/labels

Also:
- Expands TimelinePage POM with 50+ locators and helper methods
- Adds milestones API helpers to apiHelpers.ts
- Adds milestones/timeline/schedule constants to testData.ts
- Removes Timeline stub test from stub-pages.spec.ts (graduated to full page)

Fixes #259

Co-Authored-By: Claude qa-integration-tester (Sonnet 4.5) <noreply@anthropic.com>
@steilerDev steilerDev merged commit 88416f1 into beta Feb 24, 2026
9 checks passed
@github-actions
Copy link

🎉 This PR is included in version 1.10.0-beta.12 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants