feat: unify mobile track workspace

This commit is contained in:
lingniu
2026-07-19 07:58:51 +08:00
parent 6795a8ea6d
commit af71468e63
4 changed files with 89 additions and 21 deletions

View File

@@ -384,6 +384,9 @@ describe('V2 production entry', () => {
expect(corePageSources.TrackPage).toContain("from '../shared/WorkspaceSideSheet'");
expect(corePageSources.TrackPage).toContain('<WorkspaceSideSheet');
expect(corePageSources.TrackPage).toContain('variant="editor"');
expect(corePageSources.TrackPage).toContain('dialogId="v2-track-mobile-workbench"');
expect(corePageSources.TrackPage).toContain('summaryItems={mobileSheetSummary}');
expect(corePageSources.TrackPage).toContain("primaryAction={{ label: '查看地图'");
expect(corePageSources.TrackPage).not.toContain('useSideSheetA11y(mobileLayout');
expect(corePageSources.TrackPage).not.toContain('<Card className="v2-track-overview-card"><header><strong>行程概览</strong><Tag color={track.sampled ? \'orange\' : \'green\'} type="light" size="small">{track.sampled ? \'地图已抽稀\' : \'完整点集\'}</Tag></header><dl>');
expect(corePageSources.TrackPage).toContain('<section className="v2-track-overview-section v2-track-source-card">');