aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/tests
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-hub/tests')
-rw-r--r--packages/meshbay-hub/tests/test_app_settings_plugin.py13
1 files changed, 1 insertions, 12 deletions
diff --git a/packages/meshbay-hub/tests/test_app_settings_plugin.py b/packages/meshbay-hub/tests/test_app_settings_plugin.py
index 8a095af..b8afc23 100644
--- a/packages/meshbay-hub/tests/test_app_settings_plugin.py
+++ b/packages/meshbay-hub/tests/test_app_settings_plugin.py
@@ -347,21 +347,10 @@ def test_save_is_a_button_and_not_dim_text(pane):
f"{pane}'s Save is still styled as dim text")
-@pytest.mark.parametrize("pane", sorted(PANE_FLAGS))
-def test_an_inert_save_says_why(pane):
- """
- A disabled control that explains itself is the difference between "nothing
- changed" and "this is broken". Without it the reader has to know what the
- pane counts as a change.
- """
- source = (STATIC / pane).read_text(encoding="utf-8")
- assert "app-save-why" in source and "settings_app.no_changes" in source
-
-
def test_the_disabled_state_is_visually_distinct():
css = (STATIC / "style.css").read_text(encoding="utf-8")
rule = css[css.index(".app-save {"):]
- rule = rule[:rule.index(".app-save-row")]
+ rule = rule[:rule.index("}", rule.index(".app-save:disabled")) + 1]
assert "var(--accent)" in rule, "an enabled Save has no fill"
disabled = rule[rule.index(".app-save:disabled"):]
assert "background: none" in disabled and "--text-dim" in disabled, (