Moved goals and roles before knowledge in the BeyondFacts Lab (#1214)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-20 19:33:04 +01:00
1 parent 761ec7001d
commit 6cdb0bc551
38 files changed
+334 -186

No files matched your search

@@ -67,6 +67,20 @@ public sealed class BeyondFactsLabStoreResultTests
}
}
[Test]
public async Task AResultNamesTheStepsOfItsWorkStatesByTheirNames()
{
var store = this.CreateStore();
var created = await store.CreateAsync("Panel");
var result = new BflResult { Draft = new BflResultVersion { Text = "# Positionsblatt", WorkStateRevisions = { [BflStep.GOALS_AND_ROLE] = 3 } } };
await store.SaveResultAsync(created.ProjectId, BflResultKind.POSITION_PAPER, result);
var json = await File.ReadAllTextAsync(Path.Combine(this.dataDirectory, BeyondFactsLabStore.ROOT_DIRECTORY_NAME, created.ProjectId.ToString("D"), "results", "position-paper.json"));
// The files store no position of a step, so that the steps may change their order:
Assert.That(json, Does.Contain("\"GOALS_AND_ROLE\""));
}
[Test]
public async Task ADamagedResultIsNeitherOpenedNorOverwritten()
{