v0.36.23
This commit is contained in:
1 parent
668c908abb
commit
76f42b5864
30 files changed
+191
-72
No files matched your search
@@ -77,6 +77,17 @@ missing_refs = {dom_id: sorted(paths) for dom_id, paths in literal_refs.items()
|
||||
assert not missing_refs, f"embedded panel JS references missing DOM ids: {missing_refs}"
|
||||
|
||||
assert "ui-interface-icons" in id_set, "Appearance must expose the SVG icon toggle"
|
||||
assert "ui-stable-dialog-position" in id_set, "Appearance must expose the stable dialog position toggle"
|
||||
preferences_js = (WEB / "app/preferences.js").read_text(encoding="utf-8")
|
||||
editors_css = (WEB / "css/40-editors.css").read_text(encoding="utf-8")
|
||||
openapi = __import__("json").loads((ROOT / "src/admin/openapi.json").read_text(encoding="utf-8"))
|
||||
pl = __import__("json").loads((ROOT / "langs/pl_pl.json").read_text(encoding="utf-8"))["translations"]
|
||||
assert re.search(r"stable_dialog_position:\s*true", preferences_js), "stable dialog position must default on in the panel"
|
||||
assert "applyAdminStableDialogPosition(value.stable_dialog_position)" in preferences_js
|
||||
assert "saveAppearancePreference({ stable_dialog_position: next }" in preferences_js
|
||||
assert 'html[data-stable-dialog-position="true"] dialog.vhost-dialog[open]' in editors_css
|
||||
assert openapi["components"]["schemas"]["AdminPreferences"]["properties"]["stable_dialog_position"]["default"] is True
|
||||
assert pl.get("stableDialogPosition") and pl.get("stableDialogPositionHelp")
|
||||
assert any(path.name == "icons.js" for path in sources), "semantic icon module must be embedded in app.js"
|
||||
|
||||
assert 'data-i18n="overviewExtraRecentSamples"' not in html, "Overview metric tiles must not show the redundant Recent samples footer"
|
||||
|
||||
Reference in new issue
Block a user