Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Test: Add e2e tests for admin dashboard functionality

Abierto
#27 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
55/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
playwright, supabase, typescript
Área
testing, web-dev

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
  });
});
Lenguaje dominante
TypeScript
Estrellas
1
Forks
6
Merge medio
12 h 16 min
PR fusionados (30 d)
14

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Your-Voldemort/StudentStack

Todos los issues de Your-Voldemort/StudentStack

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.