feat(legal): write comprehensive B2B AGB and Terms and Conditions pages
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Successful in 1m25s
Build & Deploy / 🏗️ Build (push) Successful in 2m51s
Build & Deploy / 🚀 Deploy (push) Failing after 24s
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Successful in 1m25s
Build & Deploy / 🏗️ Build (push) Successful in 2m51s
Build & Deploy / 🚀 Deploy (push) Failing after 24s
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s
This commit is contained in:
38
tests/legal-pages.test.ts
Normal file
38
tests/legal-pages.test.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
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', 'terms.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');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user