Datasets:
Download web/klavrium.example/tests/static/content.scripted.spec.ts from Qwen/RecreationBench: direct link, hf CLI and curl.
- Browser
- Download file 185 kB
-
https://huggingface.co/datasets/Qwen/RecreationBench/resolve/main/web/klavrium.example/tests/static/content.scripted.spec.ts
- Command line
-
hf download hf://datasets/Qwen/RecreationBench/web/klavrium.example/tests/static/content.scripted.spec.ts
-
curl -L -o content.scripted.spec.ts https://huggingface.co/datasets/Qwen/RecreationBench/resolve/main/web/klavrium.example/tests/static/content.scripted.spec.ts
185 kB
| import { test, expect } from '@playwright/test'; | |
| test.describe('Functional - homepage', () => { | |
| test('homepage: title matches GT', async ({ page }) => { | |
| await page.goto('/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('klavrium'); | |
| }); | |
| }); | |
| test.describe('Functional - blog', () => { | |
| test('blog: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('klavrium blog'); | |
| }); | |
| test('blog: h1 "Cache tuning for modules"', async ({ page }) => { | |
| await page.goto('/blog/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cache tuning for modules' || t.startsWith('Cache tuning for modules'))).toBeTruthy(); | |
| }); | |
| test('blog: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog: h2 "Get email updates and be the f"', async ({ page }) => { | |
| await page.goto('/blog/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get email updates and be the first to know' || t.startsWith('Get email updates and be the first to know'))).toBeTruthy(); | |
| }); | |
| test('blog: h3 "Klavrium 0.19: faster runs, fr"', async ({ page }) => { | |
| await page.goto('/blog/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Klavrium 0.19: faster runs, fresh APIs, ship an agent!' || t.startsWith('Klavrium 0.19: faster runs, fresh APIs, ship an agent!'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - brand', () => { | |
| test('brand: title matches GT', async ({ page }) => { | |
| await page.goto('/brand/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('brand'); | |
| }); | |
| test('brand: h1 "Brand Guidelines"', async ({ page }) => { | |
| await page.goto('/brand/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Brand Guidelines' || t.startsWith('Brand Guidelines'))).toBeTruthy(); | |
| }); | |
| test('brand: h2 "Our logo"', async ({ page }) => { | |
| await page.goto('/brand/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Our logo' || t.startsWith('Our logo'))).toBeTruthy(); | |
| }); | |
| test('brand: h2 "Join the community"', async ({ page }) => { | |
| await page.goto('/brand/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join the community' || t.startsWith('Join the community'))).toBeTruthy(); | |
| }); | |
| test('brand: h2 "Subscribe for product updates "', async ({ page }) => { | |
| await page.goto('/brand/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Subscribe for product updates and hear it here first.' || t.startsWith('Subscribe for product updates and hear it here first.'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - changelog', () => { | |
| test('changelog: title matches GT', async ({ page }) => { | |
| await page.goto('/changelog/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('changelog'); | |
| }); | |
| test('changelog: h3 "Modules v2"', async ({ page }) => { | |
| await page.goto('/changelog/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Modules v2' || t.startsWith('Modules v2'))).toBeTruthy(); | |
| }); | |
| test('changelog: h3 "Cloud Checks"', async ({ page }) => { | |
| await page.goto('/changelog/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cloud Checks' || t.startsWith('Cloud Checks'))).toBeTruthy(); | |
| }); | |
| test('changelog: h3 "Faster klavrium connect"', async ({ page }) => { | |
| await page.goto('/changelog/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Faster klavrium connect' || t.startsWith('Faster klavrium connect'))).toBeTruthy(); | |
| }); | |
| test('changelog: h3 "A lockfile for your CI"', async ({ page }) => { | |
| await page.goto('/changelog/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'A lockfile for your CI' || t.startsWith('A lockfile for your CI'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - cloud', () => { | |
| test('cloud: title matches GT', async ({ page }) => { | |
| await page.goto('/cloud/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('klavrium cloud'); | |
| }); | |
| test('cloud: h2 "A test broke. Where did the wo"', async ({ page }) => { | |
| await page.goto('/cloud/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'A test broke. Where did the workflow fail?' || t.startsWith('A test broke. Where did the workflow fail?'))).toBeTruthy(); | |
| }); | |
| test('cloud: h2 "Operational Insights"', async ({ page }) => { | |
| await page.goto('/cloud/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Operational Insights' || t.startsWith('Operational Insights'))).toBeTruthy(); | |
| }); | |
| test('cloud: h2 "Clear pricing that scales as y"', async ({ page }) => { | |
| await page.goto('/cloud/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Clear pricing that scales as you grow' || t.startsWith('Clear pricing that scales as you grow'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - community', () => { | |
| test('community: title matches GT', async ({ page }) => { | |
| await page.goto('/community/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('community'); | |
| }); | |
| test('community: h1 "Explore Our Community"', async ({ page }) => { | |
| await page.goto('/community/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Explore Our Community' || t.startsWith('Explore Our Community'))).toBeTruthy(); | |
| }); | |
| test('community: h2 "Get email updates, be the firs"', async ({ page }) => { | |
| await page.goto('/community/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get email updates, be the first to know' || t.startsWith('Get email updates, be the first to know'))).toBeTruthy(); | |
| }); | |
| test('community: h2 "Community Programs"', async ({ page }) => { | |
| await page.goto('/community/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Community Programs' || t.startsWith('Community Programs'))).toBeTruthy(); | |
| }); | |
| test('community: h2 "Get Involved"', async ({ page }) => { | |
| await page.goto('/community/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get Involved' || t.startsWith('Get Involved'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - community_sdk', () => { | |
| test('community_sdk: title matches GT', async ({ page }) => { | |
| await page.goto('/community-sdk/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('community sdks'); | |
| }); | |
| test('community_sdk: h1 "Klavrium Community SDKs"', async ({ page }) => { | |
| await page.goto('/community-sdk/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Klavrium Community SDKs' || t.startsWith('Klavrium Community SDKs'))).toBeTruthy(); | |
| }); | |
| test('community_sdk: h2 "Choose your Klavrium SDK"', async ({ page }) => { | |
| await page.goto('/community-sdk/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Choose your Klavrium SDK' || t.startsWith('Choose your Klavrium SDK'))).toBeTruthy(); | |
| }); | |
| test('community_sdk: h2 "Klavrium SDK Levels"', async ({ page }) => { | |
| await page.goto('/community-sdk/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Klavrium SDK Levels' || t.startsWith('Klavrium SDK Levels'))).toBeTruthy(); | |
| }); | |
| test('community_sdk: h2 "Klavrium Community SDK Maintai"', async ({ page }) => { | |
| await page.goto('/community-sdk/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Klavrium Community SDK Maintainers' || t.startsWith('Klavrium Community SDK Maintainers'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - klavrium_love', () => { | |
| test('klavrium_love: title matches GT', async ({ page }) => { | |
| await page.goto('/klavrium-love/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('klavrium love'); | |
| }); | |
| test('klavrium_love: h2 "Join the community"', async ({ page }) => { | |
| await page.goto('/klavrium-love/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join the community' || t.startsWith('Join the community'))).toBeTruthy(); | |
| }); | |
| test('klavrium_love: h2 "Subscribe for updates and be t"', async ({ page }) => { | |
| await page.goto('/klavrium-love/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Subscribe for updates and be the first to know.' || t.startsWith('Subscribe for updates and be the first to know.'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - deep_dives', () => { | |
| test('deep_dives: title matches GT', async ({ page }) => { | |
| await page.goto('/deep-dives/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('engineering deep dives'); | |
| }); | |
| test('deep_dives: h1 "Upcoming Webinars"', async ({ page }) => { | |
| await page.goto('/deep-dives/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Upcoming Webinars' || t.startsWith('Upcoming Webinars'))).toBeTruthy(); | |
| }); | |
| test('deep_dives: h2 "Past Webinars"', async ({ page }) => { | |
| await page.goto('/deep-dives/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Past Webinars' || t.startsWith('Past Webinars'))).toBeTruthy(); | |
| }); | |
| test('deep_dives: h2 "Join the community"', async ({ page }) => { | |
| await page.goto('/deep-dives/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join the community' || t.startsWith('Join the community'))).toBeTruthy(); | |
| }); | |
| test('deep_dives: h2 "Get email updates and be the f"', async ({ page }) => { | |
| await page.goto('/deep-dives/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get email updates and be the first to know' || t.startsWith('Get email updates and be the first to know'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - event', () => { | |
| test('event: title matches GT', async ({ page }) => { | |
| await page.goto('/event/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('events'); | |
| }); | |
| test('event: h1 "Klavrium Events"', async ({ page }) => { | |
| await page.goto('/event/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Klavrium Events' || t.startsWith('Klavrium Events'))).toBeTruthy(); | |
| }); | |
| test('event: h2 "Upcoming Events"', async ({ page }) => { | |
| await page.goto('/event/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Upcoming Events' || t.startsWith('Upcoming Events'))).toBeTruthy(); | |
| }); | |
| test('event: h2 "Join the community"', async ({ page }) => { | |
| await page.goto('/event/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join the community' || t.startsWith('Join the community'))).toBeTruthy(); | |
| }); | |
| test('event: h2 "Subscribe for updates and hear"', async ({ page }) => { | |
| await page.goto('/event/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Subscribe for updates and hear the news.' || t.startsWith('Subscribe for updates and hear the news.'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - legal_pages_privacy_policy', () => { | |
| test('legal_pages_privacy_policy: title matches GT', async ({ page }) => { | |
| await page.goto('/legal_pages/privacy-policy/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('privacy policy'); | |
| }); | |
| test('legal_pages_privacy_policy: h2 "Location-Specific Disclosures"', async ({ page }) => { | |
| await page.goto('/legal_pages/privacy-policy/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Location-Specific Disclosures' || t.startsWith('Location-Specific Disclosures'))).toBeTruthy(); | |
| }); | |
| test('legal_pages_privacy_policy: h2 "How We Define Personal."', async ({ page }) => { | |
| await page.goto('/legal_pages/privacy-policy/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How We Define Personal.' || t.startsWith('How We Define Personal.'))).toBeTruthy(); | |
| }); | |
| test('legal_pages_privacy_policy: h2 "How We Collect Personal Inform"', async ({ page }) => { | |
| await page.goto('/legal_pages/privacy-policy/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How We Collect Personal Information' || t.startsWith('How We Collect Personal Information'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - legal_pages_terms_of_service', () => { | |
| test('legal_pages_terms_of_service: title matches GT', async ({ page }) => { | |
| await page.goto('/legal_pages/terms-of-service/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('terms of service'); | |
| }); | |
| test('legal_pages_terms_of_service: h2 "1. Changes to these Terms."', async ({ page }) => { | |
| await page.goto('/legal_pages/terms-of-service/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === '1. Changes to these Terms.' || t.startsWith('1. Changes to these Terms.'))).toBeTruthy(); | |
| }); | |
| test('legal_pages_terms_of_service: h2 "2. Accounts"', async ({ page }) => { | |
| await page.goto('/legal_pages/terms-of-service/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === '2. Accounts' || t.startsWith('2. Accounts'))).toBeTruthy(); | |
| }); | |
| test('legal_pages_terms_of_service: h2 "3. Provision of the Services"', async ({ page }) => { | |
| await page.goto('/legal_pages/terms-of-service/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === '3. Provision of the Services' || t.startsWith('3. Provision of the Services'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - legal_pages_trademark_guidelines', () => { | |
| test('legal_pages_trademark_guidelines: title matches GT', async ({ page }) => { | |
| await page.goto('/legal_pages/trademark-guidelines/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('trademark guidelines'); | |
| }); | |
| test('legal_pages_trademark_guidelines: h2 "Trademark FAQs"', async ({ page }) => { | |
| await page.goto('/legal_pages/trademark-guidelines/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Trademark FAQs' || t.startsWith('Trademark FAQs'))).toBeTruthy(); | |
| }); | |
| test('legal_pages_trademark_guidelines: h2 "Klavrium Trademark Policy"', async ({ page }) => { | |
| await page.goto('/legal_pages/trademark-guidelines/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Klavrium Trademark Policy' || t.startsWith('Klavrium Trademark Policy'))).toBeTruthy(); | |
| }); | |
| test('legal_pages_trademark_guidelines: h3 "May I use the Klavrium logo or"', async ({ page }) => { | |
| await page.goto('/legal_pages/trademark-guidelines/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'May I use the Klavrium logo or other assets from this website on my own site or assets?' || t.startsWith('May I use the Klavrium logo or other assets from this website on my own site or assets?'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - partners', () => { | |
| test('partners: title matches GT', async ({ page }) => { | |
| await page.goto('/partners/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('partners'); | |
| }); | |
| test('partners: h1 "Klavrium Partners"', async ({ page }) => { | |
| await page.goto('/partners/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Klavrium Partners' || t.startsWith('Klavrium Partners'))).toBeTruthy(); | |
| }); | |
| test('partners: h2 "Consulting Partners"', async ({ page }) => { | |
| await page.goto('/partners/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Consulting Partners' || t.startsWith('Consulting Partners'))).toBeTruthy(); | |
| }); | |
| test('partners: h2 "Technology Partners"', async ({ page }) => { | |
| await page.goto('/partners/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Technology Partners' || t.startsWith('Technology Partners'))).toBeTruthy(); | |
| }); | |
| test('partners: h2 "Klavrium Technology Partner"', async ({ page }) => { | |
| await page.goto('/partners/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Klavrium Technology Partner' || t.startsWith('Klavrium Technology Partner'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_10k_github_stars', () => { | |
| test('blog_10k_github_stars: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/10k-github-stars/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('our first 10k source stars'); | |
| }); | |
| test('blog_10k_github_stars: h1 "Our First 10K Source Stars"', async ({ page }) => { | |
| await page.goto('/blog/10k-github-stars/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Our First 10K Source Stars' || t.startsWith('Our First 10K Source Stars'))).toBeTruthy(); | |
| }); | |
| test('blog_10k_github_stars: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/10k-github-stars/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_10k_github_stars: h2 "Subscribe for updates and be t"', async ({ page }) => { | |
| await page.goto('/blog/10k-github-stars/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Subscribe for updates and be the first to know.' || t.startsWith('Subscribe for updates and be the first to know.'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_2024_klavrium_commanders', () => { | |
| test('blog_2024_klavrium_commanders: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/2024-klavrium-commanders/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('meet the 2024 klavrium commanders'); | |
| }); | |
| test('blog_2024_klavrium_commanders: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/2024-klavrium-commanders/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_2024_klavrium_commanders: h2 "Sign up for email updates and "', async ({ page }) => { | |
| await page.goto('/blog/2024-klavrium-commanders/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sign up for email updates and stay ahead' || t.startsWith('Sign up for email updates and stay ahead'))).toBeTruthy(); | |
| }); | |
| test('blog_2024_klavrium_commanders: h4 "2024 Klavrium Commanders"', async ({ page }) => { | |
| await page.goto('/blog/2024-klavrium-commanders/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === '2024 Klavrium Commanders' || t.startsWith('2024 Klavrium Commanders'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_2024_highlights', () => { | |
| test('blog_2024_highlights: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/2024-highlights/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('gaining traction'); | |
| }); | |
| test('blog_2024_highlights: h1 "Gaining Traction: 2024 Milesto"', async ({ page }) => { | |
| await page.goto('/blog/2024-highlights/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Gaining Traction: 2024 Milestones and the Road Ahead in 2025' || t.startsWith('Gaining Traction: 2024 Milestones and the Road Ahead in 2025'))).toBeTruthy(); | |
| }); | |
| test('blog_2024_highlights: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/2024-highlights/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_2024_highlights: h2 "Get email updates and be the f"', async ({ page }) => { | |
| await page.goto('/blog/2024-highlights/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get email updates and be the first to hear' || t.startsWith('Get email updates and be the first to hear'))).toBeTruthy(); | |
| }); | |
| test('blog_2024_highlights: h3 "The Technology"', async ({ page }) => { | |
| await page.goto('/blog/2024-highlights/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The Technology' || t.startsWith('The Technology'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_a_shell_for_the_container_age_introducing_klavrium_shell', () => { | |
| test('blog_a_shell_for_the_container_age_introducing_klavrium_shell: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/a-shell-for-the-container-age-introducing-klavrium-shell/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('rethinking the shell for containers'); | |
| }); | |
| test('blog_a_shell_for_the_container_age_introducing_klavrium_shell: h1 "Rethinking the Shell for Conta"', async ({ page }) => { | |
| await page.goto('/blog/a-shell-for-the-container-age-introducing-klavrium-shell/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Rethinking the Shell for Containers: Meet Klavrium Shell' || t.startsWith('Rethinking the Shell for Containers: Meet Klavrium Shell'))).toBeTruthy(); | |
| }); | |
| test('blog_a_shell_for_the_container_age_introducing_klavrium_shell: h2 "Join the movement"', async ({ page }) => { | |
| await page.goto('/blog/a-shell-for-the-container-age-introducing-klavrium-shell/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join the movement' || t.startsWith('Join the movement'))).toBeTruthy(); | |
| }); | |
| test('blog_a_shell_for_the_container_age_introducing_klavrium_shell: h2 "Get updates by email and be fi"', async ({ page }) => { | |
| await page.goto('/blog/a-shell-for-the-container-age-introducing-klavrium-shell/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get updates by email and be first to know' || t.startsWith('Get updates by email and be first to know'))).toBeTruthy(); | |
| }); | |
| test('blog_a_shell_for_the_container_age_introducing_klavrium_shell: h4 "A companion to your everyday s"', async ({ page }) => { | |
| await page.goto('/blog/a-shell-for-the-container-age-introducing-klavrium-shell/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'A companion to your everyday shell' || t.startsWith('A companion to your everyday shell'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_a_unified_approach_to_fpga_firmware_management_and_distribution_with_klavrium', () => { | |
| test('blog_a_unified_approach_to_fpga_firmware_management_and_distribution_with_klavrium: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/a-unified-approach-to-fpga-firmware-management-and-distribution-with-klavrium/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('managing and distributing fpga firmware '); | |
| }); | |
| test('blog_a_unified_approach_to_fpga_firmware_management_and_distribution_with_klavrium: h1 "Managing and Distributing FPGA"', async ({ page }) => { | |
| await page.goto('/blog/a-unified-approach-to-fpga-firmware-management-and-distribution-with-klavrium/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Managing and Distributing FPGA Firmware Through a Single Klavrium Pipeline' || t.startsWith('Managing and Distributing FPGA Firmware Through a Single Klavrium Pipeline'))).toBeTruthy(); | |
| }); | |
| test('blog_a_unified_approach_to_fpga_firmware_management_and_distribution_with_klavrium: h2 "Come build with us"', async ({ page }) => { | |
| await page.goto('/blog/a-unified-approach-to-fpga-firmware-management-and-distribution-with-klavrium/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Come build with us' || t.startsWith('Come build with us'))).toBeTruthy(); | |
| }); | |
| test('blog_a_unified_approach_to_fpga_firmware_management_and_distribution_with_klavrium: h2 "Get updates by email and hear "', async ({ page }) => { | |
| await page.goto('/blog/a-unified-approach-to-fpga-firmware-management-and-distribution-with-klavrium/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get updates by email and hear it here first' || t.startsWith('Get updates by email and hear it here first'))).toBeTruthy(); | |
| }); | |
| test('blog_a_unified_approach_to_fpga_firmware_management_and_distribution_with_klavrium: h3 "Why Building FPGA Firmware Is "', async ({ page }) => { | |
| await page.goto('/blog/a-unified-approach-to-fpga-firmware-management-and-distribution-with-klavrium/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Why Building FPGA Firmware Is So Difficult' || t.startsWith('Why Building FPGA Firmware Is So Difficult'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_adopting_monorepo_strategy', () => { | |
| test('blog_adopting_monorepo_strategy: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/adopting-monorepo-strategy/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('adopting a monorepo strategy'); | |
| }); | |
| test('blog_adopting_monorepo_strategy: h1 "Adopting a Monorepo Strategy: "', async ({ page }) => { | |
| await page.goto('/blog/adopting-monorepo-strategy/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Adopting a Monorepo Strategy: Nubo’s Experience' || t.startsWith('Adopting a Monorepo Strategy: Nubo’s Experience'))).toBeTruthy(); | |
| }); | |
| test('blog_adopting_monorepo_strategy: h2 "Join the community"', async ({ page }) => { | |
| await page.goto('/blog/adopting-monorepo-strategy/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join the community' || t.startsWith('Join the community'))).toBeTruthy(); | |
| }); | |
| test('blog_adopting_monorepo_strategy: h2 "Sign up for updates and stay i"', async ({ page }) => { | |
| await page.goto('/blog/adopting-monorepo-strategy/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sign up for updates and stay in the loop' || t.startsWith('Sign up for updates and stay in the loop'))).toBeTruthy(); | |
| }); | |
| test('blog_adopting_monorepo_strategy: h3 "Consolidating Interconnected R"', async ({ page }) => { | |
| await page.goto('/blog/adopting-monorepo-strategy/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Consolidating Interconnected Repositories and CI Pipelines into a Monorepo' || t.startsWith('Consolidating Interconnected Repositories and CI Pipelines into a Monorepo'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_agent_container_use', () => { | |
| test('blog_agent_container_use: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/agent-container-use/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('taming the agent swarm'); | |
| }); | |
| test('blog_agent_container_use: h1 "Taming the Agent Swarm: Runnin"', async ({ page }) => { | |
| await page.goto('/blog/agent-container-use/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Taming the Agent Swarm: Running Many Coding Agents in Parallel without Wrecking Everything' || t.startsWith('Taming the Agent Swarm: Running Many Coding Agents in Parallel without Wrecking Everything'))).toBeTruthy(); | |
| }); | |
| test('blog_agent_container_use: h2 "Agent Sandbox for agents: A se"', async ({ page }) => { | |
| await page.goto('/blog/agent-container-use/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Agent Sandbox for agents: A sealed dev environment for every single task' || t.startsWith('Agent Sandbox for agents: A sealed dev environment for every single task'))).toBeTruthy(); | |
| }); | |
| test('blog_agent_container_use: h2 "Powered by Klavrium"', async ({ page }) => { | |
| await page.goto('/blog/agent-container-use/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Powered by Klavrium' || t.startsWith('Powered by Klavrium'))).toBeTruthy(); | |
| }); | |
| test('blog_agent_container_use: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/agent-container-use/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_airbyte_use_case', () => { | |
| test('blog_airbyte_use_case: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/airbyte-use-case/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('klavrium cloud'); | |
| }); | |
| test('blog_airbyte_use_case: h1 "Klavrium Cloud: Running 100% F"', async ({ page }) => { | |
| await page.goto('/blog/airbyte-use-case/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Klavrium Cloud: Running 100% Faster, Spending 75% Less' || t.startsWith('Klavrium Cloud: Running 100% Faster, Spending 75% Less'))).toBeTruthy(); | |
| }); | |
| test('blog_airbyte_use_case: h2 "Join the community"', async ({ page }) => { | |
| await page.goto('/blog/airbyte-use-case/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join the community' || t.startsWith('Join the community'))).toBeTruthy(); | |
| }); | |
| test('blog_airbyte_use_case: h2 "Get email updates and be the f"', async ({ page }) => { | |
| await page.goto('/blog/airbyte-use-case/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get email updates and be the first to know' || t.startsWith('Get email updates and be the first to know'))).toBeTruthy(); | |
| }); | |
| test('blog_airbyte_use_case: h3 "Legacy CI: A Tangle of YAML an"', async ({ page }) => { | |
| await page.goto('/blog/airbyte-use-case/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Legacy CI: A Tangle of YAML and Shell Scripts' || t.startsWith('Legacy CI: A Tangle of YAML and Shell Scripts'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_argo_cd_kubernetes', () => { | |
| test('blog_argo_cd_kubernetes: h1 "On-Demand Klavrium Engines wit"', async ({ page }) => { | |
| await page.goto('/blog/argo-cd-kubernetes/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'On-Demand Klavrium Engines with Argo CD, EKS, and Karpenter' || t.startsWith('On-Demand Klavrium Engines with Argo CD, EKS, and Karpenter'))).toBeTruthy(); | |
| }); | |
| test('blog_argo_cd_kubernetes: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/argo-cd-kubernetes/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_argo_cd_kubernetes: h2 "Get email updates and be first"', async ({ page }) => { | |
| await page.goto('/blog/argo-cd-kubernetes/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get email updates and be first to know' || t.startsWith('Get email updates and be first to know'))).toBeTruthy(); | |
| }); | |
| test('blog_argo_cd_kubernetes: h3 "Introduction"', async ({ page }) => { | |
| await page.goto('/blog/argo-cd-kubernetes/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Introduction' || t.startsWith('Introduction'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_automate_your_ci_fixes_self_healing_pipelines_with_ai_agents', () => { | |
| test('blog_automate_your_ci_fixes_self_healing_pipelines_with_ai_agents: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/automate-your-ci-fixes-self-healing-pipelines-with-ai-agents/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('ship self'); | |
| }); | |
| test('blog_automate_your_ci_fixes_self_healing_pipelines_with_ai_agents: h1 "Self-Healing CI: Let AI Agents"', async ({ page }) => { | |
| await page.goto('/blog/automate-your-ci-fixes-self-healing-pipelines-with-ai-agents/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Self-Healing CI: Let AI Agents Repair Your Pipeline Failures' || t.startsWith('Self-Healing CI: Let AI Agents Repair Your Pipeline Failures'))).toBeTruthy(); | |
| }); | |
| test('blog_automate_your_ci_fixes_self_healing_pipelines_with_ai_agents: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/automate-your-ci-fixes-self-healing-pipelines-with-ai-agents/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_automate_your_ci_fixes_self_healing_pipelines_with_ai_agents: h2 "Get email updates and be the f"', async ({ page }) => { | |
| await page.goto('/blog/automate-your-ci-fixes-self-healing-pipelines-with-ai-agents/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get email updates and be the first to know' || t.startsWith('Get email updates and be the first to know'))).toBeTruthy(); | |
| }); | |
| test('blog_automate_your_ci_fixes_self_healing_pipelines_with_ai_agents: h4 "Quit Patching CI Breakages by "', async ({ page }) => { | |
| await page.goto('/blog/automate-your-ci-fixes-self-healing-pipelines-with-ai-agents/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quit Patching CI Breakages by Hand: Build an AI Agent with Klavrium' || t.startsWith('Quit Patching CI Breakages by Hand: Build an AI Agent with Klavrium'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_automating_cypress_tests', () => { | |
| test('blog_automating_cypress_tests: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/automating-cypress-tests/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('automating verdine tests with ai'); | |
| }); | |
| test('blog_automating_cypress_tests: h1 "Automating Verdine Tests with "', async ({ page }) => { | |
| await page.goto('/blog/automating-cypress-tests/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Automating Verdine Tests with AI: How Klavrium Drives LLM-Generated End-to-End Tests' || t.startsWith('Automating Verdine Tests with AI: How Klavrium Drives LLM-Generated End-to-End Tests'))).toBeTruthy(); | |
| }); | |
| test('blog_automating_cypress_tests: h2 "Join the community"', async ({ page }) => { | |
| await page.goto('/blog/automating-cypress-tests/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join the community' || t.startsWith('Join the community'))).toBeTruthy(); | |
| }); | |
| test('blog_automating_cypress_tests: h2 "Subscribe for updates and hear"', async ({ page }) => { | |
| await page.goto('/blog/automating-cypress-tests/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Subscribe for updates and hear the news.' || t.startsWith('Subscribe for updates and hear the news.'))).toBeTruthy(); | |
| }); | |
| test('blog_automating_cypress_tests: h4 "The Problem: Writing Tests for"', async ({ page }) => { | |
| await page.goto('/blog/automating-cypress-tests/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The Problem: Writing Tests for Every Code Change' || t.startsWith('The Problem: Writing Tests for Every Code Change'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_aws_codepipelines_with_klavrium', () => { | |
| test('blog_aws_codepipelines_with_klavrium: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/aws-codepipelines-with-klavrium/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('run klavrium on aureus build and aureus '); | |
| }); | |
| test('blog_aws_codepipelines_with_klavrium: h1 "Run Klavrium on Aureus Build a"', async ({ page }) => { | |
| await page.goto('/blog/aws-codepipelines-with-klavrium/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Run Klavrium on Aureus Build and Aureus Pipelines' || t.startsWith('Run Klavrium on Aureus Build and Aureus Pipelines'))).toBeTruthy(); | |
| }); | |
| test('blog_aws_codepipelines_with_klavrium: h2 "Get involved today"', async ({ page }) => { | |
| await page.goto('/blog/aws-codepipelines-with-klavrium/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get involved today' || t.startsWith('Get involved today'))).toBeTruthy(); | |
| }); | |
| test('blog_aws_codepipelines_with_klavrium: h2 "Subscribe for updates and be f"', async ({ page }) => { | |
| await page.goto('/blog/aws-codepipelines-with-klavrium/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Subscribe for updates and be first to know' || t.startsWith('Subscribe for updates and be first to know'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_building_rag_pipelines', () => { | |
| test('blog_building_rag_pipelines: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/building-rag-pipelines/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('constructing a complete rag pipeline to '); | |
| }); | |
| test('blog_building_rag_pipelines: h1 "Constructing a Complete RAG Pi"', async ({ page }) => { | |
| await page.goto('/blog/building-rag-pipelines/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Constructing a Complete RAG Pipeline to Search Local Files, Audio, and Video' || t.startsWith('Constructing a Complete RAG Pipeline to Search Local Files, Audio, and Video'))).toBeTruthy(); | |
| }); | |
| test('blog_building_rag_pipelines: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/building-rag-pipelines/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_building_rag_pipelines: h2 "Get email updates and be the f"', async ({ page }) => { | |
| await page.goto('/blog/building-rag-pipelines/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get email updates and be the first to know' || t.startsWith('Get email updates and be the first to know'))).toBeTruthy(); | |
| }); | |
| test('blog_building_rag_pipelines: h3 "Klavrium for Data Pipelines"', async ({ page }) => { | |
| await page.goto('/blog/building-rag-pipelines/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Klavrium for Data Pipelines' || t.startsWith('Klavrium for Data Pipelines'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_cache_control_for_modules', () => { | |
| test('blog_cache_control_for_modules: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/cache-control-for-modules/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('cache control for modules'); | |
| }); | |
| test('blog_cache_control_for_modules: h1 "Cache control for modules"', async ({ page }) => { | |
| await page.goto('/blog/cache-control-for-modules/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cache control for modules' || t.startsWith('Cache control for modules'))).toBeTruthy(); | |
| }); | |
| test('blog_cache_control_for_modules: h2 "Cache control"', async ({ page }) => { | |
| await page.goto('/blog/cache-control-for-modules/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cache control' || t.startsWith('Cache control'))).toBeTruthy(); | |
| }); | |
| test('blog_cache_control_for_modules: h2 "The four modes"', async ({ page }) => { | |
| await page.goto('/blog/cache-control-for-modules/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The four modes' || t.startsWith('The four modes'))).toBeTruthy(); | |
| }); | |
| test('blog_cache_control_for_modules: h2 "Preserving compatibility"', async ({ page }) => { | |
| await page.goto('/blog/cache-control-for-modules/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Preserving compatibility' || t.startsWith('Preserving compatibility'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_civo_navigate_north_america_recap', () => { | |
| test('blog_civo_navigate_north_america_recap: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/civo-navigate-north-america-recap/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('corva forge north america recap'); | |
| }); | |
| test('blog_civo_navigate_north_america_recap: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/civo-navigate-north-america-recap/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_civo_navigate_north_america_recap: h2 "Get email updates and be the f"', async ({ page }) => { | |
| await page.goto('/blog/civo-navigate-north-america-recap/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get email updates and be the first to hear' || t.startsWith('Get email updates and be the first to hear'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_craft_cms_case_study', () => { | |
| test('blog_craft_cms_case_study: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/craft-cms-case-study/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('inside the cms software factory at looms'); | |
| }); | |
| test('blog_craft_cms_case_study: h1 "Inside the CMS Software Factor"', async ({ page }) => { | |
| await page.goto('/blog/craft-cms-case-study/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Inside the CMS Software Factory at Loomstone CMS' || t.startsWith('Inside the CMS Software Factory at Loomstone CMS'))).toBeTruthy(); | |
| }); | |
| test('blog_craft_cms_case_study: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/craft-cms-case-study/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_craft_cms_case_study: h2 "Get email updates and be the f"', async ({ page }) => { | |
| await page.goto('/blog/craft-cms-case-study/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get email updates and be the first to hear' || t.startsWith('Get email updates and be the first to hear'))).toBeTruthy(); | |
| }); | |
| test('blog_craft_cms_case_study: h3 "The Case for Programmable Buil"', async ({ page }) => { | |
| await page.goto('/blog/craft-cms-case-study/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The Case for Programmable Builds' || t.startsWith('The Case for Programmable Builds'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_cutting_deployment_time', () => { | |
| test('blog_cutting_deployment_time: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/cutting-deployment-time/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('shrinking deployment times from 3 hours '); | |
| }); | |
| test('blog_cutting_deployment_time: h1 "Shrinking Deployment Times fro"', async ({ page }) => { | |
| await page.goto('/blog/cutting-deployment-time/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Shrinking Deployment Times from 3 Hours to 3 Minutes' || t.startsWith('Shrinking Deployment Times from 3 Hours to 3 Minutes'))).toBeTruthy(); | |
| }); | |
| test('blog_cutting_deployment_time: h2 "Come build with us"', async ({ page }) => { | |
| await page.goto('/blog/cutting-deployment-time/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Come build with us' || t.startsWith('Come build with us'))).toBeTruthy(); | |
| }); | |
| test('blog_cutting_deployment_time: h2 "Get updates by email and be th"', async ({ page }) => { | |
| await page.goto('/blog/cutting-deployment-time/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get updates by email and be the first to know.' || t.startsWith('Get updates by email and be the first to know.'))).toBeTruthy(); | |
| }); | |
| test('blog_cutting_deployment_time: h4 "The problem: Slow, hands-on de"', async ({ page }) => { | |
| await page.goto('/blog/cutting-deployment-time/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The problem: Slow, hands-on deployments and sprawling YAML files' || t.startsWith('The problem: Slow, hands-on deployments and sprawling YAML files'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_klavrium_0_12', () => { | |
| test('blog_klavrium_0_12: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-12/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('klavrium 0.12'); | |
| }); | |
| test('blog_klavrium_0_12: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-12/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_0_12: h2 "Get email updates and be first"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-12/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get email updates and be first to hear' || t.startsWith('Get email updates and be first to hear'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_0_12: h3 "Interactive Debugging"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-12/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Interactive Debugging' || t.startsWith('Interactive Debugging'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_klavrium_0_13', () => { | |
| test('blog_klavrium_0_13: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-13/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('klavrium 0.13'); | |
| }); | |
| test('blog_klavrium_0_13: h2 "Meet the community"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-13/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Meet the community' || t.startsWith('Meet the community'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_0_13: h2 "Subscribe for email updates an"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-13/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Subscribe for email updates and hear it here first.' || t.startsWith('Subscribe for email updates and hear it here first.'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_0_13: h3 "First-rate monorepo support"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-13/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'First-rate monorepo support' || t.startsWith('First-rate monorepo support'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_klavrium_0_14', () => { | |
| test('blog_klavrium_0_14: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-14/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('klavrium 0.14'); | |
| }); | |
| test('blog_klavrium_0_14: h2 "Join the community"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-14/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join the community' || t.startsWith('Join the community'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_0_14: h2 "Get email updates and be first"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-14/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get email updates and be first to hear news' || t.startsWith('Get email updates and be first to hear news'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_0_14: h3 "Git credential helpers"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-14/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Git credential helpers' || t.startsWith('Git credential helpers'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_klavrium_0_15', () => { | |
| test('blog_klavrium_0_15: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-15/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('klavrium 0.15'); | |
| }); | |
| test('blog_klavrium_0_15: h1 "Klavrium 0.15: Sharper Errors,"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-15/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Klavrium 0.15: Sharper Errors, Quicker Filesync, Live Metrics and Plenty More…' || t.startsWith('Klavrium 0.15: Sharper Errors, Quicker Filesync, Live Metrics and Plenty More…'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_0_15: h2 "Come build with us"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-15/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Come build with us' || t.startsWith('Come build with us'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_0_15: h2 "Get email updates and be the f"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-15/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get email updates and be the first to know' || t.startsWith('Get email updates and be the first to know'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_0_15: h3 "Better Errors"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-15/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Better Errors' || t.startsWith('Better Errors'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_klavrium_0_16', () => { | |
| test('blog_klavrium_0_16: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-16/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('klavrium 0.16'); | |
| }); | |
| test('blog_klavrium_0_16: h1 "Klavrium 0.16: Havenlock and C"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-16/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Klavrium 0.16: Havenlock and Cryptholm Vault Integrations, Performance Boost, and More' || t.startsWith('Klavrium 0.16: Havenlock and Cryptholm Vault Integrations, Performance Boost, and More'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_0_16: h2 "Come join the crew"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-16/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Come join the crew' || t.startsWith('Come join the crew'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_0_16: h2 "Get email updates and be the f"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-16/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get email updates and be the first to know' || t.startsWith('Get email updates and be the first to know'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_0_16: h4 "Secure Secrets Management in K"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-16/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Secure Secrets Management in Klavrium: Now with Cryptholm Vault and Havenlock' || t.startsWith('Secure Secrets Management in Klavrium: Now with Cryptholm Vault and Havenlock'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_klavrium_0_19', () => { | |
| test('blog_klavrium_0_19: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-19/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('klavrium 0.19'); | |
| }); | |
| test('blog_klavrium_0_19: h1 "Klavrium 0.19: performance, ne"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-19/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Klavrium 0.19: performance, new APIs, build-an-agent!' || t.startsWith('Klavrium 0.19: performance, new APIs, build-an-agent!'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_0_19: h2 "Run Klavrium without Docker"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-19/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Run Klavrium without Docker' || t.startsWith('Run Klavrium without Docker'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_0_19: h2 "Load and save local container "', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-19/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Load and save local container images' || t.startsWith('Load and save local container images'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_0_19: h2 "Changeset API"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-19/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Changeset API' || t.startsWith('Changeset API'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_klavrium_0_2', () => { | |
| test('blog_klavrium_0_2: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-2/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('meridian rising'); | |
| }); | |
| test('blog_klavrium_0_2: h1 "Meridian Rising: Introducing K"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-2/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Meridian Rising: Introducing Klavrium 0.2' || t.startsWith('Meridian Rising: Introducing Klavrium 0.2'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_0_2: h2 "Meet the community"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-2/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Meet the community' || t.startsWith('Meet the community'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_0_2: h2 "Sign up for updates and hear t"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-2/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sign up for updates and hear the news here.' || t.startsWith('Sign up for updates and hear the news here.'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_0_2: h4 "Today we are thrilled to unvei"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-2/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Today we are thrilled to unveil Klavrium 0.2, codename Meridian.' || t.startsWith('Today we are thrilled to unveil Klavrium 0.2, codename Meridian.'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_klavrium_0_5_0', () => { | |
| test('blog_klavrium_0_5_0: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-5-0/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('klavrium 0.5'); | |
| }); | |
| test('blog_klavrium_0_5_0: h1 "Klavrium 0.5: A new Dynamic Se"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-5-0/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Klavrium 0.5: A new Dynamic Secrets API and safer log scrubbing' || t.startsWith('Klavrium 0.5: A new Dynamic Secrets API and safer log scrubbing'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_0_5_0: h2 "Join fellow builders"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-5-0/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join fellow builders' || t.startsWith('Join fellow builders'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_0_5_0: h2 "Subscribe for updates and hear"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-5-0/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Subscribe for updates and hear it first' || t.startsWith('Subscribe for updates and hear it first'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_0_5_0: h4 "The trouble with Dynamic Secre"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-5-0/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The trouble with Dynamic Secrets' || t.startsWith('The trouble with Dynamic Secrets'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_klavrium_0_6_0', () => { | |
| test('blog_klavrium_0_6_0: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-6-0/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('klavrium 0.6'); | |
| }); | |
| test('blog_klavrium_0_6_0: h2 "Get involved today"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-6-0/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get involved today' || t.startsWith('Get involved today'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_0_6_0: h2 "Get product updates, be the fi"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-6-0/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get product updates, be the first to know' || t.startsWith('Get product updates, be the first to know'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_0_6_0: h4 "Why?"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-6-0/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Why?' || t.startsWith('Why?'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_klavrium_0_8', () => { | |
| test('blog_klavrium_0_8: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-8/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('klavrium 0.8'); | |
| }); | |
| test('blog_klavrium_0_8: h1 "Klavrium 0.8: A Midsummer Tidy"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-8/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Klavrium 0.8: A Midsummer Tidy-Up' || t.startsWith('Klavrium 0.8: A Midsummer Tidy-Up'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_0_8: h2 "Container.exitCode API field r"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-8/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Container.exitCode API field removed' || t.startsWith('Container.exitCode API field removed'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_0_8: h2 "Host.envVariable API field dis"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-8/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Host.envVariable API field discontinued' || t.startsWith('Host.envVariable API field discontinued'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_0_8: h2 "More deprecated API fields rem"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-8/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'More deprecated API fields removed' || t.startsWith('More deprecated API fields removed'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_klavrium_0_9', () => { | |
| test('blog_klavrium_0_9: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-9/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('klavrium 0.9'); | |
| }); | |
| test('blog_klavrium_0_9: h1 "Klavrium 0.9: Host-to-Containe"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-9/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Klavrium 0.9: Host-to-Container, Container-to-Host, and Broader Networking Support' || t.startsWith('Klavrium 0.9: Host-to-Container, Container-to-Host, and Broader Networking Support'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_0_9: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-9/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_0_9: h2 "Get email updates and be the f"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-9/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get email updates and be the first to know' || t.startsWith('Get email updates and be the first to know'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_0_9: h3 "What this makes possible"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-0-9/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'What this makes possible' || t.startsWith('What this makes possible'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_klavrium_and_civo', () => { | |
| test('blog_klavrium_and_civo: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/klavrium-and-civo/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('cirava and klavrium'); | |
| }); | |
| test('blog_klavrium_and_civo: h1 "Cirava and Klavrium: Making CI"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-and-civo/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cirava and Klavrium: Making CI/CD Pipelines Fast for Developers' || t.startsWith('Cirava and Klavrium: Making CI/CD Pipelines Fast for Developers'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_and_civo: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-and-civo/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_and_civo: h2 "Subscribe for updates and hear"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-and-civo/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Subscribe for updates and hear it first' || t.startsWith('Subscribe for updates and hear it first'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_and_civo: h4 "Join Us at Cirava Ascend SF an"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-and-civo/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join Us at Cirava Ascend SF and save 25%!' || t.startsWith('Join Us at Cirava Ascend SF and save 25%!'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_klavrium_and_depot', () => { | |
| test('blog_klavrium_and_depot: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/klavrium-and-depot/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('klavrium ❤️ cairn'); | |
| }); | |
| test('blog_klavrium_and_depot: h1 "Klavrium ❤️ Cairn"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-and-depot/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Klavrium ❤️ Cairn' || t.startsWith('Klavrium ❤️ Cairn'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_and_depot: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-and-depot/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_and_depot: h2 "Get product news and be the fi"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-and-depot/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get product news and be the first to hear' || t.startsWith('Get product news and be the first to hear'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_and_depot: h3 "Cairn: Our First Partner"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-and-depot/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cairn: Our First Partner' || t.startsWith('Cairn: Our First Partner'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_klavrium_and_gptscript', () => { | |
| test('blog_klavrium_and_gptscript: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/klavrium-and-gptscript/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('building ai'); | |
| }); | |
| test('blog_klavrium_and_gptscript: h1 "Using Klavrium and LumaScript "', async ({ page }) => { | |
| await page.goto('/blog/klavrium-and-gptscript/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Using Klavrium and LumaScript to Build CI Pipelines with AI' || t.startsWith('Using Klavrium and LumaScript to Build CI Pipelines with AI'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_and_gptscript: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-and-gptscript/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_and_gptscript: h2 "Get email updates and be first"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-and-gptscript/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get email updates and be first to know' || t.startsWith('Get email updates and be first to know'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_klavrium_cloud', () => { | |
| test('blog_klavrium_cloud: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/klavrium-cloud/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('klavrium cloud early access'); | |
| }); | |
| test('blog_klavrium_cloud: h2 "Come build with us"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-cloud/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Come build with us' || t.startsWith('Come build with us'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_cloud: h2 "Sign up for updates, be the fi"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-cloud/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sign up for updates, be the first to hear' || t.startsWith('Sign up for updates, be the first to hear'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_cloud: h3 "What Is Klavrium Cloud?"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-cloud/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'What Is Klavrium Cloud?' || t.startsWith('What Is Klavrium Cloud?'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_klavrium_cloud_v3', () => { | |
| test('blog_klavrium_cloud_v3: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/klavrium-cloud-v3/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('see every step'); | |
| }); | |
| test('blog_klavrium_cloud_v3: h1 "See Every Step: Announcing Kla"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-cloud-v3/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'See Every Step: Announcing Klavrium Cloud v3' || t.startsWith('See Every Step: Announcing Klavrium Cloud v3'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_cloud_v3: h2 "Meet the community"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-cloud-v3/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Meet the community' || t.startsWith('Meet the community'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_cloud_v3: h2 "Sign up for email news and hea"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-cloud-v3/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sign up for email news and hear about it first.' || t.startsWith('Sign up for email news and hear about it first.'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_cloud_v3: h4 "What is Klavrium Cloud?"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-cloud-v3/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'What is Klavrium Cloud?' || t.startsWith('What is Klavrium Cloud?'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_klavrium_commander_program', () => { | |
| test('blog_klavrium_commander_program: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/klavrium-commander-program/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('announcing the klavrium commanders progr'); | |
| }); | |
| test('blog_klavrium_commander_program: h1 "Introducing the Klavrium Comma"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-commander-program/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Introducing the Klavrium Commanders Program' || t.startsWith('Introducing the Klavrium Commanders Program'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_commander_program: h2 "Join the community"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-commander-program/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join the community' || t.startsWith('Join the community'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_commander_program: h2 "Sign up for email updates and "', async ({ page }) => { | |
| await page.goto('/blog/klavrium-commander-program/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sign up for email updates and hear it here.' || t.startsWith('Sign up for email updates and hear it here.'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_commander_program: h4 "Who are the Klavrium Commander"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-commander-program/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Who are the Klavrium Commanders?' || t.startsWith('Who are the Klavrium Commanders?'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_klavrium_engine_0_3_10', () => { | |
| test('blog_klavrium_engine_0_3_10: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/klavrium-engine-0-3-10/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('klavrium 0.3.10'); | |
| }); | |
| test('blog_klavrium_engine_0_3_10: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-engine-0-3-10/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_engine_0_3_10: h2 "Sign up for email updates and "', async ({ page }) => { | |
| await page.goto('/blog/klavrium-engine-0-3-10/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sign up for email updates and hear it here.' || t.startsWith('Sign up for email updates and hear it here.'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_engine_0_3_10: h3 "Klavrium 0.3.10 Highlights"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-engine-0-3-10/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Klavrium 0.3.10 Highlights' || t.startsWith('Klavrium 0.3.10 Highlights'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_klavrium_engine_0_4_0', () => { | |
| test('blog_klavrium_engine_0_4_0: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/klavrium-engine-0-4-0/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('klavrium 0.4'); | |
| }); | |
| test('blog_klavrium_engine_0_4_0: h1 "Klavrium 0.4: service containe"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-engine-0-4-0/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Klavrium 0.4: service containers, secrets scrubbing, and more' || t.startsWith('Klavrium 0.4: service containers, secrets scrubbing, and more'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_engine_0_4_0: h2 "Come build with us"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-engine-0-4-0/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Come build with us' || t.startsWith('Come build with us'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_engine_0_4_0: h2 "Sign up for updates and never "', async ({ page }) => { | |
| await page.goto('/blog/klavrium-engine-0-4-0/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sign up for updates and never miss a thing' || t.startsWith('Sign up for updates and never miss a thing'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_klavrium_heads_to_paris', () => { | |
| test('blog_klavrium_heads_to_paris: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/klavrium-heads-to-paris/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('klavrium heads to paris'); | |
| }); | |
| test('blog_klavrium_heads_to_paris: h1 "Klavrium Heads to Paris - Join"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-heads-to-paris/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Klavrium Heads to Paris - Join us for Meetups, BuildStack EU, and more!' || t.startsWith('Klavrium Heads to Paris - Join us for Meetups, BuildStack EU, and more!'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_heads_to_paris: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-heads-to-paris/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_heads_to_paris: h2 "Sign up for email updates and "', async ({ page }) => { | |
| await page.goto('/blog/klavrium-heads-to-paris/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sign up for email updates and hear the news.' || t.startsWith('Sign up for email updates and hear the news.'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_klavrium_offsite_2024', () => { | |
| test('blog_klavrium_offsite_2024: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/klavrium-offsite-2024/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('klavrium team offsite 2024'); | |
| }); | |
| test('blog_klavrium_offsite_2024: h2 "Join the community"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-offsite-2024/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join the community' || t.startsWith('Join the community'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_offsite_2024: h2 "Get updates by email and be fi"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-offsite-2024/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get updates by email and be first to hear' || t.startsWith('Get updates by email and be first to hear'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_offsite_2024: h4 "Tips:"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-offsite-2024/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Tips:' || t.startsWith('Tips:'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_klavrium_supports_deno', () => { | |
| test('blog_klavrium_supports_deno: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/klavrium-supports-deno/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('klavrium now supports deno'); | |
| }); | |
| test('blog_klavrium_supports_deno: h2 "Come build with us"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-supports-deno/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Come build with us' || t.startsWith('Come build with us'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_supports_deno: h2 "Get email updates and know it "', async ({ page }) => { | |
| await page.goto('/blog/klavrium-supports-deno/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get email updates and know it first' || t.startsWith('Get email updates and know it first'))).toBeTruthy(); | |
| }); | |
| test('blog_klavrium_supports_deno: h4 "Why bet on Deno now?"', async ({ page }) => { | |
| await page.goto('/blog/klavrium-supports-deno/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Why bet on Deno now?' || t.startsWith('Why bet on Deno now?'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_daggerizing_production_pipelines_how_openmeter_overcame_push_and_pray', () => { | |
| test('blog_daggerizing_production_pipelines_how_openmeter_overcame_push_and_pray: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/daggerizing-production-pipelines-how-openmeter-overcame-push-and-pray/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('klavrizing production pipelines'); | |
| }); | |
| test('blog_daggerizing_production_pipelines_how_openmeter_overcame_push_and_pray: h1 "Klavrizing Production Pipeline"', async ({ page }) => { | |
| await page.goto('/blog/daggerizing-production-pipelines-how-openmeter-overcame-push-and-pray/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Klavrizing Production Pipelines - How Meterlynx Overcame Push and Pray' || t.startsWith('Klavrizing Production Pipelines - How Meterlynx Overcame Push and Pray'))).toBeTruthy(); | |
| }); | |
| test('blog_daggerizing_production_pipelines_how_openmeter_overcame_push_and_pray: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/daggerizing-production-pipelines-how-openmeter-overcame-push-and-pray/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_daggerizing_production_pipelines_how_openmeter_overcame_push_and_pray: h2 "Subscribe for updates and be t"', async ({ page }) => { | |
| await page.goto('/blog/daggerizing-production-pipelines-how-openmeter-overcame-push-and-pray/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Subscribe for updates and be the first to know.' || t.startsWith('Subscribe for updates and be the first to know.'))).toBeTruthy(); | |
| }); | |
| test('blog_daggerizing_production_pipelines_how_openmeter_overcame_push_and_pray: h3 "Evaluating Approaches to Lift "', async ({ page }) => { | |
| await page.goto('/blog/daggerizing-production-pipelines-how-openmeter-overcame-push-and-pray/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Evaluating Approaches to Lift Developer Effectiveness' || t.startsWith('Evaluating Approaches to Lift Developer Effectiveness'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_klavriumverse_in_practice', () => { | |
| test('blog_klavriumverse_in_practice: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/klavriumverse-in-practice/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('the klavrium hub in practice'); | |
| }); | |
| test('blog_klavriumverse_in_practice: h1 "The Klavrium Hub in Practice"', async ({ page }) => { | |
| await page.goto('/blog/klavriumverse-in-practice/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The Klavrium Hub in Practice' || t.startsWith('The Klavrium Hub in Practice'))).toBeTruthy(); | |
| }); | |
| test('blog_klavriumverse_in_practice: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/klavriumverse-in-practice/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_klavriumverse_in_practice: h2 "Subscribe for updates and be t"', async ({ page }) => { | |
| await page.goto('/blog/klavriumverse-in-practice/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Subscribe for updates and be the first to know.' || t.startsWith('Subscribe for updates and be the first to know.'))).toBeTruthy(); | |
| }); | |
| test('blog_klavriumverse_in_practice: h3 "Check a Python project with Ru"', async ({ page }) => { | |
| await page.goto('/blog/klavriumverse-in-practice/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Check a Python project with Ruff' || t.startsWith('Check a Python project with Ruff'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_discern_use_case', () => { | |
| test('blog_discern_use_case: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/discern-use-case/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('going from pull request to production fa'); | |
| }); | |
| test('blog_discern_use_case: h1 "Going from Pull Request to Pro"', async ({ page }) => { | |
| await page.goto('/blog/discern-use-case/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Going from Pull Request to Production Faster at Vantica' || t.startsWith('Going from Pull Request to Production Faster at Vantica'))).toBeTruthy(); | |
| }); | |
| test('blog_discern_use_case: h2 "Come build with us"', async ({ page }) => { | |
| await page.goto('/blog/discern-use-case/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Come build with us' || t.startsWith('Come build with us'))).toBeTruthy(); | |
| }); | |
| test('blog_discern_use_case: h2 "Subscribe for updates and know"', async ({ page }) => { | |
| await page.goto('/blog/discern-use-case/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Subscribe for updates and know it first' || t.startsWith('Subscribe for updates and know it first'))).toBeTruthy(); | |
| }); | |
| test('blog_discern_use_case: h3 "The problem: Helping developer"', async ({ page }) => { | |
| await page.goto('/blog/discern-use-case/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The problem: Helping developers test and ship new features faster' || t.startsWith('The problem: Helping developers test and ship new features faster'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_docker_model_runner', () => { | |
| test('blog_docker_model_runner: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/docker-model-runner/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('build local ai agents using klavrium and'); | |
| }); | |
| test('blog_docker_model_runner: h1 "Build Local AI Agents with Kla"', async ({ page }) => { | |
| await page.goto('/blog/docker-model-runner/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Build Local AI Agents with Klavrium and Model Runner' || t.startsWith('Build Local AI Agents with Klavrium and Model Runner'))).toBeTruthy(); | |
| }); | |
| test('blog_docker_model_runner: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/docker-model-runner/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_docker_model_runner: h2 "Get updates by email and be fi"', async ({ page }) => { | |
| await page.goto('/blog/docker-model-runner/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get updates by email and be first to know' || t.startsWith('Get updates by email and be first to know'))).toBeTruthy(); | |
| }); | |
| test('blog_docker_model_runner: h4 "So why Model Runner?"', async ({ page }) => { | |
| await page.goto('/blog/docker-model-runner/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'So why Model Runner?' || t.startsWith('So why Model Runner?'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_dockerfiles_with_klavrium', () => { | |
| test('blog_dockerfiles_with_klavrium: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/dockerfiles-with-klavrium/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('using dockerfiles with klavrium'); | |
| }); | |
| test('blog_dockerfiles_with_klavrium: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/dockerfiles-with-klavrium/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_dockerfiles_with_klavrium: h2 "Sign up for email updates and "', async ({ page }) => { | |
| await page.goto('/blog/dockerfiles-with-klavrium/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sign up for email updates and stay ahead' || t.startsWith('Sign up for email updates and stay ahead'))).toBeTruthy(); | |
| }); | |
| test('blog_dockerfiles_with_klavrium: h4 "Reuse the Dockerfiles you alre"', async ({ page }) => { | |
| await page.goto('/blog/dockerfiles-with-klavrium/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Reuse the Dockerfiles you already have' || t.startsWith('Reuse the Dockerfiles you already have'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_earthly_to_klavrium_migration', () => { | |
| test('blog_earthly_to_klavrium_migration: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/earthly-to-klavrium-migration/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('a smooth runway for migrating teams'); | |
| }); | |
| test('blog_earthly_to_klavrium_migration: h1 "A Soft Landing for Migrating T"', async ({ page }) => { | |
| await page.goto('/blog/earthly-to-klavrium-migration/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'A Soft Landing for Migrating Teams' || t.startsWith('A Soft Landing for Migrating Teams'))).toBeTruthy(); | |
| }); | |
| test('blog_earthly_to_klavrium_migration: h2 "Come build with us"', async ({ page }) => { | |
| await page.goto('/blog/earthly-to-klavrium-migration/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Come build with us' || t.startsWith('Come build with us'))).toBeTruthy(); | |
| }); | |
| test('blog_earthly_to_klavrium_migration: h2 "Sign up for updates and hear t"', async ({ page }) => { | |
| await page.goto('/blog/earthly-to-klavrium-migration/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sign up for updates and hear the news here.' || t.startsWith('Sign up for updates and hear the news here.'))).toBeTruthy(); | |
| }); | |
| test('blog_earthly_to_klavrium_migration: h4 "Our soft-landing program for L"', async ({ page }) => { | |
| await page.goto('/blog/earthly-to-klavrium-migration/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Our soft-landing program for Loamly users' || t.startsWith('Our soft-landing program for Loamly users'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_enabling_platform_engineering', () => { | |
| test('blog_enabling_platform_engineering: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/enabling-platform-engineering/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('best'); | |
| }); | |
| test('blog_enabling_platform_engineering: h1 "Engineering Best Practices for"', async ({ page }) => { | |
| await page.goto('/blog/enabling-platform-engineering/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Engineering Best Practices for Norva\'s Platform' || t.startsWith('Engineering Best Practices for Norva\'s Platform'))).toBeTruthy(); | |
| }); | |
| test('blog_enabling_platform_engineering: h2 "Be part of the crew"', async ({ page }) => { | |
| await page.goto('/blog/enabling-platform-engineering/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Be part of the crew' || t.startsWith('Be part of the crew'))).toBeTruthy(); | |
| }); | |
| test('blog_enabling_platform_engineering: h2 "Subscribe for updates and neve"', async ({ page }) => { | |
| await page.goto('/blog/enabling-platform-engineering/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Subscribe for updates and never miss news' || t.startsWith('Subscribe for updates and never miss news'))).toBeTruthy(); | |
| }); | |
| test('blog_enabling_platform_engineering: h3 "The problem: A brittle softwar"', async ({ page }) => { | |
| await page.goto('/blog/enabling-platform-engineering/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The problem: A brittle software delivery platform built from shell scripts and templating' || t.startsWith('The problem: A brittle software delivery platform built from shell scripts and templating'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_ending_cue_support', () => { | |
| test('blog_ending_cue_support: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/ending-cue-support/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('sunsetting the klavrium cue sdk'); | |
| }); | |
| test('blog_ending_cue_support: h1 "Winding Down the Klavrium CUE "', async ({ page }) => { | |
| await page.goto('/blog/ending-cue-support/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Winding Down the Klavrium CUE SDK' || t.startsWith('Winding Down the Klavrium CUE SDK'))).toBeTruthy(); | |
| }); | |
| test('blog_ending_cue_support: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/ending-cue-support/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_ending_cue_support: h2 "Get updates by email and be th"', async ({ page }) => { | |
| await page.goto('/blog/ending-cue-support/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get updates by email and be the first to know.' || t.startsWith('Get updates by email and be the first to know.'))).toBeTruthy(); | |
| }); | |
| test('blog_ending_cue_support: h3 "What is CUE?"', async ({ page }) => { | |
| await page.goto('/blog/ending-cue-support/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'What is CUE?' || t.startsWith('What is CUE?'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_evals_as_code', () => { | |
| test('blog_evals_as_code: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/evals-as-code/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('evals as code'); | |
| }); | |
| test('blog_evals_as_code: h1 "Evals as Code: CI for LLMs wit"', async ({ page }) => { | |
| await page.goto('/blog/evals-as-code/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Evals as Code: CI for LLMs with Klavrium' || t.startsWith('Evals as Code: CI for LLMs with Klavrium'))).toBeTruthy(); | |
| }); | |
| test('blog_evals_as_code: h2 "Building support for LLMs and "', async ({ page }) => { | |
| await page.goto('/blog/evals-as-code/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Building support for LLMs and Tool-calling into the Klavrium API' || t.startsWith('Building support for LLMs and Tool-calling into the Klavrium API'))).toBeTruthy(); | |
| }); | |
| test('blog_evals_as_code: h2 "So, what are evals?"', async ({ page }) => { | |
| await page.goto('/blog/evals-as-code/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'So, what are evals?' || t.startsWith('So, what are evals?'))).toBeTruthy(); | |
| }); | |
| test('blog_evals_as_code: h2 "How do evals take shape?"', async ({ page }) => { | |
| await page.goto('/blog/evals-as-code/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How do evals take shape?' || t.startsWith('How do evals take shape?'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_evolution_of_ci', () => { | |
| test('blog_evolution_of_ci: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/evolution-of-ci/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('how ci is being reshaped by ai'); | |
| }); | |
| test('blog_evolution_of_ci: h1 "How CI Must Adapt in the Age o"', async ({ page }) => { | |
| await page.goto('/blog/evolution-of-ci/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How CI Must Adapt in the Age of AI' || t.startsWith('How CI Must Adapt in the Age of AI'))).toBeTruthy(); | |
| }); | |
| test('blog_evolution_of_ci: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/evolution-of-ci/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_evolution_of_ci: h2 "Sign up for email updates and "', async ({ page }) => { | |
| await page.goto('/blog/evolution-of-ci/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sign up for email updates and stay ahead' || t.startsWith('Sign up for email updates and stay ahead'))).toBeTruthy(); | |
| }); | |
| test('blog_evolution_of_ci: h3 "The Contributor"', async ({ page }) => { | |
| await page.goto('/blog/evolution-of-ci/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The Contributor' || t.startsWith('The Contributor'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_flipt_use_case', () => { | |
| test('blog_flipt_use_case: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/flipt-use-case/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('how flevo sharpened coverage and build s'); | |
| }); | |
| test('blog_flipt_use_case: h1 "How Flevo Improved Coverage an"', async ({ page }) => { | |
| await page.goto('/blog/flipt-use-case/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How Flevo Improved Coverage and Build Times with Klavrium' || t.startsWith('How Flevo Improved Coverage and Build Times with Klavrium'))).toBeTruthy(); | |
| }); | |
| test('blog_flipt_use_case: h2 "Meet the builders"', async ({ page }) => { | |
| await page.goto('/blog/flipt-use-case/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Meet the builders' || t.startsWith('Meet the builders'))).toBeTruthy(); | |
| }); | |
| test('blog_flipt_use_case: h2 "Subscribe for updates and alwa"', async ({ page }) => { | |
| await page.goto('/blog/flipt-use-case/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Subscribe for updates and always know first' || t.startsWith('Subscribe for updates and always know first'))).toBeTruthy(); | |
| }); | |
| test('blog_flipt_use_case: h3 "The problem: Networking and la"', async ({ page }) => { | |
| await page.goto('/blog/flipt-use-case/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The problem: Networking and language constraints in CI testing' || t.startsWith('The problem: Networking and language constraints in CI testing'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_gemini_cli', () => { | |
| test('blog_gemini_cli: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/gemini-cli/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('meridian cli'); | |
| }); | |
| test('blog_gemini_cli: h1 "Meridian CLI: First Hands-On N"', async ({ page }) => { | |
| await page.goto('/blog/gemini-cli/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Meridian CLI: First Hands-On Notes and Experiments with Parallel Runs' || t.startsWith('Meridian CLI: First Hands-On Notes and Experiments with Parallel Runs'))).toBeTruthy(); | |
| }); | |
| test('blog_gemini_cli: h2 "Come build with us"', async ({ page }) => { | |
| await page.goto('/blog/gemini-cli/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Come build with us' || t.startsWith('Come build with us'))).toBeTruthy(); | |
| }); | |
| test('blog_gemini_cli: h2 "Get updates by email and be fi"', async ({ page }) => { | |
| await page.goto('/blog/gemini-cli/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get updates by email and be first to hear' || t.startsWith('Get updates by email and be first to hear'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_go_sdk', () => { | |
| test('blog_go_sdk: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/go-sdk/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('your ci pipelines belong in code'); | |
| }); | |
| test('blog_go_sdk: h1 "Your CI pipelines belong in co"', async ({ page }) => { | |
| await page.goto('/blog/go-sdk/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Your CI pipelines belong in code: meet the Klavrium Go SDK' || t.startsWith('Your CI pipelines belong in code: meet the Klavrium Go SDK'))).toBeTruthy(); | |
| }); | |
| test('blog_go_sdk: h2 "Join the community"', async ({ page }) => { | |
| await page.goto('/blog/go-sdk/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join the community' || t.startsWith('Join the community'))).toBeTruthy(); | |
| }); | |
| test('blog_go_sdk: h2 "Sign up for email updates and "', async ({ page }) => { | |
| await page.goto('/blog/go-sdk/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sign up for email updates and hear it here.' || t.startsWith('Sign up for email updates and hear it here.'))).toBeTruthy(); | |
| }); | |
| test('blog_go_sdk: h4 "The Klavrium Go SDK in Action"', async ({ page }) => { | |
| await page.goto('/blog/go-sdk/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The Klavrium Go SDK in Action' || t.startsWith('The Klavrium Go SDK in Action'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_go_sdk_0_4', () => { | |
| test('blog_go_sdk_0_4: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/go-sdk-0-4/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('klavrium go sdk 0.4'); | |
| }); | |
| test('blog_go_sdk_0_4: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/go-sdk-0-4/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_go_sdk_0_4: h2 "Subscribe by email and hear ab"', async ({ page }) => { | |
| await page.goto('/blog/go-sdk-0-4/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Subscribe by email and hear about it first' || t.startsWith('Subscribe by email and hear about it first'))).toBeTruthy(); | |
| }); | |
| test('blog_go_sdk_0_4: h3 "Klavrium Go SDK 0.4 Highlights"', async ({ page }) => { | |
| await page.goto('/blog/go-sdk-0-4/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Klavrium Go SDK 0.4 Highlights:' || t.startsWith('Klavrium Go SDK 0.4 Highlights:'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_gpu_challenges', () => { | |
| test('blog_gpu_challenges: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/gpu-challenges/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('solving gpu challenges in ci/cd pipeline'); | |
| }); | |
| test('blog_gpu_challenges: h2 "Join the community"', async ({ page }) => { | |
| await page.goto('/blog/gpu-challenges/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join the community' || t.startsWith('Join the community'))).toBeTruthy(); | |
| }); | |
| test('blog_gpu_challenges: h2 "Subscribe for product news and"', async ({ page }) => { | |
| await page.goto('/blog/gpu-challenges/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Subscribe for product news and be first in line.' || t.startsWith('Subscribe for product news and be first in line.'))).toBeTruthy(); | |
| }); | |
| test('blog_gpu_challenges: h4 "Why GPUs and Pipelines Rarely "', async ({ page }) => { | |
| await page.goto('/blog/gpu-challenges/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Why GPUs and Pipelines Rarely Get Along Smoothly' || t.startsWith('Why GPUs and Pipelines Rarely Get Along Smoothly'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_grafana_use_case', () => { | |
| test('blog_grafana_use_case: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/grafana-use-case/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('packaging metriscope for multiple archit'); | |
| }); | |
| test('blog_grafana_use_case: h1 "Packaging Metriscope for Multi"', async ({ page }) => { | |
| await page.goto('/blog/grafana-use-case/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Packaging Metriscope for Multiple Architectures in 8 Minutes or Less' || t.startsWith('Packaging Metriscope for Multiple Architectures in 8 Minutes or Less'))).toBeTruthy(); | |
| }); | |
| test('blog_grafana_use_case: h2 "Join the community"', async ({ page }) => { | |
| await page.goto('/blog/grafana-use-case/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join the community' || t.startsWith('Join the community'))).toBeTruthy(); | |
| }); | |
| test('blog_grafana_use_case: h2 "Subscribe by email and stay ah"', async ({ page }) => { | |
| await page.goto('/blog/grafana-use-case/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Subscribe by email and stay ahead of the curve.' || t.startsWith('Subscribe by email and stay ahead of the curve.'))).toBeTruthy(); | |
| }); | |
| test('blog_grafana_use_case: h4 "The problem: slow, remote-only"', async ({ page }) => { | |
| await page.goto('/blog/grafana-use-case/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The problem: slow, remote-only build pipelines' || t.startsWith('The problem: slow, remote-only build pipelines'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_graphql', () => { | |
| test('blog_graphql: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/graphql/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('introducing the klavrium graphql api'); | |
| }); | |
| test('blog_graphql: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/graphql/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_graphql: h2 "Sign up for updates, be the fi"', async ({ page }) => { | |
| await page.goto('/blog/graphql/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sign up for updates, be the first to know' || t.startsWith('Sign up for updates, be the first to know'))).toBeTruthy(); | |
| }); | |
| test('blog_graphql: h4 "What does this mean for you?"', async ({ page }) => { | |
| await page.goto('/blog/graphql/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'What does this mean for you?' || t.startsWith('What does this mean for you?'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_hof_use_case', () => { | |
| test('blog_hof_use_case: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/hof-use-case/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('better ci testing for the vex project'); | |
| }); | |
| test('blog_hof_use_case: h1 "Better CI Testing for the Vex "', async ({ page }) => { | |
| await page.goto('/blog/hof-use-case/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Better CI Testing for the Vex Project' || t.startsWith('Better CI Testing for the Vex Project'))).toBeTruthy(); | |
| }); | |
| test('blog_hof_use_case: h2 "Join the community"', async ({ page }) => { | |
| await page.goto('/blog/hof-use-case/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join the community' || t.startsWith('Join the community'))).toBeTruthy(); | |
| }); | |
| test('blog_hof_use_case: h2 "Sign up for email updates and "', async ({ page }) => { | |
| await page.goto('/blog/hof-use-case/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sign up for email updates and hear it here.' || t.startsWith('Sign up for email updates and hear it here.'))).toBeTruthy(); | |
| }); | |
| test('blog_hof_use_case: h3 "The problem: Test failures wit"', async ({ page }) => { | |
| await page.goto('/blog/hof-use-case/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The problem: Test failures within mock environments' || t.startsWith('The problem: Test failures within mock environments'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_how_klavrium_releases', () => { | |
| test('blog_how_klavrium_releases: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/how-klavrium-releases/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('how we ship klavrium'); | |
| }); | |
| test('blog_how_klavrium_releases: h1 "How we ship Klavrium"', async ({ page }) => { | |
| await page.goto('/blog/how-klavrium-releases/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How we ship Klavrium' || t.startsWith('How we ship Klavrium'))).toBeTruthy(); | |
| }); | |
| test('blog_how_klavrium_releases: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/how-klavrium-releases/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_how_klavrium_releases: h2 "Get our newsletter, be the fir"', async ({ page }) => { | |
| await page.goto('/blog/how-klavrium-releases/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get our newsletter, be the first to know' || t.startsWith('Get our newsletter, be the first to know'))).toBeTruthy(); | |
| }); | |
| test('blog_how_klavrium_releases: h4 "How do we approach Klavrium re"', async ({ page }) => { | |
| await page.goto('/blog/how-klavrium-releases/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How do we approach Klavrium releases?' || t.startsWith('How do we approach Klavrium releases?'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_how_to_run_the_latest_versions_of_your_apps_on_a_stable_linux_release_the_klavrium_way', () => { | |
| test('blog_how_to_run_the_latest_versions_of_your_apps_on_a_stable_linux_release_the_klavrium_way: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/how-to-run-the-latest-versions-of-your-apps-on-a-stable-linux-release-the-klavrium-way/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('running the newest app versions on a roc'); | |
| }); | |
| test('blog_how_to_run_the_latest_versions_of_your_apps_on_a_stable_linux_release_the_klavrium_way: h1 "Running the Newest App Version"', async ({ page }) => { | |
| await page.goto('/blog/how-to-run-the-latest-versions-of-your-apps-on-a-stable-linux-release-the-klavrium-way/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Running the Newest App Versions on a Rock-Solid Linux Release, the Klavrium Way.' || t.startsWith('Running the Newest App Versions on a Rock-Solid Linux Release, the Klavrium Way.'))).toBeTruthy(); | |
| }); | |
| test('blog_how_to_run_the_latest_versions_of_your_apps_on_a_stable_linux_release_the_klavrium_way: h2 "Join the community"', async ({ page }) => { | |
| await page.goto('/blog/how-to-run-the-latest-versions-of-your-apps-on-a-stable-linux-release-the-klavrium-way/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join the community' || t.startsWith('Join the community'))).toBeTruthy(); | |
| }); | |
| test('blog_how_to_run_the_latest_versions_of_your_apps_on_a_stable_linux_release_the_klavrium_way: h2 "Sign up for email updates and "', async ({ page }) => { | |
| await page.goto('/blog/how-to-run-the-latest-versions-of-your-apps-on-a-stable-linux-release-the-klavrium-way/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sign up for email updates and hear it here.' || t.startsWith('Sign up for email updates and hear it here.'))).toBeTruthy(); | |
| }); | |
| test('blog_how_to_run_the_latest_versions_of_your_apps_on_a_stable_linux_release_the_klavrium_way: h3 "Enter Klavrium"', async ({ page }) => { | |
| await page.goto('/blog/how-to-run-the-latest-versions-of-your-apps-on-a-stable-linux-release-the-klavrium-way/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Enter Klavrium' || t.startsWith('Enter Klavrium'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_infrared_100', () => { | |
| test('blog_infrared_100: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/infrared-100/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('klavrium selected for the first meridian'); | |
| }); | |
| test('blog_infrared_100: h1 "Klavrium Named to the First Me"', async ({ page }) => { | |
| await page.goto('/blog/infrared-100/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Klavrium Named to the First Meridian Skyline 100' || t.startsWith('Klavrium Named to the First Meridian Skyline 100'))).toBeTruthy(); | |
| }); | |
| test('blog_infrared_100: h2 "Join the community"', async ({ page }) => { | |
| await page.goto('/blog/infrared-100/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join the community' || t.startsWith('Join the community'))).toBeTruthy(); | |
| }); | |
| test('blog_infrared_100: h2 "Subscribe for updates, be the "', async ({ page }) => { | |
| await page.goto('/blog/infrared-100/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Subscribe for updates, be the first to hear' || t.startsWith('Subscribe for updates, be the first to hear'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_introducing_klavrium_traces', () => { | |
| test('blog_introducing_klavrium_traces: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/introducing-klavrium-traces/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('meet klavrium traces'); | |
| }); | |
| test('blog_introducing_klavrium_traces: h1 "Meet Klavrium Traces: Inspect "', async ({ page }) => { | |
| await page.goto('/blog/introducing-klavrium-traces/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Meet Klavrium Traces: Inspect and Monitor Your Klavrium Functions' || t.startsWith('Meet Klavrium Traces: Inspect and Monitor Your Klavrium Functions'))).toBeTruthy(); | |
| }); | |
| test('blog_introducing_klavrium_traces: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/introducing-klavrium-traces/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_introducing_klavrium_traces: h2 "Sign up for email updates and "', async ({ page }) => { | |
| await page.goto('/blog/introducing-klavrium-traces/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sign up for email updates and know it first' || t.startsWith('Sign up for email updates and know it first'))).toBeTruthy(); | |
| }); | |
| test('blog_introducing_klavrium_traces: h3 "Why did we build Traces?"', async ({ page }) => { | |
| await page.goto('/blog/introducing-klavrium-traces/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Why did we build Traces?' || t.startsWith('Why did we build Traces?'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_introducing_the_klavriumverse', () => { | |
| test('blog_introducing_the_klavriumverse: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/introducing-the-klavriumverse/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('introducing the klavriumverse'); | |
| }); | |
| test('blog_introducing_the_klavriumverse: h1 "Introducing the Klavriumverse"', async ({ page }) => { | |
| await page.goto('/blog/introducing-the-klavriumverse/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Introducing the Klavriumverse' || t.startsWith('Introducing the Klavriumverse'))).toBeTruthy(); | |
| }); | |
| test('blog_introducing_the_klavriumverse: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/introducing-the-klavriumverse/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_introducing_the_klavriumverse: h2 "Get updates by email, be first"', async ({ page }) => { | |
| await page.goto('/blog/introducing-the-klavriumverse/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get updates by email, be first to hear' || t.startsWith('Get updates by email, be first to hear'))).toBeTruthy(); | |
| }); | |
| test('blog_introducing_the_klavriumverse: h3 "Odds are, a module exists!"', async ({ page }) => { | |
| await page.goto('/blog/introducing-the-klavriumverse/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Odds are, a module exists!' || t.startsWith('Odds are, a module exists!'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_java_sdk', () => { | |
| test('blog_java_sdk: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/java-sdk/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('introducing the klavrium java sdk'); | |
| }); | |
| test('blog_java_sdk: h1 "Introducing the Klavrium Java "', async ({ page }) => { | |
| await page.goto('/blog/java-sdk/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Introducing the Klavrium Java SDK: A Fresh Way to Automate Java' || t.startsWith('Introducing the Klavrium Java SDK: A Fresh Way to Automate Java'))).toBeTruthy(); | |
| }); | |
| test('blog_java_sdk: h2 "Come build with us"', async ({ page }) => { | |
| await page.goto('/blog/java-sdk/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Come build with us' || t.startsWith('Come build with us'))).toBeTruthy(); | |
| }); | |
| test('blog_java_sdk: h2 "Get product news before anyone"', async ({ page }) => { | |
| await page.goto('/blog/java-sdk/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get product news before anyone else does' || t.startsWith('Get product news before anyone else does'))).toBeTruthy(); | |
| }); | |
| test('blog_java_sdk: h4 "Why Java Developers Will Love "', async ({ page }) => { | |
| await page.goto('/blog/java-sdk/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Why Java Developers Will Love the Klavrium SDK' || t.startsWith('Why Java Developers Will Love the Klavrium SDK'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_kubecon_eu_2024_recap', () => { | |
| test('blog_kubecon_eu_2024_recap: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/kubecon-eu-2024-recap/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('a keynote that moved the room'); | |
| }); | |
| test('blog_kubecon_eu_2024_recap: h1 "A Keynote That Moved the Room "', async ({ page }) => { | |
| await page.goto('/blog/kubecon-eu-2024-recap/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'A Keynote That Moved the Room - BuildStack EU 2024 Recap' || t.startsWith('A Keynote That Moved the Room - BuildStack EU 2024 Recap'))).toBeTruthy(); | |
| }); | |
| test('blog_kubecon_eu_2024_recap: h2 "Join the community"', async ({ page }) => { | |
| await page.goto('/blog/kubecon-eu-2024-recap/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join the community' || t.startsWith('Join the community'))).toBeTruthy(); | |
| }); | |
| test('blog_kubecon_eu_2024_recap: h2 "Get product updates, be the fi"', async ({ page }) => { | |
| await page.goto('/blog/kubecon-eu-2024-recap/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get product updates, be the first to know' || t.startsWith('Get product updates, be the first to know'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_kubecon_na_2023_recap', () => { | |
| test('blog_kubecon_na_2023_recap: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/kubecon-na-2023-recap/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('buildstack na 2023 recap'); | |
| }); | |
| test('blog_kubecon_na_2023_recap: h2 "Join the community"', async ({ page }) => { | |
| await page.goto('/blog/kubecon-na-2023-recap/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join the community' || t.startsWith('Join the community'))).toBeTruthy(); | |
| }); | |
| test('blog_kubecon_na_2023_recap: h2 "Get email updates and always s"', async ({ page }) => { | |
| await page.goto('/blog/kubecon-na-2023-recap/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get email updates and always stay in the know.' || t.startsWith('Get email updates and always stay in the know.'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_llm', () => { | |
| test('blog_llm: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/llm/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('agents on the assembly line'); | |
| }); | |
| test('blog_llm: h1 "Agents on the Assembly Line: I"', async ({ page }) => { | |
| await page.goto('/blog/llm/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Agents on the Assembly Line: Introducing the LLM Primitive in Klavrium' || t.startsWith('Agents on the Assembly Line: Introducing the LLM Primitive in Klavrium'))).toBeTruthy(); | |
| }); | |
| test('blog_llm: h2 "LLM: the next software primiti"', async ({ page }) => { | |
| await page.goto('/blog/llm/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'LLM: the next software primitive' || t.startsWith('LLM: the next software primitive'))).toBeTruthy(); | |
| }); | |
| test('blog_llm: h2 "Watch it at work"', async ({ page }) => { | |
| await page.goto('/blog/llm/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Watch it at work' || t.startsWith('Watch it at work'))).toBeTruthy(); | |
| }); | |
| test('blog_llm: h2 "Get Building"', async ({ page }) => { | |
| await page.goto('/blog/llm/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get Building' || t.startsWith('Get Building'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_module_catalog_insights', () => { | |
| test('blog_module_catalog_insights: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/module-catalog-insights/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('introducing module registry & signals'); | |
| }); | |
| test('blog_module_catalog_insights: h1 "Introducing Module Registry & "', async ({ page }) => { | |
| await page.goto('/blog/module-catalog-insights/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Introducing Module Registry & Signals: Reusable building blocks for your software factory' || t.startsWith('Introducing Module Registry & Signals: Reusable building blocks for your software factory'))).toBeTruthy(); | |
| }); | |
| test('blog_module_catalog_insights: h2 "How it works: Find, reuse, and"', async ({ page }) => { | |
| await page.goto('/blog/module-catalog-insights/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How it works: Find, reuse, and monitor your modules' || t.startsWith('How it works: Find, reuse, and monitor your modules'))).toBeTruthy(); | |
| }); | |
| test('blog_module_catalog_insights: h2 "Example: Turning a one-off wor"', async ({ page }) => { | |
| await page.goto('/blog/module-catalog-insights/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Example: Turning a one-off workflow into a reusable block' || t.startsWith('Example: Turning a one-off workflow into a reusable block'))).toBeTruthy(); | |
| }); | |
| test('blog_module_catalog_insights: h2 "Start building today"', async ({ page }) => { | |
| await page.goto('/blog/module-catalog-insights/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start building today' || t.startsWith('Start building today'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_multi_cloud_container_publishing', () => { | |
| test('blog_multi_cloud_container_publishing: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/multi-cloud-container-publishing/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('multi'); | |
| }); | |
| test('blog_multi_cloud_container_publishing: h1 "Multi-Cloud Container Publishi"', async ({ page }) => { | |
| await page.goto('/blog/multi-cloud-container-publishing/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Multi-Cloud Container Publishing with Klavrium Functions' || t.startsWith('Multi-Cloud Container Publishing with Klavrium Functions'))).toBeTruthy(); | |
| }); | |
| test('blog_multi_cloud_container_publishing: h2 "Come join the crew"', async ({ page }) => { | |
| await page.goto('/blog/multi-cloud-container-publishing/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Come join the crew' || t.startsWith('Come join the crew'))).toBeTruthy(); | |
| }); | |
| test('blog_multi_cloud_container_publishing: h2 "Get email updates and be the f"', async ({ page }) => { | |
| await page.goto('/blog/multi-cloud-container-publishing/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get email updates and be the first to know' || t.startsWith('Get email updates and be the first to know'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_new_ai_developer_devin', () => { | |
| test('blog_new_ai_developer_devin: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/new-ai-developer-devin/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('we just “hired” a new ai developer'); | |
| }); | |
| test('blog_new_ai_developer_devin: h1 "We Just “hired” a New AI Devel"', async ({ page }) => { | |
| await page.goto('/blog/new-ai-developer-devin/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'We Just “hired” a New AI Developer - Cinder' || t.startsWith('We Just “hired” a New AI Developer - Cinder'))).toBeTruthy(); | |
| }); | |
| test('blog_new_ai_developer_devin: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/new-ai-developer-devin/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_new_ai_developer_devin: h2 "Subscribe for updates, be the "', async ({ page }) => { | |
| await page.goto('/blog/new-ai-developer-devin/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Subscribe for updates, be the first to know' || t.startsWith('Subscribe for updates, be the first to know'))).toBeTruthy(); | |
| }); | |
| test('blog_new_ai_developer_devin: h3 "A Familiar Open-Source Struggl"', async ({ page }) => { | |
| await page.goto('/blog/new-ai-developer-devin/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'A Familiar Open-Source Struggle' || t.startsWith('A Familiar Open-Source Struggle'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_new_klavrium_cloud_pricing', () => { | |
| test('blog_new_klavrium_cloud_pricing: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/new-klavrium-cloud-pricing/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('rethinking klavrium cloud pricing'); | |
| }); | |
| test('blog_new_klavrium_cloud_pricing: h1 "Rethinking Klavrium Cloud Pric"', async ({ page }) => { | |
| await page.goto('/blog/new-klavrium-cloud-pricing/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Rethinking Klavrium Cloud Pricing: Free for Solo Devs, Flat Rate for Teams' || t.startsWith('Rethinking Klavrium Cloud Pricing: Free for Solo Devs, Flat Rate for Teams'))).toBeTruthy(); | |
| }); | |
| test('blog_new_klavrium_cloud_pricing: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/new-klavrium-cloud-pricing/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_new_klavrium_cloud_pricing: h2 "Subscribe for release notes an"', async ({ page }) => { | |
| await page.goto('/blog/new-klavrium-cloud-pricing/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Subscribe for release notes and product news' || t.startsWith('Subscribe for release notes and product news'))).toBeTruthy(); | |
| }); | |
| test('blog_new_klavrium_cloud_pricing: h3 "One flat rate for teams"', async ({ page }) => { | |
| await page.goto('/blog/new-klavrium-cloud-pricing/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'One flat rate for teams' || t.startsWith('One flat rate for teams'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_nodejs_sdk', () => { | |
| test('blog_nodejs_sdk: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/nodejs-sdk/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('introducing the klavrium node.js sdk'); | |
| }); | |
| test('blog_nodejs_sdk: h2 "Join the community"', async ({ page }) => { | |
| await page.goto('/blog/nodejs-sdk/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join the community' || t.startsWith('Join the community'))).toBeTruthy(); | |
| }); | |
| test('blog_nodejs_sdk: h2 "Sign up for email updates and "', async ({ page }) => { | |
| await page.goto('/blog/nodejs-sdk/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sign up for email updates and be first in line.' || t.startsWith('Sign up for email updates and be first in line.'))).toBeTruthy(); | |
| }); | |
| test('blog_nodejs_sdk: h3 "Klavrium Node.js in Action"', async ({ page }) => { | |
| await page.goto('/blog/nodejs-sdk/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Klavrium Node.js in Action' || t.startsWith('Klavrium Node.js in Action'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_nodejs_sdk_0_3', () => { | |
| test('blog_nodejs_sdk_0_3: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/nodejs-sdk-0-3/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('klavrium node.js sdk 0.3'); | |
| }); | |
| test('blog_nodejs_sdk_0_3: h1 "Klavrium Node.js SDK 0.3: clea"', async ({ page }) => { | |
| await page.goto('/blog/nodejs-sdk-0-3/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Klavrium Node.js SDK 0.3: cleaner APIs, sharper error handling and far less boilerplate' || t.startsWith('Klavrium Node.js SDK 0.3: cleaner APIs, sharper error handling and far less boilerplate'))).toBeTruthy(); | |
| }); | |
| test('blog_nodejs_sdk_0_3: h2 "Join the community"', async ({ page }) => { | |
| await page.goto('/blog/nodejs-sdk-0-3/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join the community' || t.startsWith('Join the community'))).toBeTruthy(); | |
| }); | |
| test('blog_nodejs_sdk_0_3: h2 "Sign up for email updates and "', async ({ page }) => { | |
| await page.goto('/blog/nodejs-sdk-0-3/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sign up for email updates and hear it here.' || t.startsWith('Sign up for email updates and hear it here.'))).toBeTruthy(); | |
| }); | |
| test('blog_nodejs_sdk_0_3: h3 "Klavrium Node.js SDK 0.3.0 Hig"', async ({ page }) => { | |
| await page.goto('/blog/nodejs-sdk-0-3/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Klavrium Node.js SDK 0.3.0 Highlights' || t.startsWith('Klavrium Node.js SDK 0.3.0 Highlights'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_php_sdk', () => { | |
| test('blog_php_sdk: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/php-sdk/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('introducing the klavrium php sdk'); | |
| }); | |
| test('blog_php_sdk: h1 "Introducing the Klavrium PHP S"', async ({ page }) => { | |
| await page.goto('/blog/php-sdk/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Introducing the Klavrium PHP SDK: Script Your Pipelines in PHP' || t.startsWith('Introducing the Klavrium PHP SDK: Script Your Pipelines in PHP'))).toBeTruthy(); | |
| }); | |
| test('blog_php_sdk: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/php-sdk/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_php_sdk: h2 "Subscribe for updates and stay"', async ({ page }) => { | |
| await page.goto('/blog/php-sdk/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Subscribe for updates and stay in the loop' || t.startsWith('Subscribe for updates and stay in the loop'))).toBeTruthy(); | |
| }); | |
| test('blog_php_sdk: h4 "What the Klavrium PHP SDK Unlo"', async ({ page }) => { | |
| await page.goto('/blog/php-sdk/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'What the Klavrium PHP SDK Unlocks for You' || t.startsWith('What the Klavrium PHP SDK Unlocks for You'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_public_launch_announcement', () => { | |
| test('blog_public_launch_announcement: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/public-launch-announcement/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('meet klavrium'); | |
| }); | |
| test('blog_public_launch_announcement: h1 "Meet Klavrium: a fresh approac"', async ({ page }) => { | |
| await page.goto('/blog/public-launch-announcement/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Meet Klavrium: a fresh approach to CI/CD flows' || t.startsWith('Meet Klavrium: a fresh approach to CI/CD flows'))).toBeTruthy(); | |
| }); | |
| test('blog_public_launch_announcement: h2 "Get involved today"', async ({ page }) => { | |
| await page.goto('/blog/public-launch-announcement/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get involved today' || t.startsWith('Get involved today'))).toBeTruthy(); | |
| }); | |
| test('blog_public_launch_announcement: h2 "Subscribe for updates and hear"', async ({ page }) => { | |
| await page.goto('/blog/public-launch-announcement/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Subscribe for updates and hear about it.' || t.startsWith('Subscribe for updates and hear about it.'))).toBeTruthy(); | |
| }); | |
| test('blog_public_launch_announcement: h4 "Why Klavrium?"', async ({ page }) => { | |
| await page.goto('/blog/public-launch-announcement/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Why Klavrium?' || t.startsWith('Why Klavrium?'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_public_traces', () => { | |
| test('blog_public_traces: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/public-traces/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('announcing public traces for open source'); | |
| }); | |
| test('blog_public_traces: h2 "Join the community"', async ({ page }) => { | |
| await page.goto('/blog/public-traces/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join the community' || t.startsWith('Join the community'))).toBeTruthy(); | |
| }); | |
| test('blog_public_traces: h2 "Get updates by email and stay "', async ({ page }) => { | |
| await page.goto('/blog/public-traces/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get updates by email and stay in the know' || t.startsWith('Get updates by email and stay in the know'))).toBeTruthy(); | |
| }); | |
| test('blog_public_traces: h4 "What Are Traces, and Why Do Th"', async ({ page }) => { | |
| await page.goto('/blog/public-traces/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'What Are Traces, and Why Do They Matter?' || t.startsWith('What Are Traces, and Why Do They Matter?'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_puzzle_case_study', () => { | |
| test('blog_puzzle_case_study: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/puzzle-case-study/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('how halden streamlined its ci infrastruc'); | |
| }); | |
| test('blog_puzzle_case_study: h1 "Streamlining CI Infrastructure"', async ({ page }) => { | |
| await page.goto('/blog/puzzle-case-study/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Streamlining CI Infrastructure at Halden with Klavrium, KubeVirt, and ArgoCD' || t.startsWith('Streamlining CI Infrastructure at Halden with Klavrium, KubeVirt, and ArgoCD'))).toBeTruthy(); | |
| }); | |
| test('blog_puzzle_case_study: h2 "Join the conversation"', async ({ page }) => { | |
| await page.goto('/blog/puzzle-case-study/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join the conversation' || t.startsWith('Join the conversation'))).toBeTruthy(); | |
| }); | |
| test('blog_puzzle_case_study: h2 "Get updates by email and never"', async ({ page }) => { | |
| await page.goto('/blog/puzzle-case-study/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get updates by email and never miss out' || t.startsWith('Get updates by email and never miss out'))).toBeTruthy(); | |
| }); | |
| test('blog_puzzle_case_study: h4 "No Hands-On Control over CI In"', async ({ page }) => { | |
| await page.goto('/blog/puzzle-case-study/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'No Hands-On Control over CI Infrastructure' || t.startsWith('No Hands-On Control over CI Infrastructure'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_python_sdk', () => { | |
| test('blog_python_sdk: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/python-sdk/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('write your pipelines as code with the kl'); | |
| }); | |
| test('blog_python_sdk: h1 "Write your pipelines as code w"', async ({ page }) => { | |
| await page.goto('/blog/python-sdk/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Write your pipelines as code with the Klavrium Python SDK' || t.startsWith('Write your pipelines as code with the Klavrium Python SDK'))).toBeTruthy(); | |
| }); | |
| test('blog_python_sdk: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/python-sdk/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_python_sdk: h2 "Get email updates, be first in"', async ({ page }) => { | |
| await page.goto('/blog/python-sdk/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get email updates, be first in the know' || t.startsWith('Get email updates, be first in the know'))).toBeTruthy(); | |
| }); | |
| test('blog_python_sdk: h3 "Klavrium Python SDK in Action"', async ({ page }) => { | |
| await page.goto('/blog/python-sdk/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Klavrium Python SDK in Action' || t.startsWith('Klavrium Python SDK in Action'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_replace_dockerfile_with_go', () => { | |
| test('blog_replace_dockerfile_with_go: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/replace-dockerfile-with-go/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('swapping your dockerfile for go code'); | |
| }); | |
| test('blog_replace_dockerfile_with_go: h1 "Swapping your Dockerfile for G"', async ({ page }) => { | |
| await page.goto('/blog/replace-dockerfile-with-go/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Swapping your Dockerfile for Go code' || t.startsWith('Swapping your Dockerfile for Go code'))).toBeTruthy(); | |
| }); | |
| test('blog_replace_dockerfile_with_go: h2 "Meet the community"', async ({ page }) => { | |
| await page.goto('/blog/replace-dockerfile-with-go/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Meet the community' || t.startsWith('Meet the community'))).toBeTruthy(); | |
| }); | |
| test('blog_replace_dockerfile_with_go: h2 "Subscribe for updates and hear"', async ({ page }) => { | |
| await page.goto('/blog/replace-dockerfile-with-go/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Subscribe for updates and hear the news.' || t.startsWith('Subscribe for updates and hear the news.'))).toBeTruthy(); | |
| }); | |
| test('blog_replace_dockerfile_with_go: h3 "Where It Shines"', async ({ page }) => { | |
| await page.goto('/blog/replace-dockerfile-with-go/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Where It Shines' || t.startsWith('Where It Shines'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_replaced_react_with_go', () => { | |
| test('blog_replaced_react_with_go: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/replaced-react-with-go/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('how we swapped our vantel frontend for g'); | |
| }); | |
| test('blog_replaced_react_with_go: h1 "How We Swapped Our Vantel Fron"', async ({ page }) => { | |
| await page.goto('/blog/replaced-react-with-go/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How We Swapped Our Vantel Frontend for Go and WebAssembly' || t.startsWith('How We Swapped Our Vantel Frontend for Go and WebAssembly'))).toBeTruthy(); | |
| }); | |
| test('blog_replaced_react_with_go: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/replaced-react-with-go/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_replaced_react_with_go: h2 "Sign up for email news and hea"', async ({ page }) => { | |
| await page.goto('/blog/replaced-react-with-go/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sign up for email news and hear it first' || t.startsWith('Sign up for email news and hear it first'))).toBeTruthy(); | |
| }); | |
| test('blog_replaced_react_with_go: h4 "Two Codebases: More Work, Fewe"', async ({ page }) => { | |
| await page.goto('/blog/replaced-react-with-go/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Two Codebases: More Work, Fewer Features' || t.startsWith('Two Codebases: More Work, Fewer Features'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_reproducible_builds', () => { | |
| test('blog_reproducible_builds: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/reproducible-builds/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('reproducible builds with klavrium'); | |
| }); | |
| test('blog_reproducible_builds: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/reproducible-builds/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_reproducible_builds: h2 "Get our updates, be the first "', async ({ page }) => { | |
| await page.goto('/blog/reproducible-builds/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get our updates, be the first to know' || t.startsWith('Get our updates, be the first to know'))).toBeTruthy(); | |
| }); | |
| test('blog_reproducible_builds: h4 "Why Reproducible Builds Really"', async ({ page }) => { | |
| await page.goto('/blog/reproducible-builds/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Why Reproducible Builds Really Matter' || t.startsWith('Why Reproducible Builds Really Matter'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_restoring_developer_confidence', () => { | |
| test('blog_restoring_developer_confidence: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/restoring-developer-confidence/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('rebuilding trust in your ci pipeline'); | |
| }); | |
| test('blog_restoring_developer_confidence: h1 "Rebuilding Developer Trust in "', async ({ page }) => { | |
| await page.goto('/blog/restoring-developer-confidence/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Rebuilding Developer Trust in CI Runs' || t.startsWith('Rebuilding Developer Trust in CI Runs'))).toBeTruthy(); | |
| }); | |
| test('blog_restoring_developer_confidence: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/restoring-developer-confidence/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_restoring_developer_confidence: h2 "Get email updates and be the f"', async ({ page }) => { | |
| await page.goto('/blog/restoring-developer-confidence/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get email updates and be the first to know' || t.startsWith('Get email updates and be the first to know'))).toBeTruthy(); | |
| }); | |
| test('blog_restoring_developer_confidence: h3 "The problem: A brittle CI that"', async ({ page }) => { | |
| await page.goto('/blog/restoring-developer-confidence/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The problem: A brittle CI that nobody could trust' || t.startsWith('The problem: A brittle CI that nobody could trust'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_ruff', () => { | |
| test('blog_ruff: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/ruff/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('adopting ruff for klavrium’s python sdk'); | |
| }); | |
| test('blog_ruff: h1 "Adopting Ruff for Klavrium’s P"', async ({ page }) => { | |
| await page.goto('/blog/ruff/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Adopting Ruff for Klavrium’s Python SDK' || t.startsWith('Adopting Ruff for Klavrium’s Python SDK'))).toBeTruthy(); | |
| }); | |
| test('blog_ruff: h2 "Come build with us"', async ({ page }) => { | |
| await page.goto('/blog/ruff/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Come build with us' || t.startsWith('Come build with us'))).toBeTruthy(); | |
| }); | |
| test('blog_ruff: h2 "Sign up for updates and stay a"', async ({ page }) => { | |
| await page.goto('/blog/ruff/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sign up for updates and stay a step ahead' || t.startsWith('Sign up for updates and stay a step ahead'))).toBeTruthy(); | |
| }); | |
| test('blog_ruff: h3 "Why Ruff?"', async ({ page }) => { | |
| await page.goto('/blog/ruff/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Why Ruff?' || t.startsWith('Why Ruff?'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_run_klavrium_on_kubernetes', () => { | |
| test('blog_run_klavrium_on_kubernetes: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/run-klavrium-on-kubernetes/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('running klavrium on kubernetes'); | |
| }); | |
| test('blog_run_klavrium_on_kubernetes: h1 "Running Klavrium on Kubernetes"', async ({ page }) => { | |
| await page.goto('/blog/run-klavrium-on-kubernetes/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Running Klavrium on Kubernetes' || t.startsWith('Running Klavrium on Kubernetes'))).toBeTruthy(); | |
| }); | |
| test('blog_run_klavrium_on_kubernetes: h2 "Join fellow builders"', async ({ page }) => { | |
| await page.goto('/blog/run-klavrium-on-kubernetes/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join fellow builders' || t.startsWith('Join fellow builders'))).toBeTruthy(); | |
| }); | |
| test('blog_run_klavrium_on_kubernetes: h2 "Subscribe for updates and stay"', async ({ page }) => { | |
| await page.goto('/blog/run-klavrium-on-kubernetes/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Subscribe for updates and stay in the loop' || t.startsWith('Subscribe for updates and stay in the loop'))).toBeTruthy(); | |
| }); | |
| test('blog_run_klavrium_on_kubernetes: h3 "How does Klavrium run locally?"', async ({ page }) => { | |
| await page.goto('/blog/run-klavrium-on-kubernetes/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How does Klavrium run locally?' || t.startsWith('How does Klavrium run locally?'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_safespring_case_study', () => { | |
| test('blog_safespring_case_study: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/safespring-case-study/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('how nordvault ships 100% predictable, co'); | |
| }); | |
| test('blog_safespring_case_study: h1 "How Nordvault Ships 100% Predi"', async ({ page }) => { | |
| await page.goto('/blog/safespring-case-study/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How Nordvault Ships 100% Predictable, Consistent Ansible Deployments with Klavrium' || t.startsWith('How Nordvault Ships 100% Predictable, Consistent Ansible Deployments with Klavrium'))).toBeTruthy(); | |
| }); | |
| test('blog_safespring_case_study: h2 "Come build with us"', async ({ page }) => { | |
| await page.goto('/blog/safespring-case-study/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Come build with us' || t.startsWith('Come build with us'))).toBeTruthy(); | |
| }); | |
| test('blog_safespring_case_study: h2 "Get updates by email and know "', async ({ page }) => { | |
| await page.goto('/blog/safespring-case-study/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get updates by email and know it first' || t.startsWith('Get updates by email and know it first'))).toBeTruthy(); | |
| }); | |
| test('blog_safespring_case_study: h4 "Battling Environment Complexit"', async ({ page }) => { | |
| await page.goto('/blog/safespring-case-study/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Battling Environment Complexity and Inconsistency' || t.startsWith('Battling Environment Complexity and Inconsistency'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_series_a', () => { | |
| test('blog_series_a: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/series-a/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('announcing our \$20m series a led by vant'); | |
| }); | |
| test('blog_series_a: h1 "Announcing our \$20M Series A l"', async ({ page }) => { | |
| await page.goto('/blog/series-a/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Announcing our \$20M Series A led by Vantacore Partners' || t.startsWith('Announcing our \$20M Series A led by Vantacore Partners'))).toBeTruthy(); | |
| }); | |
| test('blog_series_a: h2 "Join the community"', async ({ page }) => { | |
| await page.goto('/blog/series-a/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join the community' || t.startsWith('Join the community'))).toBeTruthy(); | |
| }); | |
| test('blog_series_a: h2 "Get email updates and be the f"', async ({ page }) => { | |
| await page.goto('/blog/series-a/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get email updates and be the first to know' || t.startsWith('Get email updates and be the first to know'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_simpler_reusability_with_the_global_client', () => { | |
| test('blog_simpler_reusability_with_the_global_client: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/simpler-reusability-with-the-global-client/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('cleaner pipeline reuse with the global c'); | |
| }); | |
| test('blog_simpler_reusability_with_the_global_client: h1 "Cleaner Pipeline Reuse with th"', async ({ page }) => { | |
| await page.goto('/blog/simpler-reusability-with-the-global-client/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cleaner Pipeline Reuse with the Global Client' || t.startsWith('Cleaner Pipeline Reuse with the Global Client'))).toBeTruthy(); | |
| }); | |
| test('blog_simpler_reusability_with_the_global_client: h2 "Join fellow builders"', async ({ page }) => { | |
| await page.goto('/blog/simpler-reusability-with-the-global-client/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join fellow builders' || t.startsWith('Join fellow builders'))).toBeTruthy(); | |
| }); | |
| test('blog_simpler_reusability_with_the_global_client: h2 "Subscribe for updates and hear"', async ({ page }) => { | |
| await page.goto('/blog/simpler-reusability-with-the-global-client/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Subscribe for updates and hear the news.' || t.startsWith('Subscribe for updates and hear the news.'))).toBeTruthy(); | |
| }); | |
| test('blog_simpler_reusability_with_the_global_client: h3 "Motivation"', async ({ page }) => { | |
| await page.goto('/blog/simpler-reusability-with-the-global-client/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Motivation' || t.startsWith('Motivation'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_simplifying_notifications', () => { | |
| test('blog_simplifying_notifications: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/simplifying-notifications/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('simplifying notifications in your pipeli'); | |
| }); | |
| test('blog_simplifying_notifications: h1 "Simplifying Notifications in y"', async ({ page }) => { | |
| await page.goto('/blog/simplifying-notifications/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Simplifying Notifications in your Pipeline with Nuvo and Klavrium' || t.startsWith('Simplifying Notifications in your Pipeline with Nuvo and Klavrium'))).toBeTruthy(); | |
| }); | |
| test('blog_simplifying_notifications: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/simplifying-notifications/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_simplifying_notifications: h2 "Sign up for email updates and "', async ({ page }) => { | |
| await page.goto('/blog/simplifying-notifications/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sign up for email updates and never miss out' || t.startsWith('Sign up for email updates and never miss out'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_soc2_audit', () => { | |
| test('blog_soc2_audit: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/soc2-audit/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('klavrium successfully completed soc 2 au'); | |
| }); | |
| test('blog_soc2_audit: h2 "Join the community"', async ({ page }) => { | |
| await page.goto('/blog/soc2-audit/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join the community' || t.startsWith('Join the community'))).toBeTruthy(); | |
| }); | |
| test('blog_soc2_audit: h2 "Get email updates, be the firs"', async ({ page }) => { | |
| await page.goto('/blog/soc2-audit/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get email updates, be the first to know' || t.startsWith('Get email updates, be the first to know'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_spring_application', () => { | |
| test('blog_spring_application: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/spring-application/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('continuously ship a trellis application '); | |
| }); | |
| test('blog_spring_application: h1 "Continuously Ship a Trellis Ap"', async ({ page }) => { | |
| await page.goto('/blog/spring-application/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Continuously Ship a Trellis Application Using Klavrium' || t.startsWith('Continuously Ship a Trellis Application Using Klavrium'))).toBeTruthy(); | |
| }); | |
| test('blog_spring_application: h2 "Come meet our crew"', async ({ page }) => { | |
| await page.goto('/blog/spring-application/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Come meet our crew' || t.startsWith('Come meet our crew'))).toBeTruthy(); | |
| }); | |
| test('blog_spring_application: h2 "Subscribe for product news and"', async ({ page }) => { | |
| await page.goto('/blog/spring-application/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Subscribe for product news and hear about it first.' || t.startsWith('Subscribe for product news and hear about it first.'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_substitute_yaml_with_nouns_and_verbs_in_ci_cd_pipelines', () => { | |
| test('blog_substitute_yaml_with_nouns_and_verbs_in_ci_cd_pipelines: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/substitute-yaml-with-nouns-and-verbs-in-ci-cd-pipelines/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('swap yaml for nouns and verbs in your ci'); | |
| }); | |
| test('blog_substitute_yaml_with_nouns_and_verbs_in_ci_cd_pipelines: h1 "Replace YAML with Nouns and Ve"', async ({ page }) => { | |
| await page.goto('/blog/substitute-yaml-with-nouns-and-verbs-in-ci-cd-pipelines/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Replace YAML with Nouns and Verbs in CI/CD Pipelines' || t.startsWith('Replace YAML with Nouns and Verbs in CI/CD Pipelines'))).toBeTruthy(); | |
| }); | |
| test('blog_substitute_yaml_with_nouns_and_verbs_in_ci_cd_pipelines: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/substitute-yaml-with-nouns-and-verbs-in-ci-cd-pipelines/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_substitute_yaml_with_nouns_and_verbs_in_ci_cd_pipelines: h2 "Get product updates and be the"', async ({ page }) => { | |
| await page.goto('/blog/substitute-yaml-with-nouns-and-verbs-in-ci-cd-pipelines/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get product updates and be the first to know' || t.startsWith('Get product updates and be the first to know'))).toBeTruthy(); | |
| }); | |
| test('blog_substitute_yaml_with_nouns_and_verbs_in_ci_cd_pipelines: h4 "Runic as Frontend and UX for K"', async ({ page }) => { | |
| await page.goto('/blog/substitute-yaml-with-nouns-and-verbs-in-ci-cd-pipelines/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Runic as Frontend and UX for Klavrium' || t.startsWith('Runic as Frontend and UX for Klavrium'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_typescript_sdk_performance', () => { | |
| test('blog_typescript_sdk_performance: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/typescript-sdk-performance/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('how we cut cold starts in our typescript'); | |
| }); | |
| test('blog_typescript_sdk_performance: h1 "How Bundling Cut 50% off Cold "', async ({ page }) => { | |
| await page.goto('/blog/typescript-sdk-performance/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How Bundling Cut 50% off Cold Starts in our TypeScript SDK' || t.startsWith('How Bundling Cut 50% off Cold Starts in our TypeScript SDK'))).toBeTruthy(); | |
| }); | |
| test('blog_typescript_sdk_performance: h2 "Background"', async ({ page }) => { | |
| await page.goto('/blog/typescript-sdk-performance/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); | |
| }); | |
| test('blog_typescript_sdk_performance: h2 "Performance Roadblocks"', async ({ page }) => { | |
| await page.goto('/blog/typescript-sdk-performance/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Performance Roadblocks' || t.startsWith('Performance Roadblocks'))).toBeTruthy(); | |
| }); | |
| test('blog_typescript_sdk_performance: h2 "The Bundling Promise"', async ({ page }) => { | |
| await page.goto('/blog/typescript-sdk-performance/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The Bundling Promise' || t.startsWith('The Bundling Promise'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_works_on_my_machine', () => { | |
| test('blog_works_on_my_machine: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/works-on-my-machine/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('ending the “works on my machine” struggl'); | |
| }); | |
| test('blog_works_on_my_machine: h1 "Retiring the “Works on my Mach"', async ({ page }) => { | |
| await page.goto('/blog/works-on-my-machine/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Retiring the “Works on my Machine” Problem' || t.startsWith('Retiring the “Works on my Machine” Problem'))).toBeTruthy(); | |
| }); | |
| test('blog_works_on_my_machine: h2 "Be part of the community"', async ({ page }) => { | |
| await page.goto('/blog/works-on-my-machine/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Be part of the community' || t.startsWith('Be part of the community'))).toBeTruthy(); | |
| }); | |
| test('blog_works_on_my_machine: h2 "Get email updates and be the f"', async ({ page }) => { | |
| await page.goto('/blog/works-on-my-machine/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get email updates and be the first to know' || t.startsWith('Get email updates and be the first to know'))).toBeTruthy(); | |
| }); | |
| test('blog_works_on_my_machine: h3 "Slow, inconsistent CI environm"', async ({ page }) => { | |
| await page.goto('/blog/works-on-my-machine/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Slow, inconsistent CI environments that dragged down development' || t.startsWith('Slow, inconsistent CI environments that dragged down development'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_zenith_does_ai', () => { | |
| test('blog_zenith_does_ai: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/zenith-does-ai/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('nimbus does ai'); | |
| }); | |
| test('blog_zenith_does_ai: h1 "Nimbus Does AI"', async ({ page }) => { | |
| await page.goto('/blog/zenith-does-ai/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Nimbus Does AI' || t.startsWith('Nimbus Does AI'))).toBeTruthy(); | |
| }); | |
| test('blog_zenith_does_ai: h2 "Join our community"', async ({ page }) => { | |
| await page.goto('/blog/zenith-does-ai/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); | |
| }); | |
| test('blog_zenith_does_ai: h2 "Get our updates, be the first "', async ({ page }) => { | |
| await page.goto('/blog/zenith-does-ai/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get our updates, be the first to hear it' || t.startsWith('Get our updates, be the first to hear it'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - Routing', () => { | |
| test('navigate to blog via "Blog"', async ({ page }) => { | |
| await page.goto('/'); | |
| const link = page.locator('a[href*="blog"]').first(); | |
| expect(await link.count(), 'nav link to blog exists').toBeGreaterThan(0); | |
| await link.click(); | |
| await page.waitForTimeout(1200); | |
| expect(page.url().toLowerCase(), 'URL changed to destination').toContain('blog'); | |
| const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); | |
| expect(bodyText, 'destination distinctive content shown').toContain('Cache tuning for modules'); | |
| }); | |
| test('navigate to changelog via "Changelog"', async ({ page }) => { | |
| await page.goto('/'); | |
| const link = page.locator('a[href*="changelog"]').first(); | |
| expect(await link.count(), 'nav link to changelog exists').toBeGreaterThan(0); | |
| await link.click(); | |
| await page.waitForTimeout(1200); | |
| expect(page.url().toLowerCase(), 'URL changed to destination').toContain('changelog'); | |
| const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); | |
| expect(bodyText, 'destination distinctive content shown').toContain('Modules v2'); | |
| }); | |
| }); | |