feat: unify filter workbenches
This commit is contained in:
@@ -189,7 +189,8 @@ describe('V2 production entry', () => {
|
||||
expect(corePageSources.AlertsPage).toContain('<Card className={`v2-alert-inspector');
|
||||
expect(corePageSources.AlertsPage).toContain('<WorkspaceCommandBar');
|
||||
expect(corePageSources.AlertsPage).toContain('className="v2-alert-navigation v2-alert-command-bar"');
|
||||
expect(corePageSources.AlertsPage).toContain('<SideSheet\n className="v2-alert-filter-sidesheet"');
|
||||
expect(corePageSources.AlertsPage).toContain('<WorkspaceSideSheet\n className="v2-alert-filter-sidesheet"');
|
||||
expect(corePageSources.AlertsPage).toContain('variant="filter"');
|
||||
expect(corePageSources.AlertsPage).toContain('<WorkspaceDetailSideSheet\n className="v2-alert-detail-sidesheet"');
|
||||
expect(corePageSources.AlertsPage).toContain('<WorkspaceSideSheet\n className="v2-alert-rule-editor-sidesheet"');
|
||||
expect(corePageSources.AlertsPage).toContain('variant="editor"');
|
||||
@@ -339,7 +340,9 @@ describe('V2 production entry', () => {
|
||||
expect(corePageSources.OperationsPage).toContain('<Card className="v2-source-audit"');
|
||||
expect(corePageSources.OperationsPage).toContain('className="v2-source-table"');
|
||||
expect(corePageSources.OperationsPage).toContain('<Table');
|
||||
expect(corePageSources.OperationsPage).toContain('<SideSheet');
|
||||
expect(corePageSources.OperationsPage).toContain('<MobileFilterSheet');
|
||||
expect(corePageSources.OperationsPage).not.toContain('<SideSheet');
|
||||
expect(corePageSources.OperationsPage).toContain('className="v2-source-mobile-filter-empty"');
|
||||
expect(corePageSources.OperationsPage).toContain('<WorkspaceSideSheet');
|
||||
expect(corePageSources.OperationsPage).toContain('v2-source-policy-sidesheet');
|
||||
expect(corePageSources.OperationsPage).toContain('className={`v2-source-mobile-card');
|
||||
@@ -412,7 +415,10 @@ describe('V2 production entry', () => {
|
||||
expect(corePageSources.StatisticsPage).toContain('<MobileFilterToggle');
|
||||
expect(corePageSources.StatisticsPage).toContain('<MobileFilterSheet');
|
||||
expect(mobileFilterSheetSource).toContain('placement="bottom"');
|
||||
for (const name of ['AccessPage', 'AlertsPage', 'HistoryPage', 'StatisticsPage', 'UsersPage']) {
|
||||
expect(mobileFilterSheetSource).toContain('<WorkspaceSideSheet');
|
||||
expect(mobileFilterSheetSource).toContain('variant="filter"');
|
||||
expect(mobileFilterSheetSource).not.toContain('<SideSheet');
|
||||
for (const name of ['AccessPage', 'AlertsPage', 'HistoryPage', 'OperationsPage', 'StatisticsPage', 'UsersPage']) {
|
||||
expect(corePageSources[name]).toContain("from '../shared/MobileFilterSheet'");
|
||||
expect(corePageSources[name]).toContain('<MobileFilterSheet');
|
||||
}
|
||||
@@ -424,7 +430,8 @@ describe('V2 production entry', () => {
|
||||
expect(workspaceSideSheetSource).toContain("from '@douyinfe/semi-ui'");
|
||||
expect(workspaceSideSheetSource).toContain('<SideSheet');
|
||||
expect(workspaceSideSheetSource).toContain('className={sheetClassName}');
|
||||
expect(workspaceStyles).toContain('.v2-workspace-config-sidesheet .semi-sidesheet-inner {');
|
||||
expect(workspaceStyles).toContain(':is(.v2-workspace-config-sidesheet, .v2-workspace-filter-sidesheet) .semi-sidesheet-inner {');
|
||||
expect(workspaceStyles).toContain('.v2-workspace-filter-sidesheet .v2-workspace-config-title-icon {');
|
||||
expect(workspaceStyles).toContain('.v2-workspace-config-summary {');
|
||||
expect(workspaceStyles).toContain('.v2-workspace-config-footer {');
|
||||
expect(vehicleSearchSource).toContain('<MobileFilterSheet');
|
||||
|
||||
Reference in New Issue
Block a user