fix(viewer): remove topbar settings menu, keep locale switcher only (user request)
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -73,7 +73,7 @@ describe('viewer shell tokens and embed isolation (UI-02 V01)', () => {
|
||||
expect(css).toContain('.viewer-shell');
|
||||
});
|
||||
|
||||
it('normal routes render .viewer-shell with PhotoLive brand top bar and prefs menu', async () => {
|
||||
it('normal routes render .viewer-shell with PhotoLive brand top bar (locale only, no prefs menu)', async () => {
|
||||
await router.push('/');
|
||||
await router.isReady();
|
||||
const app = mountApp();
|
||||
@@ -86,17 +86,9 @@ describe('viewer shell tokens and embed isolation (UI-02 V01)', () => {
|
||||
expect(topbar.find('.brand-name').text()).toBe('PhotoLive');
|
||||
expect(topbar.find('.locale-trigger').exists()).toBe(true);
|
||||
|
||||
// 「⋯」轻量菜单(§3.2):减少动画入口可发现、可切换。
|
||||
const more = topbar.find('.icon-btn');
|
||||
expect(more.attributes('aria-haspopup')).toBe('menu');
|
||||
await more.trigger('click');
|
||||
const item = app.find('.prefs-item');
|
||||
expect(item.text()).toBe('减少动画');
|
||||
const before = item.attributes('aria-checked');
|
||||
await item.trigger('click');
|
||||
expect(app.find('.prefs-item').attributes('aria-checked')).toBe(before === 'true' ? 'false' : 'true');
|
||||
// 还原模块级偏好单例,避免影响后续用例。
|
||||
await app.find('.prefs-item').trigger('click');
|
||||
// 设置菜单已按用户要求移除(2026-09-23):顶栏仅保留语言切换。
|
||||
expect(topbar.find('.prefs-menu').exists()).toBe(false);
|
||||
expect(topbar.find('.icon-btn').exists()).toBe(false);
|
||||
});
|
||||
|
||||
it('embed routes keep the bare shell: no .viewer-shell, no top bar, no outer padding wrapper', async () => {
|
||||
|
||||
Reference in New Issue
Block a user