import { test, expect } from '@playwright/test'; test.describe('Structural - homepage', () => { test('homepage: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('homepage: heading hierarchy is valid', async ({ page }) => { await page.goto('/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('homepage: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - about', () => { test('about: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/about/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('about: heading hierarchy is valid', async ({ page }) => { await page.goto('/about/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('about: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/about/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - accessibility_declaration', () => { test('accessibility_declaration: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/accessibility-declaration/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('accessibility_declaration: heading hierarchy is valid', async ({ page }) => { await page.goto('/accessibility-declaration/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('accessibility_declaration: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/accessibility-declaration/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - assets', () => { test('assets: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/assets/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('assets: heading hierarchy is valid', async ({ page }) => { await page.goto('/assets/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('assets: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/assets/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - california_residents_privacy_statement', () => { test('california_residents_privacy_statement: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/california-residents-privacy-statement/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('california_residents_privacy_statement: heading hierarchy is valid', async ({ page }) => { await page.goto('/california-residents-privacy-statement/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('california_residents_privacy_statement: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/california-residents-privacy-statement/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - investments', () => { test('investments: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/investments/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('investments: heading hierarchy is valid', async ({ page }) => { await page.goto('/investments/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('investments: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/investments/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - legal', () => { test('legal: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/legal/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('legal: heading hierarchy is valid', async ({ page }) => { await page.goto('/legal/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('legal: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/legal/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news', () => { test('news: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - privacy', () => { test('privacy: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/privacy/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('privacy: heading hierarchy is valid', async ({ page }) => { await page.goto('/privacy/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('privacy: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/privacy/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - privacy_statement_eea_and_uk_addendum', () => { test('privacy_statement_eea_and_uk_addendum: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/privacy-statement-eea-and-uk-addendum/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('privacy_statement_eea_and_uk_addendum: heading hierarchy is valid', async ({ page }) => { await page.goto('/privacy-statement-eea-and-uk-addendum/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('privacy_statement_eea_and_uk_addendum: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/privacy-statement-eea-and-uk-addendum/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - privacy_statement_singapore_addendum', () => { test('privacy_statement_singapore_addendum: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/privacy-statement-singapore-addendum/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('privacy_statement_singapore_addendum: heading hierarchy is valid', async ({ page }) => { await page.goto('/privacy-statement-singapore-addendum/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('privacy_statement_singapore_addendum: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/privacy-statement-singapore-addendum/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - public_securities_responsible_investing', () => { test('public_securities_responsible_investing: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/public-securities-responsible-investing/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('public_securities_responsible_investing: heading hierarchy is valid', async ({ page }) => { await page.goto('/public-securities-responsible-investing/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('public_securities_responsible_investing: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/public-securities-responsible-investing/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - research', () => { test('research: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/research/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('research: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/research/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - resilience', () => { test('resilience: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/resilience/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('resilience: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/resilience/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - social_media_disclaimer', () => { test('social_media_disclaimer: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/social-media-disclaimer/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('social_media_disclaimer: heading hierarchy is valid', async ({ page }) => { await page.goto('/social-media-disclaimer/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('social_media_disclaimer: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/social-media-disclaimer/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - socially_responsible_investment', () => { test('socially_responsible_investment: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/socially-responsible-investment/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('socially_responsible_investment: heading hierarchy is valid', async ({ page }) => { await page.goto('/socially-responsible-investment/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('socially_responsible_investment: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/socially-responsible-investment/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - terms_of_use', () => { test('terms_of_use: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/terms-of-use/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('terms_of_use: heading hierarchy is valid', async ({ page }) => { await page.goto('/terms-of-use/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('terms_of_use: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/terms-of-use/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - about_contact', () => { test('about_contact: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/about/contact/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('about_contact: heading hierarchy is valid', async ({ page }) => { await page.goto('/about/contact/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('about_contact: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/about/contact/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - about_people', () => { test('about_people: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/about/people/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('about_people: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/about/people/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - investments_vehicles', () => { test('investments_vehicles: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/investments/vehicles/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('investments_vehicles: heading hierarchy is valid', async ({ page }) => { await page.goto('/investments/vehicles/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('investments_vehicles: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/investments/vehicles/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_verendale_capital_management_and_gmh_communities_acquire_two_student_housing_properties', () => { test('news_verendale_capital_management_and_gmh_communities_acquire_two_student_housing_properties: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/verendale-capital-management-and-gmh-communities-acquire-two-student-housing-properties/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_verendale_capital_management_and_gmh_communities_acquire_two_student_housing_properties: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/verendale-capital-management-and-gmh-communities-acquire-two-student-housing-properties/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_verendale_capital_management_and_gmh_communities_acquire_two_student_housing_properties: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/verendale-capital-management-and-gmh-communities-acquire-two-student-housing-properties/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_verendale_europe_acquires_11_000_sqm_last_mile_urban_industrial_development_in_munich', () => { test('news_verendale_europe_acquires_11_000_sqm_last_mile_urban_industrial_development_in_munich: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/verendale-europe-acquires-11-000-sqm-last-mile-urban-industrial-development-in-munich/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_verendale_europe_acquires_11_000_sqm_last_mile_urban_industrial_development_in_munich: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/verendale-europe-acquires-11-000-sqm-last-mile-urban-industrial-development-in-munich/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_verendale_europe_acquires_11_000_sqm_last_mile_urban_industrial_development_in_munich: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/verendale-europe-acquires-11-000-sqm-last-mile-urban-industrial-development-in-munich/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_verendale_europe_acquires_55_000_sqm_grade_a_logistics_asset_north_east_of_milan_italy', () => { test('news_verendale_europe_acquires_55_000_sqm_grade_a_logistics_asset_north_east_of_milan_italy: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/verendale-europe-acquires-55-000-sqm-grade-a-logistics-asset-north-east-of-milan-italy/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_verendale_europe_acquires_55_000_sqm_grade_a_logistics_asset_north_east_of_milan_italy: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/verendale-europe-acquires-55-000-sqm-grade-a-logistics-asset-north-east-of-milan-italy/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_verendale_europe_acquires_55_000_sqm_grade_a_logistics_asset_north_east_of_milan_italy: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/verendale-europe-acquires-55-000-sqm-grade-a-logistics-asset-north-east-of-milan-italy/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_verendale_europe_acquires_a_life_science_asset_in_the_netherlands', () => { test('news_verendale_europe_acquires_a_life_science_asset_in_the_netherlands: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/verendale-europe-acquires-a-life-science-asset-in-the-netherlands/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_verendale_europe_acquires_a_life_science_asset_in_the_netherlands: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/verendale-europe-acquires-a-life-science-asset-in-the-netherlands/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_verendale_europe_acquires_a_life_science_asset_in_the_netherlands: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/verendale-europe-acquires-a-life-science-asset-in-the-netherlands/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_verendale_europe_acquires_c_22_000_sqm_grade_a_logistics_platform_in_cavaillon_france', () => { test('news_verendale_europe_acquires_c_22_000_sqm_grade_a_logistics_platform_in_cavaillon_france: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/verendale-europe-acquires-c-22-000-sqm-grade-a-logistics-platform-in-cavaillon-france/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_verendale_europe_acquires_c_22_000_sqm_grade_a_logistics_platform_in_cavaillon_france: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/verendale-europe-acquires-c-22-000-sqm-grade-a-logistics-platform-in-cavaillon-france/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_verendale_europe_acquires_c_22_000_sqm_grade_a_logistics_platform_in_cavaillon_france: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/verendale-europe-acquires-c-22-000-sqm-grade-a-logistics-platform-in-cavaillon-france/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_verendale_europe_acquires_c_5_000_sqm_dwengerkamp_logistics_asset_in_hamburg_via_a_sale_and_leaseback', () => { test('news_verendale_europe_acquires_c_5_000_sqm_dwengerkamp_logistics_asset_in_hamburg_via_a_sale_and_leaseback: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/verendale-europe-acquires-c-5-000-sqm-dwengerkamp-logistics-asset-in-hamburg-via-a-sale-and-leaseback/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_verendale_europe_acquires_c_5_000_sqm_dwengerkamp_logistics_asset_in_hamburg_via_a_sale_and_leaseback: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/verendale-europe-acquires-c-5-000-sqm-dwengerkamp-logistics-asset-in-hamburg-via-a-sale-and-leaseback/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_verendale_europe_acquires_c_5_000_sqm_dwengerkamp_logistics_asset_in_hamburg_via_a_sale_and_leaseback: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/verendale-europe-acquires-c-5-000-sqm-dwengerkamp-logistics-asset-in-hamburg-via-a-sale-and-leaseback/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_verendale_europe_acquires_c_97_000_sqm_portfolio_of_urban_logistics', () => { test('news_verendale_europe_acquires_c_97_000_sqm_portfolio_of_urban_logistics: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/verendale-europe-acquires-c-97-000-sqm-portfolio-of-urban-logistics/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_verendale_europe_acquires_c_97_000_sqm_portfolio_of_urban_logistics: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/verendale-europe-acquires-c-97-000-sqm-portfolio-of-urban-logistics/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_verendale_europe_acquires_c_97_000_sqm_portfolio_of_urban_logistics: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/verendale-europe-acquires-c-97-000-sqm-portfolio-of-urban-logistics/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_verendale_europe_acquires_fully_let_c_19_000_sqm_grade_a_logistics_asset_in_le_bignon_france', () => { test('news_verendale_europe_acquires_fully_let_c_19_000_sqm_grade_a_logistics_asset_in_le_bignon_france: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/verendale-europe-acquires-fully-let-c-19-000-sqm-grade-a-logistics-asset-in-le-bignon-france/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_verendale_europe_acquires_fully_let_c_19_000_sqm_grade_a_logistics_asset_in_le_bignon_france: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/verendale-europe-acquires-fully-let-c-19-000-sqm-grade-a-logistics-asset-in-le-bignon-france/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_verendale_europe_acquires_fully_let_c_19_000_sqm_grade_a_logistics_asset_in_le_bignon_france: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/verendale-europe-acquires-fully-let-c-19-000-sqm-grade-a-logistics-asset-in-le-bignon-france/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_verendale_europe_acquires_new_fully_let_10_680_sqm_distribution_warehouse_in_pfungstadt_near_frankfurt', () => { test('news_verendale_europe_acquires_new_fully_let_10_680_sqm_distribution_warehouse_in_pfungstadt_near_frankfurt: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/verendale-europe-acquires-new-fully-let-10-680-sqm-distribution-warehouse-in-pfungstadt-near-frankfurt/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_verendale_europe_acquires_new_fully_let_10_680_sqm_distribution_warehouse_in_pfungstadt_near_frankfurt: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/verendale-europe-acquires-new-fully-let-10-680-sqm-distribution-warehouse-in-pfungstadt-near-frankfurt/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_verendale_europe_acquires_new_fully_let_10_680_sqm_distribution_warehouse_in_pfungstadt_near_frankfurt: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/verendale-europe-acquires-new-fully-let-10-680-sqm-distribution-warehouse-in-pfungstadt-near-frankfurt/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_verendale_europe_acquires_prime_high_street_retail_asset_let_to_danish_brand_bolia_in_pariss_8th_district', () => { test('news_verendale_europe_acquires_prime_high_street_retail_asset_let_to_danish_brand_bolia_in_pariss_8th_district: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/verendale-europe-acquires-prime-high-street-retail-asset-let-to-danish-brand-bolia-in-pariss-8th-district/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_verendale_europe_acquires_prime_high_street_retail_asset_let_to_danish_brand_bolia_in_pariss_8th_district: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/verendale-europe-acquires-prime-high-street-retail-asset-let-to-danish-brand-bolia-in-pariss-8th-district/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_verendale_europe_acquires_prime_high_street_retail_asset_let_to_danish_brand_bolia_in_pariss_8th_district: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/verendale-europe-acquires-prime-high-street-retail-asset-let-to-danish-brand-bolia-in-pariss-8th-district/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_verendale_europe_acquires_prime_high_street_retail_asset_let_to_five_guys_in_the_centre_of_paris_france', () => { test('news_verendale_europe_acquires_prime_high_street_retail_asset_let_to_five_guys_in_the_centre_of_paris_france: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/verendale-europe-acquires-prime-high-street-retail-asset-let-to-five-guys-in-the-centre-of-paris-france/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_verendale_europe_acquires_prime_high_street_retail_asset_let_to_five_guys_in_the_centre_of_paris_france: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/verendale-europe-acquires-prime-high-street-retail-asset-let-to-five-guys-in-the-centre-of-paris-france/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_verendale_europe_acquires_prime_high_street_retail_asset_let_to_five_guys_in_the_centre_of_paris_france: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/verendale-europe-acquires-prime-high-street-retail-asset-let-to-five-guys-in-the-centre-of-paris-france/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_verendale_europe_acquires_three_prime_high_street_retail_units_on_renowned_rue_neuve_in_brussels', () => { test('news_verendale_europe_acquires_three_prime_high_street_retail_units_on_renowned_rue_neuve_in_brussels: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/verendale-europe-acquires-three-prime-high-street-retail-units-on-renowned-rue-neuve-in-brussels/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_verendale_europe_acquires_three_prime_high_street_retail_units_on_renowned_rue_neuve_in_brussels: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/verendale-europe-acquires-three-prime-high-street-retail-units-on-renowned-rue-neuve-in-brussels/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_verendale_europe_acquires_three_prime_high_street_retail_units_on_renowned_rue_neuve_in_brussels: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/verendale-europe-acquires-three-prime-high-street-retail-units-on-renowned-rue-neuve-in-brussels/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_verendale_europe_appoints_anthony_butler_as_first_head_of_its_8bn_european_industrial_logistics_platform', () => { test('news_verendale_europe_appoints_anthony_butler_as_first_head_of_its_8bn_european_industrial_logistics_platform: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/verendale-europe-appoints-anthony-butler-as-first-head-of-its-8bn-european-industrial-logistics-platform/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_verendale_europe_appoints_anthony_butler_as_first_head_of_its_8bn_european_industrial_logistics_platform: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/verendale-europe-appoints-anthony-butler-as-first-head-of-its-8bn-european-industrial-logistics-platform/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_verendale_europe_appoints_anthony_butler_as_first_head_of_its_8bn_european_industrial_logistics_platform: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/verendale-europe-appoints-anthony-butler-as-first-head-of-its-8bn-european-industrial-logistics-platform/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_verendale_europe_completes_first_german_life_sciences_investment_with_acquisition_of_10_900_sqm_asset_in_munich', () => { test('news_verendale_europe_completes_first_german_life_sciences_investment_with_acquisition_of_10_900_sqm_asset_in_munich: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/verendale-europe-completes-first-german-life-sciences-investment-with-acquisition-of-10-900-sqm-asset-in-munich/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_verendale_europe_completes_first_german_life_sciences_investment_with_acquisition_of_10_900_sqm_asset_in_munich: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/verendale-europe-completes-first-german-life-sciences-investment-with-acquisition-of-10-900-sqm-asset-in-munich/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_verendale_europe_completes_first_german_life_sciences_investment_with_acquisition_of_10_900_sqm_asset_in_munich: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/verendale-europe-completes-first-german-life-sciences-investment-with-acquisition-of-10-900-sqm-asset-in-munich/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_verendale_europe_enters_german_data_centre_sector_with_nuremberg_acquisition', () => { test('news_verendale_europe_enters_german_data_centre_sector_with_nuremberg_acquisition: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/verendale-europe-enters-german-data-centre-sector-with-nuremberg-acquisition/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_verendale_europe_enters_german_data_centre_sector_with_nuremberg_acquisition: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/verendale-europe-enters-german-data-centre-sector-with-nuremberg-acquisition/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_verendale_europe_enters_german_data_centre_sector_with_nuremberg_acquisition: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/verendale-europe-enters-german-data-centre-sector-with-nuremberg-acquisition/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_verendale_europe_launches_development_of_light_industrial_park', () => { test('news_verendale_europe_launches_development_of_light_industrial_park: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/verendale-europe-launches-development-of-light-industrial-park/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_verendale_europe_launches_development_of_light_industrial_park: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/verendale-europe-launches-development-of-light-industrial-park/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_verendale_europe_launches_development_of_light_industrial_park: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/verendale-europe-launches-development-of-light-industrial-park/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_verendale_europe_promotes_anas_mouloudi_and_javed_aqil_to_fund_managers', () => { test('news_verendale_europe_promotes_anas_mouloudi_and_javed_aqil_to_fund_managers: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/verendale-europe-promotes-anas-mouloudi-and-javed-aqil-to-fund-managers/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_verendale_europe_promotes_anas_mouloudi_and_javed_aqil_to_fund_managers: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/verendale-europe-promotes-anas-mouloudi-and-javed-aqil-to-fund-managers/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_verendale_europe_promotes_anas_mouloudi_and_javed_aqil_to_fund_managers: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/verendale-europe-promotes-anas-mouloudi-and-javed-aqil-to-fund-managers/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_verendale_europe_promotes_thierry_locatelli_to_head_of_investments_france', () => { test('news_verendale_europe_promotes_thierry_locatelli_to_head_of_investments_france: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/verendale-europe-promotes-thierry-locatelli-to-head-of-investments-france/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_verendale_europe_promotes_thierry_locatelli_to_head_of_investments_france: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/verendale-europe-promotes-thierry-locatelli-to-head-of-investments-france/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_verendale_europe_promotes_thierry_locatelli_to_head_of_investments_france: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/verendale-europe-promotes-thierry-locatelli-to-head-of-investments-france/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_verendale_europe_promotes_vanessa_roux_collet_to_ceo_europe_and_head_of_france_and_christina_ofschonka_to_cio_europe', () => { test('news_verendale_europe_promotes_vanessa_roux_collet_to_ceo_europe_and_head_of_france_and_christina_ofschonka_to_cio_europe: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/verendale-europe-promotes-vanessa-roux-collet-to-ceo-europe-and-head-of-france-and-christina-ofschonka-to-cio-europe/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_verendale_europe_promotes_vanessa_roux_collet_to_ceo_europe_and_head_of_france_and_christina_ofschonka_to_cio_europe: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/verendale-europe-promotes-vanessa-roux-collet-to-ceo-europe-and-head-of-france-and-christina-ofschonka-to-cio-europe/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_verendale_europe_promotes_vanessa_roux_collet_to_ceo_europe_and_head_of_france_and_christina_ofschonka_to_cio_europe: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/verendale-europe-promotes-vanessa-roux-collet-to-ceo-europe-and-head-of-france-and-christina-ofschonka-to-cio-europe/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_verendale_europe_strengthens_asset_management_team_in_paris_with_four_appointments', () => { test('news_verendale_europe_strengthens_asset_management_team_in_paris_with_four_appointments: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/verendale-europe-strengthens-asset-management-team-in-paris-with-four-appointments/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_verendale_europe_strengthens_asset_management_team_in_paris_with_four_appointments: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/verendale-europe-strengthens-asset-management-team-in-paris-with-four-appointments/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_verendale_europe_strengthens_asset_management_team_in_paris_with_four_appointments: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/verendale-europe-strengthens-asset-management-team-in-paris-with-four-appointments/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_verendale_expands_asia_pacific_leadership', () => { test('news_verendale_expands_asia_pacific_leadership: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/verendale-expands-asia-pacific-leadership/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_verendale_expands_asia_pacific_leadership: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/verendale-expands-asia-pacific-leadership/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_verendale_expands_asia_pacific_leadership: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/verendale-expands-asia-pacific-leadership/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_verendale_provides_68_million_construction_mortgage_to_develop_class_a_industrial_park_in_tempe_arizona', () => { test('news_verendale_provides_68_million_construction_mortgage_to_develop_class_a_industrial_park_in_tempe_arizona: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/verendale-provides-68-million-construction-mortgage-to-develop-class-a-industrial-park-in-tempe-arizona/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_verendale_provides_68_million_construction_mortgage_to_develop_class_a_industrial_park_in_tempe_arizona: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/verendale-provides-68-million-construction-mortgage-to-develop-class-a-industrial-park-in-tempe-arizona/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_verendale_provides_68_million_construction_mortgage_to_develop_class_a_industrial_park_in_tempe_arizona: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/verendale-provides-68-million-construction-mortgage-to-develop-class-a-industrial-park-in-tempe-arizona/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_verendale_provides_75_million_mortgage_to_refinance_class_a_multifamily_high_rise_in_atlanta_georgia', () => { test('news_verendale_provides_75_million_mortgage_to_refinance_class_a_multifamily_high_rise_in_atlanta_georgia: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/verendale-provides-75-million-mortgage-to-refinance-class-a-multifamily-high-rise-in-atlanta-georgia/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_verendale_provides_75_million_mortgage_to_refinance_class_a_multifamily_high_rise_in_atlanta_georgia: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/verendale-provides-75-million-mortgage-to-refinance-class-a-multifamily-high-rise-in-atlanta-georgia/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_verendale_provides_75_million_mortgage_to_refinance_class_a_multifamily_high_rise_in_atlanta_georgia: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/verendale-provides-75-million-mortgage-to-refinance-class-a-multifamily-high-rise-in-atlanta-georgia/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_verendale_raises_1_77_billion_for_verendale_partners_real_estate_fund_x_l_p', () => { test('news_verendale_raises_1_77_billion_for_verendale_partners_real_estate_fund_x_l_p: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/verendale-raises-1-77-billion-for-verendale-partners-real-estate-fund-x-l-p/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_verendale_raises_1_77_billion_for_verendale_partners_real_estate_fund_x_l_p: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/verendale-raises-1-77-billion-for-verendale-partners-real-estate-fund-x-l-p/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_verendale_raises_1_77_billion_for_verendale_partners_real_estate_fund_x_l_p: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/verendale-raises-1-77-billion-for-verendale-partners-real-estate-fund-x-l-p/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_claudia_gernegross_joins_verendale_investor_relations_team', () => { test('news_claudia_gernegross_joins_verendale_investor_relations_team: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/claudia-gernegross-joins-verendale-investor-relations-team/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_claudia_gernegross_joins_verendale_investor_relations_team: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/claudia-gernegross-joins-verendale-investor-relations-team/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_claudia_gernegross_joins_verendale_investor_relations_team: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/claudia-gernegross-joins-verendale-investor-relations-team/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_katie_johnson_bergen_joins_verendale_investor_relations_team', () => { test('news_katie_johnson_bergen_joins_verendale_investor_relations_team: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/katie-johnson-bergen-joins-verendale-investor-relations-team/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_katie_johnson_bergen_joins_verendale_investor_relations_team: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/katie-johnson-bergen-joins-verendale-investor-relations-team/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_katie_johnson_bergen_joins_verendale_investor_relations_team: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/katie-johnson-bergen-joins-verendale-investor-relations-team/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_lauren_holden_joins_verendale_as_head_of_retail', () => { test('news_lauren_holden_joins_verendale_as_head_of_retail: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/lauren-holden-joins-verendale-as-head-of-retail/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_lauren_holden_joins_verendale_as_head_of_retail: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/lauren-holden-joins-verendale-as-head-of-retail/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_lauren_holden_joins_verendale_as_head_of_retail: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/lauren-holden-joins-verendale-as-head-of-retail/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_melanie_warren_joins_verendales_growing_investor_relations_team', () => { test('news_melanie_warren_joins_verendales_growing_investor_relations_team: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/melanie-warren-joins-verendales-growing-investor-relations-team/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_melanie_warren_joins_verendales_growing_investor_relations_team: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/melanie-warren-joins-verendales-growing-investor-relations-team/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_melanie_warren_joins_verendales_growing_investor_relations_team: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/melanie-warren-joins-verendales-growing-investor-relations-team/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_sugarloaf_logistics_hub_secures_200_000_sf_lease_for_food_distribution_center', () => { test('news_sugarloaf_logistics_hub_secures_200_000_sf_lease_for_food_distribution_center: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/sugarloaf-logistics-hub-secures-200-000-sf-lease-for-food-distribution-center/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_sugarloaf_logistics_hub_secures_200_000_sf_lease_for_food_distribution_center: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/sugarloaf-logistics-hub-secures-200-000-sf-lease-for-food-distribution-center/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_sugarloaf_logistics_hub_secures_200_000_sf_lease_for_food_distribution_center: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/sugarloaf-logistics-hub-secures-200-000-sf-lease-for-food-distribution-center/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - research_european_retail_parks_shopping_centers_are_back', () => { test('research_european_retail_parks_shopping_centers_are_back: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/research/european-retail-parks-shopping-centers-are-back/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('research_european_retail_parks_shopping_centers_are_back: heading hierarchy is valid', async ({ page }) => { await page.goto('/research/european-retail-parks-shopping-centers-are-back/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('research_european_retail_parks_shopping_centers_are_back: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/research/european-retail-parks-shopping-centers-are-back/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - research_no_quick_fix_in_26', () => { test('research_no_quick_fix_in_26: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/research/no-quick-fix-in-26/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('research_no_quick_fix_in_26: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/research/no-quick-fix-in-26/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - research_the_new_old_cycle', () => { test('research_the_new_old_cycle: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/research/the-new-old-cycle/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('research_the_new_old_cycle: heading hierarchy is valid', async ({ page }) => { await page.goto('/research/the-new-old-cycle/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('research_the_new_old_cycle: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/research/the-new-old-cycle/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_2022_verendale_acquires_a_multifamily_portfolio_in_japan', () => { test('news_2022_verendale_acquires_a_multifamily_portfolio_in_japan: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/2022/verendale-acquires-a-multifamily-portfolio-in-japan/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_2022_verendale_acquires_a_multifamily_portfolio_in_japan: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/2022/verendale-acquires-a-multifamily-portfolio-in-japan/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_2022_verendale_acquires_a_multifamily_portfolio_in_japan: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/2022/verendale-acquires-a-multifamily-portfolio-in-japan/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_2022_verendale_completes_germanys_first_multi_storey_logistics_development', () => { test('news_2022_verendale_completes_germanys_first_multi_storey_logistics_development: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/2022/verendale-completes-germanys-first-multi-storey-logistics-development/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_2022_verendale_completes_germanys_first_multi_storey_logistics_development: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/2022/verendale-completes-germanys-first-multi-storey-logistics-development/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_2022_verendale_completes_germanys_first_multi_storey_logistics_development: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/2022/verendale-completes-germanys-first-multi-storey-logistics-development/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_2022_verendale_expands_japan_multifamily_portfolio', () => { test('news_2022_verendale_expands_japan_multifamily_portfolio: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/2022/verendale-expands-japan-multifamily-portfolio/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_2022_verendale_expands_japan_multifamily_portfolio: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/2022/verendale-expands-japan-multifamily-portfolio/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_2022_verendale_expands_japan_multifamily_portfolio: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/2022/verendale-expands-japan-multifamily-portfolio/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - news_2023_verendale_head_of_research_michael_j_acton_receives_2023_prea_graaskamp_research_award', () => { test('news_2023_verendale_head_of_research_michael_j_acton_receives_2023_prea_graaskamp_research_award: reproduces GT semantic landmarks', async ({ page }) => { await page.goto('/news/2023/verendale-head-of-research-michael-j-acton-receives-2023-prea-graaskamp-research-award/'); expect(await page.locator('header, [role="banner"]').first().count(), 'header landmark present in GT').toBeGreaterThan(0); expect(await page.locator('main, [role="main"]').first().count(), 'main landmark present in GT').toBeGreaterThan(0); expect(await page.locator('footer, [role="contentinfo"]').first().count(), 'footer landmark present in GT').toBeGreaterThan(0); }); test('news_2023_verendale_head_of_research_michael_j_acton_receives_2023_prea_graaskamp_research_award: heading hierarchy is valid', async ({ page }) => { await page.goto('/news/2023/verendale-head-of-research-michael-j-acton-receives-2023-prea-graaskamp-research-award/'); const headingLevels = await page.evaluate(() => { const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); return Array.from(headings).map(h => parseInt(h.tagName.substring(1))); }); if (headingLevels.length > 1) { for (let i = 1; i < headingLevels.length; i++) { const jump = headingLevels[i] - headingLevels[i-1]; expect(jump).toBeLessThanOrEqual(2); } } }); test('news_2023_verendale_head_of_research_michael_j_acton_receives_2023_prea_graaskamp_research_award: no horizontal overflow at 375px', async ({ page }) => { await page.setViewportSize({ width: 375, height: 812 }); await page.goto('/news/2023/verendale-head-of-research-michael-j-acton-receives-2023-prea-graaskamp-research-award/'); await page.waitForTimeout(500); const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth); expect(scrollWidth).toBeLessThanOrEqual(385); }); }); test.describe('Structural - Consistency', () => { test('header links are consistent across pages', async ({ page }) => { const headerLinksByPage: string[][] = []; { await page.goto('/'); const links = await page.locator('header a, nav a').allTextContents(); headerLinksByPage.push(links.map(l => l.trim()).filter(l => l.length > 0)); } { await page.goto('/about/'); const links = await page.locator('header a, nav a').allTextContents(); headerLinksByPage.push(links.map(l => l.trim()).filter(l => l.length > 0)); } { await page.goto('/accessibility-declaration/'); const links = await page.locator('header a, nav a').allTextContents(); headerLinksByPage.push(links.map(l => l.trim()).filter(l => l.length > 0)); } { await page.goto('/assets/'); const links = await page.locator('header a, nav a').allTextContents(); headerLinksByPage.push(links.map(l => l.trim()).filter(l => l.length > 0)); } if (headerLinksByPage.length >= 2 && headerLinksByPage[0].length > 0) { const first = new Set(headerLinksByPage[0]); for (let i = 1; i < headerLinksByPage.length; i++) { const current = new Set(headerLinksByPage[i]); const overlap = [...first].filter(l => current.has(l)); if (first.size > 0) { expect(overlap.length / first.size).toBeGreaterThanOrEqual(0.5); } } } }); });