feat: unify global action workbenches
This commit is contained in:
@@ -31,6 +31,7 @@ const vehicleCandidateListSource = readFileSync(resolve(process.cwd(), 'src/v2/s
|
||||
const recoveryActionsSource = readFileSync(resolve(process.cwd(), 'src/v2/shared/RecoveryActions.tsx'), 'utf8');
|
||||
const detailTriggerRowSource = readFileSync(resolve(process.cwd(), 'src/v2/shared/detailTriggerRow.ts'), 'utf8');
|
||||
const appShellSource = readFileSync(resolve(process.cwd(), 'src/v2/layout/AppShell.tsx'), 'utf8');
|
||||
const vehicleActionsSource = readFileSync(resolve(process.cwd(), 'src/v2/pages/VehicleActions.tsx'), 'utf8');
|
||||
const authGateSource = readFileSync(resolve(process.cwd(), 'src/v2/auth/AuthGate.tsx'), 'utf8');
|
||||
const routeBoundarySource = readFileSync(resolve(process.cwd(), 'src/v2/routing/RouteBoundary.tsx'), 'utf8');
|
||||
const fleetMapSource = readFileSync(resolve(process.cwd(), 'src/v2/map/FleetMap.tsx'), 'utf8');
|
||||
@@ -581,6 +582,13 @@ describe('V2 production entry', () => {
|
||||
expect(appShellSource).toContain('<Layout className="v2-shell">');
|
||||
expect(appShellSource).toContain('<Nav className="v2-navigation"');
|
||||
expect(appShellSource).toContain('className="v2-mobile-more-sidesheet"');
|
||||
expect(appShellSource.match(/<WorkspaceSideSheet/g)).toHaveLength(2);
|
||||
expect(appShellSource).not.toContain('<SideSheet');
|
||||
expect(appShellSource).not.toContain('useSideSheetA11y');
|
||||
expect(vehicleActionsSource).toContain('<WorkspaceSideSheet');
|
||||
expect(vehicleActionsSource).toContain('variant="action"');
|
||||
expect(vehicleActionsSource).not.toContain('<SideSheet');
|
||||
expect(vehicleActionsSource).not.toContain('useSideSheetA11y');
|
||||
expect(appShellSource).toContain('className="v2-password-modal"');
|
||||
expect(appShellSource.match(/<PasswordInput/g)).toHaveLength(3);
|
||||
expect(authGateSource.match(/<PasswordInput/g)).toHaveLength(2);
|
||||
|
||||
Reference in New Issue
Block a user