Integration Tests

Manual Test Checklist

1. API Endpoint Tests

  • Teams endpoint returns data with correct structure (clubs array)
  • Players data can be extracted from teams
  • Results endpoint returns gameResults array
  • Standings endpoint returns group array with teams
  • Schedules endpoint returns item array

2. Parameter Conversion Tests

  • Season "2024-25" converts to "E2024"
  • Season "2023-24" converts to "E2023"
  • Invalid season format handled gracefully

3. Response Parsing Tests

  • JSON responses parsed correctly
  • XML responses show appropriate error message
  • Different response structures handled (clubs, gameResults, group, item)

4. UI Component Tests

  • Filter controls update correctly
  • Data table displays data
  • Player selection works for charts
  • CSV export works
  • Error messages display correctly
  • Loading states work

5. Data Display Tests

  • Player stats show correct fields (name, clubName, score, etc.)
  • Game results show correct fields (date, homeTeam, awayTeam, scores)
  • Standings show team rankings
  • Schedules show upcoming games

Running Tests

Since the API may require authentication or have CORS restrictions, test the deployed version at: https://geordie--07e91f64f32d11f0ac1542dde27851f2.web.val.run

Check browser console for any errors and verify:

  1. Data loads successfully
  2. Filters work
  3. Tables display correctly
  4. Charts render
  5. CSV export works