Skip to content

test: Add comprehensive Courses page tests#902

Merged
benfoster-dev merged 4 commits into
bakeronchain:mainfrom
DSOTec:test/courses-page-tests
May 29, 2026
Merged

test: Add comprehensive Courses page tests#902
benfoster-dev merged 4 commits into
bakeronchain:mainfrom
DSOTec:test/courses-page-tests

Conversation

@DSOTec
Copy link
Copy Markdown
Contributor

@DSOTec DSOTec commented May 27, 2026

Summary

Adds 12 comprehensive tests for the Courses page (src/pages/Courses.tsx) covering filtering, search, pagination, loading, and empty states.

Closes #632

Type of Change

  • Bug fix
  • New feature
  • Smart contract change
  • Documentation
  • Breaking change
  • Other (please describe) — Test coverage

Checklist

Testing

Run npx vitest run src/pages/Courses.test.tsx to verify all 12 tests pass.

Tests cover:

  • Track filter: filtering by "Stellar Basics", "Advanced Topics", clearing
  • Difficulty filter: filtering by difficulty level
  • Search: by title and description (case-insensitive)
  • Pagination: multiple pages, page navigation, filter reset
  • Loading state: skeleton rendering
  • Empty state: no results display
  • URL params: reading filter state from searchParams
  • Link hrefs: correct course slug URLs

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 27, 2026

@DSOTec Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@benfoster-dev benfoster-dev merged commit a6a1f93 into bakeronchain:main May 29, 2026
2 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: write tests for Courses page (filtering, search, pagination)

2 participants