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('breezel'); }); }); test.describe('Functional - blog', () => { test('blog: title matches GT', async ({ page }) => { await page.goto('/blog/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('blog'); }); test('blog: h3 "Breezel Plus"', 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 === 'Breezel Plus' || t.startsWith('Breezel Plus'))).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"', 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' || t.startsWith('Brand'))).toBeTruthy(); }); test('brand: h2 "Trademark usage agreement"', 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 === 'Trademark usage agreement' || t.startsWith('Trademark usage agreement'))).toBeTruthy(); }); test('brand: h2 "Assets"', 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 === 'Assets' || t.startsWith('Assets'))).toBeTruthy(); }); test('brand: h3 "Mark"', async ({ page }) => { await page.goto('/brand/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Mark' || t.startsWith('Mark'))).toBeTruthy(); }); test('brand: nav link "Documentation"', async ({ page }) => { await page.goto('/brand/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('installation')), 'href fragment present').toBeTruthy(); }); test('brand: nav link "Components"', async ({ page }) => { await page.goto('/brand/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Components' || t.startsWith('Components')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ui-blocks')), 'href fragment present').toBeTruthy(); }); test('brand: nav link "Templates"', async ({ page }) => { await page.goto('/brand/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Templates' || t.startsWith('Templates')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('templates')), 'href fragment present').toBeTruthy(); }); test('brand: nav link "UI Kit"', async ({ page }) => { await page.goto('/brand/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'UI Kit' || t.startsWith('UI Kit')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ui-kit')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - build_uis_that_dont_suck', () => { test('build_uis_that_dont_suck: title matches GT', async ({ page }) => { await page.goto('/build-uis-that-dont-suck/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('craft interfaces people love'); }); test('build_uis_that_dont_suck: h1 "Build UIs that don’t suck."', async ({ page }) => { await page.goto('/build-uis-that-dont-suck/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Build UIs that don’t suck.' || t.startsWith('Build UIs that don’t suck.'))).toBeTruthy(); }); }); test.describe('Functional - docs', () => { test('docs: title matches GT', async ({ page }) => { await page.goto('/docs/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('installing breezel css with vite'); }); test('docs: h1 "Installing Breezel CSS with Vi"', async ({ page }) => { await page.goto('/docs/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Installing Breezel CSS with Vite' || t.startsWith('Installing Breezel CSS with Vite'))).toBeTruthy(); }); test('docs: h2 "Using Vite"', async ({ page }) => { await page.goto('/docs/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Using Vite' || t.startsWith('Using Vite'))).toBeTruthy(); }); test('docs: h2 "Using PostCSS"', async ({ page }) => { await page.goto('/docs/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Using PostCSS' || t.startsWith('Using PostCSS'))).toBeTruthy(); }); test('docs: h2 "Breezel CLI"', async ({ page }) => { await page.goto('/docs/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Breezel CLI' || t.startsWith('Breezel CLI'))).toBeTruthy(); }); }); test.describe('Functional - plus', () => { test('plus: title matches GT', async ({ page }) => { await page.goto('/plus/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('official breezel ui components & templat'); }); test('plus: h1 "Build your next idea even fast"', async ({ page }) => { await page.goto('/plus/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Build your next idea even faster.' || t.startsWith('Build your next idea even faster.'))).toBeTruthy(); }); test('plus: h2 "Loved by devs"', async ({ page }) => { await page.goto('/plus/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Loved by devs' || t.startsWith('Loved by devs'))).toBeTruthy(); }); test('plus: h2 "Beautiful UI components, built"', async ({ page }) => { await page.goto('/plus/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Beautiful UI components, built for real-world projects.' || t.startsWith('Beautiful UI components, built for real-world projects.'))).toBeTruthy(); }); test('plus: h2 "Modern website templates, read"', async ({ page }) => { await page.goto('/plus/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Modern website templates, ready for your next launch.' || t.startsWith('Modern website templates, ready for your next launch.'))).toBeTruthy(); }); test('plus: header link "Breezel Plus"', async ({ page }) => { await page.goto('/plus/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Breezel Plus' || t.startsWith('Breezel Plus')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('plus')), 'href fragment present').toBeTruthy(); }); test('plus: header link "Introducing MeadowOur fresh mu"', async ({ page }) => { await page.goto('/plus/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Introducing MeadowOur fresh multi-theme marketing site kit' || t.startsWith('Introducing MeadowOur fresh multi-theme marketing site kit')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('oatmeal')), 'href fragment present').toBeTruthy(); }); test('plus: header link "UI Blocks"', async ({ page }) => { await page.goto('/plus/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'UI Blocks' || t.startsWith('UI Blocks')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ui-blocks')), 'href fragment present').toBeTruthy(); }); test('plus: header link "Templates"', async ({ page }) => { await page.goto('/plus/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Templates' || t.startsWith('Templates')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('templates')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - plus_templates', () => { test('plus_templates: title matches GT', async ({ page }) => { await page.goto('/plus/templates/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('breezel css templates'); }); test('plus_templates: h1 "Modern website templates, craf"', async ({ page }) => { await page.goto('/plus/templates/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Modern website templates, crafted with Breezel CSS.' || t.startsWith('Modern website templates, crafted with Breezel CSS.'))).toBeTruthy(); }); test('plus_templates: h3 "Lantern"', async ({ page }) => { await page.goto('/plus/templates/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Lantern' || t.startsWith('Lantern'))).toBeTruthy(); }); test('plus_templates: h3 "Limelight"', async ({ page }) => { await page.goto('/plus/templates/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Limelight' || t.startsWith('Limelight'))).toBeTruthy(); }); test('plus_templates: h3 "Beacon"', async ({ page }) => { await page.goto('/plus/templates/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Beacon' || t.startsWith('Beacon'))).toBeTruthy(); }); test('plus_templates: header link "Breezel Plus"', async ({ page }) => { await page.goto('/plus/templates/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Breezel Plus' || t.startsWith('Breezel Plus')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('plus')), 'href fragment present').toBeTruthy(); }); test('plus_templates: header link "Introducing LanternOur fresh m"', async ({ page }) => { await page.goto('/plus/templates/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Introducing LanternOur fresh multi-theme marketing site kit' || t.startsWith('Introducing LanternOur fresh multi-theme marketing site kit')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('oatmeal')), 'href fragment present').toBeTruthy(); }); test('plus_templates: header link "UI Blocks"', async ({ page }) => { await page.goto('/plus/templates/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'UI Blocks' || t.startsWith('UI Blocks')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ui-blocks')), 'href fragment present').toBeTruthy(); }); test('plus_templates: header link "Templates"', async ({ page }) => { await page.goto('/plus/templates/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Templates' || t.startsWith('Templates')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('templates')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - plus_ui_blocks', () => { test('plus_ui_blocks: title matches GT', async ({ page }) => { await page.goto('/plus/ui-blocks/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('breezel ui components'); }); test('plus_ui_blocks: h1 "Beautiful UI components, craft"', async ({ page }) => { await page.goto('/plus/ui-blocks/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Beautiful UI components, crafted with Breezel CSS.' || t.startsWith('Beautiful UI components, crafted with Breezel CSS.'))).toBeTruthy(); }); test('plus_ui_blocks: h2 "Marketing"', async ({ page }) => { await page.goto('/plus/ui-blocks/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Marketing' || t.startsWith('Marketing'))).toBeTruthy(); }); test('plus_ui_blocks: h2 "Application UI"', async ({ page }) => { await page.goto('/plus/ui-blocks/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Application UI' || t.startsWith('Application UI'))).toBeTruthy(); }); test('plus_ui_blocks: h2 "Ecommerce"', async ({ page }) => { await page.goto('/plus/ui-blocks/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ecommerce' || t.startsWith('Ecommerce'))).toBeTruthy(); }); test('plus_ui_blocks: header link "Breezel Plus"', async ({ page }) => { await page.goto('/plus/ui-blocks/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Breezel Plus' || t.startsWith('Breezel Plus')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('plus')), 'href fragment present').toBeTruthy(); }); test('plus_ui_blocks: header link "Introducing SaffronA brand-new"', async ({ page }) => { await page.goto('/plus/ui-blocks/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Introducing SaffronA brand-new multi-theme marketing site ki' || t.startsWith('Introducing SaffronA brand-new multi-theme marketing site ki')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('oatmeal')), 'href fragment present').toBeTruthy(); }); test('plus_ui_blocks: header link "UI Blocks"', async ({ page }) => { await page.goto('/plus/ui-blocks/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'UI Blocks' || t.startsWith('UI Blocks')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ui-blocks')), 'href fragment present').toBeTruthy(); }); test('plus_ui_blocks: header link "Templates"', async ({ page }) => { await page.goto('/plus/ui-blocks/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Templates' || t.startsWith('Templates')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('templates')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - plus_ui_kit', () => { test('plus_ui_kit: title matches GT', async ({ page }) => { await page.goto('/plus/ui-kit/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('zephyr'); }); test('plus_ui_kit: h1 "Meet Zephyr, a beautiful, UI k"', async ({ page }) => { await page.goto('/plus/ui-kit/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Meet Zephyr, a beautiful, UI kit built with React and Breezel CSS' || t.startsWith('Meet Zephyr, a beautiful, UI kit built with React and Breezel CSS'))).toBeTruthy(); }); test('plus_ui_kit: h2 "Every pixel designed with inte"', async ({ page }) => { await page.goto('/plus/ui-kit/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Every pixel designed with intent' || t.startsWith('Every pixel designed with intent'))).toBeTruthy(); }); test('plus_ui_kit: h2 "A starter kit for building you"', async ({ page }) => { await page.goto('/plus/ui-kit/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'A starter kit for building your own component systems' || t.startsWith('A starter kit for building your own component systems'))).toBeTruthy(); }); test('plus_ui_kit: h2 "Pricing"', async ({ page }) => { await page.goto('/plus/ui-kit/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing'))).toBeTruthy(); }); test('plus_ui_kit: header link "Breezel Plus"', async ({ page }) => { await page.goto('/plus/ui-kit/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Breezel Plus' || t.startsWith('Breezel Plus')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('plus')), 'href fragment present').toBeTruthy(); }); test('plus_ui_kit: header link "Introducing MeadowOur fresh mu"', async ({ page }) => { await page.goto('/plus/ui-kit/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Introducing MeadowOur fresh multi-theme landing page kit' || t.startsWith('Introducing MeadowOur fresh multi-theme landing page kit')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('oatmeal')), 'href fragment present').toBeTruthy(); }); test('plus_ui_kit: header link "UI Blocks"', async ({ page }) => { await page.goto('/plus/ui-kit/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'UI Blocks' || t.startsWith('UI Blocks')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ui-blocks')), 'href fragment present').toBeTruthy(); }); test('plus_ui_kit: header link "Templates"', async ({ page }) => { await page.goto('/plus/ui-kit/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Templates' || t.startsWith('Templates')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('templates')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - showcase', () => { test('showcase: title matches GT', async ({ page }) => { await page.goto('/showcase/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('showcase'); }); test('showcase: h2 "Junction"', async ({ page }) => { await page.goto('/showcase/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Junction' || t.startsWith('Junction'))).toBeTruthy(); }); test('showcase: h2 "Pax"', async ({ page }) => { await page.goto('/showcase/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pax' || t.startsWith('Pax'))).toBeTruthy(); }); test('showcase: h2 "Buildly"', async ({ page }) => { await page.goto('/showcase/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Buildly' || t.startsWith('Buildly'))).toBeTruthy(); }); }); test.describe('Functional - sponsor', () => { test('sponsor: title matches GT', async ({ page }) => { await page.goto('/sponsor/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sponsor'); }); test('sponsor: h1 "Support the future of Breezel "', async ({ page }) => { await page.goto('/sponsor/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support the future of Breezel CSS' || t.startsWith('Support the future of Breezel CSS'))).toBeTruthy(); }); test('sponsor: h2 "Frequently asked questions"', async ({ page }) => { await page.goto('/sponsor/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Frequently asked questions' || t.startsWith('Frequently asked questions'))).toBeTruthy(); }); }); test.describe('Functional - docs_accent_color', () => { test('docs_accent_color: title matches GT', async ({ page }) => { await page.goto('/docs/accent-color/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('accent'); }); test('docs_accent_color: h1 "accent-color"', async ({ page }) => { await page.goto('/docs/accent-color/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'accent-color' || t.startsWith('accent-color'))).toBeTruthy(); }); test('docs_accent_color: h2 "Examples"', async ({ page }) => { await page.goto('/docs/accent-color/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_accent_color: h2 "Tailoring your theme"', async ({ page }) => { await page.goto('/docs/accent-color/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Tailoring your theme' || t.startsWith('Tailoring your theme'))).toBeTruthy(); }); test('docs_accent_color: h3 "Applying an accent color"', async ({ page }) => { await page.goto('/docs/accent-color/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Applying an accent color' || t.startsWith('Applying an accent color'))).toBeTruthy(); }); }); test.describe('Functional - docs_adding_custom_styles', () => { test('docs_adding_custom_styles: title matches GT', async ({ page }) => { await page.goto('/docs/adding-custom-styles/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('bringing in custom styles'); }); test('docs_adding_custom_styles: h1 "Bringing in custom styles"', async ({ page }) => { await page.goto('/docs/adding-custom-styles/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Bringing in custom styles' || t.startsWith('Bringing in custom styles'))).toBeTruthy(); }); test('docs_adding_custom_styles: h2 "Customizing the theme"', async ({ page }) => { await page.goto('/docs/adding-custom-styles/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Customizing the theme' || t.startsWith('Customizing the theme'))).toBeTruthy(); }); test('docs_adding_custom_styles: h2 "Working with raw values"', async ({ page }) => { await page.goto('/docs/adding-custom-styles/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Working with raw values' || t.startsWith('Working with raw values'))).toBeTruthy(); }); test('docs_adding_custom_styles: h2 "Using custom CSS"', async ({ page }) => { await page.goto('/docs/adding-custom-styles/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Using custom CSS' || t.startsWith('Using custom CSS'))).toBeTruthy(); }); }); test.describe('Functional - docs_align_content', () => { test('docs_align_content: title matches GT', async ({ page }) => { await page.goto('/docs/align-content/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('align'); }); test('docs_align_content: h1 "align-content"', async ({ page }) => { await page.goto('/docs/align-content/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'align-content' || t.startsWith('align-content'))).toBeTruthy(); }); test('docs_align_content: h2 "Examples"', async ({ page }) => { await page.goto('/docs/align-content/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_align_content: h3 "Start"', async ({ page }) => { await page.goto('/docs/align-content/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Start' || t.startsWith('Start'))).toBeTruthy(); }); test('docs_align_content: h3 "Center"', async ({ page }) => { await page.goto('/docs/align-content/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Center' || t.startsWith('Center'))).toBeTruthy(); }); }); test.describe('Functional - docs_animation', () => { test('docs_animation: title matches GT', async ({ page }) => { await page.goto('/docs/animation/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('animation'); }); test('docs_animation: h1 "animation"', async ({ page }) => { await page.goto('/docs/animation/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'animation' || t.startsWith('animation'))).toBeTruthy(); }); test('docs_animation: h2 "Examples"', async ({ page }) => { await page.goto('/docs/animation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_animation: h2 "Tailoring your theme"', async ({ page }) => { await page.goto('/docs/animation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Tailoring your theme' || t.startsWith('Tailoring your theme'))).toBeTruthy(); }); test('docs_animation: h3 "Applying a spin animation"', async ({ page }) => { await page.goto('/docs/animation/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Applying a spin animation' || t.startsWith('Applying a spin animation'))).toBeTruthy(); }); }); test.describe('Functional - docs_appearance', () => { test('docs_appearance: title matches GT', async ({ page }) => { await page.goto('/docs/appearance/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('appearance'); }); test('docs_appearance: h1 "appearance"', async ({ page }) => { await page.goto('/docs/appearance/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'appearance' || t.startsWith('appearance'))).toBeTruthy(); }); test('docs_appearance: h2 "Examples"', async ({ page }) => { await page.goto('/docs/appearance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_appearance: h3 "Stripping native appearance"', async ({ page }) => { await page.goto('/docs/appearance/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stripping native appearance' || t.startsWith('Stripping native appearance'))).toBeTruthy(); }); test('docs_appearance: h3 "Bringing back the default look"', async ({ page }) => { await page.goto('/docs/appearance/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Bringing back the default look' || t.startsWith('Bringing back the default look'))).toBeTruthy(); }); }); test.describe('Functional - docs_backface_visibility', () => { test('docs_backface_visibility: title matches GT', async ({ page }) => { await page.goto('/docs/backface-visibility/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('backface'); }); test('docs_backface_visibility: h1 "backface-visibility"', async ({ page }) => { await page.goto('/docs/backface-visibility/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'backface-visibility' || t.startsWith('backface-visibility'))).toBeTruthy(); }); test('docs_backface_visibility: h2 "Examples"', async ({ page }) => { await page.goto('/docs/backface-visibility/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_backface_visibility: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/backface-visibility/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); test('docs_backface_visibility: h3 "Responsive design"', async ({ page }) => { await page.goto('/docs/backface-visibility/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Responsive design' || t.startsWith('Responsive design'))).toBeTruthy(); }); }); test.describe('Functional - docs_background_attachment', () => { test('docs_background_attachment: title matches GT', async ({ page }) => { await page.goto('/docs/background-attachment/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('background'); }); test('docs_background_attachment: h1 "background-attachment"', async ({ page }) => { await page.goto('/docs/background-attachment/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'background-attachment' || t.startsWith('background-attachment'))).toBeTruthy(); }); test('docs_background_attachment: h2 "Examples"', async ({ page }) => { await page.goto('/docs/background-attachment/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_background_attachment: h3 "Pinning the background image"', async ({ page }) => { await page.goto('/docs/background-attachment/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pinning the background image' || t.startsWith('Pinning the background image'))).toBeTruthy(); }); test('docs_background_attachment: h3 "Scrolling inside the container"', async ({ page }) => { await page.goto('/docs/background-attachment/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Scrolling inside the container' || t.startsWith('Scrolling inside the container'))).toBeTruthy(); }); }); test.describe('Functional - docs_background_blend_mode', () => { test('docs_background_blend_mode: title matches GT', async ({ page }) => { await page.goto('/docs/background-blend-mode/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('background'); }); test('docs_background_blend_mode: h1 "background-blend-mode"', async ({ page }) => { await page.goto('/docs/background-blend-mode/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'background-blend-mode' || t.startsWith('background-blend-mode'))).toBeTruthy(); }); test('docs_background_blend_mode: h2 "Examples"', async ({ page }) => { await page.goto('/docs/background-blend-mode/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_background_blend_mode: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/background-blend-mode/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); test('docs_background_blend_mode: h3 "Responsive design"', async ({ page }) => { await page.goto('/docs/background-blend-mode/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Responsive design' || t.startsWith('Responsive design'))).toBeTruthy(); }); }); test.describe('Functional - docs_background_clip', () => { test('docs_background_clip: title matches GT', async ({ page }) => { await page.goto('/docs/background-clip/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('background'); }); test('docs_background_clip: h1 "background-clip"', async ({ page }) => { await page.goto('/docs/background-clip/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'background-clip' || t.startsWith('background-clip'))).toBeTruthy(); }); test('docs_background_clip: h2 "Examples"', async ({ page }) => { await page.goto('/docs/background-clip/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_background_clip: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/background-clip/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); test('docs_background_clip: h3 "Clipping to text"', async ({ page }) => { await page.goto('/docs/background-clip/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Clipping to text' || t.startsWith('Clipping to text'))).toBeTruthy(); }); }); test.describe('Functional - docs_background_color', () => { test('docs_background_color: title matches GT', async ({ page }) => { await page.goto('/docs/background-color/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('background'); }); test('docs_background_color: h1 "background-color"', async ({ page }) => { await page.goto('/docs/background-color/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'background-color' || t.startsWith('background-color'))).toBeTruthy(); }); test('docs_background_color: h2 "Examples"', async ({ page }) => { await page.goto('/docs/background-color/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_background_color: h2 "Tailoring your theme"', async ({ page }) => { await page.goto('/docs/background-color/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Tailoring your theme' || t.startsWith('Tailoring your theme'))).toBeTruthy(); }); test('docs_background_color: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/background-color/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); }); test.describe('Functional - docs_background_image', () => { test('docs_background_image: title matches GT', async ({ page }) => { await page.goto('/docs/background-image/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('background'); }); test('docs_background_image: h1 "background-image"', async ({ page }) => { await page.goto('/docs/background-image/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'background-image' || t.startsWith('background-image'))).toBeTruthy(); }); test('docs_background_image: h2 "Examples"', async ({ page }) => { await page.goto('/docs/background-image/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_background_image: h2 "Customizing your theme"', async ({ page }) => { await page.goto('/docs/background-image/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Customizing your theme' || t.startsWith('Customizing your theme'))).toBeTruthy(); }); test('docs_background_image: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/background-image/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); }); test.describe('Functional - docs_background_origin', () => { test('docs_background_origin: title matches GT', async ({ page }) => { await page.goto('/docs/background-origin/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('background'); }); test('docs_background_origin: h1 "background-origin"', async ({ page }) => { await page.goto('/docs/background-origin/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'background-origin' || t.startsWith('background-origin'))).toBeTruthy(); }); test('docs_background_origin: h2 "Examples"', async ({ page }) => { await page.goto('/docs/background-origin/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_background_origin: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/background-origin/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); test('docs_background_origin: h3 "Responsive design"', async ({ page }) => { await page.goto('/docs/background-origin/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Responsive design' || t.startsWith('Responsive design'))).toBeTruthy(); }); }); test.describe('Functional - docs_background_repeat', () => { test('docs_background_repeat: title matches GT', async ({ page }) => { await page.goto('/docs/background-repeat/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('background'); }); test('docs_background_repeat: h1 "background-repeat"', async ({ page }) => { await page.goto('/docs/background-repeat/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'background-repeat' || t.startsWith('background-repeat'))).toBeTruthy(); }); test('docs_background_repeat: h2 "Examples"', async ({ page }) => { await page.goto('/docs/background-repeat/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_background_repeat: h3 "Getting started"', async ({ page }) => { await page.goto('/docs/background-repeat/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Getting started' || t.startsWith('Getting started'))).toBeTruthy(); }); test('docs_background_repeat: h3 "Tiling side to side"', async ({ page }) => { await page.goto('/docs/background-repeat/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Tiling side to side' || t.startsWith('Tiling side to side'))).toBeTruthy(); }); }); test.describe('Functional - docs_background_size', () => { test('docs_background_size: title matches GT', async ({ page }) => { await page.goto('/docs/background-size/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('background'); }); test('docs_background_size: h1 "background-size"', async ({ page }) => { await page.goto('/docs/background-size/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'background-size' || t.startsWith('background-size'))).toBeTruthy(); }); test('docs_background_size: h2 "Examples"', async ({ page }) => { await page.goto('/docs/background-size/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_background_size: h3 "Covering the full area"', async ({ page }) => { await page.goto('/docs/background-size/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Covering the full area' || t.startsWith('Covering the full area'))).toBeTruthy(); }); test('docs_background_size: h3 "Fitting inside the edges"', async ({ page }) => { await page.goto('/docs/background-size/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Fitting inside the edges' || t.startsWith('Fitting inside the edges'))).toBeTruthy(); }); }); test.describe('Functional - docs_block_size', () => { test('docs_block_size: title matches GT', async ({ page }) => { await page.goto('/docs/block-size/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('block'); }); test('docs_block_size: h1 "block-size"', async ({ page }) => { await page.goto('/docs/block-size/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'block-size' || t.startsWith('block-size'))).toBeTruthy(); }); test('docs_block_size: h2 "Examples"', async ({ page }) => { await page.goto('/docs/block-size/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_block_size: h2 "Tailoring your theme"', async ({ page }) => { await page.goto('/docs/block-size/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Tailoring your theme' || t.startsWith('Tailoring your theme'))).toBeTruthy(); }); test('docs_block_size: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/block-size/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); }); test.describe('Functional - docs_border_collapse', () => { test('docs_border_collapse: title matches GT', async ({ page }) => { await page.goto('/docs/border-collapse/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('border'); }); test('docs_border_collapse: h1 "border-collapse"', async ({ page }) => { await page.goto('/docs/border-collapse/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'border-collapse' || t.startsWith('border-collapse'))).toBeTruthy(); }); test('docs_border_collapse: h2 "Examples"', async ({ page }) => { await page.goto('/docs/border-collapse/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_border_collapse: h3 "Merging adjacent borders"', async ({ page }) => { await page.goto('/docs/border-collapse/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Merging adjacent borders' || t.startsWith('Merging adjacent borders'))).toBeTruthy(); }); test('docs_border_collapse: h3 "Separating table borders"', async ({ page }) => { await page.goto('/docs/border-collapse/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Separating table borders' || t.startsWith('Separating table borders'))).toBeTruthy(); }); }); test.describe('Functional - docs_border_color', () => { test('docs_border_color: title matches GT', async ({ page }) => { await page.goto('/docs/border-color/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('border'); }); test('docs_border_color: h1 "border-color"', async ({ page }) => { await page.goto('/docs/border-color/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'border-color' || t.startsWith('border-color'))).toBeTruthy(); }); test('docs_border_color: h2 "Examples"', async ({ page }) => { await page.goto('/docs/border-color/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_border_color: h2 "Shaping your own theme"', async ({ page }) => { await page.goto('/docs/border-color/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Shaping your own theme' || t.startsWith('Shaping your own theme'))).toBeTruthy(); }); test('docs_border_color: h3 "Simple example"', async ({ page }) => { await page.goto('/docs/border-color/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Simple example' || t.startsWith('Simple example'))).toBeTruthy(); }); }); test.describe('Functional - docs_border_radius', () => { test('docs_border_radius: title matches GT', async ({ page }) => { await page.goto('/docs/border-radius/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('border'); }); test('docs_border_radius: h1 "border-radius"', async ({ page }) => { await page.goto('/docs/border-radius/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'border-radius' || t.startsWith('border-radius'))).toBeTruthy(); }); test('docs_border_radius: h2 "Samples"', async ({ page }) => { await page.goto('/docs/border-radius/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Samples' || t.startsWith('Samples'))).toBeTruthy(); }); test('docs_border_radius: h2 "Tailoring your theme"', async ({ page }) => { await page.goto('/docs/border-radius/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Tailoring your theme' || t.startsWith('Tailoring your theme'))).toBeTruthy(); }); test('docs_border_radius: h3 "Simple example"', async ({ page }) => { await page.goto('/docs/border-radius/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Simple example' || t.startsWith('Simple example'))).toBeTruthy(); }); }); test.describe('Functional - docs_border_spacing', () => { test('docs_border_spacing: title matches GT', async ({ page }) => { await page.goto('/docs/border-spacing/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('border'); }); test('docs_border_spacing: h1 "border-spacing"', async ({ page }) => { await page.goto('/docs/border-spacing/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'border-spacing' || t.startsWith('border-spacing'))).toBeTruthy(); }); test('docs_border_spacing: h2 "Examples"', async ({ page }) => { await page.goto('/docs/border-spacing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_border_spacing: h2 "Customizing your theme"', async ({ page }) => { await page.goto('/docs/border-spacing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Customizing your theme' || t.startsWith('Customizing your theme'))).toBeTruthy(); }); test('docs_border_spacing: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/border-spacing/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); }); test.describe('Functional - docs_border_style', () => { test('docs_border_style: title matches GT', async ({ page }) => { await page.goto('/docs/border-style/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('border'); }); test('docs_border_style: h1 "border-style"', async ({ page }) => { await page.goto('/docs/border-style/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'border-style' || t.startsWith('border-style'))).toBeTruthy(); }); test('docs_border_style: h2 "Examples"', async ({ page }) => { await page.goto('/docs/border-style/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_border_style: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/border-style/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); test('docs_border_style: h3 "Clearing a border"', async ({ page }) => { await page.goto('/docs/border-style/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Clearing a border' || t.startsWith('Clearing a border'))).toBeTruthy(); }); }); test.describe('Functional - docs_border_width', () => { test('docs_border_width: title matches GT', async ({ page }) => { await page.goto('/docs/border-width/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('border'); }); test('docs_border_width: h1 "border-width"', async ({ page }) => { await page.goto('/docs/border-width/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'border-width' || t.startsWith('border-width'))).toBeTruthy(); }); test('docs_border_width: h2 "Examples"', async ({ page }) => { await page.goto('/docs/border-width/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_border_width: h3 "Basic usage"', async ({ page }) => { await page.goto('/docs/border-width/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic usage' || t.startsWith('Basic usage'))).toBeTruthy(); }); test('docs_border_width: h3 "One side at a time"', async ({ page }) => { await page.goto('/docs/border-width/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'One side at a time' || t.startsWith('One side at a time'))).toBeTruthy(); }); }); test.describe('Functional - docs_box_decoration_break', () => { test('docs_box_decoration_break: title matches GT', async ({ page }) => { await page.goto('/docs/box-decoration-break/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('box'); }); test('docs_box_decoration_break: h1 "box-decoration-break"', async ({ page }) => { await page.goto('/docs/box-decoration-break/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'box-decoration-break' || t.startsWith('box-decoration-break'))).toBeTruthy(); }); test('docs_box_decoration_break: h2 "Examples"', async ({ page }) => { await page.goto('/docs/box-decoration-break/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_box_decoration_break: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/box-decoration-break/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); test('docs_box_decoration_break: h3 "Responsive design"', async ({ page }) => { await page.goto('/docs/box-decoration-break/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Responsive design' || t.startsWith('Responsive design'))).toBeTruthy(); }); }); test.describe('Functional - docs_box_shadow', () => { test('docs_box_shadow: title matches GT', async ({ page }) => { await page.goto('/docs/box-shadow/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('box'); }); test('docs_box_shadow: h1 "box-shadow"', async ({ page }) => { await page.goto('/docs/box-shadow/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'box-shadow' || t.startsWith('box-shadow'))).toBeTruthy(); }); test('docs_box_shadow: h2 "Examples"', async ({ page }) => { await page.goto('/docs/box-shadow/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_box_shadow: h2 "Customizing your theme"', async ({ page }) => { await page.goto('/docs/box-shadow/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Customizing your theme' || t.startsWith('Customizing your theme'))).toBeTruthy(); }); test('docs_box_shadow: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/box-shadow/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); }); test.describe('Functional - docs_box_sizing', () => { test('docs_box_sizing: title matches GT', async ({ page }) => { await page.goto('/docs/box-sizing/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('box'); }); test('docs_box_sizing: h1 "box-sizing"', async ({ page }) => { await page.goto('/docs/box-sizing/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'box-sizing' || t.startsWith('box-sizing'))).toBeTruthy(); }); test('docs_box_sizing: h2 "Examples"', async ({ page }) => { await page.goto('/docs/box-sizing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_box_sizing: h3 "Baking in borders and padding"', async ({ page }) => { await page.goto('/docs/box-sizing/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Baking in borders and padding' || t.startsWith('Baking in borders and padding'))).toBeTruthy(); }); test('docs_box_sizing: h3 "Leaving out borders and paddin"', async ({ page }) => { await page.goto('/docs/box-sizing/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Leaving out borders and padding' || t.startsWith('Leaving out borders and padding'))).toBeTruthy(); }); }); test.describe('Functional - docs_break_after', () => { test('docs_break_after: title matches GT', async ({ page }) => { await page.goto('/docs/break-after/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('break'); }); test('docs_break_after: h1 "break-after"', async ({ page }) => { await page.goto('/docs/break-after/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'break-after' || t.startsWith('break-after'))).toBeTruthy(); }); test('docs_break_after: h2 "Examples"', async ({ page }) => { await page.goto('/docs/break-after/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_break_after: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/break-after/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); test('docs_break_after: h3 "Responsive design"', async ({ page }) => { await page.goto('/docs/break-after/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Responsive design' || t.startsWith('Responsive design'))).toBeTruthy(); }); }); test.describe('Functional - docs_break_before', () => { test('docs_break_before: title matches GT', async ({ page }) => { await page.goto('/docs/break-before/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('break'); }); test('docs_break_before: h1 "break-before"', async ({ page }) => { await page.goto('/docs/break-before/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'break-before' || t.startsWith('break-before'))).toBeTruthy(); }); test('docs_break_before: h2 "Examples"', async ({ page }) => { await page.goto('/docs/break-before/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_break_before: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/break-before/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); test('docs_break_before: h3 "Responsive design"', async ({ page }) => { await page.goto('/docs/break-before/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Responsive design' || t.startsWith('Responsive design'))).toBeTruthy(); }); }); test.describe('Functional - docs_break_inside', () => { test('docs_break_inside: title matches GT', async ({ page }) => { await page.goto('/docs/break-inside/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('break'); }); test('docs_break_inside: h1 "break-inside"', async ({ page }) => { await page.goto('/docs/break-inside/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'break-inside' || t.startsWith('break-inside'))).toBeTruthy(); }); test('docs_break_inside: h2 "Examples"', async ({ page }) => { await page.goto('/docs/break-inside/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_break_inside: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/break-inside/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); test('docs_break_inside: h3 "Responsive design"', async ({ page }) => { await page.goto('/docs/break-inside/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Responsive design' || t.startsWith('Responsive design'))).toBeTruthy(); }); }); test.describe('Functional - docs_caption_side', () => { test('docs_caption_side: title matches GT', async ({ page }) => { await page.goto('/docs/caption-side/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('caption'); }); test('docs_caption_side: h1 "caption-side"', async ({ page }) => { await page.goto('/docs/caption-side/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'caption-side' || t.startsWith('caption-side'))).toBeTruthy(); }); test('docs_caption_side: h2 "Examples"', async ({ page }) => { await page.goto('/docs/caption-side/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_caption_side: h3 "Anchoring above the table"', async ({ page }) => { await page.goto('/docs/caption-side/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Anchoring above the table' || t.startsWith('Anchoring above the table'))).toBeTruthy(); }); test('docs_caption_side: h3 "Setting a caption at bottom"', async ({ page }) => { await page.goto('/docs/caption-side/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Setting a caption at bottom' || t.startsWith('Setting a caption at bottom'))).toBeTruthy(); }); }); test.describe('Functional - docs_caret_color', () => { test('docs_caret_color: title matches GT', async ({ page }) => { await page.goto('/docs/caret-color/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('caret'); }); test('docs_caret_color: h1 "caret-color"', async ({ page }) => { await page.goto('/docs/caret-color/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'caret-color' || t.startsWith('caret-color'))).toBeTruthy(); }); test('docs_caret_color: h2 "Examples"', async ({ page }) => { await page.goto('/docs/caret-color/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_caret_color: h2 "Personalizing your theme"', async ({ page }) => { await page.goto('/docs/caret-color/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personalizing your theme' || t.startsWith('Personalizing your theme'))).toBeTruthy(); }); test('docs_caret_color: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/caret-color/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); }); test.describe('Functional - docs_color', () => { test('docs_color: title matches GT', async ({ page }) => { await page.goto('/docs/color/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('color'); }); test('docs_color: h1 "color"', async ({ page }) => { await page.goto('/docs/color/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'color' || t.startsWith('color'))).toBeTruthy(); }); test('docs_color: h2 "Examples"', async ({ page }) => { await page.goto('/docs/color/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_color: h2 "Shaping your own theme"', async ({ page }) => { await page.goto('/docs/color/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Shaping your own theme' || t.startsWith('Shaping your own theme'))).toBeTruthy(); }); test('docs_color: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/color/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); }); test.describe('Functional - docs_color_scheme', () => { test('docs_color_scheme: title matches GT', async ({ page }) => { await page.goto('/docs/color-scheme/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('color'); }); test('docs_color_scheme: h1 "color-scheme"', async ({ page }) => { await page.goto('/docs/color-scheme/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'color-scheme' || t.startsWith('color-scheme'))).toBeTruthy(); }); test('docs_color_scheme: h2 "Examples"', async ({ page }) => { await page.goto('/docs/color-scheme/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_color_scheme: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/color-scheme/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); test('docs_color_scheme: h3 "Using it in dark mode"', async ({ page }) => { await page.goto('/docs/color-scheme/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Using it in dark mode' || t.startsWith('Using it in dark mode'))).toBeTruthy(); }); }); test.describe('Functional - docs_colors', () => { test('docs_colors: title matches GT', async ({ page }) => { await page.goto('/docs/colors/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('colors'); }); test('docs_colors: h2 "Handling your colors"', async ({ page }) => { await page.goto('/docs/colors/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Handling your colors' || t.startsWith('Handling your colors'))).toBeTruthy(); }); test('docs_colors: h2 "Tailoring your color set"', async ({ page }) => { await page.goto('/docs/colors/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Tailoring your color set' || t.startsWith('Tailoring your color set'))).toBeTruthy(); }); test('docs_colors: h2 "Full default color palette lis"', async ({ page }) => { await page.goto('/docs/colors/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Full default color palette listing' || t.startsWith('Full default color palette listing'))).toBeTruthy(); }); }); test.describe('Functional - docs_compatibility', () => { test('docs_compatibility: title matches GT', async ({ page }) => { await page.goto('/docs/compatibility/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('compatibility'); }); test('docs_compatibility: h2 "Browser support"', async ({ page }) => { await page.goto('/docs/compatibility/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Browser support' || t.startsWith('Browser support'))).toBeTruthy(); }); test('docs_compatibility: h2 "Sass, Less, and Stylus"', async ({ page }) => { await page.goto('/docs/compatibility/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sass, Less, and Stylus' || t.startsWith('Sass, Less, and Stylus'))).toBeTruthy(); }); test('docs_compatibility: h2 "CSS modules"', async ({ page }) => { await page.goto('/docs/compatibility/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'CSS modules' || t.startsWith('CSS modules'))).toBeTruthy(); }); }); test.describe('Functional - docs_content', () => { test('docs_content: title matches GT', async ({ page }) => { await page.goto('/docs/content/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('content'); }); test('docs_content: h1 "content"', async ({ page }) => { await page.goto('/docs/content/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'content' || t.startsWith('content'))).toBeTruthy(); }); test('docs_content: h2 "Examples"', async ({ page }) => { await page.goto('/docs/content/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_content: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/content/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); test('docs_content: h3 "Reading a value from an attrib"', async ({ page }) => { await page.goto('/docs/content/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reading a value from an attribute' || t.startsWith('Reading a value from an attribute'))).toBeTruthy(); }); }); test.describe('Functional - docs_cursor', () => { test('docs_cursor: title matches GT', async ({ page }) => { await page.goto('/docs/cursor/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('cursor'); }); test('docs_cursor: h1 "cursor"', async ({ page }) => { await page.goto('/docs/cursor/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'cursor' || t.startsWith('cursor'))).toBeTruthy(); }); test('docs_cursor: h2 "Examples"', async ({ page }) => { await page.goto('/docs/cursor/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_cursor: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/cursor/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); test('docs_cursor: h3 "Using a custom value"', async ({ page }) => { await page.goto('/docs/cursor/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Using a custom value' || t.startsWith('Using a custom value'))).toBeTruthy(); }); }); test.describe('Functional - docs_dark_mode', () => { test('docs_dark_mode: title matches GT', async ({ page }) => { await page.goto('/docs/dark-mode/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('dark mode'); }); test('docs_dark_mode: h1 "Dark mode"', async ({ page }) => { await page.goto('/docs/dark-mode/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Dark mode' || t.startsWith('Dark mode'))).toBeTruthy(); }); test('docs_dark_mode: h2 "Overview"', async ({ page }) => { await page.goto('/docs/dark-mode/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Overview' || t.startsWith('Overview'))).toBeTruthy(); }); test('docs_dark_mode: h2 "Switching dark mode by hand"', async ({ page }) => { await page.goto('/docs/dark-mode/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Switching dark mode by hand' || t.startsWith('Switching dark mode by hand'))).toBeTruthy(); }); test('docs_dark_mode: h3 "Using a data attribute"', async ({ page }) => { await page.goto('/docs/dark-mode/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Using a data attribute' || t.startsWith('Using a data attribute'))).toBeTruthy(); }); }); test.describe('Functional - docs_detecting_classes_in_source_files', () => { test('docs_detecting_classes_in_source_files: title matches GT', async ({ page }) => { await page.goto('/docs/detecting-classes-in-source-files/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('detecting classes in your markup'); }); test('docs_detecting_classes_in_source_files: h1 "Detecting classes in your mark"', async ({ page }) => { await page.goto('/docs/detecting-classes-in-source-files/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detecting classes in your markup' || t.startsWith('Detecting classes in your markup'))).toBeTruthy(); }); test('docs_detecting_classes_in_source_files: h2 "The gist"', async ({ page }) => { await page.goto('/docs/detecting-classes-in-source-files/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The gist' || t.startsWith('The gist'))).toBeTruthy(); }); test('docs_detecting_classes_in_source_files: h2 "Manually registering sources"', async ({ page }) => { await page.goto('/docs/detecting-classes-in-source-files/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Manually registering sources' || t.startsWith('Manually registering sources'))).toBeTruthy(); }); test('docs_detecting_classes_in_source_files: h2 "Safelisting particular utiliti"', async ({ page }) => { await page.goto('/docs/detecting-classes-in-source-files/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Safelisting particular utilities' || t.startsWith('Safelisting particular utilities'))).toBeTruthy(); }); }); test.describe('Functional - docs_editor_setup', () => { test('docs_editor_setup: title matches GT', async ({ page }) => { await page.goto('/docs/editor-setup/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('editor setup'); }); test('docs_editor_setup: h1 "Editor setup"', async ({ page }) => { await page.goto('/docs/editor-setup/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Editor setup' || t.startsWith('Editor setup'))).toBeTruthy(); }); test('docs_editor_setup: h2 "Syntax awareness"', async ({ page }) => { await page.goto('/docs/editor-setup/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Syntax awareness' || t.startsWith('Syntax awareness'))).toBeTruthy(); }); test('docs_editor_setup: h2 "Beacon"', async ({ page }) => { await page.goto('/docs/editor-setup/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Beacon' || t.startsWith('Beacon'))).toBeTruthy(); }); test('docs_editor_setup: h2 "Orb"', async ({ page }) => { await page.goto('/docs/editor-setup/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Orb' || t.startsWith('Orb'))).toBeTruthy(); }); }); test.describe('Functional - docs_field_sizing', () => { test('docs_field_sizing: title matches GT', async ({ page }) => { await page.goto('/docs/field-sizing/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('field'); }); test('docs_field_sizing: h1 "field-sizing"', async ({ page }) => { await page.goto('/docs/field-sizing/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'field-sizing' || t.startsWith('field-sizing'))).toBeTruthy(); }); test('docs_field_sizing: h2 "Examples"', async ({ page }) => { await page.goto('/docs/field-sizing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_field_sizing: h3 "Growing to fit the content"', async ({ page }) => { await page.goto('/docs/field-sizing/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Growing to fit the content' || t.startsWith('Growing to fit the content'))).toBeTruthy(); }); test('docs_field_sizing: h3 "Keeping a fixed size"', async ({ page }) => { await page.goto('/docs/field-sizing/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Keeping a fixed size' || t.startsWith('Keeping a fixed size'))).toBeTruthy(); }); }); test.describe('Functional - docs_filter_drop_shadow', () => { test('docs_filter_drop_shadow: title matches GT', async ({ page }) => { await page.goto('/docs/filter-drop-shadow/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('filter'); }); test('docs_filter_drop_shadow: h1 "filter: drop-shadow()"', async ({ page }) => { await page.goto('/docs/filter-drop-shadow/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'filter: drop-shadow()' || t.startsWith('filter: drop-shadow()'))).toBeTruthy(); }); test('docs_filter_drop_shadow: h2 "Examples"', async ({ page }) => { await page.goto('/docs/filter-drop-shadow/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_filter_drop_shadow: h2 "Tailoring your theme"', async ({ page }) => { await page.goto('/docs/filter-drop-shadow/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Tailoring your theme' || t.startsWith('Tailoring your theme'))).toBeTruthy(); }); test('docs_filter_drop_shadow: h3 "Simple example"', async ({ page }) => { await page.goto('/docs/filter-drop-shadow/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Simple example' || t.startsWith('Simple example'))).toBeTruthy(); }); }); test.describe('Functional - docs_flex', () => { test('docs_flex: title matches GT', async ({ page }) => { await page.goto('/docs/flex/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('flex'); }); test('docs_flex: h1 "flex"', async ({ page }) => { await page.goto('/docs/flex/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'flex' || t.startsWith('flex'))).toBeTruthy(); }); test('docs_flex: h2 "Examples"', async ({ page }) => { await page.goto('/docs/flex/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_flex: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/flex/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); test('docs_flex: h3 "Initial"', async ({ page }) => { await page.goto('/docs/flex/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Initial' || t.startsWith('Initial'))).toBeTruthy(); }); }); test.describe('Functional - docs_flex_basis', () => { test('docs_flex_basis: title matches GT', async ({ page }) => { await page.goto('/docs/flex-basis/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('flex'); }); test('docs_flex_basis: h1 "flex-basis"', async ({ page }) => { await page.goto('/docs/flex-basis/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'flex-basis' || t.startsWith('flex-basis'))).toBeTruthy(); }); test('docs_flex_basis: h2 "Examples"', async ({ page }) => { await page.goto('/docs/flex-basis/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_flex_basis: h2 "Tailoring your theme"', async ({ page }) => { await page.goto('/docs/flex-basis/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Tailoring your theme' || t.startsWith('Tailoring your theme'))).toBeTruthy(); }); test('docs_flex_basis: h3 "With the spacing scale"', async ({ page }) => { await page.goto('/docs/flex-basis/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'With the spacing scale' || t.startsWith('With the spacing scale'))).toBeTruthy(); }); }); test.describe('Functional - docs_flex_direction', () => { test('docs_flex_direction: title matches GT', async ({ page }) => { await page.goto('/docs/flex-direction/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('flex'); }); test('docs_flex_direction: h1 "flex-direction"', async ({ page }) => { await page.goto('/docs/flex-direction/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'flex-direction' || t.startsWith('flex-direction'))).toBeTruthy(); }); test('docs_flex_direction: h2 "Examples"', async ({ page }) => { await page.goto('/docs/flex-direction/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_flex_direction: h3 "Row"', async ({ page }) => { await page.goto('/docs/flex-direction/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Row' || t.startsWith('Row'))).toBeTruthy(); }); test('docs_flex_direction: h3 "Row reversed"', async ({ page }) => { await page.goto('/docs/flex-direction/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Row reversed' || t.startsWith('Row reversed'))).toBeTruthy(); }); }); test.describe('Functional - docs_flex_grow', () => { test('docs_flex_grow: title matches GT', async ({ page }) => { await page.goto('/docs/flex-grow/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('flex'); }); test('docs_flex_grow: h1 "flex-grow"', async ({ page }) => { await page.goto('/docs/flex-grow/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'flex-grow' || t.startsWith('flex-grow'))).toBeTruthy(); }); test('docs_flex_grow: h2 "Examples"', async ({ page }) => { await page.goto('/docs/flex-grow/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_flex_grow: h3 "Letting an item expand"', async ({ page }) => { await page.goto('/docs/flex-grow/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Letting an item expand' || t.startsWith('Letting an item expand'))).toBeTruthy(); }); test('docs_flex_grow: h3 "Expanding items by a factor"', async ({ page }) => { await page.goto('/docs/flex-grow/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Expanding items by a factor' || t.startsWith('Expanding items by a factor'))).toBeTruthy(); }); }); test.describe('Functional - docs_flex_shrink', () => { test('docs_flex_shrink: title matches GT', async ({ page }) => { await page.goto('/docs/flex-shrink/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('flex'); }); test('docs_flex_shrink: h1 "flex-shrink"', async ({ page }) => { await page.goto('/docs/flex-shrink/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'flex-shrink' || t.startsWith('flex-shrink'))).toBeTruthy(); }); test('docs_flex_shrink: h2 "Examples"', async ({ page }) => { await page.goto('/docs/flex-shrink/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_flex_shrink: h3 "Letting flex items shrink free"', async ({ page }) => { await page.goto('/docs/flex-shrink/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Letting flex items shrink freely' || t.startsWith('Letting flex items shrink freely'))).toBeTruthy(); }); test('docs_flex_shrink: h3 "Keeping items from shrinking"', async ({ page }) => { await page.goto('/docs/flex-shrink/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Keeping items from shrinking' || t.startsWith('Keeping items from shrinking'))).toBeTruthy(); }); }); test.describe('Functional - docs_flex_wrap', () => { test('docs_flex_wrap: title matches GT', async ({ page }) => { await page.goto('/docs/flex-wrap/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('flex'); }); test('docs_flex_wrap: h1 "flex-wrap"', async ({ page }) => { await page.goto('/docs/flex-wrap/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'flex-wrap' || t.startsWith('flex-wrap'))).toBeTruthy(); }); test('docs_flex_wrap: h2 "Examples"', async ({ page }) => { await page.goto('/docs/flex-wrap/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_flex_wrap: h3 "No wrapping"', async ({ page }) => { await page.goto('/docs/flex-wrap/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'No wrapping' || t.startsWith('No wrapping'))).toBeTruthy(); }); test('docs_flex_wrap: h3 "Wrap as usual"', async ({ page }) => { await page.goto('/docs/flex-wrap/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Wrap as usual' || t.startsWith('Wrap as usual'))).toBeTruthy(); }); }); test.describe('Functional - docs_font_family', () => { test('docs_font_family: title matches GT', async ({ page }) => { await page.goto('/docs/font-family/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('font'); }); test('docs_font_family: h1 "font-family"', async ({ page }) => { await page.goto('/docs/font-family/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'font-family' || t.startsWith('font-family'))).toBeTruthy(); }); test('docs_font_family: h2 "Examples"', async ({ page }) => { await page.goto('/docs/font-family/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_font_family: h2 "Customizing your theme"', async ({ page }) => { await page.goto('/docs/font-family/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Customizing your theme' || t.startsWith('Customizing your theme'))).toBeTruthy(); }); test('docs_font_family: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/font-family/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); }); test.describe('Functional - docs_font_feature_settings', () => { test('docs_font_feature_settings: title matches GT', async ({ page }) => { await page.goto('/docs/font-feature-settings/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('font'); }); test('docs_font_feature_settings: h1 "font-feature-settings"', async ({ page }) => { await page.goto('/docs/font-feature-settings/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'font-feature-settings' || t.startsWith('font-feature-settings'))).toBeTruthy(); }); test('docs_font_feature_settings: h2 "Examples"', async ({ page }) => { await page.goto('/docs/font-feature-settings/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_font_feature_settings: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/font-feature-settings/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); test('docs_font_feature_settings: h3 "Turning on several features"', async ({ page }) => { await page.goto('/docs/font-feature-settings/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Turning on several features' || t.startsWith('Turning on several features'))).toBeTruthy(); }); }); test.describe('Functional - docs_font_size', () => { test('docs_font_size: title matches GT', async ({ page }) => { await page.goto('/docs/font-size/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('font'); }); test('docs_font_size: h1 "font-size"', async ({ page }) => { await page.goto('/docs/font-size/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'font-size' || t.startsWith('font-size'))).toBeTruthy(); }); test('docs_font_size: h2 "Examples"', async ({ page }) => { await page.goto('/docs/font-size/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_font_size: h2 "Tailoring your theme"', async ({ page }) => { await page.goto('/docs/font-size/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Tailoring your theme' || t.startsWith('Tailoring your theme'))).toBeTruthy(); }); test('docs_font_size: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/font-size/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); }); test.describe('Functional - docs_font_smoothing', () => { test('docs_font_smoothing: title matches GT', async ({ page }) => { await page.goto('/docs/font-smoothing/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('font'); }); test('docs_font_smoothing: h1 "font-smoothing"', async ({ page }) => { await page.goto('/docs/font-smoothing/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'font-smoothing' || t.startsWith('font-smoothing'))).toBeTruthy(); }); test('docs_font_smoothing: h2 "Examples"', async ({ page }) => { await page.goto('/docs/font-smoothing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_font_smoothing: h3 "Grayscale antialiasing"', async ({ page }) => { await page.goto('/docs/font-smoothing/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Grayscale antialiasing' || t.startsWith('Grayscale antialiasing'))).toBeTruthy(); }); test('docs_font_smoothing: h3 "Subpixel antialiasing"', async ({ page }) => { await page.goto('/docs/font-smoothing/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Subpixel antialiasing' || t.startsWith('Subpixel antialiasing'))).toBeTruthy(); }); }); test.describe('Functional - docs_font_stretch', () => { test('docs_font_stretch: title matches GT', async ({ page }) => { await page.goto('/docs/font-stretch/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('font'); }); test('docs_font_stretch: h1 "font-stretch"', async ({ page }) => { await page.goto('/docs/font-stretch/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'font-stretch' || t.startsWith('font-stretch'))).toBeTruthy(); }); test('docs_font_stretch: h2 "Examples"', async ({ page }) => { await page.goto('/docs/font-stretch/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_font_stretch: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/font-stretch/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); test('docs_font_stretch: h3 "Using percentages"', async ({ page }) => { await page.goto('/docs/font-stretch/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Using percentages' || t.startsWith('Using percentages'))).toBeTruthy(); }); }); test.describe('Functional - docs_font_style', () => { test('docs_font_style: title matches GT', async ({ page }) => { await page.goto('/docs/font-style/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('font'); }); test('docs_font_style: h1 "font-style"', async ({ page }) => { await page.goto('/docs/font-style/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'font-style' || t.startsWith('font-style'))).toBeTruthy(); }); test('docs_font_style: h2 "Examples"', async ({ page }) => { await page.goto('/docs/font-style/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_font_style: h3 "Making text italic"', async ({ page }) => { await page.goto('/docs/font-style/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Making text italic' || t.startsWith('Making text italic'))).toBeTruthy(); }); test('docs_font_style: h3 "Rendering text upright"', async ({ page }) => { await page.goto('/docs/font-style/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Rendering text upright' || t.startsWith('Rendering text upright'))).toBeTruthy(); }); }); test.describe('Functional - docs_font_variant_numeric', () => { test('docs_font_variant_numeric: title matches GT', async ({ page }) => { await page.goto('/docs/font-variant-numeric/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('font'); }); test('docs_font_variant_numeric: h1 "font-variant-numeric"', async ({ page }) => { await page.goto('/docs/font-variant-numeric/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'font-variant-numeric' || t.startsWith('font-variant-numeric'))).toBeTruthy(); }); test('docs_font_variant_numeric: h2 "Examples"', async ({ page }) => { await page.goto('/docs/font-variant-numeric/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_font_variant_numeric: h3 "Enabling ordinal glyphs"', async ({ page }) => { await page.goto('/docs/font-variant-numeric/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Enabling ordinal glyphs' || t.startsWith('Enabling ordinal glyphs'))).toBeTruthy(); }); test('docs_font_variant_numeric: h3 "Enabling slashed zeroes"', async ({ page }) => { await page.goto('/docs/font-variant-numeric/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Enabling slashed zeroes' || t.startsWith('Enabling slashed zeroes'))).toBeTruthy(); }); }); test.describe('Functional - docs_font_weight', () => { test('docs_font_weight: title matches GT', async ({ page }) => { await page.goto('/docs/font-weight/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('font'); }); test('docs_font_weight: h1 "font-weight"', async ({ page }) => { await page.goto('/docs/font-weight/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'font-weight' || t.startsWith('font-weight'))).toBeTruthy(); }); test('docs_font_weight: h2 "Examples"', async ({ page }) => { await page.goto('/docs/font-weight/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_font_weight: h2 "Customizing your theme"', async ({ page }) => { await page.goto('/docs/font-weight/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Customizing your theme' || t.startsWith('Customizing your theme'))).toBeTruthy(); }); test('docs_font_weight: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/font-weight/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); }); test.describe('Functional - docs_gap', () => { test('docs_gap: title matches GT', async ({ page }) => { await page.goto('/docs/gap/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('gap'); }); test('docs_gap: h1 "gap"', async ({ page }) => { await page.goto('/docs/gap/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'gap' || t.startsWith('gap'))).toBeTruthy(); }); test('docs_gap: h2 "Examples"', async ({ page }) => { await page.goto('/docs/gap/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_gap: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/gap/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); test('docs_gap: h3 "Changing row and column gaps i"', async ({ page }) => { await page.goto('/docs/gap/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Changing row and column gaps independently' || t.startsWith('Changing row and column gaps independently'))).toBeTruthy(); }); }); test.describe('Functional - docs_grid_auto_columns', () => { test('docs_grid_auto_columns: title matches GT', async ({ page }) => { await page.goto('/docs/grid-auto-columns/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('grid'); }); test('docs_grid_auto_columns: h1 "grid-auto-columns"', async ({ page }) => { await page.goto('/docs/grid-auto-columns/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'grid-auto-columns' || t.startsWith('grid-auto-columns'))).toBeTruthy(); }); test('docs_grid_auto_columns: h2 "Examples"', async ({ page }) => { await page.goto('/docs/grid-auto-columns/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_grid_auto_columns: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/grid-auto-columns/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); test('docs_grid_auto_columns: h3 "Using a custom value"', async ({ page }) => { await page.goto('/docs/grid-auto-columns/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Using a custom value' || t.startsWith('Using a custom value'))).toBeTruthy(); }); }); test.describe('Functional - docs_grid_auto_flow', () => { test('docs_grid_auto_flow: title matches GT', async ({ page }) => { await page.goto('/docs/grid-auto-flow/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('grid'); }); test('docs_grid_auto_flow: h1 "grid-auto-flow"', async ({ page }) => { await page.goto('/docs/grid-auto-flow/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'grid-auto-flow' || t.startsWith('grid-auto-flow'))).toBeTruthy(); }); test('docs_grid_auto_flow: h2 "Examples"', async ({ page }) => { await page.goto('/docs/grid-auto-flow/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_grid_auto_flow: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/grid-auto-flow/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); test('docs_grid_auto_flow: h3 "Responsive design"', async ({ page }) => { await page.goto('/docs/grid-auto-flow/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Responsive design' || t.startsWith('Responsive design'))).toBeTruthy(); }); }); test.describe('Functional - docs_grid_auto_rows', () => { test('docs_grid_auto_rows: title matches GT', async ({ page }) => { await page.goto('/docs/grid-auto-rows/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('grid'); }); test('docs_grid_auto_rows: h1 "grid-auto-rows"', async ({ page }) => { await page.goto('/docs/grid-auto-rows/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'grid-auto-rows' || t.startsWith('grid-auto-rows'))).toBeTruthy(); }); test('docs_grid_auto_rows: h2 "Examples"', async ({ page }) => { await page.goto('/docs/grid-auto-rows/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_grid_auto_rows: h3 "Quick example"', async ({ page }) => { await page.goto('/docs/grid-auto-rows/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Quick example' || t.startsWith('Quick example'))).toBeTruthy(); }); test('docs_grid_auto_rows: h3 "Using your own value"', async ({ page }) => { await page.goto('/docs/grid-auto-rows/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Using your own value' || t.startsWith('Using your own value'))).toBeTruthy(); }); }); test.describe('Functional - docs_grid_column', () => { test('docs_grid_column: title matches GT', async ({ page }) => { await page.goto('/docs/grid-column/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('grid'); }); test('docs_grid_column: h1 "grid-column"', async ({ page }) => { await page.goto('/docs/grid-column/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'grid-column' || t.startsWith('grid-column'))).toBeTruthy(); }); test('docs_grid_column: h2 "Examples"', async ({ page }) => { await page.goto('/docs/grid-column/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_grid_column: h3 "Spanning columns"', async ({ page }) => { await page.goto('/docs/grid-column/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Spanning columns' || t.startsWith('Spanning columns'))).toBeTruthy(); }); test('docs_grid_column: h3 "Starting and ending lines"', async ({ page }) => { await page.goto('/docs/grid-column/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Starting and ending lines' || t.startsWith('Starting and ending lines'))).toBeTruthy(); }); }); test.describe('Functional - docs_grid_row', () => { test('docs_grid_row: title matches GT', async ({ page }) => { await page.goto('/docs/grid-row/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('grid'); }); test('docs_grid_row: h1 "grid-row"', async ({ page }) => { await page.goto('/docs/grid-row/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'grid-row' || t.startsWith('grid-row'))).toBeTruthy(); }); test('docs_grid_row: h2 "Examples"', async ({ page }) => { await page.goto('/docs/grid-row/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_grid_row: h3 "Spanning rows"', async ({ page }) => { await page.goto('/docs/grid-row/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Spanning rows' || t.startsWith('Spanning rows'))).toBeTruthy(); }); test('docs_grid_row: h3 "Starting and ending lines"', async ({ page }) => { await page.goto('/docs/grid-row/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Starting and ending lines' || t.startsWith('Starting and ending lines'))).toBeTruthy(); }); }); test.describe('Functional - docs_grid_template_columns', () => { test('docs_grid_template_columns: title matches GT', async ({ page }) => { await page.goto('/docs/grid-template-columns/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('grid'); }); test('docs_grid_template_columns: h1 "grid-template-columns"', async ({ page }) => { await page.goto('/docs/grid-template-columns/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'grid-template-columns' || t.startsWith('grid-template-columns'))).toBeTruthy(); }); test('docs_grid_template_columns: h2 "Examples"', async ({ page }) => { await page.goto('/docs/grid-template-columns/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_grid_template_columns: h3 "Defining your grid columns"', async ({ page }) => { await page.goto('/docs/grid-template-columns/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Defining your grid columns' || t.startsWith('Defining your grid columns'))).toBeTruthy(); }); test('docs_grid_template_columns: h3 "Adopting a subgrid layout"', async ({ page }) => { await page.goto('/docs/grid-template-columns/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Adopting a subgrid layout' || t.startsWith('Adopting a subgrid layout'))).toBeTruthy(); }); }); test.describe('Functional - docs_grid_template_rows', () => { test('docs_grid_template_rows: title matches GT', async ({ page }) => { await page.goto('/docs/grid-template-rows/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('grid'); }); test('docs_grid_template_rows: h1 "grid-template-rows"', async ({ page }) => { await page.goto('/docs/grid-template-rows/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'grid-template-rows' || t.startsWith('grid-template-rows'))).toBeTruthy(); }); test('docs_grid_template_rows: h2 "Examples"', async ({ page }) => { await page.goto('/docs/grid-template-rows/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_grid_template_rows: h3 "Laying out the grid rows"', async ({ page }) => { await page.goto('/docs/grid-template-rows/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Laying out the grid rows' || t.startsWith('Laying out the grid rows'))).toBeTruthy(); }); test('docs_grid_template_rows: h3 "Building out a subgrid"', async ({ page }) => { await page.goto('/docs/grid-template-rows/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Building out a subgrid' || t.startsWith('Building out a subgrid'))).toBeTruthy(); }); }); test.describe('Functional - docs_height', () => { test('docs_height: title matches GT', async ({ page }) => { await page.goto('/docs/height/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('height'); }); test('docs_height: h1 "height"', async ({ page }) => { await page.goto('/docs/height/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'height' || t.startsWith('height'))).toBeTruthy(); }); test('docs_height: h2 "Examples"', async ({ page }) => { await page.goto('/docs/height/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_height: h2 "Tailoring your theme"', async ({ page }) => { await page.goto('/docs/height/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Tailoring your theme' || t.startsWith('Tailoring your theme'))).toBeTruthy(); }); test('docs_height: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/height/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); }); test.describe('Functional - docs_hyphens', () => { test('docs_hyphens: title matches GT', async ({ page }) => { await page.goto('/docs/hyphens/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('hyphens'); }); test('docs_hyphens: h1 "hyphens"', async ({ page }) => { await page.goto('/docs/hyphens/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'hyphens' || t.startsWith('hyphens'))).toBeTruthy(); }); test('docs_hyphens: h2 "Examples"', async ({ page }) => { await page.goto('/docs/hyphens/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_hyphens: h3 "Turning off hyphenation"', async ({ page }) => { await page.goto('/docs/hyphens/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Turning off hyphenation' || t.startsWith('Turning off hyphenation'))).toBeTruthy(); }); test('docs_hyphens: h3 "Hyphenating by hand"', async ({ page }) => { await page.goto('/docs/hyphens/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Hyphenating by hand' || t.startsWith('Hyphenating by hand'))).toBeTruthy(); }); }); test.describe('Functional - docs_inline_size', () => { test('docs_inline_size: title matches GT', async ({ page }) => { await page.goto('/docs/inline-size/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('inline'); }); test('docs_inline_size: h1 "inline-size"', async ({ page }) => { await page.goto('/docs/inline-size/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'inline-size' || t.startsWith('inline-size'))).toBeTruthy(); }); test('docs_inline_size: h2 "Snippets"', async ({ page }) => { await page.goto('/docs/inline-size/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Snippets' || t.startsWith('Snippets'))).toBeTruthy(); }); test('docs_inline_size: h2 "Tailoring your theme"', async ({ page }) => { await page.goto('/docs/inline-size/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Tailoring your theme' || t.startsWith('Tailoring your theme'))).toBeTruthy(); }); test('docs_inline_size: h3 "Simple usage"', async ({ page }) => { await page.goto('/docs/inline-size/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Simple usage' || t.startsWith('Simple usage'))).toBeTruthy(); }); }); test.describe('Functional - docs_installation', () => { test('docs_installation: title matches GT', async ({ page }) => { await page.goto('/docs/installation/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('installing breezel with vite'); }); test('docs_installation: h1 "Installing Breezel with Vite"', async ({ page }) => { await page.goto('/docs/installation/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Installing Breezel with Vite' || t.startsWith('Installing Breezel with Vite'))).toBeTruthy(); }); test('docs_installation: h2 "Using Vite"', async ({ page }) => { await page.goto('/docs/installation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Using Vite' || t.startsWith('Using Vite'))).toBeTruthy(); }); test('docs_installation: h2 "Using PostCSS"', async ({ page }) => { await page.goto('/docs/installation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Using PostCSS' || t.startsWith('Using PostCSS'))).toBeTruthy(); }); test('docs_installation: h2 "Breezel CLI"', async ({ page }) => { await page.goto('/docs/installation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Breezel CLI' || t.startsWith('Breezel CLI'))).toBeTruthy(); }); }); test.describe('Functional - docs_isolation', () => { test('docs_isolation: title matches GT', async ({ page }) => { await page.goto('/docs/isolation/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('isolation'); }); test('docs_isolation: h1 "isolation"', async ({ page }) => { await page.goto('/docs/isolation/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'isolation' || t.startsWith('isolation'))).toBeTruthy(); }); test('docs_isolation: h2 "Examples"', async ({ page }) => { await page.goto('/docs/isolation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_isolation: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/isolation/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); test('docs_isolation: h3 "Responsive design"', async ({ page }) => { await page.goto('/docs/isolation/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Responsive design' || t.startsWith('Responsive design'))).toBeTruthy(); }); }); test.describe('Functional - docs_justify_content', () => { test('docs_justify_content: title matches GT', async ({ page }) => { await page.goto('/docs/justify-content/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('justify'); }); test('docs_justify_content: h1 "justify-content"', async ({ page }) => { await page.goto('/docs/justify-content/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'justify-content' || t.startsWith('justify-content'))).toBeTruthy(); }); test('docs_justify_content: h2 "Examples"', async ({ page }) => { await page.goto('/docs/justify-content/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_justify_content: h3 "Start"', async ({ page }) => { await page.goto('/docs/justify-content/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Start' || t.startsWith('Start'))).toBeTruthy(); }); test('docs_justify_content: h3 "Center"', async ({ page }) => { await page.goto('/docs/justify-content/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Center' || t.startsWith('Center'))).toBeTruthy(); }); }); test.describe('Functional - docs_justify_items', () => { test('docs_justify_items: title matches GT', async ({ page }) => { await page.goto('/docs/justify-items/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('justify'); }); test('docs_justify_items: h1 "justify-items"', async ({ page }) => { await page.goto('/docs/justify-items/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'justify-items' || t.startsWith('justify-items'))).toBeTruthy(); }); test('docs_justify_items: h2 "Examples"', async ({ page }) => { await page.goto('/docs/justify-items/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_justify_items: h3 "Start"', async ({ page }) => { await page.goto('/docs/justify-items/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Start' || t.startsWith('Start'))).toBeTruthy(); }); test('docs_justify_items: h3 "End"', async ({ page }) => { await page.goto('/docs/justify-items/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'End' || t.startsWith('End'))).toBeTruthy(); }); }); test.describe('Functional - docs_justify_self', () => { test('docs_justify_self: title matches GT', async ({ page }) => { await page.goto('/docs/justify-self/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('justify'); }); test('docs_justify_self: h1 "justify-self"', async ({ page }) => { await page.goto('/docs/justify-self/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'justify-self' || t.startsWith('justify-self'))).toBeTruthy(); }); test('docs_justify_self: h2 "Examples"', async ({ page }) => { await page.goto('/docs/justify-self/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_justify_self: h3 "Auto"', async ({ page }) => { await page.goto('/docs/justify-self/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Auto' || t.startsWith('Auto'))).toBeTruthy(); }); test('docs_justify_self: h3 "Start"', async ({ page }) => { await page.goto('/docs/justify-self/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Start' || t.startsWith('Start'))).toBeTruthy(); }); }); test.describe('Functional - docs_letter_spacing', () => { test('docs_letter_spacing: title matches GT', async ({ page }) => { await page.goto('/docs/letter-spacing/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('letter'); }); test('docs_letter_spacing: h1 "letter-spacing"', async ({ page }) => { await page.goto('/docs/letter-spacing/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'letter-spacing' || t.startsWith('letter-spacing'))).toBeTruthy(); }); test('docs_letter_spacing: h2 "Examples"', async ({ page }) => { await page.goto('/docs/letter-spacing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_letter_spacing: h2 "Customizing your theme"', async ({ page }) => { await page.goto('/docs/letter-spacing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Customizing your theme' || t.startsWith('Customizing your theme'))).toBeTruthy(); }); test('docs_letter_spacing: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/letter-spacing/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); }); test.describe('Functional - docs_line_height', () => { test('docs_line_height: title matches GT', async ({ page }) => { await page.goto('/docs/line-height/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('line'); }); test('docs_line_height: h1 "line-height"', async ({ page }) => { await page.goto('/docs/line-height/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'line-height' || t.startsWith('line-height'))).toBeTruthy(); }); test('docs_line_height: h2 "Examples"', async ({ page }) => { await page.goto('/docs/line-height/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_line_height: h2 "Customizing your theme"', async ({ page }) => { await page.goto('/docs/line-height/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Customizing your theme' || t.startsWith('Customizing your theme'))).toBeTruthy(); }); test('docs_line_height: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/line-height/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); }); test.describe('Functional - docs_list_style_image', () => { test('docs_list_style_image: title matches GT', async ({ page }) => { await page.goto('/docs/list-style-image/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('list'); }); test('docs_list_style_image: h1 "list-style-image"', async ({ page }) => { await page.goto('/docs/list-style-image/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'list-style-image' || t.startsWith('list-style-image'))).toBeTruthy(); }); test('docs_list_style_image: h2 "Examples"', async ({ page }) => { await page.goto('/docs/list-style-image/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_list_style_image: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/list-style-image/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); test('docs_list_style_image: h3 "Using a CSS variable"', async ({ page }) => { await page.goto('/docs/list-style-image/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Using a CSS variable' || t.startsWith('Using a CSS variable'))).toBeTruthy(); }); }); test.describe('Functional - docs_list_style_position', () => { test('docs_list_style_position: title matches GT', async ({ page }) => { await page.goto('/docs/list-style-position/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('list'); }); test('docs_list_style_position: h1 "list-style-position"', async ({ page }) => { await page.goto('/docs/list-style-position/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'list-style-position' || t.startsWith('list-style-position'))).toBeTruthy(); }); test('docs_list_style_position: h2 "Examples"', async ({ page }) => { await page.goto('/docs/list-style-position/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_list_style_position: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/list-style-position/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); test('docs_list_style_position: h3 "Responsive design"', async ({ page }) => { await page.goto('/docs/list-style-position/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Responsive design' || t.startsWith('Responsive design'))).toBeTruthy(); }); }); test.describe('Functional - docs_list_style_type', () => { test('docs_list_style_type: title matches GT', async ({ page }) => { await page.goto('/docs/list-style-type/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('list'); }); test('docs_list_style_type: h1 "list-style-type"', async ({ page }) => { await page.goto('/docs/list-style-type/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'list-style-type' || t.startsWith('list-style-type'))).toBeTruthy(); }); test('docs_list_style_type: h2 "Examples"', async ({ page }) => { await page.goto('/docs/list-style-type/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_list_style_type: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/list-style-type/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); test('docs_list_style_type: h3 "Using a custom value"', async ({ page }) => { await page.goto('/docs/list-style-type/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Using a custom value' || t.startsWith('Using a custom value'))).toBeTruthy(); }); }); test.describe('Functional - docs_margin', () => { test('docs_margin: title matches GT', async ({ page }) => { await page.goto('/docs/margin/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('margin'); }); test('docs_margin: h1 "margin"', async ({ page }) => { await page.goto('/docs/margin/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'margin' || t.startsWith('margin'))).toBeTruthy(); }); test('docs_margin: h2 "Examples"', async ({ page }) => { await page.goto('/docs/margin/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_margin: h2 "Customizing the theme"', async ({ page }) => { await page.goto('/docs/margin/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Customizing the theme' || t.startsWith('Customizing the theme'))).toBeTruthy(); }); test('docs_margin: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/margin/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); }); test.describe('Functional - docs_max_block_size', () => { test('docs_max_block_size: title matches GT', async ({ page }) => { await page.goto('/docs/max-block-size/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('max'); }); test('docs_max_block_size: h1 "max-block-size"', async ({ page }) => { await page.goto('/docs/max-block-size/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'max-block-size' || t.startsWith('max-block-size'))).toBeTruthy(); }); test('docs_max_block_size: h2 "Examples"', async ({ page }) => { await page.goto('/docs/max-block-size/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_max_block_size: h2 "Tailoring your theme"', async ({ page }) => { await page.goto('/docs/max-block-size/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Tailoring your theme' || t.startsWith('Tailoring your theme'))).toBeTruthy(); }); test('docs_max_block_size: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/max-block-size/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); }); test.describe('Functional - docs_max_height', () => { test('docs_max_height: title matches GT', async ({ page }) => { await page.goto('/docs/max-height/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('max'); }); test('docs_max_height: h1 "max-height"', async ({ page }) => { await page.goto('/docs/max-height/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'max-height' || t.startsWith('max-height'))).toBeTruthy(); }); test('docs_max_height: h2 "Examples"', async ({ page }) => { await page.goto('/docs/max-height/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_max_height: h2 "Personalize your theme"', async ({ page }) => { await page.goto('/docs/max-height/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personalize your theme' || t.startsWith('Personalize your theme'))).toBeTruthy(); }); test('docs_max_height: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/max-height/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); }); test.describe('Functional - docs_min_block_size', () => { test('docs_min_block_size: title matches GT', async ({ page }) => { await page.goto('/docs/min-block-size/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('min'); }); test('docs_min_block_size: h1 "min-block-size"', async ({ page }) => { await page.goto('/docs/min-block-size/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'min-block-size' || t.startsWith('min-block-size'))).toBeTruthy(); }); test('docs_min_block_size: h2 "Examples"', async ({ page }) => { await page.goto('/docs/min-block-size/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_min_block_size: h2 "Tailoring your own theme"', async ({ page }) => { await page.goto('/docs/min-block-size/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Tailoring your own theme' || t.startsWith('Tailoring your own theme'))).toBeTruthy(); }); test('docs_min_block_size: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/min-block-size/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); }); test.describe('Functional - docs_min_height', () => { test('docs_min_height: title matches GT', async ({ page }) => { await page.goto('/docs/min-height/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('min'); }); test('docs_min_height: h1 "min-height"', async ({ page }) => { await page.goto('/docs/min-height/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'min-height' || t.startsWith('min-height'))).toBeTruthy(); }); test('docs_min_height: h2 "Examples"', async ({ page }) => { await page.goto('/docs/min-height/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_min_height: h2 "Tailoring your theme"', async ({ page }) => { await page.goto('/docs/min-height/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Tailoring your theme' || t.startsWith('Tailoring your theme'))).toBeTruthy(); }); test('docs_min_height: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/min-height/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); }); test.describe('Functional - docs_min_inline_size', () => { test('docs_min_inline_size: title matches GT', async ({ page }) => { await page.goto('/docs/min-inline-size/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('min'); }); test('docs_min_inline_size: h1 "min-inline-size"', async ({ page }) => { await page.goto('/docs/min-inline-size/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'min-inline-size' || t.startsWith('min-inline-size'))).toBeTruthy(); }); test('docs_min_inline_size: h2 "Examples"', async ({ page }) => { await page.goto('/docs/min-inline-size/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_min_inline_size: h2 "Customizing your theme"', async ({ page }) => { await page.goto('/docs/min-inline-size/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Customizing your theme' || t.startsWith('Customizing your theme'))).toBeTruthy(); }); test('docs_min_inline_size: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/min-inline-size/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); }); test.describe('Functional - docs_min_width', () => { test('docs_min_width: title matches GT', async ({ page }) => { await page.goto('/docs/min-width/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('min'); }); test('docs_min_width: h1 "min-width"', async ({ page }) => { await page.goto('/docs/min-width/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'min-width' || t.startsWith('min-width'))).toBeTruthy(); }); test('docs_min_width: h2 "Examples"', async ({ page }) => { await page.goto('/docs/min-width/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_min_width: h2 "Customizing your theme"', async ({ page }) => { await page.goto('/docs/min-width/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Customizing your theme' || t.startsWith('Customizing your theme'))).toBeTruthy(); }); test('docs_min_width: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/min-width/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); }); test.describe('Functional - docs_order', () => { test('docs_order: title matches GT', async ({ page }) => { await page.goto('/docs/order/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('order'); }); test('docs_order: h1 "order"', async ({ page }) => { await page.goto('/docs/order/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'order' || t.startsWith('order'))).toBeTruthy(); }); test('docs_order: h2 "Examples"', async ({ page }) => { await page.goto('/docs/order/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_order: h3 "Choosing an exact display orde"', async ({ page }) => { await page.goto('/docs/order/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Choosing an exact display order' || t.startsWith('Choosing an exact display order'))).toBeTruthy(); }); test('docs_order: h3 "Placing items first or last"', async ({ page }) => { await page.goto('/docs/order/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Placing items first or last' || t.startsWith('Placing items first or last'))).toBeTruthy(); }); }); test.describe('Functional - docs_overscroll_behavior', () => { test('docs_overscroll_behavior: title matches GT', async ({ page }) => { await page.goto('/docs/overscroll-behavior/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('overscroll'); }); test('docs_overscroll_behavior: h1 "overscroll-behavior"', async ({ page }) => { await page.goto('/docs/overscroll-behavior/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'overscroll-behavior' || t.startsWith('overscroll-behavior'))).toBeTruthy(); }); test('docs_overscroll_behavior: h2 "Use cases"', async ({ page }) => { await page.goto('/docs/overscroll-behavior/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Use cases' || t.startsWith('Use cases'))).toBeTruthy(); }); test('docs_overscroll_behavior: h3 "Stopping parent overscrolling"', async ({ page }) => { await page.goto('/docs/overscroll-behavior/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stopping parent overscrolling' || t.startsWith('Stopping parent overscrolling'))).toBeTruthy(); }); test('docs_overscroll_behavior: h3 "Stopping the overscroll bounce"', async ({ page }) => { await page.goto('/docs/overscroll-behavior/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stopping the overscroll bounce' || t.startsWith('Stopping the overscroll bounce'))).toBeTruthy(); }); }); test.describe('Functional - docs_padding', () => { test('docs_padding: title matches GT', async ({ page }) => { await page.goto('/docs/padding/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('padding'); }); test('docs_padding: h1 "padding"', async ({ page }) => { await page.goto('/docs/padding/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'padding' || t.startsWith('padding'))).toBeTruthy(); }); test('docs_padding: h2 "Samples"', async ({ page }) => { await page.goto('/docs/padding/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Samples' || t.startsWith('Samples'))).toBeTruthy(); }); test('docs_padding: h2 "Tailoring your theme"', async ({ page }) => { await page.goto('/docs/padding/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Tailoring your theme' || t.startsWith('Tailoring your theme'))).toBeTruthy(); }); test('docs_padding: h3 "A first look"', async ({ page }) => { await page.goto('/docs/padding/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'A first look' || t.startsWith('A first look'))).toBeTruthy(); }); }); test.describe('Functional - docs_place_content', () => { test('docs_place_content: title matches GT', async ({ page }) => { await page.goto('/docs/place-content/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('place'); }); test('docs_place_content: h1 "place-content"', async ({ page }) => { await page.goto('/docs/place-content/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'place-content' || t.startsWith('place-content'))).toBeTruthy(); }); test('docs_place_content: h2 "Examples"', async ({ page }) => { await page.goto('/docs/place-content/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_place_content: h3 "Center"', async ({ page }) => { await page.goto('/docs/place-content/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Center' || t.startsWith('Center'))).toBeTruthy(); }); test('docs_place_content: h3 "Start"', async ({ page }) => { await page.goto('/docs/place-content/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Start' || t.startsWith('Start'))).toBeTruthy(); }); }); test.describe('Functional - docs_place_items', () => { test('docs_place_items: title matches GT', async ({ page }) => { await page.goto('/docs/place-items/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('place'); }); test('docs_place_items: h1 "place-items"', async ({ page }) => { await page.goto('/docs/place-items/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'place-items' || t.startsWith('place-items'))).toBeTruthy(); }); test('docs_place_items: h2 "Examples"', async ({ page }) => { await page.goto('/docs/place-items/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_place_items: h2 "Responsive design"', async ({ page }) => { await page.goto('/docs/place-items/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Responsive design' || t.startsWith('Responsive design'))).toBeTruthy(); }); test('docs_place_items: h3 "Start"', async ({ page }) => { await page.goto('/docs/place-items/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Start' || t.startsWith('Start'))).toBeTruthy(); }); }); test.describe('Functional - docs_place_self', () => { test('docs_place_self: title matches GT', async ({ page }) => { await page.goto('/docs/place-self/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('place'); }); test('docs_place_self: h1 "place-self"', async ({ page }) => { await page.goto('/docs/place-self/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'place-self' || t.startsWith('place-self'))).toBeTruthy(); }); test('docs_place_self: h2 "Examples"', async ({ page }) => { await page.goto('/docs/place-self/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_place_self: h3 "Auto"', async ({ page }) => { await page.goto('/docs/place-self/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Auto' || t.startsWith('Auto'))).toBeTruthy(); }); test('docs_place_self: h3 "Start"', async ({ page }) => { await page.goto('/docs/place-self/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Start' || t.startsWith('Start'))).toBeTruthy(); }); }); test.describe('Functional - docs_preflight', () => { test('docs_preflight: title matches GT', async ({ page }) => { await page.goto('/docs/preflight/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('baseline'); }); test('docs_preflight: h1 "Baseline"', async ({ page }) => { await page.goto('/docs/preflight/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Baseline' || t.startsWith('Baseline'))).toBeTruthy(); }); test('docs_preflight: h2 "Overview"', async ({ page }) => { await page.goto('/docs/preflight/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Overview' || t.startsWith('Overview'))).toBeTruthy(); }); test('docs_preflight: h2 "Extending Preflight"', async ({ page }) => { await page.goto('/docs/preflight/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Extending Preflight' || t.startsWith('Extending Preflight'))).toBeTruthy(); }); test('docs_preflight: h2 "Disabling Preflight"', async ({ page }) => { await page.goto('/docs/preflight/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Disabling Preflight' || t.startsWith('Disabling Preflight'))).toBeTruthy(); }); }); test.describe('Functional - docs_text_align', () => { test('docs_text_align: title matches GT', async ({ page }) => { await page.goto('/docs/text-align/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('text'); }); test('docs_text_align: h1 "text-align"', async ({ page }) => { await page.goto('/docs/text-align/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'text-align' || t.startsWith('text-align'))).toBeTruthy(); }); test('docs_text_align: h2 "Examples"', async ({ page }) => { await page.goto('/docs/text-align/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_text_align: h3 "Left-aligning text"', async ({ page }) => { await page.goto('/docs/text-align/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Left-aligning text' || t.startsWith('Left-aligning text'))).toBeTruthy(); }); test('docs_text_align: h3 "Right-aligning text"', async ({ page }) => { await page.goto('/docs/text-align/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Right-aligning text' || t.startsWith('Right-aligning text'))).toBeTruthy(); }); }); test.describe('Functional - docs_theme', () => { test('docs_theme: title matches GT', async ({ page }) => { await page.goto('/docs/theme/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('theme variables'); }); test('docs_theme: h1 "Theme variables"', async ({ page }) => { await page.goto('/docs/theme/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Theme variables' || t.startsWith('Theme variables'))).toBeTruthy(); }); test('docs_theme: h2 "Overview"', async ({ page }) => { await page.goto('/docs/theme/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Overview' || t.startsWith('Overview'))).toBeTruthy(); }); test('docs_theme: h2 "Shaping your own theme"', async ({ page }) => { await page.goto('/docs/theme/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Shaping your own theme' || t.startsWith('Shaping your own theme'))).toBeTruthy(); }); test('docs_theme: h2 "Working with theme variables"', async ({ page }) => { await page.goto('/docs/theme/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Working with theme variables' || t.startsWith('Working with theme variables'))).toBeTruthy(); }); }); test.describe('Functional - docs_top_right_bottom_left', () => { test('docs_top_right_bottom_left: title matches GT', async ({ page }) => { await page.goto('/docs/top-right-bottom-left/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('top / right / bottom / left'); }); test('docs_top_right_bottom_left: h1 "top / right / bottom / left"', async ({ page }) => { await page.goto('/docs/top-right-bottom-left/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'top / right / bottom / left' || t.startsWith('top / right / bottom / left'))).toBeTruthy(); }); test('docs_top_right_bottom_left: h2 "Examples"', async ({ page }) => { await page.goto('/docs/top-right-bottom-left/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_top_right_bottom_left: h2 "Customizing your theme"', async ({ page }) => { await page.goto('/docs/top-right-bottom-left/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Customizing your theme' || t.startsWith('Customizing your theme'))).toBeTruthy(); }); test('docs_top_right_bottom_left: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/top-right-bottom-left/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); }); test.describe('Functional - docs_visibility', () => { test('docs_visibility: title matches GT', async ({ page }) => { await page.goto('/docs/visibility/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('visibility'); }); test('docs_visibility: h1 "visibility"', async ({ page }) => { await page.goto('/docs/visibility/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'visibility' || t.startsWith('visibility'))).toBeTruthy(); }); test('docs_visibility: h2 "Examples"', async ({ page }) => { await page.goto('/docs/visibility/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_visibility: h3 "Hiding elements from view"', async ({ page }) => { await page.goto('/docs/visibility/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Hiding elements from view' || t.startsWith('Hiding elements from view'))).toBeTruthy(); }); test('docs_visibility: h3 "Collapsing table rows"', async ({ page }) => { await page.goto('/docs/visibility/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Collapsing table rows' || t.startsWith('Collapsing table rows'))).toBeTruthy(); }); }); test.describe('Functional - docs_width', () => { test('docs_width: title matches GT', async ({ page }) => { await page.goto('/docs/width/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('width'); }); test('docs_width: h1 "width"', async ({ page }) => { await page.goto('/docs/width/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'width' || t.startsWith('width'))).toBeTruthy(); }); test('docs_width: h2 "Examples"', async ({ page }) => { await page.goto('/docs/width/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_width: h2 "Tailoring your own theme"', async ({ page }) => { await page.goto('/docs/width/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Tailoring your own theme' || t.startsWith('Tailoring your own theme'))).toBeTruthy(); }); test('docs_width: h3 "A quick start"', async ({ page }) => { await page.goto('/docs/width/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'A quick start' || t.startsWith('A quick start'))).toBeTruthy(); }); }); test.describe('Functional - docs_z_index', () => { test('docs_z_index: h1 "z-index"', async ({ page }) => { await page.goto('/docs/z-index/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'z-index' || t.startsWith('z-index'))).toBeTruthy(); }); test('docs_z_index: h2 "Examples"', async ({ page }) => { await page.goto('/docs/z-index/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Examples' || t.startsWith('Examples'))).toBeTruthy(); }); test('docs_z_index: h3 "Basic example"', async ({ page }) => { await page.goto('/docs/z-index/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Basic example' || t.startsWith('Basic example'))).toBeTruthy(); }); test('docs_z_index: h3 "Using negative values"', async ({ page }) => { await page.goto('/docs/z-index/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Using negative values' || t.startsWith('Using negative values'))).toBeTruthy(); }); }); test.describe('Functional - insiders', () => { test('insiders: title matches GT', async ({ page }) => { await page.goto('/insiders/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('insiders'); }); test('insiders: h1 "Become a Breezel Insider."', async ({ page }) => { await page.goto('/insiders/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Become a Breezel Insider.' || t.startsWith('Become a Breezel Insider.'))).toBeTruthy(); }); test('insiders: h2 "Insider perks"', async ({ page }) => { await page.goto('/insiders/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Insider perks' || t.startsWith('Insider perks'))).toBeTruthy(); }); test('insiders: h2 "Insiders"', async ({ page }) => { await page.goto('/insiders/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Insiders' || t.startsWith('Insiders'))).toBeTruthy(); }); test('insiders: h2 "Frequently asked questions"', async ({ page }) => { await page.goto('/insiders/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Frequently asked questions' || t.startsWith('Frequently asked questions'))).toBeTruthy(); }); }); test.describe('Functional - Routing', () => { test('navigate to docs via "Docs"', async ({ page }) => { await page.goto('/'); const link = page.locator('a[href*="docs"]').first(); expect(await link.count(), 'nav link to docs exists').toBeGreaterThan(0); await link.click(); await page.waitForTimeout(1200); expect(page.url().toLowerCase(), 'URL changed to destination').toContain('docs'); const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); expect(bodyText, 'destination distinctive content shown').toContain('Installing Breezel CSS with Vite'); }); });