Isolate the admin end-to-end tests from each other

Aperta
#3,314 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp, sqlite
Ambito
backend, testing

Direzione di ricerca

Start with admin/tests/FluentCMS.Admin.EndToEnd/EndToEndHost.cs and BrowserTest.cs to trace how the shared host, SQLite database, users, and sessions are set up. Check the existing end-to-end test classes for shared data and run the suite to identify order-dependent cases. Done means cases pass in any order or alone, and none signs in as a user another case changes.

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

Descrizione

area:admin area:testing type:chore

Problem

The admin end-to-end tests share one published host and one SQLite database per run (admin/tests/FluentCMS.Admin.EndToEnd/EndToEndHost.cs:10,14-18), in a serial collection because tests change its users and sessions (BrowserTest.cs:34-35). Only the browser context is per test. Cases depend on order and timing; #3257 and #3261 each fixed one after it failed.

Proposal

Give each test class its own data: a seed or reset per class, or content types and users named per test, so no case reads what another wrote.

Done together with #3213, which adds cases to the same harness.

Acceptance

  • The cases pass in any order
  • A case run alone passes
  • No case signs in as a user another case changes

Found in the code review of 17 Nov 2026.

Lingua principale
C#
Stelle
569
Fork
107
Merge medio
2h 49m
PR unite (30g)
397

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 fluentcms/FluentCMS

Tutte le issue di fluentcms/FluentCMS

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.