import { TestBuzzTrailLoader } from './test-loader'; describe('BuzzTrail Test Configurations', () => { test('should load ACCU configuration', async () => { const config = await TestBuzzTrailLoader.loadTestConfig('accu.co.uk'); expect(config.domain).toBe('accu.co.uk'); expect(config.siteName).toBe('ACCU'); expect(config.offering.offeringType).toBe('professional_development'); expect(config.payment.paysForVideo).toBe(true); expect(config.payment.currency).toBe('GBP'); }); test('should load JMLSG configuration', async () => { const config = await TestBuzzTrailLoader.loadTestConfig('jmlsg.org.uk'); expect(config.domain).toBe('jmlsg.org.uk'); expect(config.siteName).toBe('JMLSG'); expect(config.offering.offeringType).toBe('compliance_guidance'); expect(config.payment.paysForVideo).toBe(true); expect(config.payment.paysForVoice).toBe(false); }); test('should load MooCar configuration', async () => { const config = await TestBuzzTrailLoader.loadTestConfig('moocar.com.au'); expect(config.domain).toBe('moocar.com.au'); expect(config.siteName).toBe('MooCar'); expect(config.offering.offeringType).toBe('automotive_marketplace'); expect(config.payment.paysForVideo).toBe(true); expect(config.payment.currency).toBe('AUD'); }); test('should return default config for unknown domain', async () => { const config = await TestBuzzTrailLoader.loadTestConfig('unknown-site.com'); expect(config.domain).toBe('unknown-site.com'); expect(config.payment.paysForVideo).toBe(false); expect(config.payment.currency).toBe('USD'); }); test('should list test domains', async () => { const domains = await TestBuzzTrailLoader.getTestDomains(); expect(domains).toContain('accu.co.uk'); expect(domains).toContain('jmlsg.org.uk'); expect(domains).toContain('moocar.com.au'); }); test('should check if domain has test config', async () => { const hasAccu = await TestBuzzTrailLoader.hasTestConfig('accu.co.uk'); const hasUnknown = await TestBuzzTrailLoader.hasTestConfig('unknown-site.com'); expect(hasAccu).toBe(true); expect(hasUnknown).toBe(false); }); });