RecreationBench / web /verrindale.example /tests /static /content.scripted.spec.ts
VoyagerXHF's picture
Upload folder using huggingface_hub (part 97)
2f5792d verified
Raw History Blame Contribute Delete
268 kB
import { test, expect } from '@playwright/test';
test.describe('Functional - homepage', () => {
test('homepage: title matches GT', async ({ page }) => {
await page.goto('/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('verrindale university');
});
test('homepage: h1 "The Day Tomorrow Began"', async ({ page }) => {
await page.goto('/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The Day Tomorrow Began' || t.startsWith('The Day Tomorrow Began'))).toBeTruthy();
});
test('homepage: h1 "Step \'Inside the Lab\' at Verri"', async ({ page }) => {
await page.goto('/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Step \'Inside the Lab\' at Verrindale' || t.startsWith('Step \'Inside the Lab\' at Verrindale'))).toBeTruthy();
});
test('homepage: h2 "LATEST NEWS"', async ({ page }) => {
await page.goto('/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'LATEST NEWS' || t.startsWith('LATEST NEWS'))).toBeTruthy();
});
});
test.describe('Functional - Accreditation', () => {
test('Accreditation: title matches GT', async ({ page }) => {
await page.goto('/Accreditation/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('accreditation');
});
test('Accreditation: h3 "Distance Education Programs Au"', async ({ page }) => {
await page.goto('/Accreditation/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Distance Education Programs Authorization' || t.startsWith('Distance Education Programs Authorization'))).toBeTruthy();
});
test('Accreditation: h3 "Licensure"', async ({ page }) => {
await page.goto('/Accreditation/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Licensure' || t.startsWith('Licensure'))).toBeTruthy();
});
test('Accreditation: h4 "Law School"', async ({ page }) => {
await page.goto('/Accreditation/');
const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Law School' || t.startsWith('Law School'))).toBeTruthy();
});
});
test.describe('Functional - Admissions', () => {
test('Admissions: title matches GT', async ({ page }) => {
await page.goto('/Admissions/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('admissions');
});
test('Admissions: h2 "Join our community of scholars"', async ({ page }) => {
await page.goto('/Admissions/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Join our community of scholars' || t.startsWith('Join our community of scholars'))).toBeTruthy();
});
test('Admissions: h2 "Undergraduate admissions"', async ({ page }) => {
await page.goto('/Admissions/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Undergraduate admissions' || t.startsWith('Undergraduate admissions'))).toBeTruthy();
});
test('Admissions: h2 "Graduate admissions"', async ({ page }) => {
await page.goto('/Admissions/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Graduate admissions' || t.startsWith('Graduate admissions'))).toBeTruthy();
});
});
test.describe('Functional - Careers', () => {
test('Careers: title matches GT', async ({ page }) => {
await page.goto('/Careers/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('career opportunities');
});
test('Careers: nav link "Verrindale on Clipper"', async ({ page }) => {
await page.goto('/Careers/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Verrindale on Clipper' || t.startsWith('Verrindale on Clipper')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('uchicago')), 'href fragment present').toBeTruthy();
});
test('Careers: nav link "Campus Security"', async ({ page }) => {
await page.goto('/Careers/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Campus Security' || t.startsWith('Campus Security')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('safety')), 'href fragment present').toBeTruthy();
});
test('Careers: nav link "Published Reports"', async ({ page }) => {
await page.goto('/Careers/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Published Reports' || t.startsWith('Published Reports')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('university-reports')), 'href fragment present').toBeTruthy();
});
test('Careers: nav link "Institution\'s Notice of Nondis"', async ({ page }) => {
await page.goto('/Careers/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institution\'s Notice of Nondiscrimination' || t.startsWith('Institution\'s Notice of Nondiscrimination')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('non_discrimination_statement')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Contact_Us', () => {
test('Contact_Us: title matches GT', async ({ page }) => {
await page.goto('/Contact-Us/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('contact us');
});
test('Contact_Us: h1 "We invite you to spend a momen"', async ({ page }) => {
await page.goto('/Contact-Us/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'We invite you to spend a moment telling us about your recent visit here.' || t.startsWith('We invite you to spend a moment telling us about your recent visit here.'))).toBeTruthy();
});
});
test.describe('Functional - Faculty', () => {
test('Faculty: title matches GT', async ({ page }) => {
await page.goto('/Faculty/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('faculty');
});
test('Faculty: h1 "Like the scholarship they crea"', async ({ page }) => {
await page.goto('/Faculty/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Like the scholarship they create, Verrindale faculty are diverse, provocative, and endlessly dynamic' || t.startsWith('Like the scholarship they create, Verrindale faculty are diverse, provocative, and endlessly dynamic'))).toBeTruthy();
});
test('Faculty: h1 "Browse Resources"', async ({ page }) => {
await page.goto('/Faculty/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Browse Resources' || t.startsWith('Browse Resources'))).toBeTruthy();
});
test('Faculty: h2 "Pursue your boldest ideas here"', async ({ page }) => {
await page.goto('/Faculty/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pursue your boldest ideas here' || t.startsWith('Pursue your boldest ideas here'))).toBeTruthy();
});
});
test.describe('Functional - Staff', () => {
test('Staff: title matches GT', async ({ page }) => {
await page.goto('/Staff/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('staff');
});
test('Staff: h1 "Find the resources you need on"', async ({ page }) => {
await page.goto('/Staff/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find the resources you need on the Verrindale Intranet.' || t.startsWith('Find the resources you need on the Verrindale Intranet.'))).toBeTruthy();
});
test('Staff: h2 "Advancing the University\'s mis"', async ({ page }) => {
await page.goto('/Staff/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Advancing the University\'s mission—and one another too' || t.startsWith('Advancing the University\'s mission—and one another too'))).toBeTruthy();
});
test('Staff: h2 "Belonging and inclusion"', async ({ page }) => {
await page.goto('/Staff/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Belonging and inclusion' || t.startsWith('Belonging and inclusion'))).toBeTruthy();
});
});
test.describe('Functional - Admissions_Continuing_Education', () => {
test('Admissions_Continuing_Education: title matches GT', async ({ page }) => {
await page.goto('/Admissions/Continuing-Education/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('continuing education');
});
test('Admissions_Continuing_Education: h2 "Learning for life"', async ({ page }) => {
await page.goto('/Admissions/Continuing-Education/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Learning for life' || t.startsWith('Learning for life'))).toBeTruthy();
});
test('Admissions_Continuing_Education: h2 "Merridew School of Continuing "', async ({ page }) => {
await page.goto('/Admissions/Continuing-Education/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Merridew School of Continuing Liberal and Professional Studies' || t.startsWith('Merridew School of Continuing Liberal and Professional Studies'))).toBeTruthy();
});
test('Admissions_Continuing_Education: h2 "Vantage School Executive Educa"', async ({ page }) => {
await page.goto('/Admissions/Continuing-Education/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Vantage School Executive Education' || t.startsWith('Vantage School Executive Education'))).toBeTruthy();
});
});
test.describe('Functional - Admissions_Financial_Aid_and_Tuition', () => {
test('Admissions_Financial_Aid_and_Tuition: title matches GT', async ({ page }) => {
await page.goto('/Admissions/Financial-Aid-and-Tuition/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('financial aid and tuition');
});
test('Admissions_Financial_Aid_and_Tuition: h2 "Investing in your studies"', async ({ page }) => {
await page.goto('/Admissions/Financial-Aid-and-Tuition/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Investing in your studies' || t.startsWith('Investing in your studies'))).toBeTruthy();
});
test('Admissions_Financial_Aid_and_Tuition: h2 "Undergraduate"', async ({ page }) => {
await page.goto('/Admissions/Financial-Aid-and-Tuition/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Undergraduate' || t.startsWith('Undergraduate'))).toBeTruthy();
});
test('Admissions_Financial_Aid_and_Tuition: h2 "Graduate"', async ({ page }) => {
await page.goto('/Admissions/Financial-Aid-and-Tuition/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Graduate' || t.startsWith('Graduate'))).toBeTruthy();
});
});
test.describe('Functional - Admissions_International_Students', () => {
test('Admissions_International_Students: title matches GT', async ({ page }) => {
await page.goto('/Admissions/International-Students/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('international students');
});
test('Admissions_International_Students: h1 "We are seeking academically ta"', async ({ page }) => {
await page.goto('/Admissions/International-Students/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'We are seeking academically talented, intellectually curious international students to bring their i' || t.startsWith('We are seeking academically talented, intellectually curious international students to bring their i'))).toBeTruthy();
});
test('Admissions_International_Students: h2 "Minds from everywhere"', async ({ page }) => {
await page.goto('/Admissions/International-Students/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Minds from everywhere' || t.startsWith('Minds from everywhere'))).toBeTruthy();
});
test('Admissions_International_Students: h3 "The World of Verrindale"', async ({ page }) => {
await page.goto('/Admissions/International-Students/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The World of Verrindale' || t.startsWith('The World of Verrindale'))).toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Academic_Calendar', () => {
test('Education_and_Research_Academic_Calendar: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Academic-Calendar/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('academic calendar');
});
});
test.describe('Functional - Education_and_Research_Academic_Departments', () => {
test('Education_and_Research_Academic_Departments: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Academic-Departments/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('academic departments');
});
test('Education_and_Research_Academic_Departments: nav link "Colleges and Divisions"', async ({ page }) => {
await page.goto('/Education-and-Research/Academic-Departments/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Colleges and Divisions' || t.startsWith('Colleges and Divisions')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('schools-and-divisions')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Academic_Departments: nav link "Academic Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Academic-Departments/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Departments' || t.startsWith('Academic Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Academic_Departments: nav link "Academic Schedule"', async ({ page }) => {
await page.goto('/Education-and-Research/Academic-Departments/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Schedule' || t.startsWith('Academic Schedule')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-calendar')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Academic_Departments: nav link "Book Shops"', async ({ page }) => {
await page.goto('/Education-and-Research/Academic-Departments/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Book Shops' || t.startsWith('Book Shops')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('bookstores')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center', () => {
test('Education_and_Research_Center: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('institutes and centers');
});
test('Education_and_Research_Center: h2 "Search Institutes & Centers"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Search Institutes & Centers' || t.startsWith('Search Institutes & Centers'))).toBeTruthy();
});
test('Education_and_Research_Center: h2 "Brandt Ellison Institute for R"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Brandt Ellison Institute for Research in Economics' || t.startsWith('Brandt Ellison Institute for Research in Economics'))).toBeTruthy();
});
test('Education_and_Research_Center: h2 "Discourse Forum"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Discourse Forum' || t.startsWith('Discourse Forum'))).toBeTruthy();
});
test('Education_and_Research_Center: nav link "Institutes and Centers"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Centers' || t.startsWith('Institutes and Centers')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center: nav link "Affiliated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Laboratories' || t.startsWith('Affiliated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center: nav link "Academic Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Departments' || t.startsWith('Academic Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_Center_on_Law_and_Finance', () => {
test('Education_and_Research_Center_Center_on_Law_and_Finance: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Center-on-Law-and-Finance/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center on law and markets');
});
test('Education_and_Research_Center_Center_on_Law_and_Finance: h1 "Center on Law and Markets"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Center-on-Law-and-Finance/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Center on Law and Markets' || t.startsWith('Center on Law and Markets'))).toBeTruthy();
});
test('Education_and_Research_Center_Center_on_Law_and_Finance: h3 "Affiliated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Center-on-Law-and-Finance/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Schools and Divisions:' || t.startsWith('Affiliated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_Center_on_Law_and_Finance: nav link "Institutes and Programs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Center-on-Law-and-Finance/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Programs' || t.startsWith('Institutes and Programs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_Center_on_Law_and_Finance: nav link "Affiliated Research Labs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Center-on-Law-and-Finance/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Research Labs' || t.startsWith('Affiliated Research Labs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_Center_on_Law_and_Finance: nav link "Faculty Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Center-on-Law-and-Finance/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Faculty Departments' || t.startsWith('Faculty Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_Chicago_Center_for_Teaching_and_Learning', () => {
test('Education_and_Research_Center_Chicago_Center_for_Teaching_and_Learning: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Chicago_Center_for_Teaching_and_Learning/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('verrindale center for teaching and learn');
});
test('Education_and_Research_Center_Chicago_Center_for_Teaching_and_Learning: nav link "Programs and Fellowships"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Chicago_Center_for_Teaching_and_Learning/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Programs and Fellowships' || t.startsWith('Programs and Fellowships')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_Chicago_Center_for_Teaching_and_Learning: nav link "Partner Research Labs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Chicago_Center_for_Teaching_and_Learning/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Partner Research Labs' || t.startsWith('Partner Research Labs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_Chicago_Center_for_Teaching_and_Learning: nav link "Scholarly Disciplines"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Chicago_Center_for_Teaching_and_Learning/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Scholarly Disciplines' || t.startsWith('Scholarly Disciplines')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_Chicago_Center_for_the_Origins_of_Life', () => {
test('Education_and_Research_Center_Chicago_Center_for_the_Origins_of_Life: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Chicago-Center-for-the-Origins-of-Life/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for the origins of life');
});
test('Education_and_Research_Center_Chicago_Center_for_the_Origins_of_Life: h1 "Verrindale Center for the Orig"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Chicago-Center-for-the-Origins-of-Life/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Verrindale Center for the Origins of Life' || t.startsWith('Verrindale Center for the Origins of Life'))).toBeTruthy();
});
test('Education_and_Research_Center_Chicago_Center_for_the_Origins_of_Life: h3 "Participating Schools and Unit"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Chicago-Center-for-the-Origins-of-Life/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Participating Schools and Units:' || t.startsWith('Participating Schools and Units:'))).toBeTruthy();
});
test('Education_and_Research_Center_Chicago_Center_for_the_Origins_of_Life: nav link "Research Institutes"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Chicago-Center-for-the-Origins-of-Life/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Research Institutes' || t.startsWith('Research Institutes')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_Chicago_Center_for_the_Origins_of_Life: nav link "Partner Research Labs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Chicago-Center-for-the-Origins-of-Life/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Partner Research Labs' || t.startsWith('Partner Research Labs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_Chicago_Center_for_the_Origins_of_Life: nav link "University Faculties"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Chicago-Center-for-the-Origins-of-Life/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'University Faculties' || t.startsWith('University Faculties')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_Chicago_Diabetes_Research_and_Training_Center', () => {
test('Education_and_Research_Center_Chicago_Diabetes_Research_and_Training_Center: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Chicago-Diabetes-Research-and-Training-Center/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('coastal metabolic research and training ');
});
test('Education_and_Research_Center_Chicago_Diabetes_Research_and_Training_Center: h3 "Affiliated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Chicago-Diabetes-Research-and-Training-Center/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Schools and Divisions:' || t.startsWith('Affiliated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_Chicago_Diabetes_Research_and_Training_Center: nav link "Institutes and Centers"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Chicago-Diabetes-Research-and-Training-Center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Centers' || t.startsWith('Institutes and Centers')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_Chicago_Diabetes_Research_and_Training_Center: nav link "Affiliated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Chicago-Diabetes-Research-and-Training-Center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Laboratories' || t.startsWith('Affiliated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_Chicago_Diabetes_Research_and_Training_Center: nav link "Academic Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Chicago-Diabetes-Research-and-Training-Center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Departments' || t.startsWith('Academic Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_Constitutional_Law_Institute', () => {
test('Education_and_Research_Center_Constitutional_Law_Institute: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Constitutional-Law-Institute/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('institute for civic inquiry');
});
test('Education_and_Research_Center_Constitutional_Law_Institute: h3 "Affiliated Schools and Program"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Constitutional-Law-Institute/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Schools and Programs:' || t.startsWith('Affiliated Schools and Programs:'))).toBeTruthy();
});
test('Education_and_Research_Center_Constitutional_Law_Institute: nav link "Centers and Institutes"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Constitutional-Law-Institute/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Centers and Institutes' || t.startsWith('Centers and Institutes')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_Constitutional_Law_Institute: nav link "Partnered Research Labs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Constitutional-Law-Institute/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Partnered Research Labs' || t.startsWith('Partnered Research Labs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_Constitutional_Law_Institute: nav link "Scholarly Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Constitutional-Law-Institute/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Scholarly Departments' || t.startsWith('Scholarly Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_Film_Studies_Center', () => {
test('Education_and_Research_Center_Film_Studies_Center: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Film-Studies-Center/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('moving image center');
});
test('Education_and_Research_Center_Film_Studies_Center: nav link "Schools and Institutes"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Film-Studies-Center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Schools and Institutes' || t.startsWith('Schools and Institutes')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_Film_Studies_Center: nav link "Partner Research Groups"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Film-Studies-Center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Partner Research Groups' || t.startsWith('Partner Research Groups')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_Film_Studies_Center: nav link "Scholarly Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Film-Studies-Center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Scholarly Departments' || t.startsWith('Scholarly Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_Healthy_Aging_Alzheimers_Research_Care_HAARC_Center', () => {
test('Education_and_Research_Center_Healthy_Aging_Alzheimers_Research_Care_HAARC_Center: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Healthy-Aging-Alzheimers-Research-Care-HAARC-Center/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('cognitive aging & neurodegeneration disc');
});
test('Education_and_Research_Center_Healthy_Aging_Alzheimers_Research_Care_HAARC_Center: nav link "Institutes & Networks"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Healthy-Aging-Alzheimers-Research-Care-HAARC-Center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes & Networks' || t.startsWith('Institutes & Networks')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_Healthy_Aging_Alzheimers_Research_Care_HAARC_Center: nav link "Affiliated Research Labs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Healthy-Aging-Alzheimers-Research-Care-HAARC-Center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Research Labs' || t.startsWith('Affiliated Research Labs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_Healthy_Aging_Alzheimers_Research_Care_HAARC_Center: nav link "Academic Divisions"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Healthy-Aging-Alzheimers-Research-Care-HAARC-Center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Divisions' || t.startsWith('Academic Divisions')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_Institute_for_Mathematical_and_Statistical_Innovation', () => {
test('Education_and_Research_Center_Institute_for_Mathematical_and_Statistical_Innovation: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Institute-for-Mathematical-and-Statistical-Innovation/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('institute for computational mathematics ');
});
test('Education_and_Research_Center_Institute_for_Mathematical_and_Statistical_Innovation: h3 "Affiliated Colleges and School"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Institute-for-Mathematical-and-Statistical-Innovation/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Colleges and Schools:' || t.startsWith('Affiliated Colleges and Schools:'))).toBeTruthy();
});
test('Education_and_Research_Center_Institute_for_Mathematical_and_Statistical_Innovation: nav link "Centers and Institutes"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Institute-for-Mathematical-and-Statistical-Innovation/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Centers and Institutes' || t.startsWith('Centers and Institutes')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_Institute_for_Mathematical_and_Statistical_Innovation: nav link "Associated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Institute-for-Mathematical-and-Statistical-Innovation/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Laboratories' || t.startsWith('Associated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_Institute_for_Mathematical_and_Statistical_Innovation: nav link "Teaching Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Institute-for-Mathematical-and-Statistical-Innovation/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Teaching Departments' || t.startsWith('Teaching Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_Kadanoff_Center_for_Theoretical_Physics', () => {
test('Education_and_Research_Center_Kadanoff_Center_for_Theoretical_Physics: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Kadanoff-Center-for-Theoretical-Physics/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('institute for foundational physics');
});
test('Education_and_Research_Center_Kadanoff_Center_for_Theoretical_Physics: nav link "Centers and Institutes"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Kadanoff-Center-for-Theoretical-Physics/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Centers and Institutes' || t.startsWith('Centers and Institutes')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_Kadanoff_Center_for_Theoretical_Physics: nav link "Associated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Kadanoff-Center-for-Theoretical-Physics/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Laboratories' || t.startsWith('Associated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_Kadanoff_Center_for_Theoretical_Physics: nav link "Academic Divisions"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/Kadanoff-Center-for-Theoretical-Physics/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Divisions' || t.startsWith('Academic Divisions')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - 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: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/The-Initiative-on-Enabling-Choice-and-Competition-in-Healthcare/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('the program on advancing access and inno');
});
test('Education_and_Research_Center_The_Initiative_on_Enabling_Choice_and_Competition_in_Healthcare: h3 "Associated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/The-Initiative-on-Enabling-Choice-and-Competition-in-Healthcare/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Schools and Divisions:' || t.startsWith('Associated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_The_Initiative_on_Enabling_Choice_and_Competition_in_Healthcare: nav link "Centers and Institutes"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/The-Initiative-on-Enabling-Choice-and-Competition-in-Healthcare/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Centers and Institutes' || t.startsWith('Centers and Institutes')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_The_Initiative_on_Enabling_Choice_and_Competition_in_Healthcare: nav link "Associated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/The-Initiative-on-Enabling-Choice-and-Competition-in-Healthcare/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Laboratories' || t.startsWith('Associated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_The_Initiative_on_Enabling_Choice_and_Competition_in_Healthcare: nav link "Teaching Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/The-Initiative-on-Enabling-Choice-and-Competition-in-Healthcare/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Teaching Departments' || t.startsWith('Teaching Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_accounting_research_center', () => {
test('Education_and_Research_Center_accounting_research_center: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/accounting_research_center/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('accounting research center');
});
test('Education_and_Research_Center_accounting_research_center: h1 "Halverston Accounting Research"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/accounting_research_center/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Halverston Accounting Research Center' || t.startsWith('Halverston Accounting Research Center'))).toBeTruthy();
});
test('Education_and_Research_Center_accounting_research_center: h3 "Affiliated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/accounting_research_center/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Schools and Divisions:' || t.startsWith('Affiliated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_accounting_research_center: nav link "Institutes and Centers"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/accounting_research_center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Centers' || t.startsWith('Institutes and Centers')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_accounting_research_center: nav link "Affiliated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/accounting_research_center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Laboratories' || t.startsWith('Affiliated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_accounting_research_center: nav link "Academic Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/accounting_research_center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Departments' || t.startsWith('Academic Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_adoption_center', () => {
test('Education_and_Research_Center_adoption_center: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/adoption_center/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('adoption center');
});
test('Education_and_Research_Center_adoption_center: h3 "Associated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/adoption_center/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Schools and Divisions:' || t.startsWith('Associated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_adoption_center: nav link "Centers and Institutes"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/adoption_center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Centers and Institutes' || t.startsWith('Centers and Institutes')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_adoption_center: nav link "Associated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/adoption_center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Laboratories' || t.startsWith('Associated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_adoption_center: nav link "Departments of Study"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/adoption_center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Departments of Study' || t.startsWith('Departments of Study')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_advanced_photon_source', () => {
test('Education_and_Research_Center_advanced_photon_source: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/advanced_photon_source/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('coherent x');
});
test('Education_and_Research_Center_advanced_photon_source: h3 "Associated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/advanced_photon_source/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Schools and Divisions:' || t.startsWith('Associated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_advanced_photon_source: nav link "Centers and Institutes"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/advanced_photon_source/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Centers and Institutes' || t.startsWith('Centers and Institutes')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_advanced_photon_source: nav link "Associated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/advanced_photon_source/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Laboratories' || t.startsWith('Associated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_advanced_photon_source: nav link "Academic Divisions"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/advanced_photon_source/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Divisions' || t.startsWith('Academic Divisions')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_asthma_center', () => {
test('Education_and_Research_Center_asthma_center: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/asthma_center/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('respiratory health center');
});
test('Education_and_Research_Center_asthma_center: h1 "Airway Center"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/asthma_center/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Airway Center' || t.startsWith('Airway Center'))).toBeTruthy();
});
test('Education_and_Research_Center_asthma_center: h3 "Associated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/asthma_center/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Schools and Divisions:' || t.startsWith('Associated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_asthma_center: nav link "Labs and Field Centers"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/asthma_center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Labs and Field Centers' || t.startsWith('Labs and Field Centers')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_asthma_center: nav link "Associated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/asthma_center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Laboratories' || t.startsWith('Associated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_asthma_center: nav link "Teaching Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/asthma_center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Teaching Departments' || t.startsWith('Teaching Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_becker_friedman_institute_for_research_in_economics', () => {
test('Education_and_Research_Center_becker_friedman_institute_for_research_in_economics: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/becker_friedman_institute_for_research_in_economics/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('institute for advanced study in economic');
});
test('Education_and_Research_Center_becker_friedman_institute_for_research_in_economics: h3 "Partner Schools and Divisions:"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/becker_friedman_institute_for_research_in_economics/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Partner Schools and Divisions:' || t.startsWith('Partner Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_becker_friedman_institute_for_research_in_economics: nav link "Centers and Institutes"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/becker_friedman_institute_for_research_in_economics/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Centers and Institutes' || t.startsWith('Centers and Institutes')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_becker_friedman_institute_for_research_in_economics: nav link "Connected Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/becker_friedman_institute_for_research_in_economics/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Connected Laboratories' || t.startsWith('Connected Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_becker_friedman_institute_for_research_in_economics: nav link "Scholarly Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/becker_friedman_institute_for_research_in_economics/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Scholarly Departments' || t.startsWith('Scholarly Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_biostatistics_laboratory', () => {
test('Education_and_Research_Center_biostatistics_laboratory: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/biostatistics_laboratory/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('biometrics research laboratory');
});
test('Education_and_Research_Center_biostatistics_laboratory: h3 "Affiliated Colleges and Divisi"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/biostatistics_laboratory/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Colleges and Divisions:' || t.startsWith('Affiliated Colleges and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_biostatistics_laboratory: nav link "Institutes & Centers"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/biostatistics_laboratory/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes & Centers' || t.startsWith('Institutes & Centers')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_biostatistics_laboratory: nav link "Affiliated Research Labs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/biostatistics_laboratory/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Research Labs' || t.startsWith('Affiliated Research Labs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_biostatistics_laboratory: nav link "University Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/biostatistics_laboratory/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'University Departments' || t.startsWith('University Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_bucksbaum_institute_for_clinical_excellence', () => {
test('Education_and_Research_Center_bucksbaum_institute_for_clinical_excellence: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/bucksbaum_institute_for_clinical_excellence/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('halveston');
});
test('Education_and_Research_Center_bucksbaum_institute_for_clinical_excellence: h3 "Affiliated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/bucksbaum_institute_for_clinical_excellence/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Schools and Divisions:' || t.startsWith('Affiliated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_bucksbaum_institute_for_clinical_excellence: nav link "Institutes and Centers"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/bucksbaum_institute_for_clinical_excellence/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Centers' || t.startsWith('Institutes and Centers')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_bucksbaum_institute_for_clinical_excellence: nav link "Affiliated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/bucksbaum_institute_for_clinical_excellence/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Laboratories' || t.startsWith('Affiliated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_bucksbaum_institute_for_clinical_excellence: nav link "Academic Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/bucksbaum_institute_for_clinical_excellence/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Departments' || t.startsWith('Academic Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_advanced_radiation_sources', () => {
test('Education_and_Research_Center_center_for_advanced_radiation_sources: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_advanced_radiation_sources/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('institute for advanced beamline sciences');
});
test('Education_and_Research_Center_center_for_advanced_radiation_sources: h3 "Partner Schools and Divisions:"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_advanced_radiation_sources/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Partner Schools and Divisions:' || t.startsWith('Partner Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_advanced_radiation_sources: nav link "Institutes and Centers"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_advanced_radiation_sources/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Centers' || t.startsWith('Institutes and Centers')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_advanced_radiation_sources: nav link "Affiliated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_advanced_radiation_sources/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Laboratories' || t.startsWith('Affiliated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_advanced_radiation_sources: nav link "Academic Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_advanced_radiation_sources/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Departments' || t.startsWith('Academic Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - 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: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_advancing_research_and_communications_in_stem/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for applied inquiry and knowledge');
});
test('Education_and_Research_Center_center_for_advancing_research_and_communications_in_stem: h3 "Associated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_advancing_research_and_communications_in_stem/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Schools and Divisions:' || t.startsWith('Associated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_advancing_research_and_communications_in_stem: nav link "Centers and Institutes"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_advancing_research_and_communications_in_stem/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Centers and Institutes' || t.startsWith('Centers and Institutes')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_advancing_research_and_communications_in_stem: nav link "Associated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_advancing_research_and_communications_in_stem/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Laboratories' || t.startsWith('Associated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_advancing_research_and_communications_in_stem: nav link "Faculty Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_advancing_research_and_communications_in_stem/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Faculty Departments' || t.startsWith('Faculty Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_chronic_disease_research_and_policy', () => {
test('Education_and_Research_Center_center_for_chronic_disease_research_and_policy: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_chronic_disease_research_and_policy/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for chronic illness and health po');
});
test('Education_and_Research_Center_center_for_chronic_disease_research_and_policy: h3 "Affiliated Schools and Faculti"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_chronic_disease_research_and_policy/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Schools and Faculties:' || t.startsWith('Affiliated Schools and Faculties:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_chronic_disease_research_and_policy: nav link "Centers and Institutes"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_chronic_disease_research_and_policy/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Centers and Institutes' || t.startsWith('Centers and Institutes')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_chronic_disease_research_and_policy: nav link "Research Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_chronic_disease_research_and_policy/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Research Laboratories' || t.startsWith('Research Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_chronic_disease_research_and_policy: nav link "Faculty Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_chronic_disease_research_and_policy/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Faculty Departments' || t.startsWith('Faculty Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_comparative_constitutionalism', () => {
test('Education_and_Research_Center_center_for_comparative_constitutionalism: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_comparative_constitutionalism/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for comparative governance studie');
});
test('Education_and_Research_Center_center_for_comparative_constitutionalism: h3 "Affiliated Schools and Faculti"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_comparative_constitutionalism/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Schools and Faculties:' || t.startsWith('Affiliated Schools and Faculties:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_comparative_constitutionalism: nav link "Centers and Programs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_comparative_constitutionalism/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Centers and Programs' || t.startsWith('Centers and Programs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_comparative_constitutionalism: nav link "Affiliated Research Labs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_comparative_constitutionalism/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Research Labs' || t.startsWith('Affiliated Research Labs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_comparative_constitutionalism: nav link "Academic Divisions"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_comparative_constitutionalism/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Divisions' || t.startsWith('Academic Divisions')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - 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: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_comprehensive_care_and_research_on_memory_disorders/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for integrated care and research ');
});
test('Education_and_Research_Center_center_for_comprehensive_care_and_research_on_memory_disorders: nav link "Institutes and Centers"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_comprehensive_care_and_research_on_memory_disorders/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Centers' || t.startsWith('Institutes and Centers')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_comprehensive_care_and_research_on_memory_disorders: nav link "Affiliated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_comprehensive_care_and_research_on_memory_disorders/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Laboratories' || t.startsWith('Affiliated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_comprehensive_care_and_research_on_memory_disorders: nav link "Academic Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_comprehensive_care_and_research_on_memory_disorders/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Departments' || t.startsWith('Academic Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_disciplinary_innovation', () => {
test('Education_and_Research_Center_center_for_disciplinary_innovation: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_disciplinary_innovation/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for cross');
});
test('Education_and_Research_Center_center_for_disciplinary_innovation: h3 "Partner Schools and Divisions:"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_disciplinary_innovation/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Partner Schools and Divisions:' || t.startsWith('Partner Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_disciplinary_innovation: nav link "Centers and Programs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_disciplinary_innovation/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Centers and Programs' || t.startsWith('Centers and Programs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_disciplinary_innovation: nav link "Affiliated Research Labs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_disciplinary_innovation/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Research Labs' || t.startsWith('Affiliated Research Labs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_disciplinary_innovation: nav link "Scholarly Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_disciplinary_innovation/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Scholarly Departments' || t.startsWith('Scholarly Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_early_childhood_research', () => {
test('Education_and_Research_Center_center_for_early_childhood_research: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_early_childhood_research/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for early learning studies');
});
test('Education_and_Research_Center_center_for_early_childhood_research: h3 "Affiliated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_early_childhood_research/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Schools and Divisions:' || t.startsWith('Affiliated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_early_childhood_research: nav link "Institutes and Centers"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_early_childhood_research/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Centers' || t.startsWith('Institutes and Centers')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_early_childhood_research: nav link "Affiliated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_early_childhood_research/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Laboratories' || t.startsWith('Affiliated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_early_childhood_research: nav link "Academic Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_early_childhood_research/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Departments' || t.startsWith('Academic Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_east_asian_studies', () => {
test('Education_and_Research_Center_center_for_east_asian_studies: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_east_asian_studies/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for east asian studies');
});
test('Education_and_Research_Center_center_for_east_asian_studies: h3 "Affiliated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_east_asian_studies/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Schools and Divisions:' || t.startsWith('Affiliated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_east_asian_studies: nav link "Institutes and Centers"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_east_asian_studies/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Centers' || t.startsWith('Institutes and Centers')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_east_asian_studies: nav link "Affiliated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_east_asian_studies/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Laboratories' || t.startsWith('Affiliated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_east_asian_studies: nav link "Academic Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_east_asian_studies/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Departments' || t.startsWith('Academic Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_east_european_and_russianeurasian_studies', () => {
test('Education_and_Research_Center_center_for_east_european_and_russianeurasian_studies: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_east_european_and_russianeurasian_studies/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for coastal and highland regional');
});
test('Education_and_Research_Center_center_for_east_european_and_russianeurasian_studies: h3 "Affiliated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_east_european_and_russianeurasian_studies/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Schools and Divisions:' || t.startsWith('Affiliated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_east_european_and_russianeurasian_studies: nav link "Institutes and Centers"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_east_european_and_russianeurasian_studies/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Centers' || t.startsWith('Institutes and Centers')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_east_european_and_russianeurasian_studies: nav link "Affiliated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_east_european_and_russianeurasian_studies/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Laboratories' || t.startsWith('Affiliated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_east_european_and_russianeurasian_studies: nav link "Academic Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_east_european_and_russianeurasian_studies/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Departments' || t.startsWith('Academic Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_economic_policy', () => {
test('Education_and_Research_Center_center_for_economic_policy: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_economic_policy/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for markets & policy');
});
test('Education_and_Research_Center_center_for_economic_policy: h3 "Affiliated Faculties and Schoo"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_economic_policy/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Faculties and Schools:' || t.startsWith('Affiliated Faculties and Schools:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_economic_policy: nav link "Institutes & Programs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_economic_policy/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes & Programs' || t.startsWith('Institutes & Programs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_economic_policy: nav link "Affiliated Research Labs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_economic_policy/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Research Labs' || t.startsWith('Affiliated Research Labs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_economic_policy: nav link "Academic Divisions"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_economic_policy/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Divisions' || t.startsWith('Academic Divisions')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_epr_imaging_in_vivo_physiology', () => {
test('Education_and_Research_Center_center_for_epr_imaging_in_vivo_physiology: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_epr_imaging_in_vivo_physiology/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for epr imaging in vivo physiolog');
});
test('Education_and_Research_Center_center_for_epr_imaging_in_vivo_physiology: h3 "Affiliated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_epr_imaging_in_vivo_physiology/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Schools and Divisions:' || t.startsWith('Affiliated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_epr_imaging_in_vivo_physiology: nav link "Institutes and Centers"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_epr_imaging_in_vivo_physiology/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Centers' || t.startsWith('Institutes and Centers')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_epr_imaging_in_vivo_physiology: nav link "Affiliated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_epr_imaging_in_vivo_physiology/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Laboratories' || t.startsWith('Affiliated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_epr_imaging_in_vivo_physiology: nav link "Academic Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_epr_imaging_in_vivo_physiology/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Departments' || t.startsWith('Academic Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_gender_studies', () => {
test('Education_and_Research_Center_center_for_gender_studies: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_gender_studies/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for the study of gender, culture,');
});
test('Education_and_Research_Center_center_for_gender_studies: h1 "Center for the Study of Gender"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_gender_studies/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Center for the Study of Gender and Society' || t.startsWith('Center for the Study of Gender and Society'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_gender_studies: h3 "Affiliated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_gender_studies/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Schools and Divisions:' || t.startsWith('Affiliated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_gender_studies: nav link "Institutes and Centers"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_gender_studies/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Centers' || t.startsWith('Institutes and Centers')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_gender_studies: nav link "Affiliated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_gender_studies/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Laboratories' || t.startsWith('Affiliated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_gender_studies: nav link "Academic Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_gender_studies/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Departments' || t.startsWith('Academic Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_gesture_sign_and_language', () => {
test('Education_and_Research_Center_center_for_gesture_sign_and_language: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_gesture_sign_and_language/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for signed and gestural language');
});
test('Education_and_Research_Center_center_for_gesture_sign_and_language: nav link "Centers and Institutes"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_gesture_sign_and_language/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Centers and Institutes' || t.startsWith('Centers and Institutes')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_gesture_sign_and_language: nav link "Partnered Research Labs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_gesture_sign_and_language/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Partnered Research Labs' || t.startsWith('Partnered Research Labs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_gesture_sign_and_language: nav link "Scholarly Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_gesture_sign_and_language/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Scholarly Departments' || t.startsWith('Scholarly Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_health_and_the_social_sciences', () => {
test('Education_and_Research_Center_center_for_health_and_the_social_sciences: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_health_and_the_social_sciences/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('verrindale institute for health and soci');
});
test('Education_and_Research_Center_center_for_health_and_the_social_sciences: h3 "Partnered Schools and Division"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_health_and_the_social_sciences/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Partnered Schools and Divisions:' || t.startsWith('Partnered Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_health_and_the_social_sciences: nav link "Institutes and Programs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_health_and_the_social_sciences/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Programs' || t.startsWith('Institutes and Programs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_health_and_the_social_sciences: nav link "Partnered Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_health_and_the_social_sciences/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Partnered Laboratories' || t.startsWith('Partnered Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_health_and_the_social_sciences: nav link "Faculty Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_health_and_the_social_sciences/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Faculty Departments' || t.startsWith('Faculty Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_health_policy', () => {
test('Education_and_Research_Center_center_for_health_policy: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_health_policy/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for health systems');
});
test('Education_and_Research_Center_center_for_health_policy: nav link "Institutes and Programs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_health_policy/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Programs' || t.startsWith('Institutes and Programs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_health_policy: nav link "Associated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_health_policy/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Laboratories' || t.startsWith('Associated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_health_policy: nav link "Academic Divisions"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_health_policy/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Divisions' || t.startsWith('Academic Divisions')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_health_statistics', () => {
test('Education_and_Research_Center_center_for_health_statistics: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_health_statistics/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for population analytics');
});
test('Education_and_Research_Center_center_for_health_statistics: h3 "Affiliated Schools and Faculti"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_health_statistics/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Schools and Faculties:' || t.startsWith('Affiliated Schools and Faculties:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_health_statistics: nav link "Institutes & Programs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_health_statistics/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes & Programs' || t.startsWith('Institutes & Programs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_health_statistics: nav link "Partner Research Labs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_health_statistics/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Partner Research Labs' || t.startsWith('Partner Research Labs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_health_statistics: nav link "Academic Divisions"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_health_statistics/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Divisions' || t.startsWith('Academic Divisions')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_human_potential_and_public_policy', () => {
test('Education_and_Research_Center_center_for_human_potential_and_public_policy: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_human_potential_and_public_policy/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for human development and social ');
});
test('Education_and_Research_Center_center_for_human_potential_and_public_policy: h3 "Associated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_human_potential_and_public_policy/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Schools and Divisions:' || t.startsWith('Associated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_human_potential_and_public_policy: nav link "Centers and Initiatives"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_human_potential_and_public_policy/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Centers and Initiatives' || t.startsWith('Centers and Initiatives')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_human_potential_and_public_policy: nav link "Connected Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_human_potential_and_public_policy/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Connected Laboratories' || t.startsWith('Connected Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_human_potential_and_public_policy: nav link "Scholarly Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_human_potential_and_public_policy/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Scholarly Departments' || t.startsWith('Scholarly Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_human_rights', () => {
test('Education_and_Research_Center_center_for_human_rights: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_human_rights/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for global human rights');
});
test('Education_and_Research_Center_center_for_human_rights: h1 "Verrindale Center for Human Ri"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_human_rights/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Verrindale Center for Human Rights' || t.startsWith('Verrindale Center for Human Rights'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_human_rights: h3 "Collaborating Schools and Divi"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_human_rights/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Collaborating Schools and Divisions:' || t.startsWith('Collaborating Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_human_rights: nav link "Institutes and Programs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_human_rights/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Programs' || t.startsWith('Institutes and Programs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_human_rights: nav link "Affiliated Research Labs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_human_rights/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Research Labs' || t.startsWith('Affiliated Research Labs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_human_rights: nav link "Academic Divisions"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_human_rights/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Divisions' || t.startsWith('Academic Divisions')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - 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: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_interdisciplinary_inquiry_and_innovation_in_sexual_and_reproduct/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for cross');
});
test('Education_and_Research_Center_center_for_interdisciplinary_inquiry_and_innovation_in_sexual_and_reproduct: h3 "Associated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_interdisciplinary_inquiry_and_innovation_in_sexual_and_reproduct/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Schools and Divisions:' || t.startsWith('Associated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_interdisciplinary_inquiry_and_innovation_in_sexual_and_reproduct: nav link "Centers and Institutes"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_interdisciplinary_inquiry_and_innovation_in_sexual_and_reproduct/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Centers and Institutes' || t.startsWith('Centers and Institutes')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_interdisciplinary_inquiry_and_innovation_in_sexual_and_reproduct: nav link "Associated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_interdisciplinary_inquiry_and_innovation_in_sexual_and_reproduct/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Laboratories' || t.startsWith('Associated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_interdisciplinary_inquiry_and_innovation_in_sexual_and_reproduct: nav link "Teaching Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_interdisciplinary_inquiry_and_innovation_in_sexual_and_reproduct/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Teaching Departments' || t.startsWith('Teaching Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_international_social_science_research', () => {
test('Education_and_Research_Center_center_for_international_social_science_research: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_international_social_science_research/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for comparative and global social');
});
test('Education_and_Research_Center_center_for_international_social_science_research: h3 "Affiliated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_international_social_science_research/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Schools and Divisions:' || t.startsWith('Affiliated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_international_social_science_research: nav link "Centers and Institutes"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_international_social_science_research/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Centers and Institutes' || t.startsWith('Centers and Institutes')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_international_social_science_research: nav link "Affiliated Research Labs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_international_social_science_research/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Research Labs' || t.startsWith('Affiliated Research Labs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_international_social_science_research: nav link "University Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_international_social_science_research/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'University Departments' || t.startsWith('University Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_italian_opera_studies', () => {
test('Education_and_Research_Center_center_for_italian_opera_studies: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_italian_opera_studies/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for map engraving studies');
});
test('Education_and_Research_Center_center_for_italian_opera_studies: h3 "Partnering Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_italian_opera_studies/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Partnering Schools and Divisions:' || t.startsWith('Partnering Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_italian_opera_studies: nav link "Centers and Institutes"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_italian_opera_studies/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Centers and Institutes' || t.startsWith('Centers and Institutes')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_italian_opera_studies: nav link "Associated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_italian_opera_studies/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Laboratories' || t.startsWith('Associated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_italian_opera_studies: nav link "University Faculties"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_italian_opera_studies/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'University Faculties' || t.startsWith('University Faculties')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_jewish_studies', () => {
test('Education_and_Research_Center_center_for_jewish_studies: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_jewish_studies/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for civic inquiry');
});
test('Education_and_Research_Center_center_for_jewish_studies: h3 "Affiliated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_jewish_studies/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Schools and Divisions:' || t.startsWith('Affiliated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_jewish_studies: nav link "Institutes and Centers"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_jewish_studies/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Centers' || t.startsWith('Institutes and Centers')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_jewish_studies: nav link "Affiliated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_jewish_studies/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Laboratories' || t.startsWith('Affiliated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_jewish_studies: nav link "Academic Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_jewish_studies/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Departments' || t.startsWith('Academic Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_latin_american_studies', () => {
test('Education_and_Research_Center_center_for_latin_american_studies: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_latin_american_studies/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for transatlantic and diaspora st');
});
test('Education_and_Research_Center_center_for_latin_american_studies: h3 "Affiliated Colleges and Divisi"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_latin_american_studies/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Colleges and Divisions:' || t.startsWith('Affiliated Colleges and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_latin_american_studies: nav link "Centers and Institutes"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_latin_american_studies/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Centers and Institutes' || t.startsWith('Centers and Institutes')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_latin_american_studies: nav link "Partnered Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_latin_american_studies/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Partnered Laboratories' || t.startsWith('Partnered Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_latin_american_studies: nav link "Academic Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_latin_american_studies/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Departments' || t.startsWith('Academic Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_law_philosophy_and_human_values', () => {
test('Education_and_Research_Center_center_for_law_philosophy_and_human_values: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_law_philosophy_and_human_values/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for ethics, reasoning, and civic ');
});
test('Education_and_Research_Center_center_for_law_philosophy_and_human_values: h3 "Affiliated Schools and Faculti"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_law_philosophy_and_human_values/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Schools and Faculties:' || t.startsWith('Affiliated Schools and Faculties:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_law_philosophy_and_human_values: nav link "Institutes and Groups"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_law_philosophy_and_human_values/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Groups' || t.startsWith('Institutes and Groups')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_law_philosophy_and_human_values: nav link "Partner Research Groups"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_law_philosophy_and_human_values/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Partner Research Groups' || t.startsWith('Partner Research Groups')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_law_philosophy_and_human_values: nav link "Scholarly Programs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_law_philosophy_and_human_values/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Scholarly Programs' || t.startsWith('Scholarly Programs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_mechanical_excitability_CME', () => {
test('Education_and_Research_Center_center_for_mechanical_excitability_CME: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_mechanical_excitability_CME/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for cellular resonance (ccr)');
});
test('Education_and_Research_Center_center_for_mechanical_excitability_CME: nav link "Institutes & Programs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_mechanical_excitability_CME/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes & Programs' || t.startsWith('Institutes & Programs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_mechanical_excitability_CME: nav link "Partner Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_mechanical_excitability_CME/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Partner Laboratories' || t.startsWith('Partner Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_mechanical_excitability_CME: nav link "Scholarly Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_mechanical_excitability_CME/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Scholarly Departments' || t.startsWith('Scholarly Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_middle_eastern_studies', () => {
test('Education_and_Research_Center_center_for_middle_eastern_studies: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_middle_eastern_studies/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for middle eastern studies');
});
test('Education_and_Research_Center_center_for_middle_eastern_studies: h3 "Affiliated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_middle_eastern_studies/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Schools and Divisions:' || t.startsWith('Affiliated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_middle_eastern_studies: nav link "Institutes and Centers"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_middle_eastern_studies/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Centers' || t.startsWith('Institutes and Centers')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_middle_eastern_studies: nav link "Affiliated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_middle_eastern_studies/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Laboratories' || t.startsWith('Affiliated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_middle_eastern_studies: nav link "Academic Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_middle_eastern_studies/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Departments' || t.startsWith('Academic Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_municipal_finance', () => {
test('Education_and_Research_Center_center_for_municipal_finance: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_municipal_finance/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for regional fiscal policy');
});
test('Education_and_Research_Center_center_for_municipal_finance: h3 "Partnered Schools and Division"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_municipal_finance/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Partnered Schools and Divisions:' || t.startsWith('Partnered Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_municipal_finance: nav link "Institutes and Programs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_municipal_finance/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Programs' || t.startsWith('Institutes and Programs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_municipal_finance: nav link "Partnered Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_municipal_finance/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Partnered Laboratories' || t.startsWith('Partnered Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_municipal_finance: nav link "Scholarly Divisions"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_municipal_finance/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Scholarly Divisions' || t.startsWith('Scholarly Divisions')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_nanoscale_materials', () => {
test('Education_and_Research_Center_center_for_nanoscale_materials: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_nanoscale_materials/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for nanoscale science');
});
test('Education_and_Research_Center_center_for_nanoscale_materials: h3 "Collaborating Schools and Divi"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_nanoscale_materials/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Collaborating Schools and Divisions:' || t.startsWith('Collaborating Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_nanoscale_materials: nav link "Affiliated Institutes"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_nanoscale_materials/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Institutes' || t.startsWith('Affiliated Institutes')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_nanoscale_materials: nav link "Research Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_nanoscale_materials/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Research Laboratories' || t.startsWith('Research Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_nanoscale_materials: nav link "Academic Programs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_nanoscale_materials/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Programs' || t.startsWith('Academic Programs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_peripheral_neuropathy', () => {
test('Education_and_Research_Center_center_for_peripheral_neuropathy: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_peripheral_neuropathy/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for peripheral neuropathy');
});
test('Education_and_Research_Center_center_for_peripheral_neuropathy: h3 "Associated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_peripheral_neuropathy/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Schools and Divisions:' || t.startsWith('Associated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_peripheral_neuropathy: nav link "Centers and Institutes"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_peripheral_neuropathy/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Centers and Institutes' || t.startsWith('Centers and Institutes')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_peripheral_neuropathy: nav link "Associated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_peripheral_neuropathy/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Laboratories' || t.startsWith('Associated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_peripheral_neuropathy: nav link "Teaching Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_peripheral_neuropathy/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Teaching Departments' || t.startsWith('Teaching Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_personalized_therapeutics', () => {
test('Education_and_Research_Center_center_for_personalized_therapeutics: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_personalized_therapeutics/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for precision pharmacogenomics');
});
test('Education_and_Research_Center_center_for_personalized_therapeutics: h3 "Affiliated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_personalized_therapeutics/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Schools and Divisions:' || t.startsWith('Affiliated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_personalized_therapeutics: nav link "Institutes and Centers"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_personalized_therapeutics/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Centers' || t.startsWith('Institutes and Centers')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_personalized_therapeutics: nav link "Affiliated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_personalized_therapeutics/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Laboratories' || t.startsWith('Affiliated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_personalized_therapeutics: nav link "Academic Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_personalized_therapeutics/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Departments' || t.startsWith('Academic Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_research_informatics', () => {
test('Education_and_Research_Center_center_for_research_informatics: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_research_informatics/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for computational research');
});
test('Education_and_Research_Center_center_for_research_informatics: h3 "Affiliated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_research_informatics/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Schools and Divisions:' || t.startsWith('Affiliated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_research_informatics: nav link "Institutes and Centers"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_research_informatics/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Centers' || t.startsWith('Institutes and Centers')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_research_informatics: nav link "Affiliated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_research_informatics/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Laboratories' || t.startsWith('Affiliated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_research_informatics: nav link "Academic Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_research_informatics/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Departments' || t.startsWith('Academic Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_spatial_data_science', () => {
test('Education_and_Research_Center_center_for_spatial_data_science: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_spatial_data_science/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for spatial data science');
});
test('Education_and_Research_Center_center_for_spatial_data_science: h1 "Center for Geospatial Analytic"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_spatial_data_science/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Center for Geospatial Analytics' || t.startsWith('Center for Geospatial Analytics'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_spatial_data_science: h3 "Associated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_spatial_data_science/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Schools and Divisions:' || t.startsWith('Associated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_spatial_data_science: nav link "Centers and Institutes"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_spatial_data_science/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Centers and Institutes' || t.startsWith('Centers and Institutes')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_spatial_data_science: nav link "Associated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_spatial_data_science/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Laboratories' || t.startsWith('Associated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_spatial_data_science: nav link "Graduate Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_spatial_data_science/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Graduate Departments' || t.startsWith('Graduate Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_the_art_of_east_asia', () => {
test('Education_and_Research_Center_center_for_the_art_of_east_asia: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_the_art_of_east_asia/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for east asian art studies');
});
test('Education_and_Research_Center_center_for_the_art_of_east_asia: h3 "Partner Schools and Divisions:"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_the_art_of_east_asia/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Partner Schools and Divisions:' || t.startsWith('Partner Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_the_art_of_east_asia: nav link "Programs and Institutes"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_the_art_of_east_asia/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Programs and Institutes' || t.startsWith('Programs and Institutes')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_the_art_of_east_asia: nav link "Affiliated Research Labs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_the_art_of_east_asia/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Research Labs' || t.startsWith('Affiliated Research Labs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_the_art_of_east_asia: nav link "Scholarly Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_the_art_of_east_asia/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Scholarly Departments' || t.startsWith('Scholarly Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_for_the_economics_of_human_development', () => {
test('Education_and_Research_Center_center_for_the_economics_of_human_development: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_the_economics_of_human_development/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for the economics of human flouri');
});
test('Education_and_Research_Center_center_for_the_economics_of_human_development: h3 "Affiliated Schools and Faculti"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_the_economics_of_human_development/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Schools and Faculties:' || t.startsWith('Affiliated Schools and Faculties:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_the_economics_of_human_development: nav link "Schools and Programs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_the_economics_of_human_development/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Schools and Programs' || t.startsWith('Schools and Programs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_the_economics_of_human_development: nav link "Affiliated Research Labs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_the_economics_of_human_development/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Research Labs' || t.startsWith('Affiliated Research Labs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_the_economics_of_human_development: nav link "Graduate Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_the_economics_of_human_development/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Graduate Departments' || t.startsWith('Graduate Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - 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: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center-for-the-science-of-early-trajectories-set/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for the science of formative path');
});
test('Education_and_Research_Center_center_for_the_science_of_early_trajectories_set: h1 "Center for the Science of Form"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center-for-the-science-of-early-trajectories-set/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Center for the Science of Formative Pathways (SFP)' || t.startsWith('Center for the Science of Formative Pathways (SFP)'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_the_science_of_early_trajectories_set: h3 "Associated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center-for-the-science-of-early-trajectories-set/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Schools and Divisions:' || t.startsWith('Associated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_the_science_of_early_trajectories_set: nav link "Institutes and Centers"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center-for-the-science-of-early-trajectories-set/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Centers' || t.startsWith('Institutes and Centers')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_the_science_of_early_trajectories_set: nav link "Research Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center-for-the-science-of-early-trajectories-set/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Research Laboratories' || t.startsWith('Research Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_the_science_of_early_trajectories_set: nav link "Academic Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center-for-the-science-of-early-trajectories-set/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Departments' || t.startsWith('Academic Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - 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: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_the_study_of_politics_and_society/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for the study of governance and s');
});
test('Education_and_Research_Center_center_for_the_study_of_politics_and_society: h3 "Partner Colleges and Divisions"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_the_study_of_politics_and_society/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Partner Colleges and Divisions:' || t.startsWith('Partner Colleges and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_the_study_of_politics_and_society: nav link "Programs and Centers"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_the_study_of_politics_and_society/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Programs and Centers' || t.startsWith('Programs and Centers')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_the_study_of_politics_and_society: nav link "Affiliated Research Labs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_the_study_of_politics_and_society/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Research Labs' || t.startsWith('Affiliated Research Labs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_the_study_of_politics_and_society: nav link "Scholarly Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_the_study_of_politics_and_society/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Scholarly Departments' || t.startsWith('Scholarly Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - 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: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_the_study_of_race_politics_and_culture/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for the study of society, power a');
});
test('Education_and_Research_Center_center_for_the_study_of_race_politics_and_culture: h3 "Affiliated Colleges and Divisi"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_the_study_of_race_politics_and_culture/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Colleges and Divisions:' || t.startsWith('Affiliated Colleges and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_for_the_study_of_race_politics_and_culture: nav link "Institutes and Programs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_the_study_of_race_politics_and_culture/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Programs' || t.startsWith('Institutes and Programs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_the_study_of_race_politics_and_culture: nav link "Partnered Research Labs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_the_study_of_race_politics_and_culture/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Partnered Research Labs' || t.startsWith('Partnered Research Labs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_for_the_study_of_race_politics_and_culture: nav link "Academic Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_for_the_study_of_race_politics_and_culture/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Departments' || t.startsWith('Academic Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_in_beijing', () => {
test('Education_and_Research_Center_center_in_beijing: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_in_beijing/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center in beijing');
});
test('Education_and_Research_Center_center_in_beijing: h3 "Affiliated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_in_beijing/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Schools and Divisions:' || t.startsWith('Affiliated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_in_beijing: nav link "Institutes and Centers"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_in_beijing/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Centers' || t.startsWith('Institutes and Centers')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_in_beijing: nav link "Affiliated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_in_beijing/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Laboratories' || t.startsWith('Affiliated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_in_beijing: nav link "Academic Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_in_beijing/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Departments' || t.startsWith('Academic Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_in_delhi', () => {
test('Education_and_Research_Center_center_in_delhi: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_in_delhi/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('global center');
});
test('Education_and_Research_Center_center_in_delhi: h3 "Affiliated Colleges and School"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_in_delhi/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Colleges and Schools:' || t.startsWith('Affiliated Colleges and Schools:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_in_delhi: nav link "Institutes and Programs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_in_delhi/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Programs' || t.startsWith('Institutes and Programs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_in_delhi: nav link "Affiliated Research Labs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_in_delhi/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Research Labs' || t.startsWith('Affiliated Research Labs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_in_delhi: nav link "Academic Divisions"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_in_delhi/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Divisions' || t.startsWith('Academic Divisions')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_in_paris', () => {
test('Education_and_Research_Center_center_in_paris: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_in_paris/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('european research centre');
});
test('Education_and_Research_Center_center_in_paris: h1 "European Centre"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_in_paris/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'European Centre' || t.startsWith('European Centre'))).toBeTruthy();
});
test('Education_and_Research_Center_center_in_paris: h3 "Affiliated Faculties and Schoo"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_in_paris/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Faculties and Schools:' || t.startsWith('Affiliated Faculties and Schools:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_in_paris: nav link "Institutes and Centres"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_in_paris/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Centres' || t.startsWith('Institutes and Centres')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_in_paris: nav link "Partnered Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_in_paris/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Partnered Laboratories' || t.startsWith('Partnered Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_in_paris: nav link "Teaching Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_in_paris/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Teaching Departments' || t.startsWith('Teaching Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_center_on_demography_and_economics_of_aging', () => {
test('Education_and_Research_Center_center_on_demography_and_economics_of_aging: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_on_demography_and_economics_of_aging/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center on demography and economics of ag');
});
test('Education_and_Research_Center_center_on_demography_and_economics_of_aging: h3 "Affiliated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_on_demography_and_economics_of_aging/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Schools and Divisions:' || t.startsWith('Affiliated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_center_on_demography_and_economics_of_aging: nav link "Institutes and Centers"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_on_demography_and_economics_of_aging/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Centers' || t.startsWith('Institutes and Centers')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_on_demography_and_economics_of_aging: nav link "Affiliated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_on_demography_and_economics_of_aging/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Laboratories' || t.startsWith('Affiliated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_center_on_demography_and_economics_of_aging: nav link "Academic Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/center_on_demography_and_economics_of_aging/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Departments' || t.startsWith('Academic Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_chicago_biomedical_consortium', () => {
test('Education_and_Research_Center_chicago_biomedical_consortium: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_biomedical_consortium/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('verrindale biomedical research alliance');
});
test('Education_and_Research_Center_chicago_biomedical_consortium: h1 "Verrindale Biomedical Alliance"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_biomedical_consortium/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Verrindale Biomedical Alliance' || t.startsWith('Verrindale Biomedical Alliance'))).toBeTruthy();
});
test('Education_and_Research_Center_chicago_biomedical_consortium: h3 "Member Schools and Institutes:"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_biomedical_consortium/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Member Schools and Institutes:' || t.startsWith('Member Schools and Institutes:'))).toBeTruthy();
});
test('Education_and_Research_Center_chicago_biomedical_consortium: nav link "Research Collaboratives"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_biomedical_consortium/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Research Collaboratives' || t.startsWith('Research Collaboratives')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_chicago_biomedical_consortium: nav link "Associated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_biomedical_consortium/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Laboratories' || t.startsWith('Associated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_chicago_biomedical_consortium: nav link "Faculty Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_biomedical_consortium/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Faculty Departments' || t.startsWith('Faculty Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_chicago_center_for_contemporary_theory', () => {
test('Education_and_Research_Center_chicago_center_for_contemporary_theory: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago-center-for-contemporary-theory/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('verrindale center for contemporary thoug');
});
test('Education_and_Research_Center_chicago_center_for_contemporary_theory: h1 "VCT (Verrindale Center for Con"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago-center-for-contemporary-theory/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'VCT (Verrindale Center for Contemporary Thought)' || t.startsWith('VCT (Verrindale Center for Contemporary Thought)'))).toBeTruthy();
});
test('Education_and_Research_Center_chicago_center_for_contemporary_theory: h3 "Associated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago-center-for-contemporary-theory/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Schools and Divisions:' || t.startsWith('Associated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_chicago_center_for_contemporary_theory: nav link "Centers and Institutes"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago-center-for-contemporary-theory/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Centers and Institutes' || t.startsWith('Centers and Institutes')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_chicago_center_for_contemporary_theory: nav link "Research Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago-center-for-contemporary-theory/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Research Laboratories' || t.startsWith('Research Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_chicago_center_for_contemporary_theory: nav link "University Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago-center-for-contemporary-theory/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'University Departments' || t.startsWith('University Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_chicago_center_for_cosmochemistry', () => {
test('Education_and_Research_Center_chicago_center_for_cosmochemistry: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_center_for_cosmochemistry/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('verrindale center for cosmochemistry');
});
test('Education_and_Research_Center_chicago_center_for_cosmochemistry: h3 "Partner Schools and Divisions:"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_center_for_cosmochemistry/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Partner Schools and Divisions:' || t.startsWith('Partner Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_chicago_center_for_cosmochemistry: nav link "Institutes and Centers"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_center_for_cosmochemistry/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Centers' || t.startsWith('Institutes and Centers')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_chicago_center_for_cosmochemistry: nav link "Affiliated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_center_for_cosmochemistry/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Laboratories' || t.startsWith('Affiliated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_chicago_center_for_cosmochemistry: nav link "Academic Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_center_for_cosmochemistry/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Departments' || t.startsWith('Academic Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - 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: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_center_for_the_theory_of_computing_and_allied_areas/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('verrindale center for computing theory a');
});
test('Education_and_Research_Center_chicago_center_for_the_theory_of_computing_and_allied_areas: nav link "Centers and Programs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_center_for_the_theory_of_computing_and_allied_areas/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Centers and Programs' || t.startsWith('Centers and Programs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_chicago_center_for_the_theory_of_computing_and_allied_areas: nav link "Partner Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_center_for_the_theory_of_computing_and_allied_areas/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Partner Laboratories' || t.startsWith('Partner Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_chicago_center_for_the_theory_of_computing_and_allied_areas: nav link "Academic Divisions"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_center_for_the_theory_of_computing_and_allied_areas/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Divisions' || t.startsWith('Academic Divisions')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_chicago_center_for_theoretical_chemistry', () => {
test('Education_and_Research_Center_chicago_center_for_theoretical_chemistry: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_center_for_theoretical_chemistry/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('verrindale center for theoretical chemis');
});
test('Education_and_Research_Center_chicago_center_for_theoretical_chemistry: h3 "Associated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_center_for_theoretical_chemistry/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Schools and Divisions:' || t.startsWith('Associated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_chicago_center_for_theoretical_chemistry: nav link "Centers and Programs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_center_for_theoretical_chemistry/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Centers and Programs' || t.startsWith('Centers and Programs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_chicago_center_for_theoretical_chemistry: nav link "Partner Research Labs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_center_for_theoretical_chemistry/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Partner Research Labs' || t.startsWith('Partner Research Labs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_chicago_center_for_theoretical_chemistry: nav link "Scholarly Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_center_for_theoretical_chemistry/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Scholarly Departments' || t.startsWith('Scholarly Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_chicago_center_on_democracy', () => {
test('Education_and_Research_Center_chicago_center_on_democracy: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_center_on_democracy/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('verrindale center on democracy');
});
test('Education_and_Research_Center_chicago_center_on_democracy: h3 "Partner Schools and Divisions:"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_center_on_democracy/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Partner Schools and Divisions:' || t.startsWith('Partner Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_chicago_center_on_democracy: nav link "Centers and Institutes"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_center_on_democracy/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Centers and Institutes' || t.startsWith('Centers and Institutes')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_chicago_center_on_democracy: nav link "Partner Research Labs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_center_on_democracy/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Partner Research Labs' || t.startsWith('Partner Research Labs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_chicago_center_on_democracy: nav link "Scholarly Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_center_on_democracy/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Scholarly Departments' || t.startsWith('Scholarly Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_chicago_immunoengineering_innovation_center', () => {
test('Education_and_Research_Center_chicago_immunoengineering_innovation_center: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_immunoengineering_innovation_center/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('verrindale immunoengineering discovery c');
});
test('Education_and_Research_Center_chicago_immunoengineering_innovation_center: h3 "Affiliated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_immunoengineering_innovation_center/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Schools and Divisions:' || t.startsWith('Affiliated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_chicago_immunoengineering_innovation_center: nav link "Institutes and Centers"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_immunoengineering_innovation_center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Centers' || t.startsWith('Institutes and Centers')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_chicago_immunoengineering_innovation_center: nav link "Affiliated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_immunoengineering_innovation_center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Laboratories' || t.startsWith('Affiliated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_chicago_immunoengineering_innovation_center: nav link "Academic Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_immunoengineering_innovation_center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Departments' || t.startsWith('Academic Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_chicago_quantum_exchange', () => {
test('Education_and_Research_Center_chicago_quantum_exchange: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_quantum_exchange/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('verrindale quantum network');
});
test('Education_and_Research_Center_chicago_quantum_exchange: h3 "Affiliated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_quantum_exchange/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Schools and Divisions:' || t.startsWith('Affiliated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_chicago_quantum_exchange: nav link "Institutes and Centers"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_quantum_exchange/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Centers' || t.startsWith('Institutes and Centers')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_chicago_quantum_exchange: nav link "Affiliated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_quantum_exchange/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Laboratories' || t.startsWith('Affiliated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_chicago_quantum_exchange: nav link "Academic Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/chicago_quantum_exchange/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Departments' || t.startsWith('Academic Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_coase_sandor_institute', () => {
test('Education_and_Research_Center_coase_sandor_institute: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/coase-sandor_institute/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('marrowfield institute for law and econom');
});
test('Education_and_Research_Center_coase_sandor_institute: h3 "Affiliated Colleges and Divisi"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/coase-sandor_institute/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Colleges and Divisions:' || t.startsWith('Affiliated Colleges and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_coase_sandor_institute: nav link "Institutes and Programs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/coase-sandor_institute/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Programs' || t.startsWith('Institutes and Programs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_coase_sandor_institute: nav link "Affiliated Research Labs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/coase-sandor_institute/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Research Labs' || t.startsWith('Affiliated Research Labs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_coase_sandor_institute: nav link "Academic Divisions"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/coase-sandor_institute/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Divisions' || t.startsWith('Academic Divisions')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_comprehensive_cancer_center', () => {
test('Education_and_Research_Center_comprehensive_cancer_center: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/comprehensive_cancer_center/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('comprehensive cancer center');
});
test('Education_and_Research_Center_comprehensive_cancer_center: h3 "Associated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/comprehensive_cancer_center/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Schools and Divisions:' || t.startsWith('Associated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_comprehensive_cancer_center: nav link "Institutes and Centers"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/comprehensive_cancer_center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Centers' || t.startsWith('Institutes and Centers')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_comprehensive_cancer_center: nav link "Affiliated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/comprehensive_cancer_center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Laboratories' || t.startsWith('Affiliated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_comprehensive_cancer_center: nav link "Academic Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/comprehensive_cancer_center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Departments' || t.startsWith('Academic Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_computation_institute', () => {
test('Education_and_Research_Center_computation_institute: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/computation_institute/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('institute for advanced computing');
});
test('Education_and_Research_Center_computation_institute: h1 "Advanced Computing"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/computation_institute/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Advanced Computing' || t.startsWith('Advanced Computing'))).toBeTruthy();
});
test('Education_and_Research_Center_computation_institute: h3 "Affiliated Schools and Program"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/computation_institute/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Schools and Programs:' || t.startsWith('Affiliated Schools and Programs:'))).toBeTruthy();
});
test('Education_and_Research_Center_computation_institute: nav link "Institutes and Programs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/computation_institute/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Programs' || t.startsWith('Institutes and Programs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_computation_institute: nav link "Affiliated Research Labs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/computation_institute/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Research Labs' || t.startsWith('Affiliated Research Labs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_computation_institute: nav link "Academic Divisions"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/computation_institute/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Divisions' || t.startsWith('Academic Divisions')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_creel_center_for_chinese_paleography', () => {
test('Education_and_Research_Center_creel_center_for_chinese_paleography: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/creel_center_for_chinese_paleography/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('halvorsen center for ancient scripts');
});
test('Education_and_Research_Center_creel_center_for_chinese_paleography: h3 "Affiliated Schools and Faculti"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/creel_center_for_chinese_paleography/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Schools and Faculties:' || t.startsWith('Affiliated Schools and Faculties:'))).toBeTruthy();
});
test('Education_and_Research_Center_creel_center_for_chinese_paleography: nav link "Programs and Divisions"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/creel_center_for_chinese_paleography/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Programs and Divisions' || t.startsWith('Programs and Divisions')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_creel_center_for_chinese_paleography: nav link "Collaborative Programs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/creel_center_for_chinese_paleography/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Collaborative Programs' || t.startsWith('Collaborative Programs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_creel_center_for_chinese_paleography: nav link "Academic Divisions"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/creel_center_for_chinese_paleography/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Divisions' || t.startsWith('Academic Divisions')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_crime_lab', () => {
test('Education_and_Research_Center_crime_lab: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/crime_lab/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('safety lab');
});
test('Education_and_Research_Center_crime_lab: h3 "Partnering Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/crime_lab/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Partnering Schools and Divisions:' || t.startsWith('Partnering Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_crime_lab: nav link "Centers and Institutes"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/crime_lab/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Centers and Institutes' || t.startsWith('Centers and Institutes')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_crime_lab: nav link "Affiliated Research Labs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/crime_lab/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Research Labs' || t.startsWith('Affiliated Research Labs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_crime_lab: nav link "Academic Divisions"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/crime_lab/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Divisions' || t.startsWith('Academic Divisions')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_dark_energy_survey', () => {
test('Education_and_Research_Center_dark_energy_survey: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/dark_energy_survey/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('deep cosmos survey');
});
test('Education_and_Research_Center_dark_energy_survey: h3 "Partner Colleges and Divisions"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/dark_energy_survey/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Partner Colleges and Divisions:' || t.startsWith('Partner Colleges and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_dark_energy_survey: nav link "Research Hubs and Labs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/dark_energy_survey/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Research Hubs and Labs' || t.startsWith('Research Hubs and Labs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_dark_energy_survey: nav link "Affiliated Field Sites"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/dark_energy_survey/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Field Sites' || t.startsWith('Affiliated Field Sites')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_dark_energy_survey: nav link "Teaching Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/dark_energy_survey/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Teaching Departments' || t.startsWith('Teaching Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_data_science_institute_dsi', () => {
test('Education_and_Research_Center_data_science_institute_dsi: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/data_science_institute_dsi/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('applied data institute (adi)');
});
test('Education_and_Research_Center_data_science_institute_dsi: h3 "Associated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/data_science_institute_dsi/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Schools and Divisions:' || t.startsWith('Associated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_data_science_institute_dsi: nav link "Institutes and Programs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/data_science_institute_dsi/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Programs' || t.startsWith('Institutes and Programs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_data_science_institute_dsi: nav link "Associated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/data_science_institute_dsi/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Laboratories' || t.startsWith('Associated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_data_science_institute_dsi: nav link "Academic Divisions"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/data_science_institute_dsi/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Divisions' || t.startsWith('Academic Divisions')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_digestive_diseases_research_core_center', () => {
test('Education_and_Research_Center_digestive_diseases_research_core_center: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/digestive_diseases_research_core_center/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('center for digestive and metabolic resea');
});
test('Education_and_Research_Center_digestive_diseases_research_core_center: h3 "Associated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/digestive_diseases_research_core_center/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Schools and Divisions:' || t.startsWith('Associated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_digestive_diseases_research_core_center: nav link "Institutes and Programs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/digestive_diseases_research_core_center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Programs' || t.startsWith('Institutes and Programs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_digestive_diseases_research_core_center: nav link "Associated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/digestive_diseases_research_core_center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Laboratories' || t.startsWith('Associated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_digestive_diseases_research_core_center: nav link "Teaching Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/digestive_diseases_research_core_center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Teaching Departments' || t.startsWith('Teaching Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_duchossois_family_institute', () => {
test('Education_and_Research_Center_duchossois_family_institute: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/duchossois_family_institute/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('frontier health institute');
});
test('Education_and_Research_Center_duchossois_family_institute: h3 "Associated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/duchossois_family_institute/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Schools and Divisions:' || t.startsWith('Associated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_duchossois_family_institute: nav link "Centers and Institutes"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/duchossois_family_institute/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Centers and Institutes' || t.startsWith('Centers and Institutes')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_duchossois_family_institute: nav link "Associated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/duchossois_family_institute/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Laboratories' || t.startsWith('Associated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_duchossois_family_institute: nav link "Teaching Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/duchossois_family_institute/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Teaching Departments' || t.startsWith('Teaching Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_energy_policy_institute_at_chicago', () => {
test('Education_and_Research_Center_energy_policy_institute_at_chicago: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/energy_policy_institute_at_chicago/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('energy and policy research center');
});
test('Education_and_Research_Center_energy_policy_institute_at_chicago: h3 "Affiliated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/energy_policy_institute_at_chicago/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Schools and Divisions:' || t.startsWith('Affiliated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_energy_policy_institute_at_chicago: nav link "Institutes and Centers"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/energy_policy_institute_at_chicago/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Centers' || t.startsWith('Institutes and Centers')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_energy_policy_institute_at_chicago: nav link "Affiliated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/energy_policy_institute_at_chicago/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Laboratories' || t.startsWith('Affiliated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_energy_policy_institute_at_chicago: nav link "Academic Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/energy_policy_institute_at_chicago/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Departments' || t.startsWith('Academic Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_enrico_fermi_institute', () => {
test('Education_and_Research_Center_enrico_fermi_institute: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/enrico_fermi_institute/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('halvorsen institute');
});
test('Education_and_Research_Center_enrico_fermi_institute: h3 "Partner Schools and Divisions:"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/enrico_fermi_institute/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Partner Schools and Divisions:' || t.startsWith('Partner Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_enrico_fermi_institute: nav link "Institutes & Programs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/enrico_fermi_institute/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes & Programs' || t.startsWith('Institutes & Programs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_enrico_fermi_institute: nav link "Associated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/enrico_fermi_institute/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Associated Laboratories' || t.startsWith('Associated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_enrico_fermi_institute: nav link "Academic Divisions"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/enrico_fermi_institute/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Divisions' || t.startsWith('Academic Divisions')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_fama_miller_center_for_research_in_finance', () => {
test('Education_and_Research_Center_fama_miller_center_for_research_in_finance: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/fama_miller_center_for_research_in_finance/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('halloran');
});
test('Education_and_Research_Center_fama_miller_center_for_research_in_finance: h3 "Affiliated Faculties and Units"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/fama_miller_center_for_research_in_finance/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Faculties and Units:' || t.startsWith('Affiliated Faculties and Units:'))).toBeTruthy();
});
test('Education_and_Research_Center_fama_miller_center_for_research_in_finance: nav link "Research Hubs and Labs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/fama_miller_center_for_research_in_finance/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Research Hubs and Labs' || t.startsWith('Research Hubs and Labs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_fama_miller_center_for_research_in_finance: nav link "Partner Research Groups"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/fama_miller_center_for_research_in_finance/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Partner Research Groups' || t.startsWith('Partner Research Groups')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_fama_miller_center_for_research_in_finance: nav link "University Faculties"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/fama_miller_center_for_research_in_finance/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'University Faculties' || t.startsWith('University Faculties')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_france_chicago_center', () => {
test('Education_and_Research_Center_france_chicago_center: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/france_chicago_center/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('global exchange center');
});
test('Education_and_Research_Center_france_chicago_center: h3 "Affiliated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/france_chicago_center/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Schools and Divisions:' || t.startsWith('Affiliated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_france_chicago_center: nav link "Institutes and Centers"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/france_chicago_center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Centers' || t.startsWith('Institutes and Centers')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_france_chicago_center: nav link "Affiliated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/france_chicago_center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Laboratories' || t.startsWith('Affiliated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_france_chicago_center: nav link "Academic Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/france_chicago_center/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Departments' || t.startsWith('Academic Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_franke_institute_for_the_humanities', () => {
test('Education_and_Research_Center_franke_institute_for_the_humanities: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/franke_institute_for_the_humanities/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('verrindale institute for the humanities');
});
test('Education_and_Research_Center_franke_institute_for_the_humanities: h3 "Affiliated Schools and Program"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/franke_institute_for_the_humanities/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Schools and Programs:' || t.startsWith('Affiliated Schools and Programs:'))).toBeTruthy();
});
test('Education_and_Research_Center_franke_institute_for_the_humanities: nav link "Institutes and Programs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/franke_institute_for_the_humanities/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Programs' || t.startsWith('Institutes and Programs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_franke_institute_for_the_humanities: nav link "Affiliated Research Labs"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/franke_institute_for_the_humanities/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Research Labs' || t.startsWith('Affiliated Research Labs')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_franke_institute_for_the_humanities: nav link "Scholarly Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/franke_institute_for_the_humanities/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Scholarly Departments' || t.startsWith('Scholarly Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Education_and_Research_Center_gwen_knapp_center_for_lupus_immunology_research', () => {
test('Education_and_Research_Center_gwen_knapp_center_for_lupus_immunology_research: title matches GT', async ({ page }) => {
await page.goto('/Education-and-Research/Center/gwen_knapp_center_for_lupus_immunology_research/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('halbrook center for autoimmune & immunol');
});
test('Education_and_Research_Center_gwen_knapp_center_for_lupus_immunology_research: h1 "Halbrook Center for Autoimmune"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/gwen_knapp_center_for_lupus_immunology_research/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Halbrook Center for Autoimmune and Immunology Research' || t.startsWith('Halbrook Center for Autoimmune and Immunology Research'))).toBeTruthy();
});
test('Education_and_Research_Center_gwen_knapp_center_for_lupus_immunology_research: h3 "Affiliated Schools and Divisio"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/gwen_knapp_center_for_lupus_immunology_research/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Schools and Divisions:' || t.startsWith('Affiliated Schools and Divisions:'))).toBeTruthy();
});
test('Education_and_Research_Center_gwen_knapp_center_for_lupus_immunology_research: nav link "Institutes and Centers"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/gwen_knapp_center_for_lupus_immunology_research/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Institutes and Centers' || t.startsWith('Institutes and Centers')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('center')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_gwen_knapp_center_for_lupus_immunology_research: nav link "Affiliated Laboratories"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/gwen_knapp_center_for_lupus_immunology_research/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Affiliated Laboratories' || t.startsWith('Affiliated Laboratories')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('affliated-laboratories')), 'href fragment present').toBeTruthy();
});
test('Education_and_Research_Center_gwen_knapp_center_for_lupus_immunology_research: nav link "Academic Departments"', async ({ page }) => {
await page.goto('/Education-and-Research/Center/gwen_knapp_center_for_lupus_immunology_research/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Academic Departments' || t.startsWith('Academic Departments')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('academic-departments')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Routing', () => {
});