import { describe, it, expect } from 'vitest'; import fs from 'fs'; import path from 'path'; describe('Legal Pages Content Validation', () => { const deAgbPath = path.join(process.cwd(), 'content', 'de', 'agb.mdx'); const enTermsPath = path.join(process.cwd(), 'content', 'en', 'agb.mdx'); it('should contain highly professional B2B sections in German AGB', () => { const content = fs.readFileSync(deAgbPath, 'utf8'); expect(content).toContain('title: "Allgemeine Geschäftsbedingungen"'); expect(content).toContain('## 1. Geltungsbereich und Vertragsabschluss'); expect(content).toContain('## 2. Leistungsumfang und Mitwirkungspflichten'); expect(content).toContain('## 3. Ausführungsfristen, Behinderung und Bauverzögerungen'); expect(content).toContain('## 4. Abnahme, Gefahrübergang und Gewährleistung'); expect(content).toContain('## 5. Preise, Abschlagszahlungen und Zahlungsbedingungen'); expect(content).toContain('## 6. Eigentumsvorbehalt'); expect(content).toContain('## 7. Haftung und Haftungsbeschränkungen'); expect(content).toContain('## 8. Gerichtsstand und Schlussbestimmungen'); expect(content).toContain('Cottbus'); }); it('should contain professional corresponding B2B sections in English Terms', () => { const content = fs.readFileSync(enTermsPath, 'utf8'); expect(content).toContain('title: "Terms and Conditions"'); expect(content).toContain('## 1. Scope and Conclusion of Contract'); expect(content).toContain('## 2. Scope of Services and Customer Cooperation'); expect(content).toContain('## 3. Execution Deadlines, Obstruction, and Construction Delays'); expect(content).toContain('## 4. Acceptance, Transfer of Risk, and Warranty'); expect(content).toContain('## 5. Prices, Progress Payments, and Payment Terms'); expect(content).toContain('## 6. Retention of Title'); expect(content).toContain('## 7. Liability and Limitations of Liability'); expect(content).toContain('## 8. Place of Jurisdiction and Final Provisions'); expect(content).toContain('Cottbus'); }); });