Some checks failed
CI - Lint, Typecheck & Test / quality-assurance (pull_request) Has been cancelled
Build & Deploy / 🔍 Prepare (push) Successful in 21s
Build & Deploy / 🧪 QA (push) Successful in 56s
Build & Deploy / 🏗️ Build (push) Successful in 1m37s
Build & Deploy / 🚀 Deploy (push) Successful in 27s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 42s
Build & Deploy / 🔔 Notify (push) Successful in 2s
39 lines
2.1 KiB
TypeScript
39 lines
2.1 KiB
TypeScript
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');
|
|
});
|
|
});
|