Characteristics model ui
This commit is contained in:
parent
8d6a9f7050
commit
0bb0c61f75
3 changed files with 164 additions and 1 deletions
|
|
@ -1217,6 +1217,8 @@ def test_ui_register_analyze_and_approve_loop(tmp_path):
|
|||
assert "Approved Characteristic Tree" in approved_detail.text
|
||||
assert "scope" in approved_detail.text
|
||||
assert "Evidence supporting this capability" in approved_detail.text
|
||||
assert "1 scope" in approved_detail.text
|
||||
assert "supports" in approved_detail.text
|
||||
assert "1 abilities" in approved_detail.text
|
||||
assert "2 capabilities" in approved_detail.text
|
||||
assert "2 features" in approved_detail.text
|
||||
|
|
@ -1261,6 +1263,23 @@ def test_ui_register_analyze_and_approve_loop(tmp_path):
|
|||
assert "Save" in approved_listing.text
|
||||
assert "Delete" in approved_listing.text
|
||||
|
||||
scope_listing = client.get(
|
||||
f"/ui/repos/{repository_id}/elements",
|
||||
params={"scope": "all", "entry_filter": "approved", "type": "scopes"},
|
||||
)
|
||||
assert scope_listing.status_code == 200
|
||||
assert "Registry Scopes" in scope_listing.text
|
||||
assert "Save" in scope_listing.text
|
||||
|
||||
support_listing = client.get(
|
||||
f"/ui/repos/{repository_id}/elements",
|
||||
params={"scope": "all", "entry_filter": "approved", "type": "supports"},
|
||||
)
|
||||
assert support_listing.status_code == 200
|
||||
assert "Registry Supports" in support_listing.text
|
||||
assert "supports capability" in support_listing.text
|
||||
assert "references source" in support_listing.text
|
||||
|
||||
combined_listing = client.get(
|
||||
f"/ui/repos/{repository_id}/elements",
|
||||
params={
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue