mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-12 06:07:21 +00:00
Added research on the web to the BeyondFacts Lab (#1186)
This commit is contained in:
1 parent
e5c0931a60
commit
9a676101f7
66 files changed
+3609
-70
No files matched your search
@@ -26,7 +26,7 @@ public sealed class BflWorkStateRequestTests
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TheRequestOffersSuggestionsOnlyForEmptyTextFields()
|
||||
public void TheRequestOffersSuggestionsOnlyForEmptyFields()
|
||||
{
|
||||
var form = new BflStepFormData();
|
||||
form.Set(BflFieldCatalog.FORMAT, "Podium");
|
||||
@@ -41,6 +41,21 @@ public sealed class BflWorkStateRequestTests
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TheRequestNamesTheOptionsOfAnEmptyChoice()
|
||||
{
|
||||
var difficulty = BflFieldCatalog.FIELDS.Single(field => field.Id == BflFieldCatalog.DIFFICULTY);
|
||||
|
||||
var request = BflPromptComposer.ComposeWorkStateRequest("{{FIELDS}}", BflStep.TEST_SITUATION, new BflStepFormData());
|
||||
|
||||
using (Assert.EnterMultipleScope())
|
||||
{
|
||||
Assert.That(request, Does.Contain($"[{BflMarkdownSections.FIELD_PREFIX}{BflFieldCatalog.DIFFICULTY}]"));
|
||||
foreach (var option in difficulty.Options)
|
||||
Assert.That(request, Does.Contain($"„{option.Label}“"), option.Id);
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ARequestWithoutEmptyFieldsAsksForNoSuggestions()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user