RecreationBench / web /inclura.example /tests /static /structure.scripted.spec.ts
VoyagerXHF's picture
Upload folder using huggingface_hub (part 42)
8495bdc verified
Raw History Blame Contribute Delete
130 kB
import { test, expect } from '@playwright/test';
test.describe('Structural - homepage', () => {
test('homepage: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('homepage: heading hierarchy is valid', async ({ page }) => {
await page.goto('/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('homepage: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - about', () => {
test('about: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/about/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('about: heading hierarchy is valid', async ({ page }) => {
await page.goto('/about/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('about: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/about/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - accessflow', () => {
test('accessflow: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/accessflow/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('accessflow: heading hierarchy is valid', async ({ page }) => {
await page.goto('/accessflow/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('accessflow: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/accessflow/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - inclura_alternatives', () => {
test('inclura_alternatives: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/inclura-alternatives/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('inclura_alternatives: heading hierarchy is valid', async ({ page }) => {
await page.goto('/inclura-alternatives/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('inclura_alternatives: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/inclura-alternatives/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - accessibility_interface', () => {
test('accessibility_interface: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/accessibility-interface/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('accessibility_interface: heading hierarchy is valid', async ({ page }) => {
await page.goto('/accessibility-interface/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('accessibility_interface: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/accessibility-interface/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - accessscan', () => {
test('accessscan: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/accessscan/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('accessscan: heading hierarchy is valid', async ({ page }) => {
await page.goto('/accessscan/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('accessscan: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/accessscan/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - accessservices', () => {
test('accessservices: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/accessservices/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('accessservices: heading hierarchy is valid', async ({ page }) => {
await page.goto('/accessservices/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('accessservices: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/accessservices/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - accesswidget', () => {
test('accesswidget: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/accesswidget/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('accesswidget: heading hierarchy is valid', async ({ page }) => {
await page.goto('/accesswidget/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('accesswidget: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/accesswidget/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - artificial_intelligence', () => {
test('artificial_intelligence: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/artificial-intelligence/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('artificial_intelligence: heading hierarchy is valid', async ({ page }) => {
await page.goto('/artificial-intelligence/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('artificial_intelligence: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/artificial-intelligence/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - careers', () => {
test('careers: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/careers/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('careers: heading hierarchy is valid', async ({ page }) => {
await page.goto('/careers/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('careers: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/careers/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - case_studies', () => {
test('case_studies: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/case-studies/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('case_studies: heading hierarchy is valid', async ({ page }) => {
await page.goto('/case-studies/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('case_studies: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/case-studies/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - compliance', () => {
test('compliance: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/compliance/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('compliance: heading hierarchy is valid', async ({ page }) => {
await page.goto('/compliance/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('compliance: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/compliance/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - enterprise', () => {
test('enterprise: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/enterprise/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('enterprise: heading hierarchy is valid', async ({ page }) => {
await page.goto('/enterprise/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('enterprise: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/enterprise/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - expert_audit', () => {
test('expert_audit: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/expert-audit/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('expert_audit: heading hierarchy is valid', async ({ page }) => {
await page.goto('/expert-audit/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('expert_audit: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/expert-audit/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - glossary', () => {
test('glossary: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/glossary/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('glossary: heading hierarchy is valid', async ({ page }) => {
await page.goto('/glossary/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('glossary: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/glossary/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - industry', () => {
test('industry: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/industry/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('industry: heading hierarchy is valid', async ({ page }) => {
await page.goto('/industry/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('industry: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/industry/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - industry_reports', () => {
test('industry_reports: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/industry-reports/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('industry_reports: heading hierarchy is valid', async ({ page }) => {
await page.goto('/industry-reports/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('industry_reports: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/industry-reports/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - integrations', () => {
test('integrations: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/integrations/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('integrations: heading hierarchy is valid', async ({ page }) => {
await page.goto('/integrations/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('integrations: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/integrations/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - litigation_support', () => {
test('litigation_support: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/litigation-support/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('litigation_support: heading hierarchy is valid', async ({ page }) => {
await page.goto('/litigation-support/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('litigation_support: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/litigation-support/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - mid_market', () => {
test('mid_market: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/mid-market/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('mid_market: heading hierarchy is valid', async ({ page }) => {
await page.goto('/mid-market/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('mid_market: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/mid-market/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - partners', () => {
test('partners: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/partners/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('partners: heading hierarchy is valid', async ({ page }) => {
await page.goto('/partners/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('partners: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/partners/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - security', () => {
test('security: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/security/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('security: heading hierarchy is valid', async ({ page }) => {
await page.goto('/security/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('security: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/security/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - small_business', () => {
test('small_business: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/small-business/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('small_business: heading hierarchy is valid', async ({ page }) => {
await page.goto('/small-business/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('small_business: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/small-business/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - terms_of_service', () => {
test('terms_of_service: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/terms-of-service/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('terms_of_service: heading hierarchy is valid', async ({ page }) => {
await page.goto('/terms-of-service/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('terms_of_service: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/terms-of-service/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - user_testing', () => {
test('user_testing: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/user-testing/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('user_testing: heading hierarchy is valid', async ({ page }) => {
await page.goto('/user-testing/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('user_testing: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/user-testing/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - vpat', () => {
test('vpat: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/vpat/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('vpat: heading hierarchy is valid', async ({ page }) => {
await page.goto('/vpat/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('vpat: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/vpat/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - partners_nonprofit', () => {
test('partners_nonprofit: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/partners/nonprofit/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('partners_nonprofit: heading hierarchy is valid', async ({ page }) => {
await page.goto('/partners/nonprofit/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('partners_nonprofit: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/partners/nonprofit/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - partners_strategic', () => {
test('partners_strategic: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/partners/strategic/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('partners_strategic: heading hierarchy is valid', async ({ page }) => {
await page.goto('/partners/strategic/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('partners_strategic: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/partners/strategic/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - pricing_accesswidget', () => {
test('pricing_accesswidget: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/pricing/accesswidget/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('pricing_accesswidget: heading hierarchy is valid', async ({ page }) => {
await page.goto('/pricing/accesswidget/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('pricing_accesswidget: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/pricing/accesswidget/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_inclura_and_vgm_forbin', () => {
test('blog_knowledgebase_inclura_and_vgm_forbin: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/inclura-and-vgm-forbin/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_inclura_and_vgm_forbin: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/inclura-and-vgm-forbin/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_inclura_and_vgm_forbin: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/inclura-and-vgm-forbin/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_accessibility_is_a_practice_now_is_the_time_to_prove_it', () => {
test('blog_knowledgebase_accessibility_is_a_practice_now_is_the_time_to_prove_it: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/accessibility-is-a-practice-now-is-the-time-to-prove-it/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_accessibility_is_a_practice_now_is_the_time_to_prove_it: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/accessibility-is-a-practice-now-is-the-time-to-prove-it/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_accessibility_is_a_practice_now_is_the_time_to_prove_it: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/accessibility-is-a-practice-now-is-the-time-to-prove-it/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_ada_title_ii_deadline_extended_government_agencies', () => {
test('blog_knowledgebase_ada_title_ii_deadline_extended_government_agencies: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/ada-title-ii-deadline-extended-government-agencies/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_ada_title_ii_deadline_extended_government_agencies: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/ada-title-ii-deadline-extended-government-agencies/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_ada_title_ii_deadline_extended_government_agencies: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/ada-title-ii-deadline-extended-government-agencies/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_ada_title_ii_deadline_extended_what_this_means_for_public_colleges_and_universities', () => {
test('blog_knowledgebase_ada_title_ii_deadline_extended_what_this_means_for_public_colleges_and_universities: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/ada-title-ii-deadline-extended-what-this-means-for-public-colleges-and-universities/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_ada_title_ii_deadline_extended_what_this_means_for_public_colleges_and_universities: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/ada-title-ii-deadline-extended-what-this-means-for-public-colleges-and-universities/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_ada_title_ii_deadline_extended_what_this_means_for_public_colleges_and_universities: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/ada-title-ii-deadline-extended-what-this-means-for-public-colleges-and-universities/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_announce_your_commitment_with_a_pr', () => {
test('blog_knowledgebase_announce_your_commitment_with_a_pr: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/announce-your-commitment-with-a-pr/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_announce_your_commitment_with_a_pr: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/announce-your-commitment-with-a-pr/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_announce_your_commitment_with_a_pr: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/announce-your-commitment-with-a-pr/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_building_title_ii_defensibility_into_your_procurement_process_2', () => {
test('blog_knowledgebase_building_title_ii_defensibility_into_your_procurement_process_2: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/building-title-ii-defensibility-into-your-procurement-process-2/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_building_title_ii_defensibility_into_your_procurement_process_2: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/building-title-ii-defensibility-into-your-procurement-process-2/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_building_title_ii_defensibility_into_your_procurement_process_2: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/building-title-ii-defensibility-into-your-procurement-process-2/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_from_input_to_impact_reflections_for_global_accessibility_awareness_day', () => {
test('blog_knowledgebase_from_input_to_impact_reflections_for_global_accessibility_awareness_day: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/from-input-to-impact-reflections-for-global-accessibility-awareness-day/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_from_input_to_impact_reflections_for_global_accessibility_awareness_day: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/from-input-to-impact-reflections-for-global-accessibility-awareness-day/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_from_input_to_impact_reflections_for_global_accessibility_awareness_day: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/from-input-to-impact-reflections-for-global-accessibility-awareness-day/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_hhs_extends_the_section_504_deadline_what_healthcare_organizations_need_to_know', () => {
test('blog_knowledgebase_hhs_extends_the_section_504_deadline_what_healthcare_organizations_need_to_know: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/hhs-extends-the-section-504-deadline-what-healthcare-organizations-need-to-know/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_hhs_extends_the_section_504_deadline_what_healthcare_organizations_need_to_know: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/hhs-extends-the-section-504-deadline-what-healthcare-organizations-need-to-know/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_hhs_extends_the_section_504_deadline_what_healthcare_organizations_need_to_know: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/hhs-extends-the-section-504-deadline-what-healthcare-organizations-need-to-know/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_how_higher_education_institutions_evaluate_vendors', () => {
test('blog_knowledgebase_how_higher_education_institutions_evaluate_vendors: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/how-higher-education-institutions-evaluate-vendors/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_how_higher_education_institutions_evaluate_vendors: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/how-higher-education-institutions-evaluate-vendors/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_how_higher_education_institutions_evaluate_vendors: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/how-higher-education-institutions-evaluate-vendors/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_how_to_build_the_case_for_accessibility', () => {
test('blog_knowledgebase_how_to_build_the_case_for_accessibility: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/how-to-build-the-case-for-accessibility/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_how_to_build_the_case_for_accessibility: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/how-to-build-the-case-for-accessibility/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_how_to_build_the_case_for_accessibility: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/how-to-build-the-case-for-accessibility/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_listening_and_evolving_reflections_on_a_year_of_the_product_advisory_board', () => {
test('blog_knowledgebase_listening_and_evolving_reflections_on_a_year_of_the_product_advisory_board: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/listening-and-evolving-reflections-on-a-year-of-the-product-advisory-board/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_listening_and_evolving_reflections_on_a_year_of_the_product_advisory_board: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/listening-and-evolving-reflections-on-a-year-of-the-product-advisory-board/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_listening_and_evolving_reflections_on_a_year_of_the_product_advisory_board: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/listening-and-evolving-reflections-on-a-year-of-the-product-advisory-board/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_live_event_build_accessible_brand', () => {
test('blog_knowledgebase_live_event_build_accessible_brand: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/live-event-build-accessible-brand/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_live_event_build_accessible_brand: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/live-event-build-accessible-brand/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_live_event_build_accessible_brand: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/live-event-build-accessible-brand/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_mobile_first_campuses_title_ii_level_risk', () => {
test('blog_knowledgebase_mobile_first_campuses_title_ii_level_risk: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/mobile-first-campuses-title-ii-level-risk/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_mobile_first_campuses_title_ii_level_risk: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/mobile-first-campuses-title-ii-level-risk/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_mobile_first_campuses_title_ii_level_risk: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/mobile-first-campuses-title-ii-level-risk/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_older_adults_profile_accesswidget', () => {
test('blog_knowledgebase_older_adults_profile_accesswidget: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/older-adults-profile-accesswidget/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_older_adults_profile_accesswidget: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/older-adults-profile-accesswidget/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_older_adults_profile_accesswidget: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/older-adults-profile-accesswidget/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_online_document_accessibility_the_quietest_title_ii_risk_with_the_biggest_public_impact_in_higher_education', () => {
test('blog_knowledgebase_online_document_accessibility_the_quietest_title_ii_risk_with_the_biggest_public_impact_in_higher_education: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/online-document-accessibility-the-quietest-title-ii-risk-with-the-biggest-public-impact-in-higher-education/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_online_document_accessibility_the_quietest_title_ii_risk_with_the_biggest_public_impact_in_higher_education: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/online-document-accessibility-the-quietest-title-ii-risk-with-the-biggest-public-impact-in-higher-education/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_online_document_accessibility_the_quietest_title_ii_risk_with_the_biggest_public_impact_in_higher_education: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/online-document-accessibility-the-quietest-title-ii-risk-with-the-biggest-public-impact-in-higher-education/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_online_documents_the_quietest_title_ii_risk', () => {
test('blog_knowledgebase_online_documents_the_quietest_title_ii_risk: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/online-documents-the-quietest-title-ii-risk/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_online_documents_the_quietest_title_ii_risk: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/online-documents-the-quietest-title-ii-risk/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_online_documents_the_quietest_title_ii_risk: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/online-documents-the-quietest-title-ii-risk/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_practical_roadmap_to_ada_title_ii_readiness_for_government_agencies', () => {
test('blog_knowledgebase_practical_roadmap_to_ada_title_ii_readiness_for_government_agencies: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/practical-roadmap-to-ada-title-ii-readiness-for-government-agencies/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_practical_roadmap_to_ada_title_ii_readiness_for_government_agencies: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/practical-roadmap-to-ada-title-ii-readiness-for-government-agencies/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_practical_roadmap_to_ada_title_ii_readiness_for_government_agencies: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/practical-roadmap-to-ada-title-ii-readiness-for-government-agencies/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_screen_reader_guide', () => {
test('blog_knowledgebase_screen_reader_guide: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/screen-reader-guide/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_screen_reader_guide: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/screen-reader-guide/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_screen_reader_guide: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/screen-reader-guide/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_section_504_action_plan_for_healthcare_organizations', () => {
test('blog_knowledgebase_section_504_action_plan_for_healthcare_organizations: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/section-504-action-plan-for-healthcare-organizations/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_section_504_action_plan_for_healthcare_organizations: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/section-504-action-plan-for-healthcare-organizations/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_section_504_action_plan_for_healthcare_organizations: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/section-504-action-plan-for-healthcare-organizations/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_section_504_in_healthcare_is_your_compliance_plan_defensible', () => {
test('blog_knowledgebase_section_504_in_healthcare_is_your_compliance_plan_defensible: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/section-504-in-healthcare-is-your-compliance-plan-defensible/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_section_504_in_healthcare_is_your_compliance_plan_defensible: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/section-504-in-healthcare-is-your-compliance-plan-defensible/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_section_504_in_healthcare_is_your_compliance_plan_defensible: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/section-504-in-healthcare-is-your-compliance-plan-defensible/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_section_504_requirements_from_healthcare_organizations', () => {
test('blog_knowledgebase_section_504_requirements_from_healthcare_organizations: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/section-504-requirements-from-healthcare-organizations/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_section_504_requirements_from_healthcare_organizations: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/section-504-requirements-from-healthcare-organizations/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_section_504_requirements_from_healthcare_organizations: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/section-504-requirements-from-healthcare-organizations/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_section_504_vendors_accessibility', () => {
test('blog_knowledgebase_section_504_vendors_accessibility: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/section-504-vendors-accessibility/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_section_504_vendors_accessibility: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/section-504-vendors-accessibility/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_section_504_vendors_accessibility: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/section-504-vendors-accessibility/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_the_section_504_accessibility_gap_in_healthcare', () => {
test('blog_knowledgebase_the_section_504_accessibility_gap_in_healthcare: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/the-section-504-accessibility-gap-in-healthcare/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_the_section_504_accessibility_gap_in_healthcare: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/the-section-504-accessibility-gap-in-healthcare/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_the_section_504_accessibility_gap_in_healthcare: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/the-section-504-accessibility-gap-in-healthcare/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_the_web_got_harder_to_navigate_this_year', () => {
test('blog_knowledgebase_the_web_got_harder_to_navigate_this_year: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/the-web-got-harder-to-navigate-this-year/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_the_web_got_harder_to_navigate_this_year: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/the-web-got-harder-to-navigate-this-year/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_the_web_got_harder_to_navigate_this_year: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/the-web-got-harder-to-navigate-this-year/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_title_ii_decision_tree_for_higher_education', () => {
test('blog_knowledgebase_title_ii_decision_tree_for_higher_education: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/title-ii-decision-tree-for-higher-education/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_title_ii_decision_tree_for_higher_education: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/title-ii-decision-tree-for-higher-education/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_title_ii_decision_tree_for_higher_education: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/title-ii-decision-tree-for-higher-education/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_title_ii_defensible_procurement_for_public_colleges_and_universities', () => {
test('blog_knowledgebase_title_ii_defensible_procurement_for_public_colleges_and_universities: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/title-ii-defensible-procurement-for-public-colleges-and-universities/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_title_ii_defensible_procurement_for_public_colleges_and_universities: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/title-ii-defensible-procurement-for-public-colleges-and-universities/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_title_ii_defensible_procurement_for_public_colleges_and_universities: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/title-ii-defensible-procurement-for-public-colleges-and-universities/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_title_ii_document_readiness_checklist_for_higher_education', () => {
test('blog_knowledgebase_title_ii_document_readiness_checklist_for_higher_education: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/title-ii-document-readiness-checklist-for-higher-education/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_title_ii_document_readiness_checklist_for_higher_education: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/title-ii-document-readiness-checklist-for-higher-education/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_title_ii_document_readiness_checklist_for_higher_education: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/title-ii-document-readiness-checklist-for-higher-education/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_understanding_title_ii_for_higher_education', () => {
test('blog_knowledgebase_understanding_title_ii_for_higher_education: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/understanding-title-ii-for-higher-education/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_understanding_title_ii_for_higher_education: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/understanding-title-ii-for-higher-education/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_understanding_title_ii_for_higher_education: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/understanding-title-ii-for-higher-education/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_understanding_title_ii_for_public_entities', () => {
test('blog_knowledgebase_understanding_title_ii_for_public_entities: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/understanding-title-ii-for-public-entities/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_understanding_title_ii_for_public_entities: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/understanding-title-ii-for-public-entities/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_understanding_title_ii_for_public_entities: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/understanding-title-ii-for-public-entities/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_web_accessibility_for_spinal_cord_injury_community', () => {
test('blog_knowledgebase_web_accessibility_for_spinal_cord_injury_community: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/web-accessibility-for-spinal-cord-injury-community/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_web_accessibility_for_spinal_cord_injury_community: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/web-accessibility-for-spinal-cord-injury-community/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_web_accessibility_for_spinal_cord_injury_community: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/web-accessibility-for-spinal-cord-injury-community/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_web_accessibility_from_the_perspective_of_blind_and_low_vision_veterans', () => {
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_blind_and_low_vision_veterans: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-blind-and-low-vision-veterans/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_blind_and_low_vision_veterans: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-blind-and-low-vision-veterans/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_blind_and_low_vision_veterans: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-blind-and-low-vision-veterans/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_web_accessibility_from_the_perspective_of_people_advocating_for_cognitive_inclusion', () => {
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_people_advocating_for_cognitive_inclusion: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-people-advocating-for-cognitive-inclusion/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_people_advocating_for_cognitive_inclusion: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-people-advocating-for-cognitive-inclusion/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_people_advocating_for_cognitive_inclusion: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-people-advocating-for-cognitive-inclusion/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_web_accessibility_from_the_perspective_of_people_building_inclusive_communities', () => {
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_people_building_inclusive_communities: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-people-building-inclusive-communities/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_people_building_inclusive_communities: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-people-building-inclusive-communities/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_people_building_inclusive_communities: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-people-building-inclusive-communities/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_web_accessibility_from_the_perspective_of_people_living_with_parkinsons_disease', () => {
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_people_living_with_parkinsons_disease: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-people-living-with-parkinsons-disease/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_people_living_with_parkinsons_disease: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-people-living-with-parkinsons-disease/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_people_living_with_parkinsons_disease: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-people-living-with-parkinsons-disease/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_web_accessibility_from_the_perspective_of_people_shaping_digital_systems', () => {
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_people_shaping_digital_systems: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-people-shaping-digital-systems/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_people_shaping_digital_systems: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-people-shaping-digital-systems/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_people_shaping_digital_systems: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-people-shaping-digital-systems/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_web_accessibility_from_the_perspective_of_people_with_disabilities_from_first_grade_to_the_workforce', () => {
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_people_with_disabilities_from_first_grade_to_the_workforce: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-people-with-disabilities-from-first-grade-to-the-workforce/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_people_with_disabilities_from_first_grade_to_the_workforce: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-people-with-disabilities-from-first-grade-to-the-workforce/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_people_with_disabilities_from_first_grade_to_the_workforce: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-people-with-disabilities-from-first-grade-to-the-workforce/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_web_accessibility_from_the_perspective_of_people_with_ehlers_danlos_syndrome', () => {
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_people_with_ehlers_danlos_syndrome: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-people-with-ehlers-danlos-syndrome/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_people_with_ehlers_danlos_syndrome: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-people-with-ehlers-danlos-syndrome/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_people_with_ehlers_danlos_syndrome: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-people-with-ehlers-danlos-syndrome/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_web_accessibility_from_the_perspective_of_people_with_epilepsy', () => {
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_people_with_epilepsy: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-people-with-epilepsy/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_people_with_epilepsy: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-people-with-epilepsy/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_people_with_epilepsy: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-people-with-epilepsy/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_web_accessibility_from_the_perspective_of_people_with_hidden_disabilities', () => {
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_people_with_hidden_disabilities: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-people-with-hidden-disabilities/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_people_with_hidden_disabilities: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-people-with-hidden-disabilities/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_people_with_hidden_disabilities: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-people-with-hidden-disabilities/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_web_accessibility_from_the_perspective_of_people_with_limb_loss_and_limb_difference', () => {
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_people_with_limb_loss_and_limb_difference: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-people-with-limb-loss-and-limb-difference/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_people_with_limb_loss_and_limb_difference: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-people-with-limb-loss-and-limb-difference/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_people_with_limb_loss_and_limb_difference: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-people-with-limb-loss-and-limb-difference/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_web_accessibility_from_the_perspective_of_the_blind_and_low_vision_community', () => {
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_the_blind_and_low_vision_community: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-the-blind-and-low-vision-community/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_the_blind_and_low_vision_community: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-the-blind-and-low-vision-community/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_web_accessibility_from_the_perspective_of_the_blind_and_low_vision_community: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/web-accessibility-from-the-perspective-of-the-blind-and-low-vision-community/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_what_californias_accessibility_landscape_really_means_for_your_business', () => {
test('blog_knowledgebase_what_californias_accessibility_landscape_really_means_for_your_business: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/what-californias-accessibility-landscape-really-means-for-your-business/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_what_californias_accessibility_landscape_really_means_for_your_business: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/what-californias-accessibility-landscape-really-means-for-your-business/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_what_californias_accessibility_landscape_really_means_for_your_business: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/what-californias-accessibility-landscape-really-means-for-your-business/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_what_government_agencies_require_from_vendors', () => {
test('blog_knowledgebase_what_government_agencies_require_from_vendors: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/what-government-agencies-require-from-vendors/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_what_government_agencies_require_from_vendors: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/what-government-agencies-require-from-vendors/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_what_government_agencies_require_from_vendors: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/what-government-agencies-require-from-vendors/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_what_happens_if_you_dont_comply_with_section_504', () => {
test('blog_knowledgebase_what_happens_if_you_dont_comply_with_section_504: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/what-happens-if-you-dont-comply-with-section-504/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_what_happens_if_you_dont_comply_with_section_504: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/what-happens-if-you-dont-comply-with-section-504/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_what_happens_if_you_dont_comply_with_section_504: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/what-happens-if-you-dont-comply-with-section-504/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_what_public_institutions_are_really_asking_about_ada_title_ii', () => {
test('blog_knowledgebase_what_public_institutions_are_really_asking_about_ada_title_ii: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/what-public-institutions-are-really-asking-about-ada-title-ii/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_what_public_institutions_are_really_asking_about_ada_title_ii: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/what-public-institutions-are-really-asking-about-ada-title-ii/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_what_public_institutions_are_really_asking_about_ada_title_ii: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/what-public-institutions-are-really-asking-about-ada-title-ii/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_why_an_open_digital_door_is_the_key_to_law_firm_growth_in_2026', () => {
test('blog_knowledgebase_why_an_open_digital_door_is_the_key_to_law_firm_growth_in_2026: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/why-an-open-digital-door-is-the-key-to-law-firm-growth-in-2026/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_why_an_open_digital_door_is_the_key_to_law_firm_growth_in_2026: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/why-an-open-digital-door-is-the-key-to-law-firm-growth-in-2026/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_why_an_open_digital_door_is_the_key_to_law_firm_growth_in_2026: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/why-an-open-digital-door-is-the-key-to-law-firm-growth-in-2026/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_why_healthcare_transactions_are_failing_patients_with_disabilities', () => {
test('blog_knowledgebase_why_healthcare_transactions_are_failing_patients_with_disabilities: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/why-healthcare-transactions-are-failing-patients-with-disabilities/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_why_healthcare_transactions_are_failing_patients_with_disabilities: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/why-healthcare-transactions-are-failing-patients-with-disabilities/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_why_healthcare_transactions_are_failing_patients_with_disabilities: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/why-healthcare-transactions-are-failing-patients-with-disabilities/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - blog_knowledgebase_your_biggest_title_ii_risk_may_not_be_your_website', () => {
test('blog_knowledgebase_your_biggest_title_ii_risk_may_not_be_your_website: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/blog/knowledgebase/your-biggest-title-ii-risk-may-not-be-your-website/');
expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0);
expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0);
});
test('blog_knowledgebase_your_biggest_title_ii_risk_may_not_be_your_website: heading hierarchy is valid', async ({ page }) => {
await page.goto('/blog/knowledgebase/your-biggest-title-ii-risk-may-not-be-your-website/');
const headingLevels = await page.evaluate(() => {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
return Array.from(headings).map(h => parseInt(h.tagName.substring(1)));
});
if (headingLevels.length > 1) {
for (let i = 1; i < headingLevels.length; i++) {
const jump = headingLevels[i] - headingLevels[i-1];
expect(jump).toBeLessThanOrEqual(2);
}
}
});
test('blog_knowledgebase_your_biggest_title_ii_risk_may_not_be_your_website: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/blog/knowledgebase/your-biggest-title-ii-risk-may-not-be-your-website/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Consistency', () => {
test('header links are consistent across pages', async ({ page }) => {
const headerLinksByPage: string[][] = [];
{
await page.goto('/');
const links = await page.locator('header a, nav a').allTextContents();
headerLinksByPage.push(links.map(l => l.trim()).filter(l => l.length > 0));
}
{
await page.goto('/about/');
const links = await page.locator('header a, nav a').allTextContents();
headerLinksByPage.push(links.map(l => l.trim()).filter(l => l.length > 0));
}
{
await page.goto('/accessflow/');
const links = await page.locator('header a, nav a').allTextContents();
headerLinksByPage.push(links.map(l => l.trim()).filter(l => l.length > 0));
}
{
await page.goto('/inclura-alternatives/');
const links = await page.locator('header a, nav a').allTextContents();
headerLinksByPage.push(links.map(l => l.trim()).filter(l => l.length > 0));
}
if (headerLinksByPage.length >= 2 && headerLinksByPage[0].length > 0) {
const first = new Set(headerLinksByPage[0]);
for (let i = 1; i < headerLinksByPage.length; i++) {
const current = new Set(headerLinksByPage[i]);
const overlap = [...first].filter(l => current.has(l));
if (first.size > 0) {
expect(overlap.length / first.size).toBeGreaterThanOrEqual(0.5);
}
}
}
});
});