Skip to content

test: extend statistics test coverage#1459

Merged
its-gabo merged 2 commits intostagingfrom
jh_test_1354_implement_statistics_tests
May 4, 2026
Merged

test: extend statistics test coverage#1459
its-gabo merged 2 commits intostagingfrom
jh_test_1354_implement_statistics_tests

Conversation

@Japrolol
Copy link
Copy Markdown
Collaborator

Issue(s)

1354

Overview

Extends E2E coverage for statistics across admin analytics and course-level statistics.

Adds statistics-specific handles, flows, and specs covering:

  • Admin analytics dashboard chart rendering.
  • Admin analytics summary report download.
  • Course statistics role access, with admin visibility and student restriction.
  • Course statistics overview, student progress, search, group filtering, quiz results, quiz
    filtering, and learning-time table visibility.
  • AI mentor statistics using prepared mentor progress through a test-config fixture endpoint
    instead of real AI chat/judge calls.

Adds stable data-testid hooks across course statistics tables, filters, overview cards, preview
actions, lesson preview dialog, course statistics tab, AI mentor messages, and admin analytics
charts. Also adds a typed generated API client path for preparing deterministic AI mentor
statistics data in tests.

Business Value

Improves confidence that admins can access and use statistics dashboards reliably, including
course progress, quiz results, AI mentor results, filters, and report downloads.

The deterministic AI mentor statistics setup avoids spending time and money on real AI calls in
E2E while still validating the statistics UI and backend integration path.

@Japrolol Japrolol requested a review from its-gabo April 28, 2026 19:13
@Japrolol Japrolol self-assigned this Apr 28, 2026
# Conflicts:
#	apps/web/e2e/data/learning/handles.ts
@Japrolol Japrolol force-pushed the jh_test_1354_implement_statistics_tests branch from 449abe3 to 2b55c59 Compare April 28, 2026 19:15
@Japrolol Japrolol added run E2E tests ⚙️ Trigger E2E tests run on this branch. review me 👀 PR is ready to be reviewed labels Apr 28, 2026
@github-actions
Copy link
Copy Markdown

🚀 Preview ready

Mails do not leave the preview environment. Database has been seeded with test data. You can access the preview at the following URLs:

List of available services:

Service URL
Web https://pr-1459.beta.mentingo.com
Mailhog https://mailhog-pr-1459.beta.mentingo.com

List of available accounts:

Role Email Password
Student student@example.com password
Student student0@example.com password
Student student2@example.com password
Content Creator contentcreator@example.com password
Content Creator contentcreator2@example.com password
Admin admin@example.com password

@its-gabo its-gabo marked this pull request as ready for review May 4, 2026 07:08
@its-gabo its-gabo changed the title test: extended statistics test coverage test: extend statistics test coverage May 4, 2026
@its-gabo its-gabo merged commit cde0687 into staging May 4, 2026
10 checks passed
@its-gabo its-gabo deleted the jh_test_1354_implement_statistics_tests branch May 4, 2026 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review me 👀 PR is ready to be reviewed run E2E tests ⚙️ Trigger E2E tests run on this branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants