Release govoplan-search v0.1.20: centralize filtering and refresh behavior
Module Package Release / publish-packages (push) Successful in 11s
Module Package Release / publish-packages (push) Successful in 11s
This commit is contained in:
@@ -26,6 +26,27 @@ class SearchDocumentationTests(unittest.TestCase):
|
||||
for topic in manifest.documentation:
|
||||
self.assertEqual((), user_workflow_scope_condition_issues(topic))
|
||||
|
||||
def test_filter_workflow_documents_tri_state_context_and_stale_reads(self) -> None:
|
||||
topic = next(
|
||||
item
|
||||
for item in manifest.documentation
|
||||
if item.id == "search.global-and-contextual"
|
||||
)
|
||||
steps = " ".join(topic.metadata["steps"])
|
||||
german = topic.structured_translations["de"]
|
||||
german_steps = " ".join(german["steps"])
|
||||
self.assertIn("Modules and Result types dropdowns", steps)
|
||||
self.assertIn("Deselect all intentionally shows no results", steps)
|
||||
self.assertIn("Clear filters keeps the selected context and query", steps)
|
||||
self.assertIn("Escape closes the open dropdown first", steps)
|
||||
self.assertIn("Alle abwählen zeigt bewusst keine Ergebnisse", german_steps)
|
||||
self.assertIn("gewählten Kontext und Suchbegriff", german_steps)
|
||||
self.assertIn("Escape schließt zuerst", german_steps)
|
||||
for metadata in (topic.metadata, german):
|
||||
self.assertIn("change_filters", metadata["operational_consequences"])
|
||||
self.assertEqual(4, len(metadata["limitations"]))
|
||||
self.assertEqual(5, len(metadata["verification"]))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user