Spaces:
Running
Running
k0880k commited on
Commit ·
b95d991
1
Parent(s): 8d3d046
test(migration): lock compatibility policy into canonical workspace
Browse files
test_extension_support_pipeline.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
from core import extension_support_pipeline as support
|
| 2 |
from core import extension_support_guard as guard
|
|
|
|
| 3 |
|
| 4 |
|
| 5 |
def test_support_mode_is_operator_controlled():
|
|
@@ -81,3 +82,10 @@ def test_candidate_elements_flattens_failure_and_skip_lists_without_crashing():
|
|
| 81 |
]}},
|
| 82 |
})
|
| 83 |
assert got == ["com_easyblog", "com_rsform", "com_logman", "com_weblinks"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
from core import extension_support_pipeline as support
|
| 2 |
from core import extension_support_guard as guard
|
| 3 |
+
from core import migration_scope_suite as scope_ui
|
| 4 |
|
| 5 |
|
| 6 |
def test_support_mode_is_operator_controlled():
|
|
|
|
| 82 |
]}},
|
| 83 |
})
|
| 84 |
assert got == ["com_easyblog", "com_rsform", "com_logman", "com_weblinks"]
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
def test_canonical_scope_ui_owns_compatibility_policy_control():
|
| 88 |
+
assert 'id="compatibility-mode"' in scope_ui._SCOPE_PANEL
|
| 89 |
+
assert 'value="assisted" selected' in scope_ui._SCOPE_PANEL
|
| 90 |
+
assert "compatibility_mode:($('#compatibility-mode')?.value||'assisted')" in scope_ui._SCOPE_SCRIPT
|
| 91 |
+
assert "$('#compatibility-mode')?.addEventListener('change',refresh);" in scope_ui._SCOPE_SCRIPT
|