RecreationBench / web /ablira.example /tests /static /content.scripted.spec.ts
VoyagerXHF's picture
Upload folder using huggingface_hub (part 9)
baf15ae verified
Raw History Blame Contribute Delete
154 kB
import { test, expect } from '@playwright/test';
test.describe('Functional - homepage', () => {
test('homepage: h2 "Spot More Bugs"', async ({ page }) => {
await page.goto('/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Spot More Bugs' || t.startsWith('Spot More Bugs'))).toBeTruthy();
});
test('homepage: h2 "Stay Organized"', async ({ page }) => {
await page.goto('/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay Organized' || t.startsWith('Stay Organized'))).toBeTruthy();
});
test('homepage: h2 "Stay In Command"', async ({ page }) => {
await page.goto('/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Command' || t.startsWith('Stay In Command'))).toBeTruthy();
});
test('homepage: nav link "Catch More Flaws"', 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 === 'Catch More Flaws' || t.startsWith('Catch More Flaws')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('homepage: nav link "Get It Sorted"', 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 === 'Get It Sorted' || t.startsWith('Get It Sorted')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('homepage: nav link "Stay In Command"', 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 === 'Stay In Command' || t.startsWith('Stay In Command')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('homepage: nav link "Effortless Setup"', 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 === 'Effortless Setup' || t.startsWith('Effortless Setup')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - about', () => {
test('about: title matches GT', async ({ page }) => {
await page.goto('/about/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('about ablira');
});
test('about: h1 "About Ablira"', async ({ page }) => {
await page.goto('/about/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'About Ablira' || t.startsWith('About Ablira'))).toBeTruthy();
});
test('about: h2 "Toward truly inclusive technol"', async ({ page }) => {
await page.goto('/about/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Toward truly inclusive technology' || t.startsWith('Toward truly inclusive technology'))).toBeTruthy();
});
test('about: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/about/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('about: nav link "Get Organized"', async ({ page }) => {
await page.goto('/about/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('about: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/about/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('about: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/about/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - careers', () => {
test('careers: title matches GT', async ({ page }) => {
await page.goto('/careers/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('careers');
});
test('careers: h1 "Careers"', async ({ page }) => {
await page.goto('/careers/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Careers' || t.startsWith('Careers'))).toBeTruthy();
});
test('careers: h2 "Join in."', async ({ page }) => {
await page.goto('/careers/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Join in.' || t.startsWith('Join in.'))).toBeTruthy();
});
test('careers: h2 "Current Openings"', async ({ page }) => {
await page.goto('/careers/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Current Openings' || t.startsWith('Current Openings'))).toBeTruthy();
});
test('careers: h2 "Nothing above the right fit?"', async ({ page }) => {
await page.goto('/careers/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Nothing above the right fit?' || t.startsWith('Nothing above the right fit?'))).toBeTruthy();
});
test('careers: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/careers/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('careers: nav link "Get Organized"', async ({ page }) => {
await page.goto('/careers/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('careers: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/careers/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('careers: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/careers/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - easy_integration', () => {
test('easy_integration: title matches GT', async ({ page }) => {
await page.goto('/easy-integration/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('easy integration');
});
test('easy_integration: h1 "Simple Integration"', async ({ page }) => {
await page.goto('/easy-integration/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Simple Integration' || t.startsWith('Simple Integration'))).toBeTruthy();
});
test('easy_integration: h2 "Smoother pipeline integration"', async ({ page }) => {
await page.goto('/easy-integration/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Smoother pipeline integration' || t.startsWith('Smoother pipeline integration'))).toBeTruthy();
});
test('easy_integration: h2 "167 times simpler"', async ({ page }) => {
await page.goto('/easy-integration/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '167 times simpler' || t.startsWith('167 times simpler'))).toBeTruthy();
});
test('easy_integration: h2 "Other ways we\'re easy"', async ({ page }) => {
await page.goto('/easy-integration/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Other ways we\'re easy' || t.startsWith('Other ways we\'re easy'))).toBeTruthy();
});
test('easy_integration: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/easy-integration/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('easy_integration: nav link "Get Organized"', async ({ page }) => {
await page.goto('/easy-integration/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('easy_integration: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/easy-integration/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('easy_integration: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/easy-integration/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - find_more_bugs', () => {
test('find_more_bugs: title matches GT', async ({ page }) => {
await page.goto('/find-more-bugs/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('find more bugs');
});
test('find_more_bugs: h1 "Find More Bugs"', async ({ page }) => {
await page.goto('/find-more-bugs/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs'))).toBeTruthy();
});
test('find_more_bugs: h2 "See more, catch more."', async ({ page }) => {
await page.goto('/find-more-bugs/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'See more, catch more.' || t.startsWith('See more, catch more.'))).toBeTruthy();
});
test('find_more_bugs: h2 "19 times more"', async ({ page }) => {
await page.goto('/find-more-bugs/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '19 times more' || t.startsWith('19 times more'))).toBeTruthy();
});
test('find_more_bugs: h2 "Other ways we uncover bugs"', async ({ page }) => {
await page.goto('/find-more-bugs/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Other ways we uncover bugs' || t.startsWith('Other ways we uncover bugs'))).toBeTruthy();
});
test('find_more_bugs: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/find-more-bugs/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('find_more_bugs: nav link "Get Organized"', async ({ page }) => {
await page.goto('/find-more-bugs/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('find_more_bugs: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/find-more-bugs/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('find_more_bugs: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/find-more-bugs/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - get_organized', () => {
test('get_organized: title matches GT', async ({ page }) => {
await page.goto('/get-organized/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('get organized');
});
test('get_organized: h1 "Get Organized"', async ({ page }) => {
await page.goto('/get-organized/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized'))).toBeTruthy();
});
test('get_organized: h2 "Know where to begin."', async ({ page }) => {
await page.goto('/get-organized/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Know where to begin.' || t.startsWith('Know where to begin.'))).toBeTruthy();
});
test('get_organized: h2 "Components"', async ({ page }) => {
await page.goto('/get-organized/');
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('get_organized: h2 "More ways to cut the clutter"', async ({ page }) => {
await page.goto('/get-organized/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'More ways to cut the clutter' || t.startsWith('More ways to cut the clutter'))).toBeTruthy();
});
test('get_organized: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/get-organized/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('get_organized: nav link "Get Organized"', async ({ page }) => {
await page.goto('/get-organized/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('get_organized: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/get-organized/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('get_organized: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/get-organized/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - learn', () => {
test('learn: title matches GT', async ({ page }) => {
await page.goto('/learn/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('learn');
});
test('learn: h1 "The skills you need. At the pr"', async ({ page }) => {
await page.goto('/learn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The skills you need. At the price you love.' || t.startsWith('The skills you need. At the price you love.'))).toBeTruthy();
});
test('learn: h2 "learn"', async ({ page }) => {
await page.goto('/learn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'learn' || t.startsWith('learn'))).toBeTruthy();
});
test('learn: h2 "Meet your instructors"', async ({ page }) => {
await page.goto('/learn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Meet your instructors' || t.startsWith('Meet your instructors'))).toBeTruthy();
});
test('learn: h2 "Ready for teams"', async ({ page }) => {
await page.goto('/learn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Ready for teams' || t.startsWith('Ready for teams'))).toBeTruthy();
});
test('learn: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/learn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('learn: nav link "Get Organized"', async ({ page }) => {
await page.goto('/learn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('learn: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/learn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('learn: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/learn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - learn_eula', () => {
test('learn_eula: title matches GT', async ({ page }) => {
await page.goto('/learn-eula/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('ablira learn eula');
});
test('learn_eula: h1 "Ablira Learn"', async ({ page }) => {
await page.goto('/learn-eula/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Ablira Learn' || t.startsWith('Ablira Learn'))).toBeTruthy();
});
test('learn_eula: h1 "LMS Content License"', async ({ page }) => {
await page.goto('/learn-eula/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'LMS Content License' || t.startsWith('LMS Content License'))).toBeTruthy();
});
test('learn_eula: h1 "License Restrictions"', async ({ page }) => {
await page.goto('/learn-eula/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'License Restrictions' || t.startsWith('License Restrictions'))).toBeTruthy();
});
test('learn_eula: h1 "Ownership; Retained Rights"', async ({ page }) => {
await page.goto('/learn-eula/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Ownership; Retained Rights' || t.startsWith('Ownership; Retained Rights'))).toBeTruthy();
});
test('learn_eula: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/learn-eula/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('learn_eula: nav link "Get Organized"', async ({ page }) => {
await page.goto('/learn-eula/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('learn_eula: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/learn-eula/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('learn_eula: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/learn-eula/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - oss_disclosure', () => {
test('oss_disclosure: title matches GT', async ({ page }) => {
await page.goto('/oss-disclosure/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('oss disclosure');
});
test('oss_disclosure: h1 "OSS Transparency"', async ({ page }) => {
await page.goto('/oss-disclosure/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'OSS Transparency' || t.startsWith('OSS Transparency'))).toBeTruthy();
});
test('oss_disclosure: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/oss-disclosure/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('oss_disclosure: nav link "Get Organized"', async ({ page }) => {
await page.goto('/oss-disclosure/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('oss_disclosure: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/oss-disclosure/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('oss_disclosure: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/oss-disclosure/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - privacy_policy', () => {
test('privacy_policy: title matches GT', async ({ page }) => {
await page.goto('/privacy-policy/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('privacy policy');
});
test('privacy_policy: h2 "Privacy Policy"', async ({ page }) => {
await page.goto('/privacy-policy/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Privacy Policy' || t.startsWith('Privacy Policy'))).toBeTruthy();
});
test('privacy_policy: h2 "1. Information We Collect Abou"', async ({ page }) => {
await page.goto('/privacy-policy/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '1. Information We Collect About You' || t.startsWith('1. Information We Collect About You'))).toBeTruthy();
});
test('privacy_policy: h2 "2. How We Gather Your Personal"', async ({ page }) => {
await page.goto('/privacy-policy/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '2. How We Gather Your Personal Data' || t.startsWith('2. How We Gather Your Personal Data'))).toBeTruthy();
});
test('privacy_policy: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/privacy-policy/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('privacy_policy: nav link "Get Organized"', async ({ page }) => {
await page.goto('/privacy-policy/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('privacy_policy: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/privacy-policy/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('privacy_policy: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/privacy-policy/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - site_map', () => {
test('site_map: title matches GT', async ({ page }) => {
await page.goto('/site-map/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('ablira, inc.');
});
test('site_map: h1 "Site Plan"', async ({ page }) => {
await page.goto('/site-map/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Site Plan' || t.startsWith('Site Plan'))).toBeTruthy();
});
test('site_map: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/site-map/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('site_map: nav link "Get Organized"', async ({ page }) => {
await page.goto('/site-map/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('site_map: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/site-map/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('site_map: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/site-map/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - stay_in_control', () => {
test('stay_in_control: title matches GT', async ({ page }) => {
await page.goto('/stay-in-control/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('stay in control');
});
test('stay_in_control: h1 "Stay In Control"', async ({ page }) => {
await page.goto('/stay-in-control/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control'))).toBeTruthy();
});
test('stay_in_control: h2 "Know which barriers are new."', async ({ page }) => {
await page.goto('/stay-in-control/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Know which barriers are new.' || t.startsWith('Know which barriers are new.'))).toBeTruthy();
});
test('stay_in_control: h2 "Measure the progress you make."', async ({ page }) => {
await page.goto('/stay-in-control/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Measure the progress you make.' || t.startsWith('Measure the progress you make.'))).toBeTruthy();
});
test('stay_in_control: h2 "More ways to keep control"', async ({ page }) => {
await page.goto('/stay-in-control/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'More ways to keep control' || t.startsWith('More ways to keep control'))).toBeTruthy();
});
test('stay_in_control: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/stay-in-control/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('stay_in_control: nav link "Get Organized"', async ({ page }) => {
await page.goto('/stay-in-control/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('stay_in_control: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/stay-in-control/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('stay_in_control: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/stay-in-control/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - technology', () => {
test('technology: title matches GT', async ({ page }) => {
await page.goto('/technology/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('technology');
});
test('technology: h1 "Our Technology"', async ({ page }) => {
await page.goto('/technology/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Our Technology' || t.startsWith('Our Technology'))).toBeTruthy();
});
test('technology: h2 "A leap past the ordinary"', async ({ page }) => {
await page.goto('/technology/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'A leap past the ordinary' || t.startsWith('A leap past the ordinary'))).toBeTruthy();
});
test('technology: h2 "The Problem"', async ({ page }) => {
await page.goto('/technology/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The Problem' || t.startsWith('The Problem'))).toBeTruthy();
});
test('technology: h2 "Core detection technology"', async ({ page }) => {
await page.goto('/technology/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Core detection technology' || t.startsWith('Core detection technology'))).toBeTruthy();
});
test('technology: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/technology/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('technology: nav link "Get Organized"', async ({ page }) => {
await page.goto('/technology/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('technology: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/technology/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('technology: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/technology/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - terms_of_use', () => {
test('terms_of_use: title matches GT', async ({ page }) => {
await page.goto('/terms-of-use/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('terms of use');
});
test('terms_of_use: h1 "Usage Terms"', async ({ page }) => {
await page.goto('/terms-of-use/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Usage Terms' || t.startsWith('Usage Terms'))).toBeTruthy();
});
test('terms_of_use: h2 "Service Rules"', async ({ page }) => {
await page.goto('/terms-of-use/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Service Rules' || t.startsWith('Service Rules'))).toBeTruthy();
});
test('terms_of_use: h2 "Governing Agreement"', async ({ page }) => {
await page.goto('/terms-of-use/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Governing Agreement' || t.startsWith('Governing Agreement'))).toBeTruthy();
});
test('terms_of_use: h2 "Accepting the Terms"', async ({ page }) => {
await page.goto('/terms-of-use/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accepting the Terms' || t.startsWith('Accepting the Terms'))).toBeTruthy();
});
test('terms_of_use: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/terms-of-use/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('terms_of_use: nav link "Get Organized"', async ({ page }) => {
await page.goto('/terms-of-use/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('terms_of_use: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/terms-of-use/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('terms_of_use: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/terms-of-use/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - testimonials', () => {
test('testimonials: title matches GT', async ({ page }) => {
await page.goto('/testimonials/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('testimonials');
});
test('testimonials: h1 "Testimonials"', async ({ page }) => {
await page.goto('/testimonials/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Testimonials' || t.startsWith('Testimonials'))).toBeTruthy();
});
test('testimonials: h2 "Ready to see?"', async ({ page }) => {
await page.goto('/testimonials/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Ready to see?' || t.startsWith('Ready to see?'))).toBeTruthy();
});
test('testimonials: h3 "What our users say"', async ({ page }) => {
await page.goto('/testimonials/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What our users say' || t.startsWith('What our users say'))).toBeTruthy();
});
test('testimonials: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/testimonials/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('testimonials: nav link "Get Organized"', async ({ page }) => {
await page.goto('/testimonials/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('testimonials: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/testimonials/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('testimonials: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/testimonials/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - videos', () => {
test('videos: title matches GT', async ({ page }) => {
await page.goto('/videos/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('video and webinar hub');
});
test('videos: h2 "Explore our newest recordings "', async ({ page }) => {
await page.goto('/videos/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Explore our newest recordings and live sessions on accessibility, engineering, and more.' || t.startsWith('Explore our newest recordings and live sessions on accessibility, engineering, and more.'))).toBeTruthy();
});
test('videos: h2 "Ablira Café"', async ({ page }) => {
await page.goto('/videos/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Ablira Café' || t.startsWith('Ablira Café'))).toBeTruthy();
});
test('videos: h2 "Good Questions from Dana Rowe"', async ({ page }) => {
await page.goto('/videos/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Good Questions from Dana Rowe' || t.startsWith('Good Questions from Dana Rowe'))).toBeTruthy();
});
test('videos: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/videos/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('videos: nav link "Get Organized"', async ({ page }) => {
await page.goto('/videos/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('videos: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/videos/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('videos: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/videos/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - careers_backend_engineer_genai_team', () => {
test('careers_backend_engineer_genai_team: title matches GT', async ({ page }) => {
await page.goto('/careers/backend-engineer---genai-team/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('ablira, inc.');
});
test('careers_backend_engineer_genai_team: h1 "Backend Engineer - GenAI Group"', async ({ page }) => {
await page.goto('/careers/backend-engineer---genai-team/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Backend Engineer - GenAI Group' || t.startsWith('Backend Engineer - GenAI Group'))).toBeTruthy();
});
test('careers_backend_engineer_genai_team: h2 "Can\'t find what you are lookin"', async ({ page }) => {
await page.goto('/careers/backend-engineer---genai-team/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Can\'t find what you are looking for?' || t.startsWith('Can\'t find what you are looking for?'))).toBeTruthy();
});
test('careers_backend_engineer_genai_team: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/careers/backend-engineer---genai-team/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('careers_backend_engineer_genai_team: nav link "Get Organized"', async ({ page }) => {
await page.goto('/careers/backend-engineer---genai-team/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('careers_backend_engineer_genai_team: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/careers/backend-engineer---genai-team/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('careers_backend_engineer_genai_team: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/careers/backend-engineer---genai-team/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - careers_technical_account_manager', () => {
test('careers_technical_account_manager: title matches GT', async ({ page }) => {
await page.goto('/careers/technical-account-manager/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('ablira, inc.');
});
test('careers_technical_account_manager: h2 "Can\'t find what you are lookin"', async ({ page }) => {
await page.goto('/careers/technical-account-manager/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Can\'t find what you are looking for?' || t.startsWith('Can\'t find what you are looking for?'))).toBeTruthy();
});
test('careers_technical_account_manager: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/careers/technical-account-manager/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('careers_technical_account_manager: nav link "Get Organized"', async ({ page }) => {
await page.goto('/careers/technical-account-manager/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('careers_technical_account_manager: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/careers/technical-account-manager/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('careers_technical_account_manager: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/careers/technical-account-manager/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products_chatbot', () => {
test('products_chatbot: title matches GT', async ({ page }) => {
await page.goto('/products/chatbot/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('chatbot');
});
test('products_chatbot: h1 "The AI you\'ll adore."', async ({ page }) => {
await page.goto('/products/chatbot/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The AI you\'ll adore.' || t.startsWith('The AI you\'ll adore.'))).toBeTruthy();
});
test('products_chatbot: h2 "Chatbot"', async ({ page }) => {
await page.goto('/products/chatbot/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Chatbot' || t.startsWith('Chatbot'))).toBeTruthy();
});
test('products_chatbot: h2 "Beyond smart — it\'s smarter."', async ({ page }) => {
await page.goto('/products/chatbot/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Beyond smart — it\'s smarter.' || t.startsWith('Beyond smart — it\'s smarter.'))).toBeTruthy();
});
test('products_chatbot: h2 "Shaped to fit you"', async ({ page }) => {
await page.goto('/products/chatbot/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Shaped to fit you' || t.startsWith('Shaped to fit you'))).toBeTruthy();
});
test('products_chatbot: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/products/chatbot/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('products_chatbot: nav link "Get Organized"', async ({ page }) => {
await page.goto('/products/chatbot/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('products_chatbot: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/products/chatbot/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('products_chatbot: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/products/chatbot/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products_flow_analyzer_for_mobile', () => {
test('products_flow_analyzer_for_mobile: title matches GT', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('mobile flow analyzer');
});
test('products_flow_analyzer_for_mobile: h1 "If it runs on a device, you ca"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'If it runs on a device, you can scan it.' || t.startsWith('If it runs on a device, you can scan it.'))).toBeTruthy();
});
test('products_flow_analyzer_for_mobile: h2 "Mobile Flow Analyzer"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mobile Flow Analyzer' || t.startsWith('Mobile Flow Analyzer'))).toBeTruthy();
});
test('products_flow_analyzer_for_mobile: h2 "One tool, many platforms"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'One tool, many platforms' || t.startsWith('One tool, many platforms'))).toBeTruthy();
});
test('products_flow_analyzer_for_mobile: h2 "Know Where to Start"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Know Where to Start' || t.startsWith('Know Where to Start'))).toBeTruthy();
});
test('products_flow_analyzer_for_mobile: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('products_flow_analyzer_for_mobile: nav link "Get Organized"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('products_flow_analyzer_for_mobile: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('products_flow_analyzer_for_mobile: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products_how_it_fits_together', () => {
test('products_how_it_fits_together: title matches GT', async ({ page }) => {
await page.goto('/products/how-it-fits-together/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('how it all fits');
});
test('products_how_it_fits_together: h2 "Curious yet?"', async ({ page }) => {
await page.goto('/products/how-it-fits-together/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Curious yet?' || t.startsWith('Curious yet?'))).toBeTruthy();
});
test('products_how_it_fits_together: h3 "How it all comes together"', async ({ page }) => {
await page.goto('/products/how-it-fits-together/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How it all comes together' || t.startsWith('How it all comes together'))).toBeTruthy();
});
test('products_how_it_fits_together: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/products/how-it-fits-together/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('products_how_it_fits_together: nav link "Get Organized"', async ({ page }) => {
await page.goto('/products/how-it-fits-together/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('products_how_it_fits_together: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/products/how-it-fits-together/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('products_how_it_fits_together: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/products/how-it-fits-together/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products_mcp_tools', () => {
test('products_mcp_tools: title matches GT', async ({ page }) => {
await page.goto('/products/mcp-tools/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('mcp tools');
});
test('products_mcp_tools: h1 "The MCP muscle you want, right"', async ({ page }) => {
await page.goto('/products/mcp-tools/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The MCP muscle you want, right where you build.' || t.startsWith('The MCP muscle you want, right where you build.'))).toBeTruthy();
});
test('products_mcp_tools: h2 "MCP Tools"', async ({ page }) => {
await page.goto('/products/mcp-tools/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'MCP Tools' || t.startsWith('MCP Tools'))).toBeTruthy();
});
test('products_mcp_tools: h2 "AI that truly gets accessibili"', async ({ page }) => {
await page.goto('/products/mcp-tools/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'AI that truly gets accessibility' || t.startsWith('AI that truly gets accessibility'))).toBeTruthy();
});
test('products_mcp_tools: h2 "Two tools built to cut"', async ({ page }) => {
await page.goto('/products/mcp-tools/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Two tools built to cut' || t.startsWith('Two tools built to cut'))).toBeTruthy();
});
test('products_mcp_tools: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/products/mcp-tools/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('products_mcp_tools: nav link "Get Organized"', async ({ page }) => {
await page.goto('/products/mcp-tools/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('products_mcp_tools: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/products/mcp-tools/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('products_mcp_tools: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/products/mcp-tools/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products_site_scanner', () => {
test('products_site_scanner: title matches GT', async ({ page }) => {
await page.goto('/products/site-scanner/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('site scanner');
});
test('products_site_scanner: h1 "Site Scanner"', async ({ page }) => {
await page.goto('/products/site-scanner/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Site Scanner' || t.startsWith('Site Scanner'))).toBeTruthy();
});
test('products_site_scanner: h2 "A scanner built to do more"', async ({ page }) => {
await page.goto('/products/site-scanner/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'A scanner built to do more' || t.startsWith('A scanner built to do more'))).toBeTruthy();
});
test('products_site_scanner: h2 "The Problem"', async ({ page }) => {
await page.goto('/products/site-scanner/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The Problem' || t.startsWith('The Problem'))).toBeTruthy();
});
test('products_site_scanner: h2 "The Ablira Advantage"', async ({ page }) => {
await page.goto('/products/site-scanner/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The Ablira Advantage' || t.startsWith('The Ablira Advantage'))).toBeTruthy();
});
test('products_site_scanner: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/products/site-scanner/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('products_site_scanner: nav link "Get Organized"', async ({ page }) => {
await page.goto('/products/site-scanner/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('products_site_scanner: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/products/site-scanner/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('products_site_scanner: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/products/site-scanner/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products_unit_tester', () => {
test('products_unit_tester: title matches GT', async ({ page }) => {
await page.goto('/products/unit-tester/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('unit tester');
});
test('products_unit_tester: h1 "Flawless by default."', async ({ page }) => {
await page.goto('/products/unit-tester/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Flawless by default.' || t.startsWith('Flawless by default.'))).toBeTruthy();
});
test('products_unit_tester: h2 "Unit Tester"', async ({ page }) => {
await page.goto('/products/unit-tester/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Unit Tester' || t.startsWith('Unit Tester'))).toBeTruthy();
});
test('products_unit_tester: h2 "More reasons"', async ({ page }) => {
await page.goto('/products/unit-tester/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'More reasons' || t.startsWith('More reasons'))).toBeTruthy();
});
test('products_unit_tester: h2 "Heard enough?"', async ({ page }) => {
await page.goto('/products/unit-tester/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Heard enough?' || t.startsWith('Heard enough?'))).toBeTruthy();
});
test('products_unit_tester: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/products/unit-tester/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('products_unit_tester: nav link "Get Organized"', async ({ page }) => {
await page.goto('/products/unit-tester/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('products_unit_tester: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/products/unit-tester/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('products_unit_tester: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/products/unit-tester/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - videos_PLQcV7uz0oB708898m5Iz0gl5oK2ocVEKK', () => {
test('videos_PLQcV7uz0oB708898m5Iz0gl5oK2ocVEKK: title matches GT', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB708898m5Iz0gl5oK2ocVEKK/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sharp questions with dana reyes');
});
test('videos_PLQcV7uz0oB708898m5Iz0gl5oK2ocVEKK: h1 "Sharp Questions with Dana Reye"', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB708898m5Iz0gl5oK2ocVEKK/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sharp Questions with Dana Reyes' || t.startsWith('Sharp Questions with Dana Reyes'))).toBeTruthy();
});
test('videos_PLQcV7uz0oB708898m5Iz0gl5oK2ocVEKK: h2 "01 -- New Desk"', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB708898m5Iz0gl5oK2ocVEKK/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '01 -- "New Desk"' || t.startsWith('01 -- "New Desk"'))).toBeTruthy();
});
test('videos_PLQcV7uz0oB708898m5Iz0gl5oK2ocVEKK: h2 "02 -- Lunch Table"', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB708898m5Iz0gl5oK2ocVEKK/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '02 -- "Lunch Table"' || t.startsWith('02 -- "Lunch Table"'))).toBeTruthy();
});
test('videos_PLQcV7uz0oB708898m5Iz0gl5oK2ocVEKK: h2 "03 -- Phone Booth"', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB708898m5Iz0gl5oK2ocVEKK/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '03 -- "Phone Booth"' || t.startsWith('03 -- "Phone Booth"'))).toBeTruthy();
});
test('videos_PLQcV7uz0oB708898m5Iz0gl5oK2ocVEKK: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB708898m5Iz0gl5oK2ocVEKK/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('videos_PLQcV7uz0oB708898m5Iz0gl5oK2ocVEKK: nav link "Get Organized"', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB708898m5Iz0gl5oK2ocVEKK/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('videos_PLQcV7uz0oB708898m5Iz0gl5oK2ocVEKK: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB708898m5Iz0gl5oK2ocVEKK/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('videos_PLQcV7uz0oB708898m5Iz0gl5oK2ocVEKK: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB708898m5Iz0gl5oK2ocVEKK/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - videos_PLQcV7uz0oB71lUePIwysjZpYU8oGAWOgt', () => {
test('videos_PLQcV7uz0oB71lUePIwysjZpYU8oGAWOgt: title matches GT', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB71lUePIwysjZpYU8oGAWOgt/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('ablira studio');
});
test('videos_PLQcV7uz0oB71lUePIwysjZpYU8oGAWOgt: h1 "Ablira Studio"', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB71lUePIwysjZpYU8oGAWOgt/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Ablira Studio' || t.startsWith('Ablira Studio'))).toBeTruthy();
});
test('videos_PLQcV7uz0oB71lUePIwysjZpYU8oGAWOgt: h2 "01 -- Components & Why They Ma"', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB71lUePIwysjZpYU8oGAWOgt/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '01 -- Components & Why They Matter' || t.startsWith('01 -- Components & Why They Matter'))).toBeTruthy();
});
test('videos_PLQcV7uz0oB71lUePIwysjZpYU8oGAWOgt: h2 "02 -- Shifting Left, The Easy "', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB71lUePIwysjZpYU8oGAWOgt/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '02 -- Shifting Left, The Easy Way' || t.startsWith('02 -- Shifting Left, The Easy Way'))).toBeTruthy();
});
test('videos_PLQcV7uz0oB71lUePIwysjZpYU8oGAWOgt: h2 "03 -- Something Old, Something"', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB71lUePIwysjZpYU8oGAWOgt/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '03 -- Something Old, Something New' || t.startsWith('03 -- Something Old, Something New'))).toBeTruthy();
});
test('videos_PLQcV7uz0oB71lUePIwysjZpYU8oGAWOgt: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB71lUePIwysjZpYU8oGAWOgt/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('videos_PLQcV7uz0oB71lUePIwysjZpYU8oGAWOgt: nav link "Get Organized"', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB71lUePIwysjZpYU8oGAWOgt/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('videos_PLQcV7uz0oB71lUePIwysjZpYU8oGAWOgt: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB71lUePIwysjZpYU8oGAWOgt/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('videos_PLQcV7uz0oB71lUePIwysjZpYU8oGAWOgt: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB71lUePIwysjZpYU8oGAWOgt/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - videos_PLQcV7uz0oB726GUE7Z88ynMQk6cfeQMdB', () => {
test('videos_PLQcV7uz0oB726GUE7Z88ynMQk6cfeQMdB: title matches GT', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB726GUE7Z88ynMQk6cfeQMdB/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('a11y q&a');
});
test('videos_PLQcV7uz0oB726GUE7Z88ynMQk6cfeQMdB: h1 "A11y Q&A"', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB726GUE7Z88ynMQk6cfeQMdB/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'A11y Q&A' || t.startsWith('A11y Q&A'))).toBeTruthy();
});
test('videos_PLQcV7uz0oB726GUE7Z88ynMQk6cfeQMdB: h2 "01 - Getting a switch control"', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB726GUE7Z88ynMQk6cfeQMdB/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '01 - Getting a switch control' || t.startsWith('01 - Getting a switch control'))).toBeTruthy();
});
test('videos_PLQcV7uz0oB726GUE7Z88ynMQk6cfeQMdB: h2 "02 - Silent errors in the Web "', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB726GUE7Z88ynMQk6cfeQMdB/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '02 - Silent errors in the Web Flow Analyzer' || t.startsWith('02 - Silent errors in the Web Flow Analyzer'))).toBeTruthy();
});
test('videos_PLQcV7uz0oB726GUE7Z88ynMQk6cfeQMdB: h2 "03 - What’s the right way to a"', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB726GUE7Z88ynMQk6cfeQMdB/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '03 - What’s the right way to add an accessible name to svgs?' || t.startsWith('03 - What’s the right way to add an accessible name to svgs?'))).toBeTruthy();
});
test('videos_PLQcV7uz0oB726GUE7Z88ynMQk6cfeQMdB: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB726GUE7Z88ynMQk6cfeQMdB/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('videos_PLQcV7uz0oB726GUE7Z88ynMQk6cfeQMdB: nav link "Get Organized"', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB726GUE7Z88ynMQk6cfeQMdB/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('videos_PLQcV7uz0oB726GUE7Z88ynMQk6cfeQMdB: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB726GUE7Z88ynMQk6cfeQMdB/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('videos_PLQcV7uz0oB726GUE7Z88ynMQk6cfeQMdB: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB726GUE7Z88ynMQk6cfeQMdB/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - videos_PLQcV7uz0oB72ntzNddHuTCRDoZrWCFxRJ', () => {
test('videos_PLQcV7uz0oB72ntzNddHuTCRDoZrWCFxRJ: title matches GT', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB72ntzNddHuTCRDoZrWCFxRJ/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('voices from the field');
});
test('videos_PLQcV7uz0oB72ntzNddHuTCRDoZrWCFxRJ: h1 "Voices From the Field"', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB72ntzNddHuTCRDoZrWCFxRJ/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Voices From the Field' || t.startsWith('Voices From the Field'))).toBeTruthy();
});
test('videos_PLQcV7uz0oB72ntzNddHuTCRDoZrWCFxRJ: h2 "Northlane and Ablira"', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB72ntzNddHuTCRDoZrWCFxRJ/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Northlane and Ablira' || t.startsWith('Northlane and Ablira'))).toBeTruthy();
});
test('videos_PLQcV7uz0oB72ntzNddHuTCRDoZrWCFxRJ: h2 "Meridian Bank and Ablira"', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB72ntzNddHuTCRDoZrWCFxRJ/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Meridian Bank and Ablira' || t.startsWith('Meridian Bank and Ablira'))).toBeTruthy();
});
test('videos_PLQcV7uz0oB72ntzNddHuTCRDoZrWCFxRJ: h2 "Cloudspire and Ablira"', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB72ntzNddHuTCRDoZrWCFxRJ/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloudspire and Ablira' || t.startsWith('Cloudspire and Ablira'))).toBeTruthy();
});
test('videos_PLQcV7uz0oB72ntzNddHuTCRDoZrWCFxRJ: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB72ntzNddHuTCRDoZrWCFxRJ/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('videos_PLQcV7uz0oB72ntzNddHuTCRDoZrWCFxRJ: nav link "Get Organized"', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB72ntzNddHuTCRDoZrWCFxRJ/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('videos_PLQcV7uz0oB72ntzNddHuTCRDoZrWCFxRJ: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB72ntzNddHuTCRDoZrWCFxRJ/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('videos_PLQcV7uz0oB72ntzNddHuTCRDoZrWCFxRJ: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/videos/PLQcV7uz0oB72ntzNddHuTCRDoZrWCFxRJ/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products_debugger_product_documentation', () => {
test('products_debugger_product_documentation: title matches GT', async ({ page }) => {
await page.goto('/products/debugger/product-documentation/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('debugger manual');
});
test('products_debugger_product_documentation: h1 "Product Manual"', async ({ page }) => {
await page.goto('/products/debugger/product-documentation/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product Manual' || t.startsWith('Product Manual'))).toBeTruthy();
});
test('products_debugger_product_documentation: h2 "Debugger"', async ({ page }) => {
await page.goto('/products/debugger/product-documentation/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Debugger' || t.startsWith('Debugger'))).toBeTruthy();
});
test('products_debugger_product_documentation: h2 "Overview"', async ({ page }) => {
await page.goto('/products/debugger/product-documentation/');
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('products_debugger_product_documentation: h2 "Get started"', async ({ page }) => {
await page.goto('/products/debugger/product-documentation/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get started' || t.startsWith('Get started'))).toBeTruthy();
});
test('products_debugger_product_documentation: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/products/debugger/product-documentation/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('products_debugger_product_documentation: nav link "Get Organized"', async ({ page }) => {
await page.goto('/products/debugger/product-documentation/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('products_debugger_product_documentation: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/products/debugger/product-documentation/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('products_debugger_product_documentation: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/products/debugger/product-documentation/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products_flow_analyzer_for_mobile_product_documentation', () => {
test('products_flow_analyzer_for_mobile_product_documentation: title matches GT', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('mobile flow analyzer reference guide');
});
test('products_flow_analyzer_for_mobile_product_documentation: h1 "Product Manual"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product Manual' || t.startsWith('Product Manual'))).toBeTruthy();
});
test('products_flow_analyzer_for_mobile_product_documentation: h2 "Mobile Flow Analyzer"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mobile Flow Analyzer' || t.startsWith('Mobile Flow Analyzer'))).toBeTruthy();
});
test('products_flow_analyzer_for_mobile_product_documentation: h3 "Step-by-Step Guides"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Step-by-Step Guides' || t.startsWith('Step-by-Step Guides'))).toBeTruthy();
});
test('products_flow_analyzer_for_mobile_product_documentation: h4 "Auditing Native Apps"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/');
const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Auditing Native Apps' || t.startsWith('Auditing Native Apps'))).toBeTruthy();
});
test('products_flow_analyzer_for_mobile_product_documentation: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('products_flow_analyzer_for_mobile_product_documentation: nav link "Get Organized"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('products_flow_analyzer_for_mobile_product_documentation: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('products_flow_analyzer_for_mobile_product_documentation: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products_flow_analyzer_for_web_product_documentation', () => {
test('products_flow_analyzer_for_web_product_documentation: title matches GT', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-web/product-documentation/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('web flow analyzer user guide');
});
test('products_flow_analyzer_for_web_product_documentation: h1 "Help Guide"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-web/product-documentation/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Help Guide' || t.startsWith('Help Guide'))).toBeTruthy();
});
test('products_flow_analyzer_for_web_product_documentation: h2 "Web Flow Analyzer"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-web/product-documentation/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Web Flow Analyzer' || t.startsWith('Web Flow Analyzer'))).toBeTruthy();
});
test('products_flow_analyzer_for_web_product_documentation: h2 "Introduction"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-web/product-documentation/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Introduction' || t.startsWith('Introduction'))).toBeTruthy();
});
test('products_flow_analyzer_for_web_product_documentation: h2 "Getting Started"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-web/product-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('products_flow_analyzer_for_web_product_documentation: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-web/product-documentation/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('products_flow_analyzer_for_web_product_documentation: nav link "Get Organized"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-web/product-documentation/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('products_flow_analyzer_for_web_product_documentation: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-web/product-documentation/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('products_flow_analyzer_for_web_product_documentation: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-web/product-documentation/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products_flow_analyzer_for_web_video_training', () => {
test('products_flow_analyzer_for_web_video_training: title matches GT', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-web/video-training/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('flow analyzer for web, video training');
});
test('products_flow_analyzer_for_web_video_training: h1 "Flow Analyzer for Web"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-web/video-training/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Flow Analyzer for Web' || t.startsWith('Flow Analyzer for Web'))).toBeTruthy();
});
test('products_flow_analyzer_for_web_video_training: h2 "Video Training"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-web/video-training/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Video Training' || t.startsWith('Video Training'))).toBeTruthy();
});
test('products_flow_analyzer_for_web_video_training: h2 "Start Here"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-web/video-training/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Start Here' || t.startsWith('Start Here'))).toBeTruthy();
});
test('products_flow_analyzer_for_web_video_training: h2 "Training 0 1 The basics"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-web/video-training/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Training 0 1 The basics' || t.startsWith('Training 0 1 The basics'))).toBeTruthy();
});
test('products_flow_analyzer_for_web_video_training: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-web/video-training/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('products_flow_analyzer_for_web_video_training: nav link "Get Organized"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-web/video-training/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('products_flow_analyzer_for_web_video_training: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-web/video-training/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('products_flow_analyzer_for_web_video_training: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-web/video-training/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products_site_scanner_product_documentation', () => {
test('products_site_scanner_product_documentation: title matches GT', async ({ page }) => {
await page.goto('/products/site-scanner/product-documentation/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('site scanner product guide');
});
test('products_site_scanner_product_documentation: h1 "Product Manual"', async ({ page }) => {
await page.goto('/products/site-scanner/product-documentation/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product Manual' || t.startsWith('Product Manual'))).toBeTruthy();
});
test('products_site_scanner_product_documentation: h2 "Site Scanner"', async ({ page }) => {
await page.goto('/products/site-scanner/product-documentation/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Site Scanner' || t.startsWith('Site Scanner'))).toBeTruthy();
});
test('products_site_scanner_product_documentation: h2 "Setting Up a Property"', async ({ page }) => {
await page.goto('/products/site-scanner/product-documentation/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Setting Up a Property' || t.startsWith('Setting Up a Property'))).toBeTruthy();
});
test('products_site_scanner_product_documentation: h2 "Advanced Options"', async ({ page }) => {
await page.goto('/products/site-scanner/product-documentation/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Advanced Options' || t.startsWith('Advanced Options'))).toBeTruthy();
});
test('products_site_scanner_product_documentation: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/products/site-scanner/product-documentation/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('products_site_scanner_product_documentation: nav link "Get Organized"', async ({ page }) => {
await page.goto('/products/site-scanner/product-documentation/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('products_site_scanner_product_documentation: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/products/site-scanner/product-documentation/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('products_site_scanner_product_documentation: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/products/site-scanner/product-documentation/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products_site_scanner_trial_signup', () => {
test('products_site_scanner_trial_signup: title matches GT', async ({ page }) => {
await page.goto('/products/site-scanner/trial-signup/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('start your site scanner');
});
test('products_site_scanner_trial_signup: h1 "Enroll"', async ({ page }) => {
await page.goto('/products/site-scanner/trial-signup/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Enroll' || t.startsWith('Enroll'))).toBeTruthy();
});
test('products_site_scanner_trial_signup: h2 "Site Scanner - Try It Free"', async ({ page }) => {
await page.goto('/products/site-scanner/trial-signup/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Site Scanner - Try It Free' || t.startsWith('Site Scanner - Try It Free'))).toBeTruthy();
});
test('products_site_scanner_trial_signup: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/products/site-scanner/trial-signup/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('products_site_scanner_trial_signup: nav link "Get Organized"', async ({ page }) => {
await page.goto('/products/site-scanner/trial-signup/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('products_site_scanner_trial_signup: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/products/site-scanner/trial-signup/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('products_site_scanner_trial_signup: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/products/site-scanner/trial-signup/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products_site_scanner_video_training', () => {
test('products_site_scanner_video_training: title matches GT', async ({ page }) => {
await page.goto('/products/site-scanner/video-training/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('site scanner video training');
});
test('products_site_scanner_video_training: h1 "Training"', async ({ page }) => {
await page.goto('/products/site-scanner/video-training/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Training' || t.startsWith('Training'))).toBeTruthy();
});
test('products_site_scanner_video_training: h2 "Site Scanner"', async ({ page }) => {
await page.goto('/products/site-scanner/video-training/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Site Scanner' || t.startsWith('Site Scanner'))).toBeTruthy();
});
test('products_site_scanner_video_training: h2 "Before You Begin"', async ({ page }) => {
await page.goto('/products/site-scanner/video-training/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Before You Begin' || t.startsWith('Before You Begin'))).toBeTruthy();
});
test('products_site_scanner_video_training: h2 "Training 0 1 Setup"', async ({ page }) => {
await page.goto('/products/site-scanner/video-training/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Training 0 1 Setup' || t.startsWith('Training 0 1 Setup'))).toBeTruthy();
});
test('products_site_scanner_video_training: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/products/site-scanner/video-training/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('products_site_scanner_video_training: nav link "Get Organized"', async ({ page }) => {
await page.goto('/products/site-scanner/video-training/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('products_site_scanner_video_training: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/products/site-scanner/video-training/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('products_site_scanner_video_training: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/products/site-scanner/video-training/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products_flow_analyzer_for_mobile_product_documentation_android_connection_guide', () => {
test('products_flow_analyzer_for_mobile_product_documentation_android_connection_guide: title matches GT', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/android-connection-guide/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('android pairing guide');
});
test('products_flow_analyzer_for_mobile_product_documentation_android_connection_guide: h1 "Flow Analyzer for Mobile"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/android-connection-guide/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Flow Analyzer for Mobile' || t.startsWith('Flow Analyzer for Mobile'))).toBeTruthy();
});
test('products_flow_analyzer_for_mobile_product_documentation_android_connection_guide: h2 "Android Pairing Guide"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/android-connection-guide/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Android Pairing Guide' || t.startsWith('Android Pairing Guide'))).toBeTruthy();
});
test('products_flow_analyzer_for_mobile_product_documentation_android_connection_guide: h2 "Overview"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/android-connection-guide/');
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('products_flow_analyzer_for_mobile_product_documentation_android_connection_guide: h2 "Connect Wired (via ADB)"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/android-connection-guide/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Connect Wired (via ADB)' || t.startsWith('Connect Wired (via ADB)'))).toBeTruthy();
});
test('products_flow_analyzer_for_mobile_product_documentation_android_connection_guide: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/android-connection-guide/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('products_flow_analyzer_for_mobile_product_documentation_android_connection_guide: nav link "Get Organized"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/android-connection-guide/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('products_flow_analyzer_for_mobile_product_documentation_android_connection_guide: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/android-connection-guide/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('products_flow_analyzer_for_mobile_product_documentation_android_connection_guide: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/android-connection-guide/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products_flow_analyzer_for_mobile_product_documentation_ios_connection_guide', () => {
test('products_flow_analyzer_for_mobile_product_documentation_ios_connection_guide: title matches GT', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/ios-connection-guide/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('ios connection guide');
});
test('products_flow_analyzer_for_mobile_product_documentation_ios_connection_guide: h1 "Mobile Flow Analyzer"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/ios-connection-guide/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mobile Flow Analyzer' || t.startsWith('Mobile Flow Analyzer'))).toBeTruthy();
});
test('products_flow_analyzer_for_mobile_product_documentation_ios_connection_guide: h2 "iOS Connection Guide"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/ios-connection-guide/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'iOS Connection Guide' || t.startsWith('iOS Connection Guide'))).toBeTruthy();
});
test('products_flow_analyzer_for_mobile_product_documentation_ios_connection_guide: h2 "Overview"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/ios-connection-guide/');
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('products_flow_analyzer_for_mobile_product_documentation_ios_connection_guide: h2 "Prepare Your Setup"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/ios-connection-guide/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Prepare Your Setup' || t.startsWith('Prepare Your Setup'))).toBeTruthy();
});
test('products_flow_analyzer_for_mobile_product_documentation_ios_connection_guide: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/ios-connection-guide/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('products_flow_analyzer_for_mobile_product_documentation_ios_connection_guide: nav link "Get Organized"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/ios-connection-guide/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('products_flow_analyzer_for_mobile_product_documentation_ios_connection_guide: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/ios-connection-guide/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('products_flow_analyzer_for_mobile_product_documentation_ios_connection_guide: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/ios-connection-guide/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products_flow_analyzer_for_mobile_product_documentation_overview_and_setup', () => {
test('products_flow_analyzer_for_mobile_product_documentation_overview_and_setup: title matches GT', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/overview-and-setup/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('mobile flow analyzer user guide');
});
test('products_flow_analyzer_for_mobile_product_documentation_overview_and_setup: h1 "Mobile Flow Analyzer"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/overview-and-setup/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mobile Flow Analyzer' || t.startsWith('Mobile Flow Analyzer'))).toBeTruthy();
});
test('products_flow_analyzer_for_mobile_product_documentation_overview_and_setup: h2 "Setup Guide"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/overview-and-setup/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Setup Guide' || t.startsWith('Setup Guide'))).toBeTruthy();
});
test('products_flow_analyzer_for_mobile_product_documentation_overview_and_setup: h2 "Installation"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/overview-and-setup/');
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('products_flow_analyzer_for_mobile_product_documentation_overview_and_setup: h2 "Inside the app"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/overview-and-setup/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Inside the app' || t.startsWith('Inside the app'))).toBeTruthy();
});
test('products_flow_analyzer_for_mobile_product_documentation_overview_and_setup: nav link "Find More Bugs"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/overview-and-setup/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find More Bugs' || t.startsWith('Find More Bugs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('find-more-bugs')), 'href fragment present').toBeTruthy();
});
test('products_flow_analyzer_for_mobile_product_documentation_overview_and_setup: nav link "Get Organized"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/overview-and-setup/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get Organized' || t.startsWith('Get Organized')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('get-organized')), 'href fragment present').toBeTruthy();
});
test('products_flow_analyzer_for_mobile_product_documentation_overview_and_setup: nav link "Stay In Control"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/overview-and-setup/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stay In Control' || t.startsWith('Stay In Control')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('stay-in-control')), 'href fragment present').toBeTruthy();
});
test('products_flow_analyzer_for_mobile_product_documentation_overview_and_setup: nav link "Easy Integration"', async ({ page }) => {
await page.goto('/products/flow-analyzer-for-mobile/product-documentation/overview-and-setup/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Easy Integration' || t.startsWith('Easy Integration')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('easy-integration')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Routing', () => {
test('navigate to find_more_bugs via "Catch More Flaws"', async ({ page }) => {
await page.goto('/');
const link = page.locator('a[href*="find-more-bugs"]').first();
expect(await link.count(), 'nav link to find_more_bugs exists').toBeGreaterThan(0);
await link.click();
await page.waitForTimeout(1200);
expect(page.url().toLowerCase(), 'URL changed to destination').toContain('find-more-bugs');
const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' ');
expect(bodyText, 'destination distinctive content shown').toContain('Find More Bugs');
});
test('navigate to get_organized via "Get It Sorted"', async ({ page }) => {
await page.goto('/');
const link = page.locator('a[href*="get-organized"]').first();
expect(await link.count(), 'nav link to get_organized exists').toBeGreaterThan(0);
await link.click();
await page.waitForTimeout(1200);
expect(page.url().toLowerCase(), 'URL changed to destination').toContain('get-organized');
const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' ');
expect(bodyText, 'destination distinctive content shown').toContain('Get Organized');
});
test('navigate to stay_in_control via "Stay In Command"', async ({ page }) => {
await page.goto('/');
const link = page.locator('a[href*="stay-in-control"]').first();
expect(await link.count(), 'nav link to stay_in_control exists').toBeGreaterThan(0);
await link.click();
await page.waitForTimeout(1200);
expect(page.url().toLowerCase(), 'URL changed to destination').toContain('stay-in-control');
const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' ');
expect(bodyText, 'destination distinctive content shown').toContain('Stay In Control');
});
});