Skip to content

Add BDD-style Playwright test suite#91

Merged
rdhyee merged 1 commit intoisamplesorg:mainfrom
rdhyee:bdd-test-infrastructure
Apr 8, 2026
Merged

Add BDD-style Playwright test suite#91
rdhyee merged 1 commit intoisamplesorg:mainfrom
rdhyee:bdd-test-infrastructure

Conversation

@rdhyee
Copy link
Copy Markdown
Contributor

@rdhyee rdhyee commented Apr 8, 2026

Summary

  • 62 Playwright+pytest tests covering navigation, page content, accordions, Explorer, and data endpoints
  • Runs against live site by default, or local preview via ISAMPLES_BASE_URL env var
  • ~20 seconds for full suite (non-Explorer tests), ~40 seconds including Explorer

Test files

File Tests What it covers
test_navigation.py 21 Sidebar sections match April wireframe, navbar items
test_requirements_page.py 7 18 accordion callouts, collapse/expand behavior
test_key_pages.py 22 Homepage, About, How to Use, Architecture, Publications, data.isamples.org
test_explorer.py 12 Search input, 4 filter categories, facet counts, sample card, view modes

Usage

# All tests against live site
pytest tests/ -p no:base-url

# Against local Quarto preview
ISAMPLES_BASE_URL=http://localhost:5860 pytest tests/ -p no:base-url

Test plan

  • 62/62 tests pass against live isamples.org

🤖 Generated with Claude Code

62 tests across 4 test files:
- test_navigation.py: sidebar sections, navbar, wireframe alignment (21 tests)
- test_requirements_page.py: accordion behavior, 18 callouts (7 tests)
- test_key_pages.py: homepage, about, how-to-use, architecture, pubs, data endpoint (22 tests)
- test_explorer.py: search, filters, facet counts, sample card, view modes (12 tests)

Run with: pytest tests/ -p no:base-url
Against local: ISAMPLES_BASE_URL=http://localhost:5860 pytest tests/

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@rdhyee rdhyee merged commit ec95b7c into isamplesorg:main Apr 8, 2026
1 check 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.

1 participant