refine Semi UI account workspace

This commit is contained in:
lingniu
2026-07-18 03:22:35 +08:00
parent 91db15ebde
commit e39140c408
4 changed files with 672 additions and 10 deletions

View File

@@ -55,11 +55,11 @@ describe('V2 production entry', () => {
expect(source).toContain("from '@douyinfe/semi-ui'");
expect(source).toContain('<Button');
}
for (const name of ['VehiclePage', 'AccessPage', 'UsersPage', 'OperationsPage']) {
for (const name of ['VehiclePage', 'AccessPage', 'OperationsPage']) {
expect(corePageSources[name]).toContain("from '../shared/PageHeader'");
expect(corePageSources[name]).toContain('<PageHeader');
}
for (const name of ['AlertsPage', 'HistoryPage', 'StatisticsPage']) {
for (const name of ['AlertsPage', 'HistoryPage', 'StatisticsPage', 'UsersPage']) {
expect(corePageSources[name]).not.toContain("from '../shared/PageHeader'");
expect(corePageSources[name]).not.toContain('<PageHeader');
}
@@ -224,6 +224,7 @@ describe('V2 production entry', () => {
expect(corePageSources.UsersPage).toContain('<Card className="v2-user-editor"');
expect(corePageSources.UsersPage).toContain('<List');
expect(corePageSources.UsersPage).toContain('<List.Item');
expect(corePageSources.UsersPage).toContain('className="v2-user-command-bar"');
expect(corePageSources.UsersPage).toContain('v2-user-directory-metrics');
expect(corePageSources.UsersPage).toContain('aria-expanded={selectedID === user.id && !creating}');
expect(corePageSources.UsersPage).toContain('<Tabs className="v2-user-editor-tabs"');