feat(ui): edit tab zones, audio readout, live reload
- Zones/presets/sequence strip and Pipfile dev command fix - Optional live reload and beat test audio asset + generator Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -750,6 +750,46 @@ def test_presets_ui(browser: BrowserTest) -> bool:
|
||||
print(f"\nBrowser presets UI tests: {passed}/{total} passed")
|
||||
return passed == total
|
||||
|
||||
def test_preset_editor_palette_child_modal_zindex(browser: BrowserTest) -> bool:
|
||||
"""
|
||||
Regression: preset editor 'From Palette' builds a body-appended .modal without an id.
|
||||
It must use .modal-child-overlay so z-index clears #preset-editor-modal (1060).
|
||||
"""
|
||||
print("\n=== Testing preset child overlay z-index ===")
|
||||
if not browser.setup():
|
||||
return False
|
||||
try:
|
||||
if not browser.navigate("/"):
|
||||
return False
|
||||
z_editor, z_child = browser.driver.execute_script(
|
||||
"""
|
||||
const ed = document.getElementById('preset-editor-modal');
|
||||
if (!ed) { return [0, 0]; }
|
||||
ed.classList.add('active');
|
||||
const m = document.createElement('div');
|
||||
m.className = 'modal active modal-child-overlay';
|
||||
m.innerHTML = '<div class="modal-content"><p>stack probe</p></div>';
|
||||
document.body.appendChild(m);
|
||||
const ze = parseInt(getComputedStyle(ed).zIndex, 10) || 0;
|
||||
const zc = parseInt(getComputedStyle(m).zIndex, 10) || 0;
|
||||
m.remove();
|
||||
ed.classList.remove('active');
|
||||
return [ze, zc];
|
||||
"""
|
||||
)
|
||||
print(f" preset-editor z-index={z_editor} modal-child-overlay z-index={z_child}")
|
||||
if z_child > z_editor >= 1000:
|
||||
print("✓ Child overlay stacks above preset editor")
|
||||
return True
|
||||
print("✗ Child overlay did not stack above preset editor")
|
||||
return False
|
||||
except Exception as e:
|
||||
print(f"✗ z-index probe failed: {e}")
|
||||
return False
|
||||
finally:
|
||||
browser.teardown()
|
||||
|
||||
|
||||
def test_color_palette_ui(browser: BrowserTest) -> bool:
|
||||
"""Test color palette UI in browser."""
|
||||
print("\n=== Testing Color Palette UI in Browser ===")
|
||||
@@ -1105,6 +1145,9 @@ def main():
|
||||
results.append(("Zones UI", test_zones_ui(browser)))
|
||||
results.append(("Profiles UI", test_profiles_ui(browser)))
|
||||
results.append(("Presets UI", test_presets_ui(browser)))
|
||||
results.append(
|
||||
("Preset palette child z-index", test_preset_editor_palette_child_modal_zindex(browser))
|
||||
)
|
||||
results.append(("Color Palette UI", test_color_palette_ui(browser)))
|
||||
results.append(("Preset Drag and Drop", test_preset_drag_and_drop(browser)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user