Archived
Refactor UI assets and harden quality checks
This commit is contained in:
1 parent
23ab466c52
commit
4ecc8eb874
62 files changed
+3314
-3206
No files matched your search
+4
-1
@@ -16,7 +16,7 @@ def test_admin_page_shows_operator_views_without_create_form(tmp_path: Path) ->
|
||||
assert response.status_code == 200
|
||||
assert response.headers["cache-control"] == "no-store"
|
||||
assert '<link href="/admin.css?v=5" rel="stylesheet">' in response.text
|
||||
assert '<script src="/admin-tables.js?v=2" defer></script>' in response.text
|
||||
assert '<script src="/admin-tables.js?v=3" defer></script>' in response.text
|
||||
assert "Operator console" in response.text
|
||||
assert "Generate credentials" not in response.text
|
||||
assert 'action="/admin/accounts"' not in response.text
|
||||
@@ -24,6 +24,9 @@ def test_admin_page_shows_operator_views_without_create_form(tmp_path: Path) ->
|
||||
assert response.text.count("data-table-search") == 2
|
||||
assert response.text.count("data-table-page-size") == 2
|
||||
assert response.text.count("data-table-pagination") == 2
|
||||
assert 'placeholder="Filter visible hostnames"' in response.text
|
||||
assert 'placeholder="Filter visible update events"' in response.text
|
||||
assert 'placeholder="Search hostnames"' not in response.text
|
||||
assert "admin-table-scroll" in response.text
|
||||
assert "Cleanup" in response.text
|
||||
assert "Run now" in response.text
|
||||
|
||||
Reference in new issue
Block a user