refine Semi UI alert workspace
This commit is contained in:
@@ -55,11 +55,11 @@ describe('V2 production entry', () => {
|
||||
expect(source).toContain("from '@douyinfe/semi-ui'");
|
||||
expect(source).toContain('<Button');
|
||||
}
|
||||
for (const name of ['VehiclePage', 'AlertsPage', 'AccessPage', 'UsersPage', 'OperationsPage']) {
|
||||
for (const name of ['VehiclePage', 'AccessPage', 'UsersPage', 'OperationsPage']) {
|
||||
expect(corePageSources[name]).toContain("from '../shared/PageHeader'");
|
||||
expect(corePageSources[name]).toContain('<PageHeader');
|
||||
}
|
||||
for (const name of ['HistoryPage', 'StatisticsPage']) {
|
||||
for (const name of ['AlertsPage', 'HistoryPage', 'StatisticsPage']) {
|
||||
expect(corePageSources[name]).not.toContain("from '../shared/PageHeader'");
|
||||
expect(corePageSources[name]).not.toContain('<PageHeader');
|
||||
}
|
||||
@@ -150,10 +150,10 @@ describe('V2 production entry', () => {
|
||||
expect(corePageSources.AlertsPage).toContain('<TextArea');
|
||||
expect(corePageSources.AlertsPage).toContain('<Radio');
|
||||
expect(corePageSources.AlertsPage).toContain('<Card key={event.id} className={`v2-alert-mobile-card');
|
||||
for (const surface of ['v2-alert-kpis-card', 'v2-alert-table-card']) {
|
||||
expect(corePageSources.AlertsPage).toContain(`<Card className="${surface}"`);
|
||||
}
|
||||
expect(corePageSources.AlertsPage).toContain('<Card className="v2-alert-kpis-card v2-alert-context-card"');
|
||||
expect(corePageSources.AlertsPage).toContain('<Card className="v2-alert-table-card"');
|
||||
expect(corePageSources.AlertsPage).toContain('<Card className={`v2-alert-inspector');
|
||||
expect(corePageSources.AlertsPage).toContain('className="v2-alert-navigation"');
|
||||
expect(corePageSources.AlertsPage).toContain('<SideSheet\n className="v2-alert-filter-sidesheet"');
|
||||
expect(corePageSources.AlertsPage).toContain('<SideSheet\n className="v2-alert-detail-sidesheet"');
|
||||
expect(corePageSources.AlertsPage).toContain('className="v2-alert-event-table"');
|
||||
|
||||
Reference in New Issue
Block a user