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

オープン
#3,314 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
csharp, sqlite
領域
backend, testing

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
C#
スター
569
フォーク
107
平均マージ
2時間 49分
マージ済み PR(30日)
397

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

fluentcms/FluentCMS のほかの issue

fluentcms/FluentCMS の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。