import { test, expect } from '@playwright/test'; test.describe('Functional - homepage', () => { test('homepage: h1 "Detox benefits"', async ({ page }) => { await page.goto('/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox benefits' || t.startsWith('Detox benefits'))).toBeTruthy(); }); test('homepage: h2 "We use cookies!"', async ({ page }) => { await page.goto('/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('homepage: h2 "Cookie settings"', async ({ page }) => { await page.goto('/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Cookie settings' || t.startsWith('Cookie settings'))).toBeTruthy(); }); test('homepage: nav link "Detox"', async ({ page }) => { await page.goto('/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); 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: h2 "Detox Copilot: Write Tests in "', async ({ page }) => { await page.goto('/blog/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox Copilot: Write Tests in Natural Language​' || t.startsWith('Detox Copilot: Write Tests in Natural Language​'))).toBeTruthy(); }); test('blog: h2 "Key Features of Detox Copilot​"', async ({ page }) => { await page.goto('/blog/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Key Features of Detox Copilot​' || t.startsWith('Key Features of Detox Copilot​'))).toBeTruthy(); }); test('blog: h2 "How Detox Copilot Works​"', async ({ page }) => { await page.goto('/blog/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How Detox Copilot Works​' || t.startsWith('How Detox Copilot Works​'))).toBeTruthy(); }); test('blog: nav link "Detox"', async ({ page }) => { await page.goto('/blog/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_introduction_getting_started', () => { test('docs_next_introduction_getting_started: title matches GT', async ({ page }) => { await page.goto('/docs/next/introduction/getting-started/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('getting started'); }); test('docs_next_introduction_getting_started: h1 "Getting Started"', async ({ page }) => { await page.goto('/docs/next/introduction/getting-started/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Getting Started' || t.startsWith('Getting Started'))).toBeTruthy(); }); test('docs_next_introduction_getting_started: h2 "Before You Start​"', async ({ page }) => { await page.goto('/docs/next/introduction/getting-started/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Before You Start​' || t.startsWith('Before You Start​'))).toBeTruthy(); }); test('docs_next_introduction_getting_started: h2 "Start with Detox​"', async ({ page }) => { await page.goto('/docs/next/introduction/getting-started/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Start with Detox​' || t.startsWith('Start with Detox​'))).toBeTruthy(); }); test('docs_next_introduction_getting_started: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/next/introduction/getting-started/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_next_introduction_getting_started: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/introduction/getting-started/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').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: h1 "Users Showcase"', async ({ page }) => { await page.goto('/showcase/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Users Showcase' || t.startsWith('Users Showcase'))).toBeTruthy(); }); test('showcase: h2 "We use cookies!"', 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 === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('showcase: h2 "Cookie settings"', 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 === 'Cookie settings' || t.startsWith('Cookie settings'))).toBeTruthy(); }); test('showcase: nav link "Detox"', async ({ page }) => { await page.goto('/showcase/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - blog_2022_11_10_detox_20_is_out', () => { test('blog_2022_11_10_detox_20_is_out: title matches GT', async ({ page }) => { await page.goto('/blog/2022/11/10/detox-20-is-out/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('detox 20 is out'); }); test('blog_2022_11_10_detox_20_is_out: h1 "Detox 20 is out"', async ({ page }) => { await page.goto('/blog/2022/11/10/detox-20-is-out/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox 20 is out' || t.startsWith('Detox 20 is out'))).toBeTruthy(); }); test('blog_2022_11_10_detox_20_is_out: h2 "Genymotion SaaS​"', async ({ page }) => { await page.goto('/blog/2022/11/10/detox-20-is-out/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Genymotion SaaS​' || t.startsWith('Genymotion SaaS​'))).toBeTruthy(); }); test('blog_2022_11_10_detox_20_is_out: h2 "Integration with test runners​"', async ({ page }) => { await page.goto('/blog/2022/11/10/detox-20-is-out/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Integration with test runners​' || t.startsWith('Integration with test runners​'))).toBeTruthy(); }); test('blog_2022_11_10_detox_20_is_out: h2 "Configurable logger​"', async ({ page }) => { await page.goto('/blog/2022/11/10/detox-20-is-out/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Configurable logger​' || t.startsWith('Configurable logger​'))).toBeTruthy(); }); test('blog_2022_11_10_detox_20_is_out: nav link "Detox"', async ({ page }) => { await page.goto('/blog/2022/11/10/detox-20-is-out/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - blog_2024_10_09_detox_copilot_is_out', () => { test('blog_2024_10_09_detox_copilot_is_out: title matches GT', async ({ page }) => { await page.goto('/blog/2024/10/09/detox-copilot-is-out/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('introducing detox copilot'); }); test('blog_2024_10_09_detox_copilot_is_out: h1 "Introducing Detox Copilot"', async ({ page }) => { await page.goto('/blog/2024/10/09/detox-copilot-is-out/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Introducing Detox Copilot' || t.startsWith('Introducing Detox Copilot'))).toBeTruthy(); }); test('blog_2024_10_09_detox_copilot_is_out: h2 "Detox Copilot: Write Tests in "', async ({ page }) => { await page.goto('/blog/2024/10/09/detox-copilot-is-out/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox Copilot: Write Tests in Natural Language​' || t.startsWith('Detox Copilot: Write Tests in Natural Language​'))).toBeTruthy(); }); test('blog_2024_10_09_detox_copilot_is_out: h2 "Key Features of Detox Copilot​"', async ({ page }) => { await page.goto('/blog/2024/10/09/detox-copilot-is-out/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Key Features of Detox Copilot​' || t.startsWith('Key Features of Detox Copilot​'))).toBeTruthy(); }); test('blog_2024_10_09_detox_copilot_is_out: h2 "How Detox Copilot Works​"', async ({ page }) => { await page.goto('/blog/2024/10/09/detox-copilot-is-out/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How Detox Copilot Works​' || t.startsWith('How Detox Copilot Works​'))).toBeTruthy(); }); test('blog_2024_10_09_detox_copilot_is_out: nav link "Detox"', async ({ page }) => { await page.goto('/blog/2024/10/09/detox-copilot-is-out/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - blog_tags', () => { test('blog_tags: title matches GT', async ({ page }) => { await page.goto('/blog/tags/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('tags'); }); test('blog_tags: h2 "We use cookies!"', async ({ page }) => { await page.goto('/blog/tags/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('blog_tags: h2 "Cookie settings"', async ({ page }) => { await page.goto('/blog/tags/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Cookie settings' || t.startsWith('Cookie settings'))).toBeTruthy(); }); test('blog_tags: nav link "Detox"', async ({ page }) => { await page.goto('/blog/tags/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_contributing', () => { test('docs_contributing: title matches GT', async ({ page }) => { await page.goto('/docs/contributing/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('contributing to detox'); }); test('docs_contributing: h1 "Contributing to Detox"', async ({ page }) => { await page.goto('/docs/contributing/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contributing to Detox' || t.startsWith('Contributing to Detox'))).toBeTruthy(); }); test('docs_contributing: h2 "Our Code of Conduct​"', async ({ page }) => { await page.goto('/docs/contributing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Code of Conduct​' || t.startsWith('Our Code of Conduct​'))).toBeTruthy(); }); test('docs_contributing: h2 "Ways to Contribute​"', async ({ page }) => { await page.goto('/docs/contributing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ways to Contribute​' || t.startsWith('Ways to Contribute​'))).toBeTruthy(); }); test('docs_contributing: h2 "Engaging in the Community​"', async ({ page }) => { await page.goto('/docs/contributing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Engaging in the Community​' || t.startsWith('Engaging in the Community​'))).toBeTruthy(); }); test('docs_contributing: nav link "Detox"', async ({ page }) => { await page.goto('/docs/contributing/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_config_overview', () => { test('docs_next_config_overview: title matches GT', async ({ page }) => { await page.goto('/docs/next/config/overview/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('overview'); }); test('docs_next_config_overview: h1 "Overview"', async ({ page }) => { await page.goto('/docs/next/config/overview/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Overview' || t.startsWith('Overview'))).toBeTruthy(); }); test('docs_next_config_overview: h2 "Config structure​"', async ({ page }) => { await page.goto('/docs/next/config/overview/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Config structure​' || t.startsWith('Config structure​'))).toBeTruthy(); }); test('docs_next_config_overview: h2 "Path conventions​"', async ({ page }) => { await page.goto('/docs/next/config/overview/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Path conventions​' || t.startsWith('Path conventions​'))).toBeTruthy(); }); test('docs_next_config_overview: h2 "Extending​"', async ({ page }) => { await page.goto('/docs/next/config/overview/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Extending​' || t.startsWith('Extending​'))).toBeTruthy(); }); test('docs_next_config_overview: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/config/overview/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_contributing', () => { test('docs_next_contributing: title matches GT', async ({ page }) => { await page.goto('/docs/next/contributing/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('contributing to detox'); }); test('docs_next_contributing: h1 "Contributing to Detox"', async ({ page }) => { await page.goto('/docs/next/contributing/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contributing to Detox' || t.startsWith('Contributing to Detox'))).toBeTruthy(); }); test('docs_next_contributing: h2 "Our Code of Conduct​"', async ({ page }) => { await page.goto('/docs/next/contributing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Code of Conduct​' || t.startsWith('Our Code of Conduct​'))).toBeTruthy(); }); test('docs_next_contributing: h2 "Ways to Contribute​"', async ({ page }) => { await page.goto('/docs/next/contributing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ways to Contribute​' || t.startsWith('Ways to Contribute​'))).toBeTruthy(); }); test('docs_next_contributing: h2 "Engaging in the Community​"', async ({ page }) => { await page.goto('/docs/next/contributing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Engaging in the Community​' || t.startsWith('Engaging in the Community​'))).toBeTruthy(); }); test('docs_next_contributing: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/contributing/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_guide_migration', () => { test('docs_next_guide_migration: title matches GT', async ({ page }) => { await page.goto('/docs/next/guide/migration/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('migration guide'); }); test('docs_next_guide_migration: h1 "Migration Guide"', async ({ page }) => { await page.goto('/docs/next/guide/migration/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Migration Guide' || t.startsWith('Migration Guide'))).toBeTruthy(); }); test('docs_next_guide_migration: h2 "20.0​"', async ({ page }) => { await page.goto('/docs/next/guide/migration/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '20.0​' || t.startsWith('20.0​'))).toBeTruthy(); }); test('docs_next_guide_migration: h2 "19.2​"', async ({ page }) => { await page.goto('/docs/next/guide/migration/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '19.2​' || t.startsWith('19.2​'))).toBeTruthy(); }); test('docs_next_guide_migration: h2 "19.0​"', async ({ page }) => { await page.goto('/docs/next/guide/migration/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '19.0​' || t.startsWith('19.0​'))).toBeTruthy(); }); test('docs_next_guide_migration: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/guide/migration/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_introduction_debugging', () => { test('docs_next_introduction_debugging: title matches GT', async ({ page }) => { await page.goto('/docs/next/introduction/debugging/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how to debug'); }); test('docs_next_introduction_debugging: h1 "How to Debug"', async ({ page }) => { await page.goto('/docs/next/introduction/debugging/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Debug' || t.startsWith('How to Debug'))).toBeTruthy(); }); test('docs_next_introduction_debugging: h2 "Running Detox Tests Step-by-St"', async ({ page }) => { await page.goto('/docs/next/introduction/debugging/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Running Detox Tests Step-by-Step​' || t.startsWith('Running Detox Tests Step-by-Step​'))).toBeTruthy(); }); test('docs_next_introduction_debugging: h2 "Debugging JavaScript applicati"', async ({ page }) => { await page.goto('/docs/next/introduction/debugging/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Debugging JavaScript application code​' || t.startsWith('Debugging JavaScript application code​'))).toBeTruthy(); }); test('docs_next_introduction_debugging: h2 "Debugging Native application c"', async ({ page }) => { await page.goto('/docs/next/introduction/debugging/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Debugging Native application code​' || t.startsWith('Debugging Native application code​'))).toBeTruthy(); }); test('docs_next_introduction_debugging: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/introduction/debugging/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_introduction_environment_setup', () => { test('docs_next_introduction_environment_setup: title matches GT', async ({ page }) => { await page.goto('/docs/next/introduction/environment-setup/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('environment setup'); }); test('docs_next_introduction_environment_setup: h1 "Environment Setup"', async ({ page }) => { await page.goto('/docs/next/introduction/environment-setup/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Environment Setup' || t.startsWith('Environment Setup'))).toBeTruthy(); }); test('docs_next_introduction_environment_setup: h2 "React Native CLI Quickstart​"', async ({ page }) => { await page.goto('/docs/next/introduction/environment-setup/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'React Native CLI Quickstart​' || t.startsWith('React Native CLI Quickstart​'))).toBeTruthy(); }); test('docs_next_introduction_environment_setup: h2 "Detox Prerequisites​"', async ({ page }) => { await page.goto('/docs/next/introduction/environment-setup/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox Prerequisites​' || t.startsWith('Detox Prerequisites​'))).toBeTruthy(); }); test('docs_next_introduction_environment_setup: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/next/introduction/environment-setup/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_next_introduction_environment_setup: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/introduction/environment-setup/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_introduction_preparing_for_ci', () => { test('docs_next_introduction_preparing_for_ci: title matches GT', async ({ page }) => { await page.goto('/docs/next/introduction/preparing-for-ci/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('preparing for ci'); }); test('docs_next_introduction_preparing_for_ci: h1 "Preparing for CI"', async ({ page }) => { await page.goto('/docs/next/introduction/preparing-for-ci/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Preparing for CI' || t.startsWith('Preparing for CI'))).toBeTruthy(); }); test('docs_next_introduction_preparing_for_ci: h2 "Step 1: Prepare a Release Conf"', async ({ page }) => { await page.goto('/docs/next/introduction/preparing-for-ci/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Step 1: Prepare a Release Configuration for Your App​' || t.startsWith('Step 1: Prepare a Release Configuration for Your App​'))).toBeTruthy(); }); test('docs_next_introduction_preparing_for_ci: h2 "Step 2: Add build and test Com"', async ({ page }) => { await page.goto('/docs/next/introduction/preparing-for-ci/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Step 2: Add build and test Commands to Your CI Script​' || t.startsWith('Step 2: Add build and test Commands to Your CI Script​'))).toBeTruthy(); }); test('docs_next_introduction_preparing_for_ci: h2 "Running Android Tests on CI​"', async ({ page }) => { await page.goto('/docs/next/introduction/preparing-for-ci/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Running Android Tests on CI​' || t.startsWith('Running Android Tests on CI​'))).toBeTruthy(); }); test('docs_next_introduction_preparing_for_ci: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/introduction/preparing-for-ci/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_introduction_project_setup', () => { test('docs_next_introduction_project_setup: title matches GT', async ({ page }) => { await page.goto('/docs/next/introduction/project-setup/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('project setup'); }); test('docs_next_introduction_project_setup: h1 "Project Setup"', async ({ page }) => { await page.goto('/docs/next/introduction/project-setup/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Project Setup' || t.startsWith('Project Setup'))).toBeTruthy(); }); test('docs_next_introduction_project_setup: h2 "Step 1: Bootstrap​"', async ({ page }) => { await page.goto('/docs/next/introduction/project-setup/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Step 1: Bootstrap​' || t.startsWith('Step 1: Bootstrap​'))).toBeTruthy(); }); test('docs_next_introduction_project_setup: h2 "Step 2: App configs​"', async ({ page }) => { await page.goto('/docs/next/introduction/project-setup/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Step 2: App configs​' || t.startsWith('Step 2: App configs​'))).toBeTruthy(); }); test('docs_next_introduction_project_setup: h2 "Step 3: Device configs​"', async ({ page }) => { await page.goto('/docs/next/introduction/project-setup/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Step 3: Device configs​' || t.startsWith('Step 3: Device configs​'))).toBeTruthy(); }); test('docs_next_introduction_project_setup: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/introduction/project-setup/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_introduction_your_first_test', () => { test('docs_next_introduction_your_first_test: title matches GT', async ({ page }) => { await page.goto('/docs/next/introduction/your-first-test/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('your first test'); }); test('docs_next_introduction_your_first_test: h1 "Your First Test"', async ({ page }) => { await page.goto('/docs/next/introduction/your-first-test/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Your First Test' || t.startsWith('Your First Test'))).toBeTruthy(); }); test('docs_next_introduction_your_first_test: h2 "Writing a test​"', async ({ page }) => { await page.goto('/docs/next/introduction/your-first-test/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Writing a test​' || t.startsWith('Writing a test​'))).toBeTruthy(); }); test('docs_next_introduction_your_first_test: h2 "Running tests​"', async ({ page }) => { await page.goto('/docs/next/introduction/your-first-test/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Running tests​' || t.startsWith('Running tests​'))).toBeTruthy(); }); test('docs_next_introduction_your_first_test: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/next/introduction/your-first-test/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_next_introduction_your_first_test: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/introduction/your-first-test/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - blog_tags_ai_integration', () => { test('blog_tags_ai_integration: title matches GT', async ({ page }) => { await page.goto('/blog/tags/ai-integration/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('one post tagged with "ai'); }); test('blog_tags_ai_integration: h1 "One post tagged with ai-integr"', async ({ page }) => { await page.goto('/blog/tags/ai-integration/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'One post tagged with "ai-integration"' || t.startsWith('One post tagged with "ai-integration"'))).toBeTruthy(); }); test('blog_tags_ai_integration: h2 "Introducing Detox Copilot"', async ({ page }) => { await page.goto('/blog/tags/ai-integration/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Introducing Detox Copilot' || t.startsWith('Introducing Detox Copilot'))).toBeTruthy(); }); test('blog_tags_ai_integration: h2 "Detox Copilot: Write Tests in "', async ({ page }) => { await page.goto('/blog/tags/ai-integration/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox Copilot: Write Tests in Natural Language​' || t.startsWith('Detox Copilot: Write Tests in Natural Language​'))).toBeTruthy(); }); test('blog_tags_ai_integration: h2 "Key Features of Detox Copilot​"', async ({ page }) => { await page.goto('/blog/tags/ai-integration/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Key Features of Detox Copilot​' || t.startsWith('Key Features of Detox Copilot​'))).toBeTruthy(); }); test('blog_tags_ai_integration: nav link "Detox"', async ({ page }) => { await page.goto('/blog/tags/ai-integration/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - blog_tags_detox_pilot', () => { test('blog_tags_detox_pilot: title matches GT', async ({ page }) => { await page.goto('/blog/tags/detox-pilot/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('one post tagged with "detox'); }); test('blog_tags_detox_pilot: h1 "One post tagged with detox-pil"', async ({ page }) => { await page.goto('/blog/tags/detox-pilot/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'One post tagged with "detox-pilot"' || t.startsWith('One post tagged with "detox-pilot"'))).toBeTruthy(); }); test('blog_tags_detox_pilot: h2 "Introducing Detox Copilot"', async ({ page }) => { await page.goto('/blog/tags/detox-pilot/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Introducing Detox Copilot' || t.startsWith('Introducing Detox Copilot'))).toBeTruthy(); }); test('blog_tags_detox_pilot: h2 "Detox Copilot: Write Tests in "', async ({ page }) => { await page.goto('/blog/tags/detox-pilot/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox Copilot: Write Tests in Natural Language​' || t.startsWith('Detox Copilot: Write Tests in Natural Language​'))).toBeTruthy(); }); test('blog_tags_detox_pilot: h2 "Key Features of Detox Copilot​"', async ({ page }) => { await page.goto('/blog/tags/detox-pilot/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Key Features of Detox Copilot​' || t.startsWith('Key Features of Detox Copilot​'))).toBeTruthy(); }); test('blog_tags_detox_pilot: nav link "Detox"', async ({ page }) => { await page.goto('/blog/tags/detox-pilot/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - blog_tags_genymotion', () => { test('blog_tags_genymotion: title matches GT', async ({ page }) => { await page.goto('/blog/tags/genymotion/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('one post tagged with "genymotion"'); }); test('blog_tags_genymotion: h1 "One post tagged with genymotio"', async ({ page }) => { await page.goto('/blog/tags/genymotion/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'One post tagged with "genymotion"' || t.startsWith('One post tagged with "genymotion"'))).toBeTruthy(); }); test('blog_tags_genymotion: h2 "Detox 20 is out"', async ({ page }) => { await page.goto('/blog/tags/genymotion/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox 20 is out' || t.startsWith('Detox 20 is out'))).toBeTruthy(); }); test('blog_tags_genymotion: h2 "Genymotion SaaS​"', async ({ page }) => { await page.goto('/blog/tags/genymotion/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Genymotion SaaS​' || t.startsWith('Genymotion SaaS​'))).toBeTruthy(); }); test('blog_tags_genymotion: h2 "Integration with test runners​"', async ({ page }) => { await page.goto('/blog/tags/genymotion/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Integration with test runners​' || t.startsWith('Integration with test runners​'))).toBeTruthy(); }); test('blog_tags_genymotion: nav link "Detox"', async ({ page }) => { await page.goto('/blog/tags/genymotion/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - blog_tags_major_release', () => { test('blog_tags_major_release: title matches GT', async ({ page }) => { await page.goto('/blog/tags/major-release/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('one post tagged with "major'); }); test('blog_tags_major_release: h1 "One post tagged with major-rel"', async ({ page }) => { await page.goto('/blog/tags/major-release/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'One post tagged with "major-release"' || t.startsWith('One post tagged with "major-release"'))).toBeTruthy(); }); test('blog_tags_major_release: h2 "Detox 20 is out"', async ({ page }) => { await page.goto('/blog/tags/major-release/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox 20 is out' || t.startsWith('Detox 20 is out'))).toBeTruthy(); }); test('blog_tags_major_release: h2 "Genymotion SaaS​"', async ({ page }) => { await page.goto('/blog/tags/major-release/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Genymotion SaaS​' || t.startsWith('Genymotion SaaS​'))).toBeTruthy(); }); test('blog_tags_major_release: h2 "Integration with test runners​"', async ({ page }) => { await page.goto('/blog/tags/major-release/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Integration with test runners​' || t.startsWith('Integration with test runners​'))).toBeTruthy(); }); test('blog_tags_major_release: nav link "Detox"', async ({ page }) => { await page.goto('/blog/tags/major-release/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - blog_tags_minor_release', () => { test('blog_tags_minor_release: title matches GT', async ({ page }) => { await page.goto('/blog/tags/minor-release/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('one post tagged with "minor'); }); test('blog_tags_minor_release: h1 "One post tagged with minor-rel"', async ({ page }) => { await page.goto('/blog/tags/minor-release/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'One post tagged with "minor-release"' || t.startsWith('One post tagged with "minor-release"'))).toBeTruthy(); }); test('blog_tags_minor_release: h2 "Introducing Detox Copilot"', async ({ page }) => { await page.goto('/blog/tags/minor-release/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Introducing Detox Copilot' || t.startsWith('Introducing Detox Copilot'))).toBeTruthy(); }); test('blog_tags_minor_release: h2 "Detox Copilot: Write Tests in "', async ({ page }) => { await page.goto('/blog/tags/minor-release/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox Copilot: Write Tests in Natural Language​' || t.startsWith('Detox Copilot: Write Tests in Natural Language​'))).toBeTruthy(); }); test('blog_tags_minor_release: h2 "Key Features of Detox Copilot​"', async ({ page }) => { await page.goto('/blog/tags/minor-release/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Key Features of Detox Copilot​' || t.startsWith('Key Features of Detox Copilot​'))).toBeTruthy(); }); test('blog_tags_minor_release: nav link "Detox"', async ({ page }) => { await page.goto('/blog/tags/minor-release/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_api_actions', () => { test('docs_api_actions: title matches GT', async ({ page }) => { await page.goto('/docs/api/actions/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('actions'); }); test('docs_api_actions: h1 "Actions"', async ({ page }) => { await page.goto('/docs/api/actions/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Actions' || t.startsWith('Actions'))).toBeTruthy(); }); test('docs_api_actions: h2 "Methods​"', async ({ page }) => { await page.goto('/docs/api/actions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Methods​' || t.startsWith('Methods​'))).toBeTruthy(); }); test('docs_api_actions: h2 "Deprecated Methods​"', async ({ page }) => { await page.goto('/docs/api/actions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Deprecated Methods​' || t.startsWith('Deprecated Methods​'))).toBeTruthy(); }); test('docs_api_actions: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/api/actions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_api_actions: nav link "Detox"', async ({ page }) => { await page.goto('/docs/api/actions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_api_device', () => { test('docs_api_device: title matches GT', async ({ page }) => { await page.goto('/docs/api/device/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('device'); }); test('docs_api_device: h1 "Device"', async ({ page }) => { await page.goto('/docs/api/device/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Device' || t.startsWith('Device'))).toBeTruthy(); }); test('docs_api_device: h2 "Public Properties​"', async ({ page }) => { await page.goto('/docs/api/device/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Public Properties​' || t.startsWith('Public Properties​'))).toBeTruthy(); }); test('docs_api_device: h2 "Methods​"', async ({ page }) => { await page.goto('/docs/api/device/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Methods​' || t.startsWith('Methods​'))).toBeTruthy(); }); test('docs_api_device: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/api/device/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_api_device: nav link "Detox"', async ({ page }) => { await page.goto('/docs/api/device/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_api_expect', () => { test('docs_api_expect: title matches GT', async ({ page }) => { await page.goto('/docs/api/expect/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('expect'); }); test('docs_api_expect: h1 "Expect"', async ({ page }) => { await page.goto('/docs/api/expect/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Expect' || t.startsWith('Expect'))).toBeTruthy(); }); test('docs_api_expect: h2 "Methods​"', async ({ page }) => { await page.goto('/docs/api/expect/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Methods​' || t.startsWith('Methods​'))).toBeTruthy(); }); test('docs_api_expect: h2 "Properties​"', async ({ page }) => { await page.goto('/docs/api/expect/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Properties​' || t.startsWith('Properties​'))).toBeTruthy(); }); test('docs_api_expect: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/api/expect/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_api_expect: nav link "Detox"', async ({ page }) => { await page.goto('/docs/api/expect/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_api_internals', () => { test('docs_api_internals: title matches GT', async ({ page }) => { await page.goto('/docs/api/internals/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('internals api'); }); test('docs_api_internals: h1 "Internals API"', async ({ page }) => { await page.goto('/docs/api/internals/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Internals API' || t.startsWith('Internals API'))).toBeTruthy(); }); test('docs_api_internals: h2 "Lifecycle​"', async ({ page }) => { await page.goto('/docs/api/internals/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Lifecycle​' || t.startsWith('Lifecycle​'))).toBeTruthy(); }); test('docs_api_internals: h2 "Methods​"', async ({ page }) => { await page.goto('/docs/api/internals/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Methods​' || t.startsWith('Methods​'))).toBeTruthy(); }); test('docs_api_internals: h2 "Optional lifecycle​"', async ({ page }) => { await page.goto('/docs/api/internals/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Optional lifecycle​' || t.startsWith('Optional lifecycle​'))).toBeTruthy(); }); test('docs_api_internals: nav link "Detox"', async ({ page }) => { await page.goto('/docs/api/internals/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_api_logger', () => { test('docs_api_logger: title matches GT', async ({ page }) => { await page.goto('/docs/api/logger/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('logger'); }); test('docs_api_logger: h1 "Logger"', async ({ page }) => { await page.goto('/docs/api/logger/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Logger' || t.startsWith('Logger'))).toBeTruthy(); }); test('docs_api_logger: h2 "Properties​"', async ({ page }) => { await page.goto('/docs/api/logger/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Properties​' || t.startsWith('Properties​'))).toBeTruthy(); }); test('docs_api_logger: h2 "Methods​"', async ({ page }) => { await page.goto('/docs/api/logger/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Methods​' || t.startsWith('Methods​'))).toBeTruthy(); }); test('docs_api_logger: h2 "Event metadata​"', async ({ page }) => { await page.goto('/docs/api/logger/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Event metadata​' || t.startsWith('Event metadata​'))).toBeTruthy(); }); test('docs_api_logger: nav link "Detox"', async ({ page }) => { await page.goto('/docs/api/logger/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_api_matchers', () => { test('docs_api_matchers: title matches GT', async ({ page }) => { await page.goto('/docs/api/matchers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('matchers'); }); test('docs_api_matchers: h1 "Matchers"', async ({ page }) => { await page.goto('/docs/api/matchers/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Matchers' || t.startsWith('Matchers'))).toBeTruthy(); }); test('docs_api_matchers: h2 "Methods​"', async ({ page }) => { await page.goto('/docs/api/matchers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Methods​' || t.startsWith('Methods​'))).toBeTruthy(); }); test('docs_api_matchers: h2 "Regex matching​"', async ({ page }) => { await page.goto('/docs/api/matchers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Regex matching​' || t.startsWith('Regex matching​'))).toBeTruthy(); }); test('docs_api_matchers: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/api/matchers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_api_matchers: nav link "Detox"', async ({ page }) => { await page.goto('/docs/api/matchers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_api_pilot', () => { test('docs_api_pilot: title matches GT', async ({ page }) => { await page.goto('/docs/api/pilot/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('wix pilot'); }); test('docs_api_pilot: h1 "Wix Pilot"', async ({ page }) => { await page.goto('/docs/api/pilot/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Wix Pilot' || t.startsWith('Wix Pilot'))).toBeTruthy(); }); test('docs_api_pilot: h2 "Overview​"', async ({ page }) => { await page.goto('/docs/api/pilot/'); 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_api_pilot: h2 "Methods​"', async ({ page }) => { await page.goto('/docs/api/pilot/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Methods​' || t.startsWith('Methods​'))).toBeTruthy(); }); test('docs_api_pilot: h2 "pilot.init(promptHandler)​"', async ({ page }) => { await page.goto('/docs/api/pilot/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'pilot.init(promptHandler)​' || t.startsWith('pilot.init(promptHandler)​'))).toBeTruthy(); }); test('docs_api_pilot: nav link "Detox"', async ({ page }) => { await page.goto('/docs/api/pilot/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_api_system', () => { test('docs_api_system: title matches GT', async ({ page }) => { await page.goto('/docs/api/system/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('system'); }); test('docs_api_system: h1 "System"', async ({ page }) => { await page.goto('/docs/api/system/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'System' || t.startsWith('System'))).toBeTruthy(); }); test('docs_api_system: h2 "Matchers​"', async ({ page }) => { await page.goto('/docs/api/system/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Matchers​' || t.startsWith('Matchers​'))).toBeTruthy(); }); test('docs_api_system: h2 "Actions​"', async ({ page }) => { await page.goto('/docs/api/system/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Actions​' || t.startsWith('Actions​'))).toBeTruthy(); }); test('docs_api_system: h2 "Expectations​"', async ({ page }) => { await page.goto('/docs/api/system/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Expectations​' || t.startsWith('Expectations​'))).toBeTruthy(); }); test('docs_api_system: nav link "Detox"', async ({ page }) => { await page.goto('/docs/api/system/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_api_webviews', () => { test('docs_api_webviews: title matches GT', async ({ page }) => { await page.goto('/docs/api/webviews/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('web views'); }); test('docs_api_webviews: h1 "Web Views"', async ({ page }) => { await page.goto('/docs/api/webviews/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Web Views' || t.startsWith('Web Views'))).toBeTruthy(); }); test('docs_api_webviews: h2 "Locating Elements in Web Views"', async ({ page }) => { await page.goto('/docs/api/webviews/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Locating Elements in Web Views​' || t.startsWith('Locating Elements in Web Views​'))).toBeTruthy(); }); test('docs_api_webviews: h2 "Matchers​"', async ({ page }) => { await page.goto('/docs/api/webviews/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Matchers​' || t.startsWith('Matchers​'))).toBeTruthy(); }); test('docs_api_webviews: h2 "Actions​"', async ({ page }) => { await page.goto('/docs/api/webviews/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Actions​' || t.startsWith('Actions​'))).toBeTruthy(); }); test('docs_api_webviews: nav link "Detox"', async ({ page }) => { await page.goto('/docs/api/webviews/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_articles_how_detox_works', () => { test('docs_articles_how_detox_works: title matches GT', async ({ page }) => { await page.goto('/docs/articles/how-detox-works/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how detox works'); }); test('docs_articles_how_detox_works: h1 "How Detox Works"', async ({ page }) => { await page.goto('/docs/articles/how-detox-works/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How Detox Works' || t.startsWith('How Detox Works'))).toBeTruthy(); }); test('docs_articles_how_detox_works: h2 "Automatic App-State Synchroniz"', async ({ page }) => { await page.goto('/docs/articles/how-detox-works/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Automatic App-State Synchronization​' || t.startsWith('Automatic App-State Synchronization​'))).toBeTruthy(); }); test('docs_articles_how_detox_works: h2 "Architecture​"', async ({ page }) => { await page.goto('/docs/articles/how-detox-works/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Architecture​' || t.startsWith('Architecture​'))).toBeTruthy(); }); test('docs_articles_how_detox_works: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/articles/how-detox-works/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_articles_how_detox_works: nav link "Detox"', async ({ page }) => { await page.goto('/docs/articles/how-detox-works/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_articles_third_party_drivers', () => { test('docs_articles_third_party_drivers: title matches GT', async ({ page }) => { await page.goto('/docs/articles/third-party-drivers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('third'); }); test('docs_articles_third_party_drivers: h1 "Third-Party Drivers"', async ({ page }) => { await page.goto('/docs/articles/third-party-drivers/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Third-Party Drivers' || t.startsWith('Third-Party Drivers'))).toBeTruthy(); }); test('docs_articles_third_party_drivers: h2 "How to Use a Third-party Drive"', async ({ page }) => { await page.goto('/docs/articles/third-party-drivers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Use a Third-party Driver​' || t.startsWith('How to Use a Third-party Driver​'))).toBeTruthy(); }); test('docs_articles_third_party_drivers: h2 "Writing a New Third-party Driv"', async ({ page }) => { await page.goto('/docs/articles/third-party-drivers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Writing a New Third-party Driver​' || t.startsWith('Writing a New Third-party Driver​'))).toBeTruthy(); }); test('docs_articles_third_party_drivers: h2 "Existing Third-party Drivers​"', async ({ page }) => { await page.goto('/docs/articles/third-party-drivers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Existing Third-party Drivers​' || t.startsWith('Existing Third-party Drivers​'))).toBeTruthy(); }); test('docs_articles_third_party_drivers: nav link "Detox"', async ({ page }) => { await page.goto('/docs/articles/third-party-drivers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_cli_build_framework_cache', () => { test('docs_cli_build_framework_cache: title matches GT', async ({ page }) => { await page.goto('/docs/cli/build-framework-cache/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('detox build'); }); test('docs_cli_build_framework_cache: h1 "detox build-framework-cache"', async ({ page }) => { await page.goto('/docs/cli/build-framework-cache/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'detox build-framework-cache' || t.startsWith('detox build-framework-cache'))).toBeTruthy(); }); test('docs_cli_build_framework_cache: h2 "Options​"', async ({ page }) => { await page.goto('/docs/cli/build-framework-cache/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Options​' || t.startsWith('Options​'))).toBeTruthy(); }); test('docs_cli_build_framework_cache: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/cli/build-framework-cache/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_cli_build_framework_cache: h2 "Cookie settings"', async ({ page }) => { await page.goto('/docs/cli/build-framework-cache/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Cookie settings' || t.startsWith('Cookie settings'))).toBeTruthy(); }); test('docs_cli_build_framework_cache: nav link "Detox"', async ({ page }) => { await page.goto('/docs/cli/build-framework-cache/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_cli_clean_framework_cache', () => { test('docs_cli_clean_framework_cache: title matches GT', async ({ page }) => { await page.goto('/docs/cli/clean-framework-cache/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('detox clean'); }); test('docs_cli_clean_framework_cache: h1 "detox clean-framework-cache"', async ({ page }) => { await page.goto('/docs/cli/clean-framework-cache/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'detox clean-framework-cache' || t.startsWith('detox clean-framework-cache'))).toBeTruthy(); }); test('docs_cli_clean_framework_cache: h2 "Options​"', async ({ page }) => { await page.goto('/docs/cli/clean-framework-cache/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Options​' || t.startsWith('Options​'))).toBeTruthy(); }); test('docs_cli_clean_framework_cache: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/cli/clean-framework-cache/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_cli_clean_framework_cache: h2 "Cookie settings"', async ({ page }) => { await page.goto('/docs/cli/clean-framework-cache/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Cookie settings' || t.startsWith('Cookie settings'))).toBeTruthy(); }); test('docs_cli_clean_framework_cache: nav link "Detox"', async ({ page }) => { await page.goto('/docs/cli/clean-framework-cache/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_cli_overview', () => { test('docs_cli_overview: h1 "detox"', async ({ page }) => { await page.goto('/docs/cli/overview/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'detox' || t.startsWith('detox'))).toBeTruthy(); }); test('docs_cli_overview: h2 "Installation​"', async ({ page }) => { await page.goto('/docs/cli/overview/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Installation​' || t.startsWith('Installation​'))).toBeTruthy(); }); test('docs_cli_overview: h2 "Usage​"', async ({ page }) => { await page.goto('/docs/cli/overview/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Usage​' || t.startsWith('Usage​'))).toBeTruthy(); }); test('docs_cli_overview: h2 "Commands​"', async ({ page }) => { await page.goto('/docs/cli/overview/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Commands​' || t.startsWith('Commands​'))).toBeTruthy(); }); test('docs_cli_overview: nav link "Detox"', async ({ page }) => { await page.goto('/docs/cli/overview/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_cli_rebuild_framework_cache', () => { test('docs_cli_rebuild_framework_cache: title matches GT', async ({ page }) => { await page.goto('/docs/cli/rebuild-framework-cache/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('detox rebuild'); }); test('docs_cli_rebuild_framework_cache: h1 "detox rebuild-framework-cache"', async ({ page }) => { await page.goto('/docs/cli/rebuild-framework-cache/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'detox rebuild-framework-cache' || t.startsWith('detox rebuild-framework-cache'))).toBeTruthy(); }); test('docs_cli_rebuild_framework_cache: h2 "Options​"', async ({ page }) => { await page.goto('/docs/cli/rebuild-framework-cache/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Options​' || t.startsWith('Options​'))).toBeTruthy(); }); test('docs_cli_rebuild_framework_cache: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/cli/rebuild-framework-cache/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_cli_rebuild_framework_cache: h2 "Cookie settings"', async ({ page }) => { await page.goto('/docs/cli/rebuild-framework-cache/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Cookie settings' || t.startsWith('Cookie settings'))).toBeTruthy(); }); test('docs_cli_rebuild_framework_cache: nav link "Detox"', async ({ page }) => { await page.goto('/docs/cli/rebuild-framework-cache/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_cli_test', () => { test('docs_cli_test: title matches GT', async ({ page }) => { await page.goto('/docs/cli/test/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('detox test'); }); test('docs_cli_test: h1 "detox test"', async ({ page }) => { await page.goto('/docs/cli/test/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'detox test' || t.startsWith('detox test'))).toBeTruthy(); }); test('docs_cli_test: h2 "Options​"', async ({ page }) => { await page.goto('/docs/cli/test/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Options​' || t.startsWith('Options​'))).toBeTruthy(); }); test('docs_cli_test: h2 "DETOX_ARGV_OVERRIDE​"', async ({ page }) => { await page.goto('/docs/cli/test/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DETOX_ARGV_OVERRIDE​' || t.startsWith('DETOX_ARGV_OVERRIDE​'))).toBeTruthy(); }); test('docs_cli_test: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/cli/test/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_cli_test: nav link "Detox"', async ({ page }) => { await page.goto('/docs/cli/test/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_config_apps', () => { test('docs_config_apps: title matches GT', async ({ page }) => { await page.goto('/docs/config/apps/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('apps'); }); test('docs_config_apps: h1 "Apps"', async ({ page }) => { await page.goto('/docs/config/apps/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Apps' || t.startsWith('Apps'))).toBeTruthy(); }); test('docs_config_apps: h2 "Location​"', async ({ page }) => { await page.goto('/docs/config/apps/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Location​' || t.startsWith('Location​'))).toBeTruthy(); }); test('docs_config_apps: h2 "Examples​"', async ({ page }) => { await page.goto('/docs/config/apps/'); 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_config_apps: h2 "Properties​"', async ({ page }) => { await page.goto('/docs/config/apps/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Properties​' || t.startsWith('Properties​'))).toBeTruthy(); }); test('docs_config_apps: nav link "Detox"', async ({ page }) => { await page.goto('/docs/config/apps/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_config_artifacts', () => { test('docs_config_artifacts: title matches GT', async ({ page }) => { await page.goto('/docs/config/artifacts/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('artifacts'); }); test('docs_config_artifacts: h1 "Artifacts"', async ({ page }) => { await page.goto('/docs/config/artifacts/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Artifacts' || t.startsWith('Artifacts'))).toBeTruthy(); }); test('docs_config_artifacts: h2 "Location​"', async ({ page }) => { await page.goto('/docs/config/artifacts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Location​' || t.startsWith('Location​'))).toBeTruthy(); }); test('docs_config_artifacts: h2 "Example​"', async ({ page }) => { await page.goto('/docs/config/artifacts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Example​' || t.startsWith('Example​'))).toBeTruthy(); }); test('docs_config_artifacts: h2 "Enabling Artifacts​"', async ({ page }) => { await page.goto('/docs/config/artifacts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Enabling Artifacts​' || t.startsWith('Enabling Artifacts​'))).toBeTruthy(); }); test('docs_config_artifacts: nav link "Detox"', async ({ page }) => { await page.goto('/docs/config/artifacts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_config_behavior', () => { test('docs_config_behavior: title matches GT', async ({ page }) => { await page.goto('/docs/config/behavior/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('behavior'); }); test('docs_config_behavior: h1 "Behavior"', async ({ page }) => { await page.goto('/docs/config/behavior/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Behavior' || t.startsWith('Behavior'))).toBeTruthy(); }); test('docs_config_behavior: h2 "Location​"', async ({ page }) => { await page.goto('/docs/config/behavior/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Location​' || t.startsWith('Location​'))).toBeTruthy(); }); test('docs_config_behavior: h2 "Default values​"', async ({ page }) => { await page.goto('/docs/config/behavior/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Default values​' || t.startsWith('Default values​'))).toBeTruthy(); }); test('docs_config_behavior: h2 "Properties​"', async ({ page }) => { await page.goto('/docs/config/behavior/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Properties​' || t.startsWith('Properties​'))).toBeTruthy(); }); test('docs_config_behavior: nav link "Detox"', async ({ page }) => { await page.goto('/docs/config/behavior/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_config_devices', () => { test('docs_config_devices: title matches GT', async ({ page }) => { await page.goto('/docs/config/devices/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('devices'); }); test('docs_config_devices: h1 "Devices"', async ({ page }) => { await page.goto('/docs/config/devices/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Devices' || t.startsWith('Devices'))).toBeTruthy(); }); test('docs_config_devices: h2 "Location​"', async ({ page }) => { await page.goto('/docs/config/devices/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Location​' || t.startsWith('Location​'))).toBeTruthy(); }); test('docs_config_devices: h2 "Examples​"', async ({ page }) => { await page.goto('/docs/config/devices/'); 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_config_devices: h2 "Properties​"', async ({ page }) => { await page.goto('/docs/config/devices/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Properties​' || t.startsWith('Properties​'))).toBeTruthy(); }); test('docs_config_devices: nav link "Detox"', async ({ page }) => { await page.goto('/docs/config/devices/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_config_logger', () => { test('docs_config_logger: title matches GT', async ({ page }) => { await page.goto('/docs/config/logger/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('logger'); }); test('docs_config_logger: h1 "Logger"', async ({ page }) => { await page.goto('/docs/config/logger/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Logger' || t.startsWith('Logger'))).toBeTruthy(); }); test('docs_config_logger: h2 "Location​"', async ({ page }) => { await page.goto('/docs/config/logger/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Location​' || t.startsWith('Location​'))).toBeTruthy(); }); test('docs_config_logger: h2 "Properties​"', async ({ page }) => { await page.goto('/docs/config/logger/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Properties​' || t.startsWith('Properties​'))).toBeTruthy(); }); test('docs_config_logger: h2 "logger.level [enum]​"', async ({ page }) => { await page.goto('/docs/config/logger/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'logger.level [enum]​' || t.startsWith('logger.level [enum]​'))).toBeTruthy(); }); test('docs_config_logger: nav link "Detox"', async ({ page }) => { await page.goto('/docs/config/logger/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_config_overview', () => { test('docs_config_overview: title matches GT', async ({ page }) => { await page.goto('/docs/config/overview/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('overview'); }); test('docs_config_overview: h1 "Overview"', async ({ page }) => { await page.goto('/docs/config/overview/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Overview' || t.startsWith('Overview'))).toBeTruthy(); }); test('docs_config_overview: h2 "Config structure​"', async ({ page }) => { await page.goto('/docs/config/overview/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Config structure​' || t.startsWith('Config structure​'))).toBeTruthy(); }); test('docs_config_overview: h2 "Path conventions​"', async ({ page }) => { await page.goto('/docs/config/overview/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Path conventions​' || t.startsWith('Path conventions​'))).toBeTruthy(); }); test('docs_config_overview: h2 "Extending​"', async ({ page }) => { await page.goto('/docs/config/overview/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Extending​' || t.startsWith('Extending​'))).toBeTruthy(); }); test('docs_config_overview: nav link "Detox"', async ({ page }) => { await page.goto('/docs/config/overview/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_config_session', () => { test('docs_config_session: title matches GT', async ({ page }) => { await page.goto('/docs/config/session/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('session'); }); test('docs_config_session: h1 "Session"', async ({ page }) => { await page.goto('/docs/config/session/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Session' || t.startsWith('Session'))).toBeTruthy(); }); test('docs_config_session: h2 "Location​"', async ({ page }) => { await page.goto('/docs/config/session/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Location​' || t.startsWith('Location​'))).toBeTruthy(); }); test('docs_config_session: h2 "Properties​"', async ({ page }) => { await page.goto('/docs/config/session/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Properties​' || t.startsWith('Properties​'))).toBeTruthy(); }); test('docs_config_session: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/config/session/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_config_session: nav link "Detox"', async ({ page }) => { await page.goto('/docs/config/session/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_config_testRunner', () => { test('docs_config_testRunner: title matches GT', async ({ page }) => { await page.goto('/docs/config/testRunner/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('test runner'); }); test('docs_config_testRunner: h1 "Test runner"', async ({ page }) => { await page.goto('/docs/config/testRunner/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Test runner' || t.startsWith('Test runner'))).toBeTruthy(); }); test('docs_config_testRunner: h2 "Location​"', async ({ page }) => { await page.goto('/docs/config/testRunner/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Location​' || t.startsWith('Location​'))).toBeTruthy(); }); test('docs_config_testRunner: h2 "Properties​"', async ({ page }) => { await page.goto('/docs/config/testRunner/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Properties​' || t.startsWith('Properties​'))).toBeTruthy(); }); test('docs_config_testRunner: h2 "Jest config​"', async ({ page }) => { await page.goto('/docs/config/testRunner/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Jest config​' || t.startsWith('Jest config​'))).toBeTruthy(); }); test('docs_config_testRunner: nav link "Detox"', async ({ page }) => { await page.goto('/docs/config/testRunner/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_contributing_code_of_conduct', () => { test('docs_contributing_code_of_conduct: title matches GT', async ({ page }) => { await page.goto('/docs/contributing/code-of-conduct/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('code of conduct'); }); test('docs_contributing_code_of_conduct: h1 "Code of Conduct"', async ({ page }) => { await page.goto('/docs/contributing/code-of-conduct/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Code of Conduct' || t.startsWith('Code of Conduct'))).toBeTruthy(); }); test('docs_contributing_code_of_conduct: h2 "Our Pledge​"', async ({ page }) => { await page.goto('/docs/contributing/code-of-conduct/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Pledge​' || t.startsWith('Our Pledge​'))).toBeTruthy(); }); test('docs_contributing_code_of_conduct: h2 "Our Standards​"', async ({ page }) => { await page.goto('/docs/contributing/code-of-conduct/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Standards​' || t.startsWith('Our Standards​'))).toBeTruthy(); }); test('docs_contributing_code_of_conduct: h2 "Enforcement Responsibilities​"', async ({ page }) => { await page.goto('/docs/contributing/code-of-conduct/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Enforcement Responsibilities​' || t.startsWith('Enforcement Responsibilities​'))).toBeTruthy(); }); test('docs_contributing_code_of_conduct: nav link "Detox"', async ({ page }) => { await page.goto('/docs/contributing/code-of-conduct/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_contributing_documentation', () => { test('docs_contributing_documentation: title matches GT', async ({ page }) => { await page.goto('/docs/contributing/documentation/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('documentation site'); }); test('docs_contributing_documentation: h1 "Documentation Site"', async ({ page }) => { await page.goto('/docs/contributing/documentation/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation Site' || t.startsWith('Documentation Site'))).toBeTruthy(); }); test('docs_contributing_documentation: h2 "Getting Started​"', async ({ page }) => { await page.goto('/docs/contributing/documentation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Getting Started​' || t.startsWith('Getting Started​'))).toBeTruthy(); }); test('docs_contributing_documentation: h2 "Making Updates​"', async ({ page }) => { await page.goto('/docs/contributing/documentation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Making Updates​' || t.startsWith('Making Updates​'))).toBeTruthy(); }); test('docs_contributing_documentation: h2 "Deploying Changes​"', async ({ page }) => { await page.goto('/docs/contributing/documentation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Deploying Changes​' || t.startsWith('Deploying Changes​'))).toBeTruthy(); }); test('docs_contributing_documentation: nav link "Detox"', async ({ page }) => { await page.goto('/docs/contributing/documentation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_contributing_feature_requests', () => { test('docs_contributing_feature_requests: title matches GT', async ({ page }) => { await page.goto('/docs/contributing/feature-requests/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('feedback and suggestions'); }); test('docs_contributing_feature_requests: h1 "Feedback and Suggestions"', async ({ page }) => { await page.goto('/docs/contributing/feature-requests/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Feedback and Suggestions' || t.startsWith('Feedback and Suggestions'))).toBeTruthy(); }); test('docs_contributing_feature_requests: h2 "Giving Feedback​"', async ({ page }) => { await page.goto('/docs/contributing/feature-requests/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Giving Feedback​' || t.startsWith('Giving Feedback​'))).toBeTruthy(); }); test('docs_contributing_feature_requests: h2 "Suggesting Features​"', async ({ page }) => { await page.goto('/docs/contributing/feature-requests/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Suggesting Features​' || t.startsWith('Suggesting Features​'))).toBeTruthy(); }); test('docs_contributing_feature_requests: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/contributing/feature-requests/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_contributing_feature_requests: nav link "Detox"', async ({ page }) => { await page.goto('/docs/contributing/feature-requests/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_contributing_reporting_bugs', () => { test('docs_contributing_reporting_bugs: title matches GT', async ({ page }) => { await page.goto('/docs/contributing/reporting-bugs/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('reporting bugs'); }); test('docs_contributing_reporting_bugs: h1 "Reporting Bugs"', async ({ page }) => { await page.goto('/docs/contributing/reporting-bugs/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reporting Bugs' || t.startsWith('Reporting Bugs'))).toBeTruthy(); }); test('docs_contributing_reporting_bugs: h2 "Search for Existing Issues​"', async ({ page }) => { await page.goto('/docs/contributing/reporting-bugs/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Search for Existing Issues​' || t.startsWith('Search for Existing Issues​'))).toBeTruthy(); }); test('docs_contributing_reporting_bugs: h2 "Create a Bug Report​"', async ({ page }) => { await page.goto('/docs/contributing/reporting-bugs/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Create a Bug Report​' || t.startsWith('Create a Bug Report​'))).toBeTruthy(); }); test('docs_contributing_reporting_bugs: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/contributing/reporting-bugs/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_contributing_reporting_bugs: nav link "Detox"', async ({ page }) => { await page.goto('/docs/contributing/reporting-bugs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_guide_android_dev_env', () => { test('docs_guide_android_dev_env: title matches GT', async ({ page }) => { await page.goto('/docs/guide/android-dev-env/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('setting up an android development & test'); }); test('docs_guide_android_dev_env: h1 "Setting Up an Android Developm"', async ({ page }) => { await page.goto('/docs/guide/android-dev-env/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Setting Up an Android Development & Testing Environment' || t.startsWith('Setting Up an Android Development & Testing Environment'))).toBeTruthy(); }); test('docs_guide_android_dev_env: h2 "Java Setup​"', async ({ page }) => { await page.goto('/docs/guide/android-dev-env/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Java Setup​' || t.startsWith('Java Setup​'))).toBeTruthy(); }); test('docs_guide_android_dev_env: h2 "Android SDK​"', async ({ page }) => { await page.goto('/docs/guide/android-dev-env/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Android SDK​' || t.startsWith('Android SDK​'))).toBeTruthy(); }); test('docs_guide_android_dev_env: h2 "Android (AOSP) Emulators​"', async ({ page }) => { await page.goto('/docs/guide/android-dev-env/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Android (AOSP) Emulators​' || t.startsWith('Android (AOSP) Emulators​'))).toBeTruthy(); }); test('docs_guide_android_dev_env: nav link "Detox"', async ({ page }) => { await page.goto('/docs/guide/android-dev-env/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_guide_cucumber_js_integration', () => { test('docs_guide_cucumber_js_integration: title matches GT', async ({ page }) => { await page.goto('/docs/guide/cucumber-js-integration/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('cucumber.js integration'); }); test('docs_guide_cucumber_js_integration: h1 "Cucumber.js Integration"', async ({ page }) => { await page.goto('/docs/guide/cucumber-js-integration/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Cucumber.js Integration' || t.startsWith('Cucumber.js Integration'))).toBeTruthy(); }); test('docs_guide_cucumber_js_integration: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/guide/cucumber-js-integration/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_guide_cucumber_js_integration: h2 "Cookie settings"', async ({ page }) => { await page.goto('/docs/guide/cucumber-js-integration/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Cookie settings' || t.startsWith('Cookie settings'))).toBeTruthy(); }); test('docs_guide_cucumber_js_integration: nav link "Detox"', async ({ page }) => { await page.goto('/docs/guide/cucumber-js-integration/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_guide_detox_repl', () => { test('docs_guide_detox_repl: title matches GT', async ({ page }) => { await page.goto('/docs/guide/detox-repl/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('debugging with detox repl'); }); test('docs_guide_detox_repl: h1 "Debugging with Detox REPL"', async ({ page }) => { await page.goto('/docs/guide/detox-repl/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Debugging with Detox REPL' || t.startsWith('Debugging with Detox REPL'))).toBeTruthy(); }); test('docs_guide_detox_repl: h2 "How to activate REPL​"', async ({ page }) => { await page.goto('/docs/guide/detox-repl/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to activate REPL​' || t.startsWith('How to activate REPL​'))).toBeTruthy(); }); test('docs_guide_detox_repl: h2 "Adding Custom Scope​"', async ({ page }) => { await page.goto('/docs/guide/detox-repl/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Adding Custom Scope​' || t.startsWith('Adding Custom Scope​'))).toBeTruthy(); }); test('docs_guide_detox_repl: h2 "Using REPL​"', async ({ page }) => { await page.goto('/docs/guide/detox-repl/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Using REPL​' || t.startsWith('Using REPL​'))).toBeTruthy(); }); test('docs_guide_detox_repl: nav link "Detox"', async ({ page }) => { await page.goto('/docs/guide/detox-repl/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_guide_developing_while_writing_tests', () => { test('docs_guide_developing_while_writing_tests: title matches GT', async ({ page }) => { await page.goto('/docs/guide/developing-while-writing-tests/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('developing your app while writing tests'); }); test('docs_guide_developing_while_writing_tests: h1 "Developing Your App While Writ"', async ({ page }) => { await page.goto('/docs/guide/developing-while-writing-tests/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developing Your App While Writing Tests' || t.startsWith('Developing Your App While Writing Tests'))).toBeTruthy(); }); test('docs_guide_developing_while_writing_tests: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/guide/developing-while-writing-tests/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_guide_developing_while_writing_tests: h2 "Cookie settings"', async ({ page }) => { await page.goto('/docs/guide/developing-while-writing-tests/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Cookie settings' || t.startsWith('Cookie settings'))).toBeTruthy(); }); test('docs_guide_developing_while_writing_tests: h3 "Step 1: Build Your App in Debu"', async ({ page }) => { await page.goto('/docs/guide/developing-while-writing-tests/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Step 1: Build Your App in Debug​' || t.startsWith('Step 1: Build Your App in Debug​'))).toBeTruthy(); }); test('docs_guide_developing_while_writing_tests: nav link "Detox"', async ({ page }) => { await page.goto('/docs/guide/developing-while-writing-tests/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_guide_genymotion_saas', () => { test('docs_guide_genymotion_saas: title matches GT', async ({ page }) => { await page.goto('/docs/guide/genymotion-saas/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('using genymotion saas'); }); test('docs_guide_genymotion_saas: h1 "Using Genymotion SaaS"', async ({ page }) => { await page.goto('/docs/guide/genymotion-saas/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Using Genymotion SaaS' || t.startsWith('Using Genymotion SaaS'))).toBeTruthy(); }); test('docs_guide_genymotion_saas: h2 "Prerequisites​"', async ({ page }) => { await page.goto('/docs/guide/genymotion-saas/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Prerequisites​' || t.startsWith('Prerequisites​'))).toBeTruthy(); }); test('docs_guide_genymotion_saas: h2 "Configuring​"', async ({ page }) => { await page.goto('/docs/guide/genymotion-saas/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Configuring​' || t.startsWith('Configuring​'))).toBeTruthy(); }); test('docs_guide_genymotion_saas: h2 "Running​"', async ({ page }) => { await page.goto('/docs/guide/genymotion-saas/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Running​' || t.startsWith('Running​'))).toBeTruthy(); }); test('docs_guide_genymotion_saas: nav link "Detox"', async ({ page }) => { await page.goto('/docs/guide/genymotion-saas/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_guide_launch_args', () => { test('docs_guide_launch_args: title matches GT', async ({ page }) => { await page.goto('/docs/guide/launch-args/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('using launch arguments'); }); test('docs_guide_launch_args: h1 "Using Launch Arguments"', async ({ page }) => { await page.goto('/docs/guide/launch-args/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Using Launch Arguments' || t.startsWith('Using Launch Arguments'))).toBeTruthy(); }); test('docs_guide_launch_args: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/guide/launch-args/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_guide_launch_args: h2 "Cookie settings"', async ({ page }) => { await page.goto('/docs/guide/launch-args/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Cookie settings' || t.startsWith('Cookie settings'))).toBeTruthy(); }); test('docs_guide_launch_args: h3 "Motivation​"', async ({ page }) => { await page.goto('/docs/guide/launch-args/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Motivation​' || t.startsWith('Motivation​'))).toBeTruthy(); }); test('docs_guide_launch_args: nav link "Detox"', async ({ page }) => { await page.goto('/docs/guide/launch-args/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_guide_migration', () => { test('docs_guide_migration: title matches GT', async ({ page }) => { await page.goto('/docs/guide/migration/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('migration guide'); }); test('docs_guide_migration: h1 "Migration Guide"', async ({ page }) => { await page.goto('/docs/guide/migration/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Migration Guide' || t.startsWith('Migration Guide'))).toBeTruthy(); }); test('docs_guide_migration: h2 "20.0​"', async ({ page }) => { await page.goto('/docs/guide/migration/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '20.0​' || t.startsWith('20.0​'))).toBeTruthy(); }); test('docs_guide_migration: h2 "19.2​"', async ({ page }) => { await page.goto('/docs/guide/migration/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '19.2​' || t.startsWith('19.2​'))).toBeTruthy(); }); test('docs_guide_migration: h2 "19.0​"', async ({ page }) => { await page.goto('/docs/guide/migration/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '19.0​' || t.startsWith('19.0​'))).toBeTruthy(); }); test('docs_guide_migration: nav link "Detox"', async ({ page }) => { await page.goto('/docs/guide/migration/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_guide_mocking', () => { test('docs_guide_mocking: title matches GT', async ({ page }) => { await page.goto('/docs/guide/mocking/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('mocking'); }); test('docs_guide_mocking: h1 "Mocking"', async ({ page }) => { await page.goto('/docs/guide/mocking/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Mocking' || t.startsWith('Mocking'))).toBeTruthy(); }); test('docs_guide_mocking: h2 "Quick flow​"', async ({ page }) => { await page.goto('/docs/guide/mocking/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Quick flow​' || t.startsWith('Quick flow​'))).toBeTruthy(); }); test('docs_guide_mocking: h2 "Configuring Metro bundler​"', async ({ page }) => { await page.goto('/docs/guide/mocking/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Configuring Metro bundler​' || t.startsWith('Configuring Metro bundler​'))).toBeTruthy(); }); test('docs_guide_mocking: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/guide/mocking/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_guide_mocking: nav link "Detox"', async ({ page }) => { await page.goto('/docs/guide/mocking/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_guide_mocking_open_with_url', () => { test('docs_guide_mocking_open_with_url: title matches GT', async ({ page }) => { await page.goto('/docs/guide/mocking-open-with-url/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('mocking open with url (deep links)'); }); test('docs_guide_mocking_open_with_url: h1 "Mocking Open With URL (Deep Li"', async ({ page }) => { await page.goto('/docs/guide/mocking-open-with-url/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Mocking Open With URL (Deep Links)' || t.startsWith('Mocking Open With URL (Deep Links)'))).toBeTruthy(); }); test('docs_guide_mocking_open_with_url: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/guide/mocking-open-with-url/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_guide_mocking_open_with_url: h2 "Cookie settings"', async ({ page }) => { await page.goto('/docs/guide/mocking-open-with-url/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Cookie settings' || t.startsWith('Cookie settings'))).toBeTruthy(); }); test('docs_guide_mocking_open_with_url: h3 "Mocking App Launch With a URL​"', async ({ page }) => { await page.goto('/docs/guide/mocking-open-with-url/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Mocking App Launch With a URL​' || t.startsWith('Mocking App Launch With a URL​'))).toBeTruthy(); }); test('docs_guide_mocking_open_with_url: nav link "Detox"', async ({ page }) => { await page.goto('/docs/guide/mocking-open-with-url/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_guide_mocking_user_activity', () => { test('docs_guide_mocking_user_activity: title matches GT', async ({ page }) => { await page.goto('/docs/guide/mocking-user-activity/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('mocking user activity'); }); test('docs_guide_mocking_user_activity: h1 "Mocking User Activity"', async ({ page }) => { await page.goto('/docs/guide/mocking-user-activity/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Mocking User Activity' || t.startsWith('Mocking User Activity'))).toBeTruthy(); }); test('docs_guide_mocking_user_activity: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/guide/mocking-user-activity/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_guide_mocking_user_activity: h2 "Cookie settings"', async ({ page }) => { await page.goto('/docs/guide/mocking-user-activity/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Cookie settings' || t.startsWith('Cookie settings'))).toBeTruthy(); }); test('docs_guide_mocking_user_activity: h3 "Mocking App Launch with a User"', async ({ page }) => { await page.goto('/docs/guide/mocking-user-activity/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Mocking App Launch with a User Activity​' || t.startsWith('Mocking App Launch with a User Activity​'))).toBeTruthy(); }); test('docs_guide_mocking_user_activity: nav link "Detox"', async ({ page }) => { await page.goto('/docs/guide/mocking-user-activity/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_guide_mocking_user_notifications', () => { test('docs_guide_mocking_user_notifications: title matches GT', async ({ page }) => { await page.goto('/docs/guide/mocking-user-notifications/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('mocking user notifications'); }); test('docs_guide_mocking_user_notifications: h1 "Mocking User Notifications"', async ({ page }) => { await page.goto('/docs/guide/mocking-user-notifications/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Mocking User Notifications' || t.startsWith('Mocking User Notifications'))).toBeTruthy(); }); test('docs_guide_mocking_user_notifications: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/guide/mocking-user-notifications/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_guide_mocking_user_notifications: h2 "Cookie settings"', async ({ page }) => { await page.goto('/docs/guide/mocking-user-notifications/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Cookie settings' || t.startsWith('Cookie settings'))).toBeTruthy(); }); test('docs_guide_mocking_user_notifications: h3 "Mocking App Launch With a Noti"', async ({ page }) => { await page.goto('/docs/guide/mocking-user-notifications/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Mocking App Launch With a Notification​' || t.startsWith('Mocking App Launch With a Notification​'))).toBeTruthy(); }); test('docs_guide_mocking_user_notifications: nav link "Detox"', async ({ page }) => { await page.goto('/docs/guide/mocking-user-notifications/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_guide_parallel_test_execution', () => { test('docs_guide_parallel_test_execution: title matches GT', async ({ page }) => { await page.goto('/docs/guide/parallel-test-execution/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('parallel test execution'); }); test('docs_guide_parallel_test_execution: h1 "Parallel Test Execution"', async ({ page }) => { await page.goto('/docs/guide/parallel-test-execution/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Parallel Test Execution' || t.startsWith('Parallel Test Execution'))).toBeTruthy(); }); test('docs_guide_parallel_test_execution: h2 "Device Creation​"', async ({ page }) => { await page.goto('/docs/guide/parallel-test-execution/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Device Creation​' || t.startsWith('Device Creation​'))).toBeTruthy(); }); test('docs_guide_parallel_test_execution: h2 "Lock File​"', async ({ page }) => { await page.goto('/docs/guide/parallel-test-execution/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Lock File​' || t.startsWith('Lock File​'))).toBeTruthy(); }); test('docs_guide_parallel_test_execution: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/guide/parallel-test-execution/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_guide_parallel_test_execution: nav link "Detox"', async ({ page }) => { await page.goto('/docs/guide/parallel-test-execution/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_guide_proguard_configuration', () => { test('docs_guide_proguard_configuration: title matches GT', async ({ page }) => { await page.goto('/docs/guide/proguard-configuration/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('proguard configuration'); }); test('docs_guide_proguard_configuration: h1 "ProGuard configuration"', async ({ page }) => { await page.goto('/docs/guide/proguard-configuration/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ProGuard configuration' || t.startsWith('ProGuard configuration'))).toBeTruthy(); }); test('docs_guide_proguard_configuration: h2 "Obfuscation​"', async ({ page }) => { await page.goto('/docs/guide/proguard-configuration/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Obfuscation​' || t.startsWith('Obfuscation​'))).toBeTruthy(); }); test('docs_guide_proguard_configuration: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/guide/proguard-configuration/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_guide_proguard_configuration: h2 "Cookie settings"', async ({ page }) => { await page.goto('/docs/guide/proguard-configuration/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Cookie settings' || t.startsWith('Cookie settings'))).toBeTruthy(); }); test('docs_guide_proguard_configuration: nav link "Detox"', async ({ page }) => { await page.goto('/docs/guide/proguard-configuration/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_guide_taking_screenshots', () => { test('docs_guide_taking_screenshots: title matches GT', async ({ page }) => { await page.goto('/docs/guide/taking-screenshots/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('taking screenshots'); }); test('docs_guide_taking_screenshots: h1 "Taking Screenshots"', async ({ page }) => { await page.goto('/docs/guide/taking-screenshots/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Taking Screenshots' || t.startsWith('Taking Screenshots'))).toBeTruthy(); }); test('docs_guide_taking_screenshots: h2 "Device-level Screenshots​"', async ({ page }) => { await page.goto('/docs/guide/taking-screenshots/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Device-level Screenshots​' || t.startsWith('Device-level Screenshots​'))).toBeTruthy(); }); test('docs_guide_taking_screenshots: h2 "Element-level Screenshots​"', async ({ page }) => { await page.goto('/docs/guide/taking-screenshots/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Element-level Screenshots​' || t.startsWith('Element-level Screenshots​'))).toBeTruthy(); }); test('docs_guide_taking_screenshots: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/guide/taking-screenshots/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_guide_taking_screenshots: nav link "Detox"', async ({ page }) => { await page.goto('/docs/guide/taking-screenshots/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_guide_test_id', () => { test('docs_guide_test_id: title matches GT', async ({ page }) => { await page.goto('/docs/guide/test-id/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('adding test id\'s to your components'); }); test('docs_guide_test_id: h1 "Adding test ID\'s to your compo"', async ({ page }) => { await page.goto('/docs/guide/test-id/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Adding test ID\'s to your components' || t.startsWith('Adding test ID\'s to your components'))).toBeTruthy(); }); test('docs_guide_test_id: h2 "Pass testID to your native com"', async ({ page }) => { await page.goto('/docs/guide/test-id/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pass testID to your native components​' || t.startsWith('Pass testID to your native components​'))).toBeTruthy(); }); test('docs_guide_test_id: h2 "Finding your test ID​"', async ({ page }) => { await page.goto('/docs/guide/test-id/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Finding your test ID​' || t.startsWith('Finding your test ID​'))).toBeTruthy(); }); test('docs_guide_test_id: h2 "Test ID naming - Best practice"', async ({ page }) => { await page.goto('/docs/guide/test-id/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Test ID naming - Best practices​' || t.startsWith('Test ID naming - Best practices​'))).toBeTruthy(); }); test('docs_guide_test_id: nav link "Detox"', async ({ page }) => { await page.goto('/docs/guide/test-id/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_guide_testing_webviews', () => { test('docs_guide_testing_webviews: title matches GT', async ({ page }) => { await page.goto('/docs/guide/testing-webviews/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('testing webviews'); }); test('docs_guide_testing_webviews: h1 "Testing WebViews"', async ({ page }) => { await page.goto('/docs/guide/testing-webviews/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Testing WebViews' || t.startsWith('Testing WebViews'))).toBeTruthy(); }); test('docs_guide_testing_webviews: h2 "Step 0: Setting Up Detox​"', async ({ page }) => { await page.goto('/docs/guide/testing-webviews/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Step 0: Setting Up Detox​' || t.startsWith('Step 0: Setting Up Detox​'))).toBeTruthy(); }); test('docs_guide_testing_webviews: h2 "Step 1: Locating the WebView​"', async ({ page }) => { await page.goto('/docs/guide/testing-webviews/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Step 1: Locating the WebView​' || t.startsWith('Step 1: Locating the WebView​'))).toBeTruthy(); }); test('docs_guide_testing_webviews: h2 "Step 2: Finding Inner Elements"', async ({ page }) => { await page.goto('/docs/guide/testing-webviews/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Step 2: Finding Inner Elements​' || t.startsWith('Step 2: Finding Inner Elements​'))).toBeTruthy(); }); test('docs_guide_testing_webviews: nav link "Detox"', async ({ page }) => { await page.goto('/docs/guide/testing-webviews/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_guide_typescript', () => { test('docs_guide_typescript: title matches GT', async ({ page }) => { await page.goto('/docs/guide/typescript/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('using typescript'); }); test('docs_guide_typescript: h1 "Using TypeScript"', async ({ page }) => { await page.goto('/docs/guide/typescript/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Using TypeScript' || t.startsWith('Using TypeScript'))).toBeTruthy(); }); test('docs_guide_typescript: h2 "Prerequisites​"', async ({ page }) => { await page.goto('/docs/guide/typescript/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Prerequisites​' || t.startsWith('Prerequisites​'))).toBeTruthy(); }); test('docs_guide_typescript: h2 "Setting up Jest with TypeScrip"', async ({ page }) => { await page.goto('/docs/guide/typescript/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Setting up Jest with TypeScript​' || t.startsWith('Setting up Jest with TypeScript​'))).toBeTruthy(); }); test('docs_guide_typescript: h2 "Writing Detox Tests in TypeScr"', async ({ page }) => { await page.goto('/docs/guide/typescript/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Writing Detox Tests in TypeScript​' || t.startsWith('Writing Detox Tests in TypeScript​'))).toBeTruthy(); }); test('docs_guide_typescript: nav link "Detox"', async ({ page }) => { await page.goto('/docs/guide/typescript/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_guide_uninstalling', () => { test('docs_guide_uninstalling: title matches GT', async ({ page }) => { await page.goto('/docs/guide/uninstalling/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('uninstalling detox'); }); test('docs_guide_uninstalling: h1 "Uninstalling Detox"', async ({ page }) => { await page.goto('/docs/guide/uninstalling/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Uninstalling Detox' || t.startsWith('Uninstalling Detox'))).toBeTruthy(); }); test('docs_guide_uninstalling: h2 "Detox Framework Cache​"', async ({ page }) => { await page.goto('/docs/guide/uninstalling/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox Framework Cache​' || t.startsWith('Detox Framework Cache​'))).toBeTruthy(); }); test('docs_guide_uninstalling: h2 "Test Session State​"', async ({ page }) => { await page.goto('/docs/guide/uninstalling/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Test Session State​' || t.startsWith('Test Session State​'))).toBeTruthy(); }); test('docs_guide_uninstalling: h2 "Cloned Simulators (macOS)​"', async ({ page }) => { await page.goto('/docs/guide/uninstalling/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Cloned Simulators (macOS)​' || t.startsWith('Cloned Simulators (macOS)​'))).toBeTruthy(); }); test('docs_guide_uninstalling: nav link "Detox"', async ({ page }) => { await page.goto('/docs/guide/uninstalling/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_introduction_debugging', () => { test('docs_introduction_debugging: title matches GT', async ({ page }) => { await page.goto('/docs/introduction/debugging/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how to debug'); }); test('docs_introduction_debugging: h1 "How to Debug"', async ({ page }) => { await page.goto('/docs/introduction/debugging/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Debug' || t.startsWith('How to Debug'))).toBeTruthy(); }); test('docs_introduction_debugging: h2 "Running Detox Tests Step-by-St"', async ({ page }) => { await page.goto('/docs/introduction/debugging/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Running Detox Tests Step-by-Step​' || t.startsWith('Running Detox Tests Step-by-Step​'))).toBeTruthy(); }); test('docs_introduction_debugging: h2 "Debugging JavaScript applicati"', async ({ page }) => { await page.goto('/docs/introduction/debugging/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Debugging JavaScript application code​' || t.startsWith('Debugging JavaScript application code​'))).toBeTruthy(); }); test('docs_introduction_debugging: h2 "Debugging Native application c"', async ({ page }) => { await page.goto('/docs/introduction/debugging/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Debugging Native application code​' || t.startsWith('Debugging Native application code​'))).toBeTruthy(); }); test('docs_introduction_debugging: nav link "Detox"', async ({ page }) => { await page.goto('/docs/introduction/debugging/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_introduction_environment_setup', () => { test('docs_introduction_environment_setup: title matches GT', async ({ page }) => { await page.goto('/docs/introduction/environment-setup/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('environment setup'); }); test('docs_introduction_environment_setup: h1 "Environment Setup"', async ({ page }) => { await page.goto('/docs/introduction/environment-setup/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Environment Setup' || t.startsWith('Environment Setup'))).toBeTruthy(); }); test('docs_introduction_environment_setup: h2 "React Native CLI Quickstart​"', async ({ page }) => { await page.goto('/docs/introduction/environment-setup/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'React Native CLI Quickstart​' || t.startsWith('React Native CLI Quickstart​'))).toBeTruthy(); }); test('docs_introduction_environment_setup: h2 "Detox Prerequisites​"', async ({ page }) => { await page.goto('/docs/introduction/environment-setup/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox Prerequisites​' || t.startsWith('Detox Prerequisites​'))).toBeTruthy(); }); test('docs_introduction_environment_setup: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/introduction/environment-setup/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_introduction_environment_setup: nav link "Detox"', async ({ page }) => { await page.goto('/docs/introduction/environment-setup/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_introduction_getting_started', () => { test('docs_introduction_getting_started: title matches GT', async ({ page }) => { await page.goto('/docs/introduction/getting-started/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('getting started'); }); test('docs_introduction_getting_started: h1 "Getting Started"', async ({ page }) => { await page.goto('/docs/introduction/getting-started/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Getting Started' || t.startsWith('Getting Started'))).toBeTruthy(); }); test('docs_introduction_getting_started: h2 "Before You Start​"', async ({ page }) => { await page.goto('/docs/introduction/getting-started/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Before You Start​' || t.startsWith('Before You Start​'))).toBeTruthy(); }); test('docs_introduction_getting_started: h2 "Start with Detox​"', async ({ page }) => { await page.goto('/docs/introduction/getting-started/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Start with Detox​' || t.startsWith('Start with Detox​'))).toBeTruthy(); }); test('docs_introduction_getting_started: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/introduction/getting-started/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_introduction_getting_started: nav link "Detox"', async ({ page }) => { await page.goto('/docs/introduction/getting-started/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_config_artifacts', () => { test('docs_next_config_artifacts: title matches GT', async ({ page }) => { await page.goto('/docs/next/config/artifacts/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('artifacts'); }); test('docs_next_config_artifacts: h1 "Artifacts"', async ({ page }) => { await page.goto('/docs/next/config/artifacts/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Artifacts' || t.startsWith('Artifacts'))).toBeTruthy(); }); test('docs_next_config_artifacts: h2 "Location​"', async ({ page }) => { await page.goto('/docs/next/config/artifacts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Location​' || t.startsWith('Location​'))).toBeTruthy(); }); test('docs_next_config_artifacts: h2 "Example​"', async ({ page }) => { await page.goto('/docs/next/config/artifacts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Example​' || t.startsWith('Example​'))).toBeTruthy(); }); test('docs_next_config_artifacts: h2 "Enabling Artifacts​"', async ({ page }) => { await page.goto('/docs/next/config/artifacts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Enabling Artifacts​' || t.startsWith('Enabling Artifacts​'))).toBeTruthy(); }); test('docs_next_config_artifacts: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/config/artifacts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_config_behavior', () => { test('docs_next_config_behavior: title matches GT', async ({ page }) => { await page.goto('/docs/next/config/behavior/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('behavior'); }); test('docs_next_config_behavior: h1 "Behavior"', async ({ page }) => { await page.goto('/docs/next/config/behavior/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Behavior' || t.startsWith('Behavior'))).toBeTruthy(); }); test('docs_next_config_behavior: h2 "Location​"', async ({ page }) => { await page.goto('/docs/next/config/behavior/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Location​' || t.startsWith('Location​'))).toBeTruthy(); }); test('docs_next_config_behavior: h2 "Default values​"', async ({ page }) => { await page.goto('/docs/next/config/behavior/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Default values​' || t.startsWith('Default values​'))).toBeTruthy(); }); test('docs_next_config_behavior: h2 "Properties​"', async ({ page }) => { await page.goto('/docs/next/config/behavior/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Properties​' || t.startsWith('Properties​'))).toBeTruthy(); }); test('docs_next_config_behavior: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/config/behavior/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_config_devices', () => { test('docs_next_config_devices: title matches GT', async ({ page }) => { await page.goto('/docs/next/config/devices/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('devices'); }); test('docs_next_config_devices: h1 "Devices"', async ({ page }) => { await page.goto('/docs/next/config/devices/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Devices' || t.startsWith('Devices'))).toBeTruthy(); }); test('docs_next_config_devices: h2 "Location​"', async ({ page }) => { await page.goto('/docs/next/config/devices/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Location​' || t.startsWith('Location​'))).toBeTruthy(); }); test('docs_next_config_devices: h2 "Examples​"', async ({ page }) => { await page.goto('/docs/next/config/devices/'); 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_next_config_devices: h2 "Properties​"', async ({ page }) => { await page.goto('/docs/next/config/devices/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Properties​' || t.startsWith('Properties​'))).toBeTruthy(); }); test('docs_next_config_devices: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/config/devices/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_config_logger', () => { test('docs_next_config_logger: title matches GT', async ({ page }) => { await page.goto('/docs/next/config/logger/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('logger'); }); test('docs_next_config_logger: h1 "Logger"', async ({ page }) => { await page.goto('/docs/next/config/logger/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Logger' || t.startsWith('Logger'))).toBeTruthy(); }); test('docs_next_config_logger: h2 "Location​"', async ({ page }) => { await page.goto('/docs/next/config/logger/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Location​' || t.startsWith('Location​'))).toBeTruthy(); }); test('docs_next_config_logger: h2 "Properties​"', async ({ page }) => { await page.goto('/docs/next/config/logger/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Properties​' || t.startsWith('Properties​'))).toBeTruthy(); }); test('docs_next_config_logger: h2 "logger.level [enum]​"', async ({ page }) => { await page.goto('/docs/next/config/logger/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'logger.level [enum]​' || t.startsWith('logger.level [enum]​'))).toBeTruthy(); }); test('docs_next_config_logger: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/config/logger/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_config_session', () => { test('docs_next_config_session: title matches GT', async ({ page }) => { await page.goto('/docs/next/config/session/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('session'); }); test('docs_next_config_session: h1 "Session"', async ({ page }) => { await page.goto('/docs/next/config/session/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Session' || t.startsWith('Session'))).toBeTruthy(); }); test('docs_next_config_session: h2 "Location​"', async ({ page }) => { await page.goto('/docs/next/config/session/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Location​' || t.startsWith('Location​'))).toBeTruthy(); }); test('docs_next_config_session: h2 "Properties​"', async ({ page }) => { await page.goto('/docs/next/config/session/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Properties​' || t.startsWith('Properties​'))).toBeTruthy(); }); test('docs_next_config_session: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/next/config/session/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_next_config_session: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/config/session/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_config_testRunner', () => { test('docs_next_config_testRunner: title matches GT', async ({ page }) => { await page.goto('/docs/next/config/testRunner/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('test runner'); }); test('docs_next_config_testRunner: h1 "Test runner"', async ({ page }) => { await page.goto('/docs/next/config/testRunner/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Test runner' || t.startsWith('Test runner'))).toBeTruthy(); }); test('docs_next_config_testRunner: h2 "Location​"', async ({ page }) => { await page.goto('/docs/next/config/testRunner/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Location​' || t.startsWith('Location​'))).toBeTruthy(); }); test('docs_next_config_testRunner: h2 "Properties​"', async ({ page }) => { await page.goto('/docs/next/config/testRunner/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Properties​' || t.startsWith('Properties​'))).toBeTruthy(); }); test('docs_next_config_testRunner: h2 "Jest config​"', async ({ page }) => { await page.goto('/docs/next/config/testRunner/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Jest config​' || t.startsWith('Jest config​'))).toBeTruthy(); }); test('docs_next_config_testRunner: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/config/testRunner/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_contributing_code_of_conduct', () => { test('docs_next_contributing_code_of_conduct: title matches GT', async ({ page }) => { await page.goto('/docs/next/contributing/code-of-conduct/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('code of conduct'); }); test('docs_next_contributing_code_of_conduct: h1 "Code of Conduct"', async ({ page }) => { await page.goto('/docs/next/contributing/code-of-conduct/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Code of Conduct' || t.startsWith('Code of Conduct'))).toBeTruthy(); }); test('docs_next_contributing_code_of_conduct: h2 "Our Pledge​"', async ({ page }) => { await page.goto('/docs/next/contributing/code-of-conduct/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Pledge​' || t.startsWith('Our Pledge​'))).toBeTruthy(); }); test('docs_next_contributing_code_of_conduct: h2 "Our Standards​"', async ({ page }) => { await page.goto('/docs/next/contributing/code-of-conduct/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Standards​' || t.startsWith('Our Standards​'))).toBeTruthy(); }); test('docs_next_contributing_code_of_conduct: h2 "Enforcement Responsibilities​"', async ({ page }) => { await page.goto('/docs/next/contributing/code-of-conduct/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Enforcement Responsibilities​' || t.startsWith('Enforcement Responsibilities​'))).toBeTruthy(); }); test('docs_next_contributing_code_of_conduct: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/contributing/code-of-conduct/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_contributing_code_overview', () => { test('docs_next_contributing_code_overview: title matches GT', async ({ page }) => { await page.goto('/docs/next/contributing/code/overview/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('code changes overview'); }); test('docs_next_contributing_code_overview: h1 "Code Changes Overview"', async ({ page }) => { await page.goto('/docs/next/contributing/code/overview/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Code Changes Overview' || t.startsWith('Code Changes Overview'))).toBeTruthy(); }); test('docs_next_contributing_code_overview: h2 "Repository Structure​"', async ({ page }) => { await page.goto('/docs/next/contributing/code/overview/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Repository Structure​' || t.startsWith('Repository Structure​'))).toBeTruthy(); }); test('docs_next_contributing_code_overview: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/next/contributing/code/overview/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_next_contributing_code_overview: h2 "Cookie settings"', async ({ page }) => { await page.goto('/docs/next/contributing/code/overview/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Cookie settings' || t.startsWith('Cookie settings'))).toBeTruthy(); }); test('docs_next_contributing_code_overview: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/contributing/code/overview/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_contributing_code_reviewing_pull_requests', () => { test('docs_next_contributing_code_reviewing_pull_requests: title matches GT', async ({ page }) => { await page.goto('/docs/next/contributing/code/reviewing-pull-requests/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('review a pull request'); }); test('docs_next_contributing_code_reviewing_pull_requests: h1 "Review a Pull Request"', async ({ page }) => { await page.goto('/docs/next/contributing/code/reviewing-pull-requests/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Review a Pull Request' || t.startsWith('Review a Pull Request'))).toBeTruthy(); }); test('docs_next_contributing_code_reviewing_pull_requests: h2 "Understand the Changes​"', async ({ page }) => { await page.goto('/docs/next/contributing/code/reviewing-pull-requests/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Understand the Changes​' || t.startsWith('Understand the Changes​'))).toBeTruthy(); }); test('docs_next_contributing_code_reviewing_pull_requests: h2 "Provide Constructive Feedback​"', async ({ page }) => { await page.goto('/docs/next/contributing/code/reviewing-pull-requests/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Provide Constructive Feedback​' || t.startsWith('Provide Constructive Feedback​'))).toBeTruthy(); }); test('docs_next_contributing_code_reviewing_pull_requests: h2 "Review the Code​"', async ({ page }) => { await page.goto('/docs/next/contributing/code/reviewing-pull-requests/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Review the Code​' || t.startsWith('Review the Code​'))).toBeTruthy(); }); test('docs_next_contributing_code_reviewing_pull_requests: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/contributing/code/reviewing-pull-requests/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_contributing_documentation', () => { test('docs_next_contributing_documentation: title matches GT', async ({ page }) => { await page.goto('/docs/next/contributing/documentation/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('documentation site'); }); test('docs_next_contributing_documentation: h1 "Documentation Site"', async ({ page }) => { await page.goto('/docs/next/contributing/documentation/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation Site' || t.startsWith('Documentation Site'))).toBeTruthy(); }); test('docs_next_contributing_documentation: h2 "Getting Started​"', async ({ page }) => { await page.goto('/docs/next/contributing/documentation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Getting Started​' || t.startsWith('Getting Started​'))).toBeTruthy(); }); test('docs_next_contributing_documentation: h2 "Making Updates​"', async ({ page }) => { await page.goto('/docs/next/contributing/documentation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Making Updates​' || t.startsWith('Making Updates​'))).toBeTruthy(); }); test('docs_next_contributing_documentation: h2 "Deploying Changes​"', async ({ page }) => { await page.goto('/docs/next/contributing/documentation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Deploying Changes​' || t.startsWith('Deploying Changes​'))).toBeTruthy(); }); test('docs_next_contributing_documentation: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/contributing/documentation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_contributing_feature_requests', () => { test('docs_next_contributing_feature_requests: title matches GT', async ({ page }) => { await page.goto('/docs/next/contributing/feature-requests/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('feedback and suggestions'); }); test('docs_next_contributing_feature_requests: h1 "Feedback and Suggestions"', async ({ page }) => { await page.goto('/docs/next/contributing/feature-requests/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Feedback and Suggestions' || t.startsWith('Feedback and Suggestions'))).toBeTruthy(); }); test('docs_next_contributing_feature_requests: h2 "Giving Feedback​"', async ({ page }) => { await page.goto('/docs/next/contributing/feature-requests/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Giving Feedback​' || t.startsWith('Giving Feedback​'))).toBeTruthy(); }); test('docs_next_contributing_feature_requests: h2 "Suggesting Features​"', async ({ page }) => { await page.goto('/docs/next/contributing/feature-requests/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Suggesting Features​' || t.startsWith('Suggesting Features​'))).toBeTruthy(); }); test('docs_next_contributing_feature_requests: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/next/contributing/feature-requests/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_next_contributing_feature_requests: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/contributing/feature-requests/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_contributing_questions_answering_questions', () => { test('docs_next_contributing_questions_answering_questions: title matches GT', async ({ page }) => { await page.goto('/docs/next/contributing/questions/answering-questions/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('answering questions'); }); test('docs_next_contributing_questions_answering_questions: h1 "Answering Questions"', async ({ page }) => { await page.goto('/docs/next/contributing/questions/answering-questions/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Answering Questions' || t.startsWith('Answering Questions'))).toBeTruthy(); }); test('docs_next_contributing_questions_answering_questions: h2 "Different Ways to Answer​"', async ({ page }) => { await page.goto('/docs/next/contributing/questions/answering-questions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Different Ways to Answer​' || t.startsWith('Different Ways to Answer​'))).toBeTruthy(); }); test('docs_next_contributing_questions_answering_questions: h2 "Guidelines for Writing Clear A"', async ({ page }) => { await page.goto('/docs/next/contributing/questions/answering-questions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Guidelines for Writing Clear Answers​' || t.startsWith('Guidelines for Writing Clear Answers​'))).toBeTruthy(); }); test('docs_next_contributing_questions_answering_questions: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/next/contributing/questions/answering-questions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_next_contributing_questions_answering_questions: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/contributing/questions/answering-questions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_contributing_questions_asking_questions', () => { test('docs_next_contributing_questions_asking_questions: title matches GT', async ({ page }) => { await page.goto('/docs/next/contributing/questions/asking-questions/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('asking questions'); }); test('docs_next_contributing_questions_asking_questions: h1 "Asking Questions"', async ({ page }) => { await page.goto('/docs/next/contributing/questions/asking-questions/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Asking Questions' || t.startsWith('Asking Questions'))).toBeTruthy(); }); test('docs_next_contributing_questions_asking_questions: h2 "Before Asking​"', async ({ page }) => { await page.goto('/docs/next/contributing/questions/asking-questions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Before Asking​' || t.startsWith('Before Asking​'))).toBeTruthy(); }); test('docs_next_contributing_questions_asking_questions: h2 "Where to Ask​"', async ({ page }) => { await page.goto('/docs/next/contributing/questions/asking-questions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Where to Ask​' || t.startsWith('Where to Ask​'))).toBeTruthy(); }); test('docs_next_contributing_questions_asking_questions: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/next/contributing/questions/asking-questions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_next_contributing_questions_asking_questions: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/contributing/questions/asking-questions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_contributing_reporting_bugs', () => { test('docs_next_contributing_reporting_bugs: title matches GT', async ({ page }) => { await page.goto('/docs/next/contributing/reporting-bugs/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('reporting bugs'); }); test('docs_next_contributing_reporting_bugs: h1 "Reporting Bugs"', async ({ page }) => { await page.goto('/docs/next/contributing/reporting-bugs/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reporting Bugs' || t.startsWith('Reporting Bugs'))).toBeTruthy(); }); test('docs_next_contributing_reporting_bugs: h2 "Search for Existing Issues​"', async ({ page }) => { await page.goto('/docs/next/contributing/reporting-bugs/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Search for Existing Issues​' || t.startsWith('Search for Existing Issues​'))).toBeTruthy(); }); test('docs_next_contributing_reporting_bugs: h2 "Create a Bug Report​"', async ({ page }) => { await page.goto('/docs/next/contributing/reporting-bugs/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Create a Bug Report​' || t.startsWith('Create a Bug Report​'))).toBeTruthy(); }); test('docs_next_contributing_reporting_bugs: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/next/contributing/reporting-bugs/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_next_contributing_reporting_bugs: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/contributing/reporting-bugs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_guide_genymotion_saas', () => { test('docs_next_guide_genymotion_saas: title matches GT', async ({ page }) => { await page.goto('/docs/next/guide/genymotion-saas/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('using genymotion saas'); }); test('docs_next_guide_genymotion_saas: h1 "Using Genymotion SaaS"', async ({ page }) => { await page.goto('/docs/next/guide/genymotion-saas/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Using Genymotion SaaS' || t.startsWith('Using Genymotion SaaS'))).toBeTruthy(); }); test('docs_next_guide_genymotion_saas: h2 "Prerequisites​"', async ({ page }) => { await page.goto('/docs/next/guide/genymotion-saas/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Prerequisites​' || t.startsWith('Prerequisites​'))).toBeTruthy(); }); test('docs_next_guide_genymotion_saas: h2 "Configuring​"', async ({ page }) => { await page.goto('/docs/next/guide/genymotion-saas/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Configuring​' || t.startsWith('Configuring​'))).toBeTruthy(); }); test('docs_next_guide_genymotion_saas: h2 "Running​"', async ({ page }) => { await page.goto('/docs/next/guide/genymotion-saas/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Running​' || t.startsWith('Running​'))).toBeTruthy(); }); test('docs_next_guide_genymotion_saas: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/guide/genymotion-saas/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_contributing_code_building_and_testing', () => { test('docs_contributing_code_building_and_testing: title matches GT', async ({ page }) => { await page.goto('/docs/contributing/code/building-and-testing/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('building and testing'); }); test('docs_contributing_code_building_and_testing: h1 "Building and Testing"', async ({ page }) => { await page.goto('/docs/contributing/code/building-and-testing/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Building and Testing' || t.startsWith('Building and Testing'))).toBeTruthy(); }); test('docs_contributing_code_building_and_testing: h2 "Unit Tests (JavaScript)​"', async ({ page }) => { await page.goto('/docs/contributing/code/building-and-testing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Unit Tests (JavaScript)​' || t.startsWith('Unit Tests (JavaScript)​'))).toBeTruthy(); }); test('docs_contributing_code_building_and_testing: h2 "Unit Tests - Android Native​"', async ({ page }) => { await page.goto('/docs/contributing/code/building-and-testing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Unit Tests - Android Native​' || t.startsWith('Unit Tests - Android Native​'))).toBeTruthy(); }); test('docs_contributing_code_building_and_testing: h2 "iOS: Rebuilding the Native Cod"', async ({ page }) => { await page.goto('/docs/contributing/code/building-and-testing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'iOS: Rebuilding the Native Code​' || t.startsWith('iOS: Rebuilding the Native Code​'))).toBeTruthy(); }); test('docs_contributing_code_building_and_testing: nav link "Detox"', async ({ page }) => { await page.goto('/docs/contributing/code/building-and-testing/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_contributing_code_overview', () => { test('docs_contributing_code_overview: title matches GT', async ({ page }) => { await page.goto('/docs/contributing/code/overview/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('code changes overview'); }); test('docs_contributing_code_overview: h1 "Code Changes Overview"', async ({ page }) => { await page.goto('/docs/contributing/code/overview/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Code Changes Overview' || t.startsWith('Code Changes Overview'))).toBeTruthy(); }); test('docs_contributing_code_overview: h2 "Repository Structure​"', async ({ page }) => { await page.goto('/docs/contributing/code/overview/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Repository Structure​' || t.startsWith('Repository Structure​'))).toBeTruthy(); }); test('docs_contributing_code_overview: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/contributing/code/overview/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_contributing_code_overview: h2 "Cookie settings"', async ({ page }) => { await page.goto('/docs/contributing/code/overview/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Cookie settings' || t.startsWith('Cookie settings'))).toBeTruthy(); }); test('docs_contributing_code_overview: nav link "Detox"', async ({ page }) => { await page.goto('/docs/contributing/code/overview/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_contributing_code_reviewing_pull_requests', () => { test('docs_contributing_code_reviewing_pull_requests: title matches GT', async ({ page }) => { await page.goto('/docs/contributing/code/reviewing-pull-requests/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('review a pull request'); }); test('docs_contributing_code_reviewing_pull_requests: h1 "Review a Pull Request"', async ({ page }) => { await page.goto('/docs/contributing/code/reviewing-pull-requests/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Review a Pull Request' || t.startsWith('Review a Pull Request'))).toBeTruthy(); }); test('docs_contributing_code_reviewing_pull_requests: h2 "Understand the Changes​"', async ({ page }) => { await page.goto('/docs/contributing/code/reviewing-pull-requests/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Understand the Changes​' || t.startsWith('Understand the Changes​'))).toBeTruthy(); }); test('docs_contributing_code_reviewing_pull_requests: h2 "Provide Constructive Feedback​"', async ({ page }) => { await page.goto('/docs/contributing/code/reviewing-pull-requests/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Provide Constructive Feedback​' || t.startsWith('Provide Constructive Feedback​'))).toBeTruthy(); }); test('docs_contributing_code_reviewing_pull_requests: h2 "Review the Code​"', async ({ page }) => { await page.goto('/docs/contributing/code/reviewing-pull-requests/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Review the Code​' || t.startsWith('Review the Code​'))).toBeTruthy(); }); test('docs_contributing_code_reviewing_pull_requests: nav link "Detox"', async ({ page }) => { await page.goto('/docs/contributing/code/reviewing-pull-requests/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_contributing_code_setting_up_the_dev_environment', () => { test('docs_contributing_code_setting_up_the_dev_environment: title matches GT', async ({ page }) => { await page.goto('/docs/contributing/code/setting-up-the-dev-environment/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('setting up the development environment'); }); test('docs_contributing_code_setting_up_the_dev_environment: h1 "Setting up the Development Env"', async ({ page }) => { await page.goto('/docs/contributing/code/setting-up-the-dev-environment/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Setting up the Development Environment' || t.startsWith('Setting up the Development Environment'))).toBeTruthy(); }); test('docs_contributing_code_setting_up_the_dev_environment: h2 "Node.js​"', async ({ page }) => { await page.goto('/docs/contributing/code/setting-up-the-dev-environment/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Node.js​' || t.startsWith('Node.js​'))).toBeTruthy(); }); test('docs_contributing_code_setting_up_the_dev_environment: h2 "Setting Up The Monorepo​"', async ({ page }) => { await page.goto('/docs/contributing/code/setting-up-the-dev-environment/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Setting Up The Monorepo​' || t.startsWith('Setting Up The Monorepo​'))).toBeTruthy(); }); test('docs_contributing_code_setting_up_the_dev_environment: h2 "Installing Common Dependencies"', async ({ page }) => { await page.goto('/docs/contributing/code/setting-up-the-dev-environment/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Installing Common Dependencies​' || t.startsWith('Installing Common Dependencies​'))).toBeTruthy(); }); test('docs_contributing_code_setting_up_the_dev_environment: nav link "Detox"', async ({ page }) => { await page.goto('/docs/contributing/code/setting-up-the-dev-environment/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_contributing_code_submitting_pull_requests', () => { test('docs_contributing_code_submitting_pull_requests: title matches GT', async ({ page }) => { await page.goto('/docs/contributing/code/submitting-pull-requests/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('submitting pull requests'); }); test('docs_contributing_code_submitting_pull_requests: h1 "Submitting Pull Requests"', async ({ page }) => { await page.goto('/docs/contributing/code/submitting-pull-requests/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Submitting Pull Requests' || t.startsWith('Submitting Pull Requests'))).toBeTruthy(); }); test('docs_contributing_code_submitting_pull_requests: h2 "Fork the Repository​"', async ({ page }) => { await page.goto('/docs/contributing/code/submitting-pull-requests/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Fork the Repository​' || t.startsWith('Fork the Repository​'))).toBeTruthy(); }); test('docs_contributing_code_submitting_pull_requests: h2 "Test Your Changes​"', async ({ page }) => { await page.goto('/docs/contributing/code/submitting-pull-requests/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Test Your Changes​' || t.startsWith('Test Your Changes​'))).toBeTruthy(); }); test('docs_contributing_code_submitting_pull_requests: h2 "Modify Documentation​"', async ({ page }) => { await page.goto('/docs/contributing/code/submitting-pull-requests/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Modify Documentation​' || t.startsWith('Modify Documentation​'))).toBeTruthy(); }); test('docs_contributing_code_submitting_pull_requests: nav link "Detox"', async ({ page }) => { await page.goto('/docs/contributing/code/submitting-pull-requests/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_contributing_questions_answering_questions', () => { test('docs_contributing_questions_answering_questions: title matches GT', async ({ page }) => { await page.goto('/docs/contributing/questions/answering-questions/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('answering questions'); }); test('docs_contributing_questions_answering_questions: h1 "Answering Questions"', async ({ page }) => { await page.goto('/docs/contributing/questions/answering-questions/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Answering Questions' || t.startsWith('Answering Questions'))).toBeTruthy(); }); test('docs_contributing_questions_answering_questions: h2 "Different Ways to Answer​"', async ({ page }) => { await page.goto('/docs/contributing/questions/answering-questions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Different Ways to Answer​' || t.startsWith('Different Ways to Answer​'))).toBeTruthy(); }); test('docs_contributing_questions_answering_questions: h2 "Guidelines for Writing Clear A"', async ({ page }) => { await page.goto('/docs/contributing/questions/answering-questions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Guidelines for Writing Clear Answers​' || t.startsWith('Guidelines for Writing Clear Answers​'))).toBeTruthy(); }); test('docs_contributing_questions_answering_questions: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/contributing/questions/answering-questions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_contributing_questions_answering_questions: nav link "Detox"', async ({ page }) => { await page.goto('/docs/contributing/questions/answering-questions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_contributing_questions_asking_questions', () => { test('docs_contributing_questions_asking_questions: title matches GT', async ({ page }) => { await page.goto('/docs/contributing/questions/asking-questions/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('asking questions'); }); test('docs_contributing_questions_asking_questions: h1 "Asking Questions"', async ({ page }) => { await page.goto('/docs/contributing/questions/asking-questions/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Asking Questions' || t.startsWith('Asking Questions'))).toBeTruthy(); }); test('docs_contributing_questions_asking_questions: h2 "Before Asking​"', async ({ page }) => { await page.goto('/docs/contributing/questions/asking-questions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Before Asking​' || t.startsWith('Before Asking​'))).toBeTruthy(); }); test('docs_contributing_questions_asking_questions: h2 "Where to Ask​"', async ({ page }) => { await page.goto('/docs/contributing/questions/asking-questions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Where to Ask​' || t.startsWith('Where to Ask​'))).toBeTruthy(); }); test('docs_contributing_questions_asking_questions: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/contributing/questions/asking-questions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_contributing_questions_asking_questions: nav link "Detox"', async ({ page }) => { await page.goto('/docs/contributing/questions/asking-questions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_api_actions', () => { test('docs_next_api_actions: title matches GT', async ({ page }) => { await page.goto('/docs/next/api/actions/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('actions'); }); test('docs_next_api_actions: h1 "Actions"', async ({ page }) => { await page.goto('/docs/next/api/actions/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Actions' || t.startsWith('Actions'))).toBeTruthy(); }); test('docs_next_api_actions: h2 "Methods​"', async ({ page }) => { await page.goto('/docs/next/api/actions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Methods​' || t.startsWith('Methods​'))).toBeTruthy(); }); test('docs_next_api_actions: h2 "Deprecated Methods​"', async ({ page }) => { await page.goto('/docs/next/api/actions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Deprecated Methods​' || t.startsWith('Deprecated Methods​'))).toBeTruthy(); }); test('docs_next_api_actions: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/next/api/actions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_next_api_actions: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/api/actions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_api_device', () => { test('docs_next_api_device: title matches GT', async ({ page }) => { await page.goto('/docs/next/api/device/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('device'); }); test('docs_next_api_device: h1 "Device"', async ({ page }) => { await page.goto('/docs/next/api/device/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Device' || t.startsWith('Device'))).toBeTruthy(); }); test('docs_next_api_device: h2 "Public Properties​"', async ({ page }) => { await page.goto('/docs/next/api/device/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Public Properties​' || t.startsWith('Public Properties​'))).toBeTruthy(); }); test('docs_next_api_device: h2 "Methods​"', async ({ page }) => { await page.goto('/docs/next/api/device/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Methods​' || t.startsWith('Methods​'))).toBeTruthy(); }); test('docs_next_api_device: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/next/api/device/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_next_api_device: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/api/device/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_api_expect', () => { test('docs_next_api_expect: title matches GT', async ({ page }) => { await page.goto('/docs/next/api/expect/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('expect'); }); test('docs_next_api_expect: h1 "Expect"', async ({ page }) => { await page.goto('/docs/next/api/expect/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Expect' || t.startsWith('Expect'))).toBeTruthy(); }); test('docs_next_api_expect: h2 "Methods​"', async ({ page }) => { await page.goto('/docs/next/api/expect/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Methods​' || t.startsWith('Methods​'))).toBeTruthy(); }); test('docs_next_api_expect: h2 "Properties​"', async ({ page }) => { await page.goto('/docs/next/api/expect/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Properties​' || t.startsWith('Properties​'))).toBeTruthy(); }); test('docs_next_api_expect: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/next/api/expect/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_next_api_expect: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/api/expect/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_api_internals', () => { test('docs_next_api_internals: title matches GT', async ({ page }) => { await page.goto('/docs/next/api/internals/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('internals api'); }); test('docs_next_api_internals: h1 "Internals API"', async ({ page }) => { await page.goto('/docs/next/api/internals/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Internals API' || t.startsWith('Internals API'))).toBeTruthy(); }); test('docs_next_api_internals: h2 "Lifecycle​"', async ({ page }) => { await page.goto('/docs/next/api/internals/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Lifecycle​' || t.startsWith('Lifecycle​'))).toBeTruthy(); }); test('docs_next_api_internals: h2 "Methods​"', async ({ page }) => { await page.goto('/docs/next/api/internals/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Methods​' || t.startsWith('Methods​'))).toBeTruthy(); }); test('docs_next_api_internals: h2 "Optional lifecycle​"', async ({ page }) => { await page.goto('/docs/next/api/internals/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Optional lifecycle​' || t.startsWith('Optional lifecycle​'))).toBeTruthy(); }); test('docs_next_api_internals: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/api/internals/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_api_logger', () => { test('docs_next_api_logger: title matches GT', async ({ page }) => { await page.goto('/docs/next/api/logger/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('logger'); }); test('docs_next_api_logger: h1 "Logger"', async ({ page }) => { await page.goto('/docs/next/api/logger/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Logger' || t.startsWith('Logger'))).toBeTruthy(); }); test('docs_next_api_logger: h2 "Properties​"', async ({ page }) => { await page.goto('/docs/next/api/logger/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Properties​' || t.startsWith('Properties​'))).toBeTruthy(); }); test('docs_next_api_logger: h2 "Methods​"', async ({ page }) => { await page.goto('/docs/next/api/logger/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Methods​' || t.startsWith('Methods​'))).toBeTruthy(); }); test('docs_next_api_logger: h2 "Event metadata​"', async ({ page }) => { await page.goto('/docs/next/api/logger/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Event metadata​' || t.startsWith('Event metadata​'))).toBeTruthy(); }); test('docs_next_api_logger: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/api/logger/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_api_matchers', () => { test('docs_next_api_matchers: title matches GT', async ({ page }) => { await page.goto('/docs/next/api/matchers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('matchers'); }); test('docs_next_api_matchers: h1 "Matchers"', async ({ page }) => { await page.goto('/docs/next/api/matchers/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Matchers' || t.startsWith('Matchers'))).toBeTruthy(); }); test('docs_next_api_matchers: h2 "Methods​"', async ({ page }) => { await page.goto('/docs/next/api/matchers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Methods​' || t.startsWith('Methods​'))).toBeTruthy(); }); test('docs_next_api_matchers: h2 "Regex matching​"', async ({ page }) => { await page.goto('/docs/next/api/matchers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Regex matching​' || t.startsWith('Regex matching​'))).toBeTruthy(); }); test('docs_next_api_matchers: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/next/api/matchers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_next_api_matchers: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/api/matchers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_api_pilot', () => { test('docs_next_api_pilot: title matches GT', async ({ page }) => { await page.goto('/docs/next/api/pilot/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('wix pilot'); }); test('docs_next_api_pilot: h1 "Wix Pilot"', async ({ page }) => { await page.goto('/docs/next/api/pilot/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Wix Pilot' || t.startsWith('Wix Pilot'))).toBeTruthy(); }); test('docs_next_api_pilot: h2 "Overview​"', async ({ page }) => { await page.goto('/docs/next/api/pilot/'); 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_next_api_pilot: h2 "Methods​"', async ({ page }) => { await page.goto('/docs/next/api/pilot/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Methods​' || t.startsWith('Methods​'))).toBeTruthy(); }); test('docs_next_api_pilot: h2 "pilot.init(promptHandler)​"', async ({ page }) => { await page.goto('/docs/next/api/pilot/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'pilot.init(promptHandler)​' || t.startsWith('pilot.init(promptHandler)​'))).toBeTruthy(); }); test('docs_next_api_pilot: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/api/pilot/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_api_system', () => { test('docs_next_api_system: title matches GT', async ({ page }) => { await page.goto('/docs/next/api/system/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('system'); }); test('docs_next_api_system: h1 "System"', async ({ page }) => { await page.goto('/docs/next/api/system/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'System' || t.startsWith('System'))).toBeTruthy(); }); test('docs_next_api_system: h2 "Matchers​"', async ({ page }) => { await page.goto('/docs/next/api/system/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Matchers​' || t.startsWith('Matchers​'))).toBeTruthy(); }); test('docs_next_api_system: h2 "Actions​"', async ({ page }) => { await page.goto('/docs/next/api/system/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Actions​' || t.startsWith('Actions​'))).toBeTruthy(); }); test('docs_next_api_system: h2 "Expectations​"', async ({ page }) => { await page.goto('/docs/next/api/system/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Expectations​' || t.startsWith('Expectations​'))).toBeTruthy(); }); test('docs_next_api_system: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/api/system/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_api_webviews', () => { test('docs_next_api_webviews: title matches GT', async ({ page }) => { await page.goto('/docs/next/api/webviews/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('web views'); }); test('docs_next_api_webviews: h1 "Web Views"', async ({ page }) => { await page.goto('/docs/next/api/webviews/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Web Views' || t.startsWith('Web Views'))).toBeTruthy(); }); test('docs_next_api_webviews: h2 "Locating Elements in Web Views"', async ({ page }) => { await page.goto('/docs/next/api/webviews/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Locating Elements in Web Views​' || t.startsWith('Locating Elements in Web Views​'))).toBeTruthy(); }); test('docs_next_api_webviews: h2 "Matchers​"', async ({ page }) => { await page.goto('/docs/next/api/webviews/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Matchers​' || t.startsWith('Matchers​'))).toBeTruthy(); }); test('docs_next_api_webviews: h2 "Actions​"', async ({ page }) => { await page.goto('/docs/next/api/webviews/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Actions​' || t.startsWith('Actions​'))).toBeTruthy(); }); test('docs_next_api_webviews: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/api/webviews/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_architecture_artifacts', () => { test('docs_next_architecture_artifacts: title matches GT', async ({ page }) => { await page.goto('/docs/next/architecture/artifacts/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('artifacts system'); }); test('docs_next_architecture_artifacts: h1 "Artifacts System"', async ({ page }) => { await page.goto('/docs/next/architecture/artifacts/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Artifacts System' || t.startsWith('Artifacts System'))).toBeTruthy(); }); test('docs_next_architecture_artifacts: h2 "Architecture Overview​"', async ({ page }) => { await page.goto('/docs/next/architecture/artifacts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Architecture Overview​' || t.startsWith('Architecture Overview​'))).toBeTruthy(); }); test('docs_next_architecture_artifacts: h2 "Directory Structure​"', async ({ page }) => { await page.goto('/docs/next/architecture/artifacts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Directory Structure​' || t.startsWith('Directory Structure​'))).toBeTruthy(); }); test('docs_next_architecture_artifacts: h2 "ArtifactsManager​"', async ({ page }) => { await page.goto('/docs/next/architecture/artifacts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArtifactsManager​' || t.startsWith('ArtifactsManager​'))).toBeTruthy(); }); test('docs_next_architecture_artifacts: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/architecture/artifacts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_architecture_client_server', () => { test('docs_next_architecture_client_server: title matches GT', async ({ page }) => { await page.goto('/docs/next/architecture/client-server/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('client'); }); test('docs_next_architecture_client_server: h1 "Client-Server Communication"', async ({ page }) => { await page.goto('/docs/next/architecture/client-server/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Client-Server Communication' || t.startsWith('Client-Server Communication'))).toBeTruthy(); }); test('docs_next_architecture_client_server: h2 "Architecture Overview​"', async ({ page }) => { await page.goto('/docs/next/architecture/client-server/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Architecture Overview​' || t.startsWith('Architecture Overview​'))).toBeTruthy(); }); test('docs_next_architecture_client_server: h2 "Why a Mediator Server?​"', async ({ page }) => { await page.goto('/docs/next/architecture/client-server/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Why a Mediator Server?​' || t.startsWith('Why a Mediator Server?​'))).toBeTruthy(); }); test('docs_next_architecture_client_server: h2 "Components​"', async ({ page }) => { await page.goto('/docs/next/architecture/client-server/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Components​' || t.startsWith('Components​'))).toBeTruthy(); }); test('docs_next_architecture_client_server: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/architecture/client-server/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_architecture_devices', () => { test('docs_next_architecture_devices: title matches GT', async ({ page }) => { await page.goto('/docs/next/architecture/devices/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('device management'); }); test('docs_next_architecture_devices: h1 "Device Management"', async ({ page }) => { await page.goto('/docs/next/architecture/devices/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Device Management' || t.startsWith('Device Management'))).toBeTruthy(); }); test('docs_next_architecture_devices: h2 "Architecture Overview​"', async ({ page }) => { await page.goto('/docs/next/architecture/devices/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Architecture Overview​' || t.startsWith('Architecture Overview​'))).toBeTruthy(); }); test('docs_next_architecture_devices: h2 "Directory Structure​"', async ({ page }) => { await page.goto('/docs/next/architecture/devices/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Directory Structure​' || t.startsWith('Directory Structure​'))).toBeTruthy(); }); test('docs_next_architecture_devices: h2 "Device Types​"', async ({ page }) => { await page.goto('/docs/next/architecture/devices/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Device Types​' || t.startsWith('Device Types​'))).toBeTruthy(); }); test('docs_next_architecture_devices: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/architecture/devices/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_articles_design_principles', () => { test('docs_next_articles_design_principles: title matches GT', async ({ page }) => { await page.goto('/docs/next/articles/design-principles/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('design principles'); }); test('docs_next_articles_design_principles: h1 "Design Principles"', async ({ page }) => { await page.goto('/docs/next/articles/design-principles/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Design Principles' || t.startsWith('Design Principles'))).toBeTruthy(); }); test('docs_next_articles_design_principles: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/next/articles/design-principles/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_next_articles_design_principles: h2 "Cookie settings"', async ({ page }) => { await page.goto('/docs/next/articles/design-principles/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Cookie settings' || t.startsWith('Cookie settings'))).toBeTruthy(); }); test('docs_next_articles_design_principles: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/articles/design-principles/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_articles_how_detox_works', () => { test('docs_next_articles_how_detox_works: title matches GT', async ({ page }) => { await page.goto('/docs/next/articles/how-detox-works/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how detox works'); }); test('docs_next_articles_how_detox_works: h1 "How Detox Works"', async ({ page }) => { await page.goto('/docs/next/articles/how-detox-works/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How Detox Works' || t.startsWith('How Detox Works'))).toBeTruthy(); }); test('docs_next_articles_how_detox_works: h2 "Automatic App-State Synchroniz"', async ({ page }) => { await page.goto('/docs/next/articles/how-detox-works/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Automatic App-State Synchronization​' || t.startsWith('Automatic App-State Synchronization​'))).toBeTruthy(); }); test('docs_next_articles_how_detox_works: h2 "Architecture​"', async ({ page }) => { await page.goto('/docs/next/articles/how-detox-works/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Architecture​' || t.startsWith('Architecture​'))).toBeTruthy(); }); test('docs_next_articles_how_detox_works: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/next/articles/how-detox-works/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_next_articles_how_detox_works: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/articles/how-detox-works/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_articles_third_party_drivers', () => { test('docs_next_articles_third_party_drivers: title matches GT', async ({ page }) => { await page.goto('/docs/next/articles/third-party-drivers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('third'); }); test('docs_next_articles_third_party_drivers: h1 "Third-Party Drivers"', async ({ page }) => { await page.goto('/docs/next/articles/third-party-drivers/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Third-Party Drivers' || t.startsWith('Third-Party Drivers'))).toBeTruthy(); }); test('docs_next_articles_third_party_drivers: h2 "How to Use a Third-party Drive"', async ({ page }) => { await page.goto('/docs/next/articles/third-party-drivers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Use a Third-party Driver​' || t.startsWith('How to Use a Third-party Driver​'))).toBeTruthy(); }); test('docs_next_articles_third_party_drivers: h2 "Writing a New Third-party Driv"', async ({ page }) => { await page.goto('/docs/next/articles/third-party-drivers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Writing a New Third-party Driver​' || t.startsWith('Writing a New Third-party Driver​'))).toBeTruthy(); }); test('docs_next_articles_third_party_drivers: h2 "Existing Third-party Drivers​"', async ({ page }) => { await page.goto('/docs/next/articles/third-party-drivers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Existing Third-party Drivers​' || t.startsWith('Existing Third-party Drivers​'))).toBeTruthy(); }); test('docs_next_articles_third_party_drivers: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/articles/third-party-drivers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_cli_overview', () => { test('docs_next_cli_overview: h1 "detox"', async ({ page }) => { await page.goto('/docs/next/cli/overview/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'detox' || t.startsWith('detox'))).toBeTruthy(); }); test('docs_next_cli_overview: h2 "Installation​"', async ({ page }) => { await page.goto('/docs/next/cli/overview/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Installation​' || t.startsWith('Installation​'))).toBeTruthy(); }); test('docs_next_cli_overview: h2 "Usage​"', async ({ page }) => { await page.goto('/docs/next/cli/overview/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Usage​' || t.startsWith('Usage​'))).toBeTruthy(); }); test('docs_next_cli_overview: h2 "Commands​"', async ({ page }) => { await page.goto('/docs/next/cli/overview/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Commands​' || t.startsWith('Commands​'))).toBeTruthy(); }); test('docs_next_cli_overview: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/cli/overview/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_cli_test', () => { test('docs_next_cli_test: title matches GT', async ({ page }) => { await page.goto('/docs/next/cli/test/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('detox test'); }); test('docs_next_cli_test: h1 "detox test"', async ({ page }) => { await page.goto('/docs/next/cli/test/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'detox test' || t.startsWith('detox test'))).toBeTruthy(); }); test('docs_next_cli_test: h2 "Options​"', async ({ page }) => { await page.goto('/docs/next/cli/test/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Options​' || t.startsWith('Options​'))).toBeTruthy(); }); test('docs_next_cli_test: h2 "DETOX_ARGV_OVERRIDE​"', async ({ page }) => { await page.goto('/docs/next/cli/test/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DETOX_ARGV_OVERRIDE​' || t.startsWith('DETOX_ARGV_OVERRIDE​'))).toBeTruthy(); }); test('docs_next_cli_test: h2 "We use cookies!"', async ({ page }) => { await page.goto('/docs/next/cli/test/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We use cookies!' || t.startsWith('We use cookies!'))).toBeTruthy(); }); test('docs_next_cli_test: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/cli/test/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - docs_next_config_apps', () => { test('docs_next_config_apps: title matches GT', async ({ page }) => { await page.goto('/docs/next/config/apps/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('apps'); }); test('docs_next_config_apps: h1 "Apps"', async ({ page }) => { await page.goto('/docs/next/config/apps/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Apps' || t.startsWith('Apps'))).toBeTruthy(); }); test('docs_next_config_apps: h2 "Location​"', async ({ page }) => { await page.goto('/docs/next/config/apps/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Location​' || t.startsWith('Location​'))).toBeTruthy(); }); test('docs_next_config_apps: h2 "Examples​"', async ({ page }) => { await page.goto('/docs/next/config/apps/'); 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_next_config_apps: h2 "Properties​"', async ({ page }) => { await page.goto('/docs/next/config/apps/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Properties​' || t.startsWith('Properties​'))).toBeTruthy(); }); test('docs_next_config_apps: nav link "Detox"', async ({ page }) => { await page.goto('/docs/next/config/apps/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Detox' || t.startsWith('Detox')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - Routing', () => { });