mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-28 19:01:34 +00:00
feat: отполировать главную панель редакторов (#660)
Issue: #660 User-Visible: yes
This commit is contained in:
committed by
claude[bot]
parent
cff83e43ec
commit
d3c88f06f9
@@ -1,5 +1,6 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import test from 'node:test';
|
||||
import { nothing } from 'lit';
|
||||
|
||||
import { SUMMARY_PANEL_API_VERSION } from '../test-build/summary-panel-api.js';
|
||||
import { SUMMARY_PANEL_LEGACY_SCALE_KEY, summaryLocalKey } from '../test-build/summary-panel.js';
|
||||
@@ -72,6 +73,16 @@ const hostFixture = () => {
|
||||
};
|
||||
};
|
||||
|
||||
test('#660 desktop summary controls stay available in editors while kiosk controls stay View-only', () => {
|
||||
const host = hostFixture();
|
||||
const runtime = new LoadedSummaryPanelRuntime(host);
|
||||
for (const mode of ['plan', 'devices', 'decor']) {
|
||||
host._mode = mode;
|
||||
assert.notEqual(runtime.renderControls(false), nothing, `${mode}: desktop controls`);
|
||||
assert.equal(runtime.renderControls(true), nothing, `${mode}: kiosk controls`);
|
||||
}
|
||||
});
|
||||
|
||||
test('#561 unresolved Masonry stays session-only and never imports an old DOM-path preference', () => {
|
||||
const browser = installBrowserGlobals();
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user