Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Test: Add e2e tests for admin dashboard functionality

Chiusa
#27 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Una pull request collegata è già stata integrata.

  • #65 di @rootsiemen — integrata

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
playwright, supabase, typescript
Ambito
testing, web-dev

Direzione di ricerca

Start with e2e/app.spec.ts and the existing Playwright tests, then review the Supabase Auth flow and how CI runs against the built preview deployment. Establish an admin authentication fixture or setup using the allow-listed email, and add coverage for review actions, resource CRUD and status changes, ingestion review, and navigation. Done means the admin dashboard flows are exercised reliably in CI.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

good first issue

Description

The e2e test suite (e2e/app.spec.ts) only has basic tests for home page, directory page, and admin login redirect. No tests exist for actual admin dashboard functionality.

Missing Test Coverage

  • Admin login flow
  • Review queue (approve/reject submissions)
  • Resource CRUD (create, edit, delete, status change)
  • Ingestion review page
  • Admin navigation and layout

Good First Issue Because

  • Playwright tests are straightforward to write
  • Good for learning the admin user flows
  • Uses existing test infrastructure
  • High value - admin is a critical path

Files to Modify

  • e2e/app.spec.ts - add new test suites
  • May need test fixtures/setup for admin authentication

Implementation Notes

  • Admin auth uses Supabase Auth with a single allow-listed email (ADMIN_EMAIL)
  • Tests will need a way to authenticate (test user, mock, or seeded credentials)
  • Consider using page.context().addCookies() or programmatic login
  • The CI runs e2e tests against a built preview deployment

Example Test Structure

test.describe('Admin Dashboard', () => {
  test.beforeEach(async ({ page }) => {
    // Login as admin
  });

  test('should show review queue with pending submissions', async ({ page }) => {
    // Navigate to /admin
    // Verify pending submissions visible
  });

  test('should approve a submission', async ({ page }) => {
    // Click approve
    // Verify resource appears in main table
  });
});
Lingua principale
TypeScript
Stelle
1
Fork
6
Merge medio
11h 16m
PR unite (30g)
16

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Your-Voldemort/StudentStack

Tutte le issue di Your-Voldemort/StudentStack

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.