RecreationBench / web /verrindale.example /tests /static /structure.scripted.spec.ts
VoyagerXHF's picture
Upload folder using huggingface_hub (part 97)
2f5792d verified
Raw History Blame Contribute Delete
158 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 - Accreditation', () => {
test('Accreditation: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Accreditation/');
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('Accreditation: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Accreditation/');
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('Accreditation: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Accreditation/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Admissions', () => {
test('Admissions: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Admissions/');
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('Admissions: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Admissions/');
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('Admissions: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Admissions/');
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('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 - Contact_Us', () => {
test('Contact_Us: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Contact-Us/');
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('Contact_Us: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Contact-Us/');
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('Contact_Us: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Contact-Us/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Faculty', () => {
test('Faculty: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Faculty/');
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('Faculty: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Faculty/');
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('Faculty: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Faculty/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Staff', () => {
test('Staff: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Staff/');
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('Staff: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Staff/');
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('Staff: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Staff/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Admissions_Continuing_Education', () => {
test('Admissions_Continuing_Education: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Admissions/Continuing-Education/');
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('Admissions_Continuing_Education: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Admissions/Continuing-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('Admissions_Continuing_Education: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Admissions/Continuing-Education/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Admissions_Financial_Aid_and_Tuition', () => {
test('Admissions_Financial_Aid_and_Tuition: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Admissions/Financial-Aid-and-Tuition/');
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('Admissions_Financial_Aid_and_Tuition: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Admissions/Financial-Aid-and-Tuition/');
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('Admissions_Financial_Aid_and_Tuition: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Admissions/Financial-Aid-and-Tuition/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Admissions_International_Students', () => {
test('Admissions_International_Students: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Admissions/International-Students/');
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('Admissions_International_Students: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Admissions/International-Students/');
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('Admissions_International_Students: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Admissions/International-Students/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Academic_Calendar', () => {
test('Education_and_Research_Academic_Calendar: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Academic-Calendar/');
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('Education_and_Research_Academic_Calendar: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Academic-Calendar/');
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('Education_and_Research_Academic_Calendar: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Academic-Calendar/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Academic_Departments', () => {
test('Education_and_Research_Academic_Departments: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Academic-Departments/');
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('Education_and_Research_Academic_Departments: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Academic-Departments/');
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('Education_and_Research_Academic_Departments: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Academic-Departments/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center', () => {
test('Education_and_Research_Center: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/');
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('Education_and_Research_Center: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/');
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('Education_and_Research_Center: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_Center_on_Law_and_Finance', () => {
test('Education_and_Research_Center_Center_on_Law_and_Finance: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Center-on-Law-and-Finance/');
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('Education_and_Research_Center_Center_on_Law_and_Finance: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Center-on-Law-and-Finance/');
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('Education_and_Research_Center_Center_on_Law_and_Finance: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/Center-on-Law-and-Finance/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_Chicago_Center_for_Teaching_and_Learning', () => {
test('Education_and_Research_Center_Chicago_Center_for_Teaching_and_Learning: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Chicago_Center_for_Teaching_and_Learning/');
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('Education_and_Research_Center_Chicago_Center_for_Teaching_and_Learning: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Chicago_Center_for_Teaching_and_Learning/');
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('Education_and_Research_Center_Chicago_Center_for_Teaching_and_Learning: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/Chicago_Center_for_Teaching_and_Learning/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_Chicago_Center_for_the_Origins_of_Life', () => {
test('Education_and_Research_Center_Chicago_Center_for_the_Origins_of_Life: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Chicago-Center-for-the-Origins-of-Life/');
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('Education_and_Research_Center_Chicago_Center_for_the_Origins_of_Life: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Chicago-Center-for-the-Origins-of-Life/');
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('Education_and_Research_Center_Chicago_Center_for_the_Origins_of_Life: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/Chicago-Center-for-the-Origins-of-Life/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_Chicago_Diabetes_Research_and_Training_Center', () => {
test('Education_and_Research_Center_Chicago_Diabetes_Research_and_Training_Center: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Chicago-Diabetes-Research-and-Training-Center/');
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('Education_and_Research_Center_Chicago_Diabetes_Research_and_Training_Center: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Chicago-Diabetes-Research-and-Training-Center/');
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('Education_and_Research_Center_Chicago_Diabetes_Research_and_Training_Center: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/Chicago-Diabetes-Research-and-Training-Center/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_Constitutional_Law_Institute', () => {
test('Education_and_Research_Center_Constitutional_Law_Institute: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Constitutional-Law-Institute/');
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('Education_and_Research_Center_Constitutional_Law_Institute: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Constitutional-Law-Institute/');
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('Education_and_Research_Center_Constitutional_Law_Institute: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/Constitutional-Law-Institute/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_Film_Studies_Center', () => {
test('Education_and_Research_Center_Film_Studies_Center: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Film-Studies-Center/');
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('Education_and_Research_Center_Film_Studies_Center: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Film-Studies-Center/');
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('Education_and_Research_Center_Film_Studies_Center: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/Film-Studies-Center/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_Healthy_Aging_Alzheimers_Research_Care_HAARC_Center', () => {
test('Education_and_Research_Center_Healthy_Aging_Alzheimers_Research_Care_HAARC_Center: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Healthy-Aging-Alzheimers-Research-Care-HAARC-Center/');
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('Education_and_Research_Center_Healthy_Aging_Alzheimers_Research_Care_HAARC_Center: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Healthy-Aging-Alzheimers-Research-Care-HAARC-Center/');
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('Education_and_Research_Center_Healthy_Aging_Alzheimers_Research_Care_HAARC_Center: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/Healthy-Aging-Alzheimers-Research-Care-HAARC-Center/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_Institute_for_Mathematical_and_Statistical_Innovation', () => {
test('Education_and_Research_Center_Institute_for_Mathematical_and_Statistical_Innovation: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Institute-for-Mathematical-and-Statistical-Innovation/');
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('Education_and_Research_Center_Institute_for_Mathematical_and_Statistical_Innovation: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Institute-for-Mathematical-and-Statistical-Innovation/');
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('Education_and_Research_Center_Institute_for_Mathematical_and_Statistical_Innovation: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/Institute-for-Mathematical-and-Statistical-Innovation/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_Kadanoff_Center_for_Theoretical_Physics', () => {
test('Education_and_Research_Center_Kadanoff_Center_for_Theoretical_Physics: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Kadanoff-Center-for-Theoretical-Physics/');
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('Education_and_Research_Center_Kadanoff_Center_for_Theoretical_Physics: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Kadanoff-Center-for-Theoretical-Physics/');
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('Education_and_Research_Center_Kadanoff_Center_for_Theoretical_Physics: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/Kadanoff-Center-for-Theoretical-Physics/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_The_Initiative_on_Enabling_Choice_and_Competition_in_Healthcare', () => {
test('Education_and_Research_Center_The_Initiative_on_Enabling_Choice_and_Competition_in_Healthcare: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/The-Initiative-on-Enabling-Choice-and-Competition-in-Healthcare/');
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('Education_and_Research_Center_The_Initiative_on_Enabling_Choice_and_Competition_in_Healthcare: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/The-Initiative-on-Enabling-Choice-and-Competition-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('Education_and_Research_Center_The_Initiative_on_Enabling_Choice_and_Competition_in_Healthcare: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/The-Initiative-on-Enabling-Choice-and-Competition-in-Healthcare/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_accounting_research_center', () => {
test('Education_and_Research_Center_accounting_research_center: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/accounting_research_center/');
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('Education_and_Research_Center_accounting_research_center: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/accounting_research_center/');
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('Education_and_Research_Center_accounting_research_center: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/accounting_research_center/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_adoption_center', () => {
test('Education_and_Research_Center_adoption_center: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/adoption_center/');
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('Education_and_Research_Center_adoption_center: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/adoption_center/');
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('Education_and_Research_Center_adoption_center: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/adoption_center/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_advanced_photon_source', () => {
test('Education_and_Research_Center_advanced_photon_source: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/advanced_photon_source/');
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('Education_and_Research_Center_advanced_photon_source: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/advanced_photon_source/');
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('Education_and_Research_Center_advanced_photon_source: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/advanced_photon_source/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_asthma_center', () => {
test('Education_and_Research_Center_asthma_center: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/asthma_center/');
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('Education_and_Research_Center_asthma_center: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/asthma_center/');
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('Education_and_Research_Center_asthma_center: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/asthma_center/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_becker_friedman_institute_for_research_in_economics', () => {
test('Education_and_Research_Center_becker_friedman_institute_for_research_in_economics: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/becker_friedman_institute_for_research_in_economics/');
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('Education_and_Research_Center_becker_friedman_institute_for_research_in_economics: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/becker_friedman_institute_for_research_in_economics/');
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('Education_and_Research_Center_becker_friedman_institute_for_research_in_economics: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/becker_friedman_institute_for_research_in_economics/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_biostatistics_laboratory', () => {
test('Education_and_Research_Center_biostatistics_laboratory: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/biostatistics_laboratory/');
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('Education_and_Research_Center_biostatistics_laboratory: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/biostatistics_laboratory/');
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('Education_and_Research_Center_biostatistics_laboratory: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/biostatistics_laboratory/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_bucksbaum_institute_for_clinical_excellence', () => {
test('Education_and_Research_Center_bucksbaum_institute_for_clinical_excellence: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/bucksbaum_institute_for_clinical_excellence/');
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('Education_and_Research_Center_bucksbaum_institute_for_clinical_excellence: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/bucksbaum_institute_for_clinical_excellence/');
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('Education_and_Research_Center_bucksbaum_institute_for_clinical_excellence: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/bucksbaum_institute_for_clinical_excellence/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_advanced_radiation_sources', () => {
test('Education_and_Research_Center_center_for_advanced_radiation_sources: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_advanced_radiation_sources/');
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('Education_and_Research_Center_center_for_advanced_radiation_sources: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_advanced_radiation_sources/');
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('Education_and_Research_Center_center_for_advanced_radiation_sources: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_advanced_radiation_sources/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_advancing_research_and_communications_in_stem', () => {
test('Education_and_Research_Center_center_for_advancing_research_and_communications_in_stem: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_advancing_research_and_communications_in_stem/');
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('Education_and_Research_Center_center_for_advancing_research_and_communications_in_stem: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_advancing_research_and_communications_in_stem/');
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('Education_and_Research_Center_center_for_advancing_research_and_communications_in_stem: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_advancing_research_and_communications_in_stem/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_chronic_disease_research_and_policy', () => {
test('Education_and_Research_Center_center_for_chronic_disease_research_and_policy: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_chronic_disease_research_and_policy/');
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('Education_and_Research_Center_center_for_chronic_disease_research_and_policy: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_chronic_disease_research_and_policy/');
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('Education_and_Research_Center_center_for_chronic_disease_research_and_policy: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_chronic_disease_research_and_policy/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_comparative_constitutionalism', () => {
test('Education_and_Research_Center_center_for_comparative_constitutionalism: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_comparative_constitutionalism/');
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('Education_and_Research_Center_center_for_comparative_constitutionalism: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_comparative_constitutionalism/');
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('Education_and_Research_Center_center_for_comparative_constitutionalism: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_comparative_constitutionalism/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_comprehensive_care_and_research_on_memory_disorders', () => {
test('Education_and_Research_Center_center_for_comprehensive_care_and_research_on_memory_disorders: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_comprehensive_care_and_research_on_memory_disorders/');
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('Education_and_Research_Center_center_for_comprehensive_care_and_research_on_memory_disorders: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_comprehensive_care_and_research_on_memory_disorders/');
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('Education_and_Research_Center_center_for_comprehensive_care_and_research_on_memory_disorders: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_comprehensive_care_and_research_on_memory_disorders/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_disciplinary_innovation', () => {
test('Education_and_Research_Center_center_for_disciplinary_innovation: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_disciplinary_innovation/');
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('Education_and_Research_Center_center_for_disciplinary_innovation: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_disciplinary_innovation/');
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('Education_and_Research_Center_center_for_disciplinary_innovation: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_disciplinary_innovation/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_early_childhood_research', () => {
test('Education_and_Research_Center_center_for_early_childhood_research: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_early_childhood_research/');
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('Education_and_Research_Center_center_for_early_childhood_research: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_early_childhood_research/');
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('Education_and_Research_Center_center_for_early_childhood_research: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_early_childhood_research/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_east_asian_studies', () => {
test('Education_and_Research_Center_center_for_east_asian_studies: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_east_asian_studies/');
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('Education_and_Research_Center_center_for_east_asian_studies: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_east_asian_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('Education_and_Research_Center_center_for_east_asian_studies: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_east_asian_studies/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_east_european_and_russianeurasian_studies', () => {
test('Education_and_Research_Center_center_for_east_european_and_russianeurasian_studies: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_east_european_and_russianeurasian_studies/');
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('Education_and_Research_Center_center_for_east_european_and_russianeurasian_studies: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_east_european_and_russianeurasian_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('Education_and_Research_Center_center_for_east_european_and_russianeurasian_studies: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_east_european_and_russianeurasian_studies/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_economic_policy', () => {
test('Education_and_Research_Center_center_for_economic_policy: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_economic_policy/');
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('Education_and_Research_Center_center_for_economic_policy: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_economic_policy/');
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('Education_and_Research_Center_center_for_economic_policy: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_economic_policy/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_epr_imaging_in_vivo_physiology', () => {
test('Education_and_Research_Center_center_for_epr_imaging_in_vivo_physiology: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_epr_imaging_in_vivo_physiology/');
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('Education_and_Research_Center_center_for_epr_imaging_in_vivo_physiology: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_epr_imaging_in_vivo_physiology/');
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('Education_and_Research_Center_center_for_epr_imaging_in_vivo_physiology: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_epr_imaging_in_vivo_physiology/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_gender_studies', () => {
test('Education_and_Research_Center_center_for_gender_studies: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_gender_studies/');
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('Education_and_Research_Center_center_for_gender_studies: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_gender_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('Education_and_Research_Center_center_for_gender_studies: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_gender_studies/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_gesture_sign_and_language', () => {
test('Education_and_Research_Center_center_for_gesture_sign_and_language: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_gesture_sign_and_language/');
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('Education_and_Research_Center_center_for_gesture_sign_and_language: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_gesture_sign_and_language/');
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('Education_and_Research_Center_center_for_gesture_sign_and_language: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_gesture_sign_and_language/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_health_and_the_social_sciences', () => {
test('Education_and_Research_Center_center_for_health_and_the_social_sciences: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_health_and_the_social_sciences/');
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('Education_and_Research_Center_center_for_health_and_the_social_sciences: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_health_and_the_social_sciences/');
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('Education_and_Research_Center_center_for_health_and_the_social_sciences: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_health_and_the_social_sciences/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_health_policy', () => {
test('Education_and_Research_Center_center_for_health_policy: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_health_policy/');
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('Education_and_Research_Center_center_for_health_policy: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_health_policy/');
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('Education_and_Research_Center_center_for_health_policy: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_health_policy/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_health_statistics', () => {
test('Education_and_Research_Center_center_for_health_statistics: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_health_statistics/');
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('Education_and_Research_Center_center_for_health_statistics: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_health_statistics/');
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('Education_and_Research_Center_center_for_health_statistics: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_health_statistics/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_human_potential_and_public_policy', () => {
test('Education_and_Research_Center_center_for_human_potential_and_public_policy: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_human_potential_and_public_policy/');
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('Education_and_Research_Center_center_for_human_potential_and_public_policy: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_human_potential_and_public_policy/');
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('Education_and_Research_Center_center_for_human_potential_and_public_policy: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_human_potential_and_public_policy/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_human_rights', () => {
test('Education_and_Research_Center_center_for_human_rights: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_human_rights/');
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('Education_and_Research_Center_center_for_human_rights: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_human_rights/');
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('Education_and_Research_Center_center_for_human_rights: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_human_rights/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_interdisciplinary_inquiry_and_innovation_in_sexual_and_reproduct', () => {
test('Education_and_Research_Center_center_for_interdisciplinary_inquiry_and_innovation_in_sexual_and_reproduct: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_interdisciplinary_inquiry_and_innovation_in_sexual_and_reproduct/');
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('Education_and_Research_Center_center_for_interdisciplinary_inquiry_and_innovation_in_sexual_and_reproduct: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_interdisciplinary_inquiry_and_innovation_in_sexual_and_reproduct/');
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('Education_and_Research_Center_center_for_interdisciplinary_inquiry_and_innovation_in_sexual_and_reproduct: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_interdisciplinary_inquiry_and_innovation_in_sexual_and_reproduct/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_international_social_science_research', () => {
test('Education_and_Research_Center_center_for_international_social_science_research: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_international_social_science_research/');
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('Education_and_Research_Center_center_for_international_social_science_research: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_international_social_science_research/');
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('Education_and_Research_Center_center_for_international_social_science_research: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_international_social_science_research/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_italian_opera_studies', () => {
test('Education_and_Research_Center_center_for_italian_opera_studies: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_italian_opera_studies/');
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('Education_and_Research_Center_center_for_italian_opera_studies: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_italian_opera_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('Education_and_Research_Center_center_for_italian_opera_studies: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_italian_opera_studies/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_jewish_studies', () => {
test('Education_and_Research_Center_center_for_jewish_studies: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_jewish_studies/');
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('Education_and_Research_Center_center_for_jewish_studies: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_jewish_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('Education_and_Research_Center_center_for_jewish_studies: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_jewish_studies/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_latin_american_studies', () => {
test('Education_and_Research_Center_center_for_latin_american_studies: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_latin_american_studies/');
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('Education_and_Research_Center_center_for_latin_american_studies: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_latin_american_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('Education_and_Research_Center_center_for_latin_american_studies: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_latin_american_studies/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_law_philosophy_and_human_values', () => {
test('Education_and_Research_Center_center_for_law_philosophy_and_human_values: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_law_philosophy_and_human_values/');
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('Education_and_Research_Center_center_for_law_philosophy_and_human_values: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_law_philosophy_and_human_values/');
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('Education_and_Research_Center_center_for_law_philosophy_and_human_values: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_law_philosophy_and_human_values/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_mechanical_excitability_CME', () => {
test('Education_and_Research_Center_center_for_mechanical_excitability_CME: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_mechanical_excitability_CME/');
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('Education_and_Research_Center_center_for_mechanical_excitability_CME: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_mechanical_excitability_CME/');
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('Education_and_Research_Center_center_for_mechanical_excitability_CME: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_mechanical_excitability_CME/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_middle_eastern_studies', () => {
test('Education_and_Research_Center_center_for_middle_eastern_studies: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_middle_eastern_studies/');
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('Education_and_Research_Center_center_for_middle_eastern_studies: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_middle_eastern_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('Education_and_Research_Center_center_for_middle_eastern_studies: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_middle_eastern_studies/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_municipal_finance', () => {
test('Education_and_Research_Center_center_for_municipal_finance: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_municipal_finance/');
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('Education_and_Research_Center_center_for_municipal_finance: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_municipal_finance/');
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('Education_and_Research_Center_center_for_municipal_finance: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_municipal_finance/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_nanoscale_materials', () => {
test('Education_and_Research_Center_center_for_nanoscale_materials: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_nanoscale_materials/');
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('Education_and_Research_Center_center_for_nanoscale_materials: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_nanoscale_materials/');
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('Education_and_Research_Center_center_for_nanoscale_materials: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_nanoscale_materials/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_peripheral_neuropathy', () => {
test('Education_and_Research_Center_center_for_peripheral_neuropathy: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_peripheral_neuropathy/');
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('Education_and_Research_Center_center_for_peripheral_neuropathy: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_peripheral_neuropathy/');
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('Education_and_Research_Center_center_for_peripheral_neuropathy: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_peripheral_neuropathy/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_personalized_therapeutics', () => {
test('Education_and_Research_Center_center_for_personalized_therapeutics: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_personalized_therapeutics/');
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('Education_and_Research_Center_center_for_personalized_therapeutics: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_personalized_therapeutics/');
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('Education_and_Research_Center_center_for_personalized_therapeutics: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_personalized_therapeutics/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_research_informatics', () => {
test('Education_and_Research_Center_center_for_research_informatics: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_research_informatics/');
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('Education_and_Research_Center_center_for_research_informatics: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_research_informatics/');
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('Education_and_Research_Center_center_for_research_informatics: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_research_informatics/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_spatial_data_science', () => {
test('Education_and_Research_Center_center_for_spatial_data_science: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_spatial_data_science/');
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('Education_and_Research_Center_center_for_spatial_data_science: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_spatial_data_science/');
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('Education_and_Research_Center_center_for_spatial_data_science: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_spatial_data_science/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_the_art_of_east_asia', () => {
test('Education_and_Research_Center_center_for_the_art_of_east_asia: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_the_art_of_east_asia/');
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('Education_and_Research_Center_center_for_the_art_of_east_asia: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_the_art_of_east_asia/');
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('Education_and_Research_Center_center_for_the_art_of_east_asia: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_the_art_of_east_asia/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_the_economics_of_human_development', () => {
test('Education_and_Research_Center_center_for_the_economics_of_human_development: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_the_economics_of_human_development/');
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('Education_and_Research_Center_center_for_the_economics_of_human_development: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_the_economics_of_human_development/');
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('Education_and_Research_Center_center_for_the_economics_of_human_development: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_the_economics_of_human_development/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_the_science_of_early_trajectories_set', () => {
test('Education_and_Research_Center_center_for_the_science_of_early_trajectories_set: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center-for-the-science-of-early-trajectories-set/');
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('Education_and_Research_Center_center_for_the_science_of_early_trajectories_set: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center-for-the-science-of-early-trajectories-set/');
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('Education_and_Research_Center_center_for_the_science_of_early_trajectories_set: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center-for-the-science-of-early-trajectories-set/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_the_study_of_politics_and_society', () => {
test('Education_and_Research_Center_center_for_the_study_of_politics_and_society: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_the_study_of_politics_and_society/');
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('Education_and_Research_Center_center_for_the_study_of_politics_and_society: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_the_study_of_politics_and_society/');
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('Education_and_Research_Center_center_for_the_study_of_politics_and_society: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_the_study_of_politics_and_society/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_for_the_study_of_race_politics_and_culture', () => {
test('Education_and_Research_Center_center_for_the_study_of_race_politics_and_culture: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_the_study_of_race_politics_and_culture/');
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('Education_and_Research_Center_center_for_the_study_of_race_politics_and_culture: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_the_study_of_race_politics_and_culture/');
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('Education_and_Research_Center_center_for_the_study_of_race_politics_and_culture: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_for_the_study_of_race_politics_and_culture/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_in_beijing', () => {
test('Education_and_Research_Center_center_in_beijing: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_in_beijing/');
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('Education_and_Research_Center_center_in_beijing: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_in_beijing/');
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('Education_and_Research_Center_center_in_beijing: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_in_beijing/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_in_delhi', () => {
test('Education_and_Research_Center_center_in_delhi: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_in_delhi/');
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('Education_and_Research_Center_center_in_delhi: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_in_delhi/');
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('Education_and_Research_Center_center_in_delhi: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_in_delhi/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_in_paris', () => {
test('Education_and_Research_Center_center_in_paris: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_in_paris/');
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('Education_and_Research_Center_center_in_paris: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_in_paris/');
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('Education_and_Research_Center_center_in_paris: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_in_paris/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_center_on_demography_and_economics_of_aging', () => {
test('Education_and_Research_Center_center_on_demography_and_economics_of_aging: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_on_demography_and_economics_of_aging/');
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('Education_and_Research_Center_center_on_demography_and_economics_of_aging: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_on_demography_and_economics_of_aging/');
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('Education_and_Research_Center_center_on_demography_and_economics_of_aging: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/center_on_demography_and_economics_of_aging/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_chicago_biomedical_consortium', () => {
test('Education_and_Research_Center_chicago_biomedical_consortium: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_biomedical_consortium/');
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('Education_and_Research_Center_chicago_biomedical_consortium: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_biomedical_consortium/');
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('Education_and_Research_Center_chicago_biomedical_consortium: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/chicago_biomedical_consortium/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_chicago_center_for_contemporary_theory', () => {
test('Education_and_Research_Center_chicago_center_for_contemporary_theory: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago-center-for-contemporary-theory/');
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('Education_and_Research_Center_chicago_center_for_contemporary_theory: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago-center-for-contemporary-theory/');
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('Education_and_Research_Center_chicago_center_for_contemporary_theory: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/chicago-center-for-contemporary-theory/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_chicago_center_for_cosmochemistry', () => {
test('Education_and_Research_Center_chicago_center_for_cosmochemistry: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_center_for_cosmochemistry/');
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('Education_and_Research_Center_chicago_center_for_cosmochemistry: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_center_for_cosmochemistry/');
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('Education_and_Research_Center_chicago_center_for_cosmochemistry: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/chicago_center_for_cosmochemistry/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_chicago_center_for_the_theory_of_computing_and_allied_areas', () => {
test('Education_and_Research_Center_chicago_center_for_the_theory_of_computing_and_allied_areas: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_center_for_the_theory_of_computing_and_allied_areas/');
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('Education_and_Research_Center_chicago_center_for_the_theory_of_computing_and_allied_areas: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_center_for_the_theory_of_computing_and_allied_areas/');
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('Education_and_Research_Center_chicago_center_for_the_theory_of_computing_and_allied_areas: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/chicago_center_for_the_theory_of_computing_and_allied_areas/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_chicago_center_for_theoretical_chemistry', () => {
test('Education_and_Research_Center_chicago_center_for_theoretical_chemistry: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_center_for_theoretical_chemistry/');
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('Education_and_Research_Center_chicago_center_for_theoretical_chemistry: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_center_for_theoretical_chemistry/');
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('Education_and_Research_Center_chicago_center_for_theoretical_chemistry: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/chicago_center_for_theoretical_chemistry/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_chicago_center_on_democracy', () => {
test('Education_and_Research_Center_chicago_center_on_democracy: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_center_on_democracy/');
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('Education_and_Research_Center_chicago_center_on_democracy: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_center_on_democracy/');
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('Education_and_Research_Center_chicago_center_on_democracy: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/chicago_center_on_democracy/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_chicago_immunoengineering_innovation_center', () => {
test('Education_and_Research_Center_chicago_immunoengineering_innovation_center: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_immunoengineering_innovation_center/');
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('Education_and_Research_Center_chicago_immunoengineering_innovation_center: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_immunoengineering_innovation_center/');
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('Education_and_Research_Center_chicago_immunoengineering_innovation_center: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/chicago_immunoengineering_innovation_center/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_chicago_quantum_exchange', () => {
test('Education_and_Research_Center_chicago_quantum_exchange: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_quantum_exchange/');
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('Education_and_Research_Center_chicago_quantum_exchange: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_quantum_exchange/');
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('Education_and_Research_Center_chicago_quantum_exchange: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/chicago_quantum_exchange/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_coase_sandor_institute', () => {
test('Education_and_Research_Center_coase_sandor_institute: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/coase-sandor_institute/');
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('Education_and_Research_Center_coase_sandor_institute: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/coase-sandor_institute/');
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('Education_and_Research_Center_coase_sandor_institute: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/coase-sandor_institute/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_comprehensive_cancer_center', () => {
test('Education_and_Research_Center_comprehensive_cancer_center: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/comprehensive_cancer_center/');
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('Education_and_Research_Center_comprehensive_cancer_center: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/comprehensive_cancer_center/');
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('Education_and_Research_Center_comprehensive_cancer_center: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/comprehensive_cancer_center/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_computation_institute', () => {
test('Education_and_Research_Center_computation_institute: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/computation_institute/');
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('Education_and_Research_Center_computation_institute: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/computation_institute/');
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('Education_and_Research_Center_computation_institute: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/computation_institute/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_creel_center_for_chinese_paleography', () => {
test('Education_and_Research_Center_creel_center_for_chinese_paleography: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/creel_center_for_chinese_paleography/');
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('Education_and_Research_Center_creel_center_for_chinese_paleography: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/creel_center_for_chinese_paleography/');
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('Education_and_Research_Center_creel_center_for_chinese_paleography: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/creel_center_for_chinese_paleography/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_crime_lab', () => {
test('Education_and_Research_Center_crime_lab: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/crime_lab/');
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('Education_and_Research_Center_crime_lab: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/crime_lab/');
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('Education_and_Research_Center_crime_lab: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/crime_lab/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_dark_energy_survey', () => {
test('Education_and_Research_Center_dark_energy_survey: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/dark_energy_survey/');
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('Education_and_Research_Center_dark_energy_survey: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/dark_energy_survey/');
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('Education_and_Research_Center_dark_energy_survey: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/dark_energy_survey/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_data_science_institute_dsi', () => {
test('Education_and_Research_Center_data_science_institute_dsi: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/data_science_institute_dsi/');
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('Education_and_Research_Center_data_science_institute_dsi: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/data_science_institute_dsi/');
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('Education_and_Research_Center_data_science_institute_dsi: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/data_science_institute_dsi/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_digestive_diseases_research_core_center', () => {
test('Education_and_Research_Center_digestive_diseases_research_core_center: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/digestive_diseases_research_core_center/');
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('Education_and_Research_Center_digestive_diseases_research_core_center: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/digestive_diseases_research_core_center/');
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('Education_and_Research_Center_digestive_diseases_research_core_center: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/digestive_diseases_research_core_center/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_duchossois_family_institute', () => {
test('Education_and_Research_Center_duchossois_family_institute: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/duchossois_family_institute/');
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('Education_and_Research_Center_duchossois_family_institute: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/duchossois_family_institute/');
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('Education_and_Research_Center_duchossois_family_institute: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/duchossois_family_institute/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_energy_policy_institute_at_chicago', () => {
test('Education_and_Research_Center_energy_policy_institute_at_chicago: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/energy_policy_institute_at_chicago/');
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('Education_and_Research_Center_energy_policy_institute_at_chicago: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/energy_policy_institute_at_chicago/');
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('Education_and_Research_Center_energy_policy_institute_at_chicago: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/energy_policy_institute_at_chicago/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_enrico_fermi_institute', () => {
test('Education_and_Research_Center_enrico_fermi_institute: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/enrico_fermi_institute/');
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('Education_and_Research_Center_enrico_fermi_institute: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/enrico_fermi_institute/');
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('Education_and_Research_Center_enrico_fermi_institute: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/enrico_fermi_institute/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_fama_miller_center_for_research_in_finance', () => {
test('Education_and_Research_Center_fama_miller_center_for_research_in_finance: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/fama_miller_center_for_research_in_finance/');
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('Education_and_Research_Center_fama_miller_center_for_research_in_finance: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/fama_miller_center_for_research_in_finance/');
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('Education_and_Research_Center_fama_miller_center_for_research_in_finance: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/fama_miller_center_for_research_in_finance/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_france_chicago_center', () => {
test('Education_and_Research_Center_france_chicago_center: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/france_chicago_center/');
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('Education_and_Research_Center_france_chicago_center: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/france_chicago_center/');
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('Education_and_Research_Center_france_chicago_center: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/france_chicago_center/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_franke_institute_for_the_humanities', () => {
test('Education_and_Research_Center_franke_institute_for_the_humanities: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/franke_institute_for_the_humanities/');
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('Education_and_Research_Center_franke_institute_for_the_humanities: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/franke_institute_for_the_humanities/');
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('Education_and_Research_Center_franke_institute_for_the_humanities: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/franke_institute_for_the_humanities/');
await page.waitForTimeout(500);
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
expect(scrollWidth).toBeLessThanOrEqual(385);
});
});
test.describe('Structural - Education_and_Research_Center_gwen_knapp_center_for_lupus_immunology_research', () => {
test('Education_and_Research_Center_gwen_knapp_center_for_lupus_immunology_research: reproduces GT semantic landmarks', async ({ page }) => {
await page.goto('/Education-and-Research/Center/gwen_knapp_center_for_lupus_immunology_research/');
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('Education_and_Research_Center_gwen_knapp_center_for_lupus_immunology_research: heading hierarchy is valid', async ({ page }) => {
await page.goto('/Education-and-Research/Center/gwen_knapp_center_for_lupus_immunology_research/');
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('Education_and_Research_Center_gwen_knapp_center_for_lupus_immunology_research: no horizontal overflow at 375px', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 812 });
await page.goto('/Education-and-Research/Center/gwen_knapp_center_for_lupus_immunology_research/');
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('/Accreditation/');
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('/Admissions/');
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('/Careers/');
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);
}
}
}
});
});