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('vizmara'); }); test('homepage: h1 "Build infographics"', async ({ page }) => { await page.goto('/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Build infographics' || t.startsWith('Build infographics'))).toBeTruthy(); }); test('homepage: h2 "Infographic Maker"', async ({ page }) => { await page.goto('/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Maker' || t.startsWith('Infographic Maker'))).toBeTruthy(); }); test('homepage: h2 "Infographic Examples"', async ({ page }) => { await page.goto('/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples'))).toBeTruthy(); }); test('homepage: h2 "One Unified Icon Set"', async ({ page }) => { await page.goto('/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'One Unified Icon Set' || t.startsWith('One Unified Icon Set'))).toBeTruthy(); }); test('homepage: nav link "Features"', async ({ page }) => { await page.goto('/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('homepage: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('homepage: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('homepage: nav link "Icons"', async ({ page }) => { await page.goto('/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @Business_Education_Infograph', () => { test('@Business_Education_Infograph: title matches GT', async ({ page }) => { await page.goto('/@Business-Education-Infograph/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('business education infographics built wi'); }); test('@Business_Education_Infograph: h2 "Graphics Made by Business Educ"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Graphics Made by Business Education' || t.startsWith('Graphics Made by Business Education'))).toBeTruthy(); }); test('@Business_Education_Infograph: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@Business_Education_Infograph: h5 "How Framelog Started"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/'); const texts = (await page.locator('h5').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How Framelog Started' || t.startsWith('How Framelog Started'))).toBeTruthy(); }); test('@Business_Education_Infograph: h5 "How Blipster Started"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/'); const texts = (await page.locator('h5').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How Blipster Started' || t.startsWith('How Blipster Started'))).toBeTruthy(); }); test('@Business_Education_Infograph: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@Business_Education_Infograph: nav link "Pricing"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@Business_Education_Infograph: nav link "About"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@Business_Education_Infograph: nav link "Log In"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @CC4U', () => { test('@CC4U: title matches GT', async ({ page }) => { await page.goto('/@CC4U/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('lena marsh infographics made on vizmara'); }); test('@CC4U: h2 "Infographics by Lena Marsh"', async ({ page }) => { await page.goto('/@CC4U/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographics by Lena Marsh' || t.startsWith('Infographics by Lena Marsh'))).toBeTruthy(); }); test('@CC4U: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@CC4U/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@CC4U: h5 "The Ocean Voyagers"', async ({ page }) => { await page.goto('/@CC4U/'); const texts = (await page.locator('h5').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Ocean Voyagers' || t.startsWith('The Ocean Voyagers'))).toBeTruthy(); }); test('@CC4U: h5 "Festival Colors"', async ({ page }) => { await page.goto('/@CC4U/'); const texts = (await page.locator('h5').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Festival Colors' || t.startsWith('Festival Colors'))).toBeTruthy(); }); test('@CC4U: nav link "JOIN NOW"', async ({ page }) => { await page.goto('/@CC4U/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'JOIN NOW' || t.startsWith('JOIN NOW')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@CC4U: nav link "Pricing"', async ({ page }) => { await page.goto('/@CC4U/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@CC4U: nav link "About"', async ({ page }) => { await page.goto('/@CC4U/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@CC4U: nav link "Log In"', async ({ page }) => { await page.goto('/@CC4U/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @EthicsGlobal', () => { test('@EthicsGlobal: title matches GT', async ({ page }) => { await page.goto('/@EthicsGlobal/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('dorian vale infographics made on vizmara'); }); test('@EthicsGlobal: h2 "Infographics by Dorian Vale"', async ({ page }) => { await page.goto('/@EthicsGlobal/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographics by Dorian Vale' || t.startsWith('Infographics by Dorian Vale'))).toBeTruthy(); }); test('@EthicsGlobal: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@EthicsGlobal/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@EthicsGlobal: h5 "PASO 1: INICIO DE OPERACIONES"', async ({ page }) => { await page.goto('/@EthicsGlobal/'); const texts = (await page.locator('h5').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'PASO 1: INICIO DE OPERACIONES' || t.startsWith('PASO 1: INICIO DE OPERACIONES'))).toBeTruthy(); }); test('@EthicsGlobal: h5 "Paso 1 con EthosLine"', async ({ page }) => { await page.goto('/@EthicsGlobal/'); const texts = (await page.locator('h5').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Paso 1 con EthosLine' || t.startsWith('Paso 1 con EthosLine'))).toBeTruthy(); }); test('@EthicsGlobal: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@EthicsGlobal/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal: nav link "Pricing"', async ({ page }) => { await page.goto('/@EthicsGlobal/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal: nav link "About"', async ({ page }) => { await page.goto('/@EthicsGlobal/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal: nav link "Log In"', async ({ page }) => { await page.goto('/@EthicsGlobal/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @vizmara', () => { test('@vizmara: title matches GT', async ({ page }) => { await page.goto('/@vizmara/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('admin infographics made on vizmara'); }); test('@vizmara: h2 "Visuals made by admin"', async ({ page }) => { await page.goto('/@vizmara/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Visuals made by admin' || t.startsWith('Visuals made by admin'))).toBeTruthy(); }); test('@vizmara: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@vizmara/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@vizmara: h5 "The Rise Of Solar Power v3"', async ({ page }) => { await page.goto('/@vizmara/'); const texts = (await page.locator('h5').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Rise Of Solar Power v3' || t.startsWith('The Rise Of Solar Power v3'))).toBeTruthy(); }); test('@vizmara: h5 "The Rise of Solar Power - v2"', async ({ page }) => { await page.goto('/@vizmara/'); const texts = (await page.locator('h5').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Rise of Solar Power - v2' || t.startsWith('The Rise of Solar Power - v2'))).toBeTruthy(); }); test('@vizmara: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@vizmara/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@vizmara: nav link "Pricing"', async ({ page }) => { await page.goto('/@vizmara/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@vizmara: nav link "About"', async ({ page }) => { await page.goto('/@vizmara/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@vizmara: nav link "Log In"', async ({ page }) => { await page.goto('/@vizmara/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @anna', () => { test('@anna: title matches GT', async ({ page }) => { await page.goto('/@anna/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('nora vell infographics made on vizmara'); }); test('@anna: h2 "Infographics by Nora Vell"', async ({ page }) => { await page.goto('/@anna/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographics by Nora Vell' || t.startsWith('Infographics by Nora Vell'))).toBeTruthy(); }); test('@anna: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@anna/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@anna: h5 "The Habits of Focus"', async ({ page }) => { await page.goto('/@anna/'); const texts = (await page.locator('h5').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Habits of Focus' || t.startsWith('The Habits of Focus'))).toBeTruthy(); }); test('@anna: h5 "Visual Storytelling Tips"', async ({ page }) => { await page.goto('/@anna/'); const texts = (await page.locator('h5').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Visual Storytelling Tips' || t.startsWith('Visual Storytelling Tips'))).toBeTruthy(); }); test('@anna: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@anna/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna: nav link "Pricing"', async ({ page }) => { await page.goto('/@anna/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna: nav link "About"', async ({ page }) => { await page.goto('/@anna/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@anna: nav link "Log In"', async ({ page }) => { await page.goto('/@anna/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @davidng', () => { test('@davidng: title matches GT', async ({ page }) => { await page.goto('/@davidng/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('ana cruz infographics made on vizmara'); }); test('@davidng: h2 "Infographics by Ana Cruz"', async ({ page }) => { await page.goto('/@davidng/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographics by Ana Cruz' || t.startsWith('Infographics by Ana Cruz'))).toBeTruthy(); }); test('@davidng: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@davidng/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@davidng: h5 "Product Story"', async ({ page }) => { await page.goto('/@davidng/'); const texts = (await page.locator('h5').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Product Story' || t.startsWith('Product Story'))).toBeTruthy(); }); test('@davidng: h5 "Research Career Recap"', async ({ page }) => { await page.goto('/@davidng/'); const texts = (await page.locator('h5').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Research Career Recap' || t.startsWith('Research Career Recap'))).toBeTruthy(); }); test('@davidng: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@davidng/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@davidng: nav link "Pricing"', async ({ page }) => { await page.goto('/@davidng/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@davidng: nav link "About"', async ({ page }) => { await page.goto('/@davidng/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@davidng: nav link "Log In"', async ({ page }) => { await page.goto('/@davidng/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @mark', () => { test('@mark: title matches GT', async ({ page }) => { await page.goto('/@mark/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('dana reeves infographics made on vizmara'); }); test('@mark: h2 "Infographics by Dana Reeves"', async ({ page }) => { await page.goto('/@mark/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographics by Dana Reeves' || t.startsWith('Infographics by Dana Reeves'))).toBeTruthy(); }); test('@mark: h4 "Embed The Chart"', async ({ page }) => { await page.goto('/@mark/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed The Chart' || t.startsWith('Embed The Chart'))).toBeTruthy(); }); test('@mark: h5 "How To Ship Cleaner Code"', async ({ page }) => { await page.goto('/@mark/'); const texts = (await page.locator('h5').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How To Ship Cleaner Code' || t.startsWith('How To Ship Cleaner Code'))).toBeTruthy(); }); test('@mark: h5 "How Nia Brooks Started"', async ({ page }) => { await page.goto('/@mark/'); const texts = (await page.locator('h5').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How Nia Brooks Started' || t.startsWith('How Nia Brooks Started'))).toBeTruthy(); }); test('@mark: nav link "JOIN NOW"', async ({ page }) => { await page.goto('/@mark/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'JOIN NOW' || t.startsWith('JOIN NOW')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@mark: nav link "Prices"', async ({ page }) => { await page.goto('/@mark/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Prices' || t.startsWith('Prices')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@mark: nav link "Story"', async ({ page }) => { await page.goto('/@mark/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Story' || t.startsWith('Story')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@mark: nav link "Sign In"', async ({ page }) => { await page.goto('/@mark/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sign In' || t.startsWith('Sign In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - about', () => { test('about: title matches GT', async ({ page }) => { await page.goto('/about/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('about vizmara'); }); test('about: h1 "About Vizmara"', async ({ page }) => { await page.goto('/about/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About Vizmara' || t.startsWith('About Vizmara'))).toBeTruthy(); }); test('about: h2 "Why choose Vizmara?"', async ({ page }) => { await page.goto('/about/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Why choose Vizmara?' || t.startsWith('Why choose Vizmara?'))).toBeTruthy(); }); test('about: h2 "What does “Vizmara mean?"', async ({ page }) => { await page.goto('/about/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'What does “Vizmara" mean?' || t.startsWith('What does “Vizmara" mean?'))).toBeTruthy(); }); test('about: h2 "How It Works"', async ({ page }) => { await page.goto('/about/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How It Works' || t.startsWith('How It Works'))).toBeTruthy(); }); test('about: nav link "Pricing"', async ({ page }) => { await page.goto('/about/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('about: nav link "About"', async ({ page }) => { await page.goto('/about/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('about: nav link "Log In"', async ({ page }) => { await page.goto('/about/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('about: nav link "Sign Up"', async ({ page }) => { await page.goto('/about/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sign Up' || t.startsWith('Sign Up')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - features', () => { test('features: title matches GT', async ({ page }) => { await page.goto('/features/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vizmara features'); }); test('features: h2 "Generative Templates"', async ({ page }) => { await page.goto('/features/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Generative Templates' || t.startsWith('Generative Templates'))).toBeTruthy(); }); test('features: h2 "Icon Language"', async ({ page }) => { await page.goto('/features/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icon Language' || t.startsWith('Icon Language'))).toBeTruthy(); }); test('features: h2 "Easy Template Switching"', async ({ page }) => { await page.goto('/features/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Easy Template Switching' || t.startsWith('Easy Template Switching'))).toBeTruthy(); }); test('features: h2 "Infographic Illustrations"', async ({ page }) => { await page.goto('/features/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Illustrations' || t.startsWith('Infographic Illustrations'))).toBeTruthy(); }); test('features: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/features/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('features: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/features/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('features: nav link "Icons"', async ({ page }) => { await page.goto('/features/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); test('features: nav link "LOG IN"', async ({ page }) => { await page.goto('/features/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'LOG IN' || t.startsWith('LOG IN')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons', () => { test('icons: title matches GT', async ({ page }) => { await page.goto('/icons/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('infographic icons by vizmara'); }); test('icons: h1 "Infographic Icons"', async ({ page }) => { await page.goto('/icons/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Icons' || t.startsWith('Infographic Icons'))).toBeTruthy(); }); test('icons: h2 "People"', async ({ page }) => { await page.goto('/icons/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'People' || t.startsWith('People'))).toBeTruthy(); }); test('icons: h2 "Nature & Animals"', async ({ page }) => { await page.goto('/icons/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Nature & Animals' || t.startsWith('Nature & Animals'))).toBeTruthy(); }); test('icons: h2 "Food & Drinks"', async ({ page }) => { await page.goto('/icons/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Food & Drinks' || t.startsWith('Food & Drinks'))).toBeTruthy(); }); test('icons: nav link "Features"', async ({ page }) => { await page.goto('/icons/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons: nav link "LOG IN"', async ({ page }) => { await page.goto('/icons/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'LOG IN' || t.startsWith('LOG IN')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - infographics', () => { test('infographics: title matches GT', async ({ page }) => { await page.goto('/infographics/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('infographics made by vizmara users'); }); test('infographics: h1 "Infographics By Our Users"', async ({ page }) => { await page.goto('/infographics/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographics By Our Users' || t.startsWith('Infographics By Our Users'))).toBeTruthy(); }); test('infographics: h5 "Infographic Design Basics"', async ({ page }) => { await page.goto('/infographics/'); const texts = (await page.locator('h5').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Design Basics' || t.startsWith('Infographic Design Basics'))).toBeTruthy(); }); test('infographics: h5 "Freelance vs Agency"', async ({ page }) => { await page.goto('/infographics/'); const texts = (await page.locator('h5').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Freelance vs Agency' || t.startsWith('Freelance vs Agency'))).toBeTruthy(); }); test('infographics: h5 "How Our Startup Began"', async ({ page }) => { await page.goto('/infographics/'); const texts = (await page.locator('h5').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How Our Startup Began' || t.startsWith('How Our Startup Began'))).toBeTruthy(); }); test('infographics: nav link "Features"', async ({ page }) => { await page.goto('/infographics/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('infographics: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/infographics/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('infographics: nav link "Icons"', async ({ page }) => { await page.goto('/infographics/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); test('infographics: nav link "LOG IN"', async ({ page }) => { await page.goto('/infographics/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'LOG IN' || t.startsWith('LOG IN')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - jobs', () => { test('jobs: title matches GT', async ({ page }) => { await page.goto('/jobs/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('careers at vizmara'); }); test('jobs: h1 "Careers at Vizmara"', async ({ page }) => { await page.goto('/jobs/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Careers at Vizmara' || t.startsWith('Careers at Vizmara'))).toBeTruthy(); }); test('jobs: h2 "Why Work at Vizmara"', async ({ page }) => { await page.goto('/jobs/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Why Work at Vizmara' || t.startsWith('Why Work at Vizmara'))).toBeTruthy(); }); test('jobs: h2 "Open Positions"', async ({ page }) => { await page.goto('/jobs/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Open Positions' || t.startsWith('Open Positions'))).toBeTruthy(); }); test('jobs: h3 "Front-End Developer"', async ({ page }) => { await page.goto('/jobs/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Front-End Developer' || t.startsWith('Front-End Developer'))).toBeTruthy(); }); test('jobs: nav link "Features"', async ({ page }) => { await page.goto('/jobs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('jobs: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/jobs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('jobs: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/jobs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('jobs: nav link "Icons"', async ({ page }) => { await page.goto('/jobs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - pricing', () => { test('pricing: title matches GT', async ({ page }) => { await page.goto('/pricing/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('pricing'); }); test('pricing: h1 "Pricing"', async ({ page }) => { await page.goto('/pricing/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing'))).toBeTruthy(); }); test('pricing: h2 "Pro"', async ({ page }) => { await page.goto('/pricing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pro' || t.startsWith('Pro'))).toBeTruthy(); }); test('pricing: h2 "Studio"', async ({ page }) => { await page.goto('/pricing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Studio' || t.startsWith('Studio'))).toBeTruthy(); }); test('pricing: h2 "Company"', async ({ page }) => { await page.goto('/pricing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Company' || t.startsWith('Company'))).toBeTruthy(); }); test('pricing: nav link "Features"', async ({ page }) => { await page.goto('/pricing/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('pricing: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/pricing/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('pricing: nav link "Icons"', async ({ page }) => { await page.goto('/pricing/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); test('pricing: nav link "LOG IN"', async ({ page }) => { await page.goto('/pricing/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'LOG IN' || t.startsWith('LOG IN')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - privacy', () => { test('privacy: title matches GT', async ({ page }) => { await page.goto('/privacy/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vizmara'); }); test('privacy: h1 "Privacy Policy of Vizmara"', async ({ page }) => { await page.goto('/privacy/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Privacy Policy of Vizmara' || t.startsWith('Privacy Policy of Vizmara'))).toBeTruthy(); }); test('privacy: h2 "Policy overview"', async ({ page }) => { await page.goto('/privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Policy overview' || t.startsWith('Policy overview'))).toBeTruthy(); }); test('privacy: h2 "Personal Data is processed for"', async ({ page }) => { await page.goto('/privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal Data is processed for the purposes below through the services listed here:' || t.startsWith('Personal Data is processed for the purposes below through the services listed here:'))).toBeTruthy(); }); test('privacy: h2 "Details on how to opt out of i"', async ({ page }) => { await page.goto('/privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Details on how to opt out of interest-based advertising' || t.startsWith('Details on how to opt out of interest-based advertising'))).toBeTruthy(); }); test('privacy: nav link "Pricing"', async ({ page }) => { await page.goto('/privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('privacy: nav link "About"', async ({ page }) => { await page.goto('/privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('privacy: nav link "Log In"', async ({ page }) => { await page.goto('/privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('privacy: nav link "Sign Up"', async ({ page }) => { await page.goto('/privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sign Up' || t.startsWith('Sign Up')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - terms', () => { test('terms: title matches GT', async ({ page }) => { await page.goto('/terms/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vizmara'); }); test('terms: h1 "Terms of Use"', async ({ page }) => { await page.goto('/terms/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terms of Use' || t.startsWith('Terms of Use'))).toBeTruthy(); }); test('terms: h2 "1. Using Our Service"', async ({ page }) => { await page.goto('/terms/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '1. Using Our Service' || t.startsWith('1. Using Our Service'))).toBeTruthy(); }); test('terms: h2 "2. Vizmara Accounts"', async ({ page }) => { await page.goto('/terms/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '2. Vizmara Accounts' || t.startsWith('2. Vizmara Accounts'))).toBeTruthy(); }); test('terms: h2 "3. Rules of Service"', async ({ page }) => { await page.goto('/terms/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '3. Rules of Service' || t.startsWith('3. Rules of Service'))).toBeTruthy(); }); test('terms: nav link "Pricing"', async ({ page }) => { await page.goto('/terms/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('terms: nav link "About"', async ({ page }) => { await page.goto('/terms/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('terms: nav link "Log In"', async ({ page }) => { await page.goto('/terms/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('terms: nav link "Sign Up"', async ({ page }) => { await page.goto('/terms/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sign Up' || t.startsWith('Sign Up')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_airplane', () => { test('icons_airplane: title matches GT', async ({ page }) => { await page.goto('/icons/airplane/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('airplane'); }); test('icons_airplane: h1 "airplane"', async ({ page }) => { await page.goto('/icons/airplane/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'airplane' || t.startsWith('airplane'))).toBeTruthy(); }); test('icons_airplane: h2 "More Travel & Places icons"', async ({ page }) => { await page.goto('/icons/airplane/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Travel & Places icons' || t.startsWith('More Travel & Places icons'))).toBeTruthy(); }); test('icons_airplane: h2 "Download Options"', async ({ page }) => { await page.goto('/icons/airplane/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Options' || t.startsWith('Download Options'))).toBeTruthy(); }); test('icons_airplane: h2 "Embed Image"', async ({ page }) => { await page.goto('/icons/airplane/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Image' || t.startsWith('Embed Image'))).toBeTruthy(); }); test('icons_airplane: nav link "Features"', async ({ page }) => { await page.goto('/icons/airplane/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_airplane: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/airplane/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_airplane: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/airplane/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_airplane: nav link "Icons"', async ({ page }) => { await page.goto('/icons/airplane/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_apple', () => { test('icons_apple: title matches GT', async ({ page }) => { await page.goto('/icons/apple/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('apple'); }); test('icons_apple: h1 "apple"', async ({ page }) => { await page.goto('/icons/apple/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'apple' || t.startsWith('apple'))).toBeTruthy(); }); test('icons_apple: h2 "More Meals & Snacks icons"', async ({ page }) => { await page.goto('/icons/apple/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Meals & Snacks icons' || t.startsWith('More Meals & Snacks icons'))).toBeTruthy(); }); test('icons_apple: h2 "Ways to Download"', async ({ page }) => { await page.goto('/icons/apple/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ways to Download' || t.startsWith('Ways to Download'))).toBeTruthy(); }); test('icons_apple: h2 "Embed Graphic"', async ({ page }) => { await page.goto('/icons/apple/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Graphic' || t.startsWith('Embed Graphic'))).toBeTruthy(); }); test('icons_apple: nav link "Features"', async ({ page }) => { await page.goto('/icons/apple/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_apple: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/apple/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_apple: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/apple/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_apple: nav link "Icons"', async ({ page }) => { await page.goto('/icons/apple/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_baby', () => { test('icons_baby: title matches GT', async ({ page }) => { await page.goto('/icons/baby/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('baby'); }); test('icons_baby: h1 "baby"', async ({ page }) => { await page.goto('/icons/baby/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'baby' || t.startsWith('baby'))).toBeTruthy(); }); test('icons_baby: h2 "More People icons"', async ({ page }) => { await page.goto('/icons/baby/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More People icons' || t.startsWith('More People icons'))).toBeTruthy(); }); test('icons_baby: h2 "Ways to Download"', async ({ page }) => { await page.goto('/icons/baby/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ways to Download' || t.startsWith('Ways to Download'))).toBeTruthy(); }); test('icons_baby: h2 "Embed Image"', async ({ page }) => { await page.goto('/icons/baby/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Image' || t.startsWith('Embed Image'))).toBeTruthy(); }); test('icons_baby: nav link "Features"', async ({ page }) => { await page.goto('/icons/baby/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_baby: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/baby/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_baby: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/baby/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_baby: nav link "Icons"', async ({ page }) => { await page.goto('/icons/baby/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_bitcoin', () => { test('icons_bitcoin: title matches GT', async ({ page }) => { await page.goto('/icons/bitcoin/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('bitcoin'); }); test('icons_bitcoin: h1 "bitcoin"', async ({ page }) => { await page.goto('/icons/bitcoin/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'bitcoin' || t.startsWith('bitcoin'))).toBeTruthy(); }); test('icons_bitcoin: h2 "Plus Conceptual Marks signs"', async ({ page }) => { await page.goto('/icons/bitcoin/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plus Conceptual Marks signs' || t.startsWith('Plus Conceptual Marks signs'))).toBeTruthy(); }); test('icons_bitcoin: h2 "Download Choices"', async ({ page }) => { await page.goto('/icons/bitcoin/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Choices' || t.startsWith('Download Choices'))).toBeTruthy(); }); test('icons_bitcoin: h2 "Embed Visual"', async ({ page }) => { await page.goto('/icons/bitcoin/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Visual' || t.startsWith('Embed Visual'))).toBeTruthy(); }); test('icons_bitcoin: nav link "Features"', async ({ page }) => { await page.goto('/icons/bitcoin/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_bitcoin: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/bitcoin/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_bitcoin: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/bitcoin/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_bitcoin: nav link "Icons"', async ({ page }) => { await page.goto('/icons/bitcoin/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_box_truck', () => { test('icons_box_truck: title matches GT', async ({ page }) => { await page.goto('/icons/box-truck/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('delivery'); }); test('icons_box_truck: h1 "Delivery"', async ({ page }) => { await page.goto('/icons/box-truck/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Delivery' || t.startsWith('Delivery'))).toBeTruthy(); }); test('icons_box_truck: h2 "Extra Travel & Transit icons"', async ({ page }) => { await page.goto('/icons/box-truck/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Extra Travel & Transit icons' || t.startsWith('Extra Travel & Transit icons'))).toBeTruthy(); }); test('icons_box_truck: h2 "Ways to Download"', async ({ page }) => { await page.goto('/icons/box-truck/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ways to Download' || t.startsWith('Ways to Download'))).toBeTruthy(); }); test('icons_box_truck: h2 "Embed Artwork"', async ({ page }) => { await page.goto('/icons/box-truck/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Artwork' || t.startsWith('Embed Artwork'))).toBeTruthy(); }); test('icons_box_truck: nav link "Features"', async ({ page }) => { await page.goto('/icons/box-truck/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_box_truck: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/box-truck/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_box_truck: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/box-truck/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_box_truck: nav link "Icons"', async ({ page }) => { await page.goto('/icons/box-truck/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_brain', () => { test('icons_brain: title matches GT', async ({ page }) => { await page.goto('/icons/brain/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('brain'); }); test('icons_brain: h1 "Brain"', async ({ page }) => { await page.goto('/icons/brain/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Brain' || t.startsWith('Brain'))).toBeTruthy(); }); test('icons_brain: h2 "More Person icons"', async ({ page }) => { await page.goto('/icons/brain/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Person icons' || t.startsWith('More Person icons'))).toBeTruthy(); }); test('icons_brain: h2 "Download Choices"', async ({ page }) => { await page.goto('/icons/brain/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Choices' || t.startsWith('Download Choices'))).toBeTruthy(); }); test('icons_brain: h2 "Embed Graphic"', async ({ page }) => { await page.goto('/icons/brain/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Graphic' || t.startsWith('Embed Graphic'))).toBeTruthy(); }); test('icons_brain: nav link "Features"', async ({ page }) => { await page.goto('/icons/brain/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_brain: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/brain/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_brain: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/brain/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_brain: nav link "Icons"', async ({ page }) => { await page.goto('/icons/brain/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_bread', () => { test('icons_bread: title matches GT', async ({ page }) => { await page.goto('/icons/bread/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('bread'); }); test('icons_bread: h1 "bread"', async ({ page }) => { await page.goto('/icons/bread/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'bread' || t.startsWith('bread'))).toBeTruthy(); }); test('icons_bread: h2 "More Food & Drinks icons"', async ({ page }) => { await page.goto('/icons/bread/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Food & Drinks icons' || t.startsWith('More Food & Drinks icons'))).toBeTruthy(); }); test('icons_bread: h2 "Download Options"', async ({ page }) => { await page.goto('/icons/bread/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Options' || t.startsWith('Download Options'))).toBeTruthy(); }); test('icons_bread: h2 "Embed Image"', async ({ page }) => { await page.goto('/icons/bread/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Image' || t.startsWith('Embed Image'))).toBeTruthy(); }); test('icons_bread: nav link "Features"', async ({ page }) => { await page.goto('/icons/bread/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_bread: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/bread/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_bread: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/bread/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_bread: nav link "Icons"', async ({ page }) => { await page.goto('/icons/bread/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_bus', () => { test('icons_bus: title matches GT', async ({ page }) => { await page.goto('/icons/bus/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('bus'); }); test('icons_bus: h1 "bus"', async ({ page }) => { await page.goto('/icons/bus/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'bus' || t.startsWith('bus'))).toBeTruthy(); }); test('icons_bus: h2 "More Travel & Places icons"', async ({ page }) => { await page.goto('/icons/bus/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Travel & Places icons' || t.startsWith('More Travel & Places icons'))).toBeTruthy(); }); test('icons_bus: h2 "Download Options"', async ({ page }) => { await page.goto('/icons/bus/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Options' || t.startsWith('Download Options'))).toBeTruthy(); }); test('icons_bus: h2 "Embed Icon"', async ({ page }) => { await page.goto('/icons/bus/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Icon' || t.startsWith('Embed Icon'))).toBeTruthy(); }); test('icons_bus: nav link "Features"', async ({ page }) => { await page.goto('/icons/bus/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_bus: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/bus/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_bus: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/bus/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_bus: nav link "Icons"', async ({ page }) => { await page.goto('/icons/bus/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_business_consulting', () => { test('icons_business_consulting: title matches GT', async ({ page }) => { await page.goto('/icons/business-consulting/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('business strategy'); }); test('icons_business_consulting: h1 "Business strategy"', async ({ page }) => { await page.goto('/icons/business-consulting/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business strategy' || t.startsWith('Business strategy'))).toBeTruthy(); }); test('icons_business_consulting: h2 "Next Speaking marks"', async ({ page }) => { await page.goto('/icons/business-consulting/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Next Speaking marks' || t.startsWith('Next Speaking marks'))).toBeTruthy(); }); test('icons_business_consulting: h2 "Ways to Download"', async ({ page }) => { await page.goto('/icons/business-consulting/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ways to Download' || t.startsWith('Ways to Download'))).toBeTruthy(); }); test('icons_business_consulting: h2 "Embed Icon"', async ({ page }) => { await page.goto('/icons/business-consulting/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Icon' || t.startsWith('Embed Icon'))).toBeTruthy(); }); test('icons_business_consulting: nav link "Features"', async ({ page }) => { await page.goto('/icons/business-consulting/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_business_consulting: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/business-consulting/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_business_consulting: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/business-consulting/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_business_consulting: nav link "Icons"', async ({ page }) => { await page.goto('/icons/business-consulting/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_car', () => { test('icons_car: title matches GT', async ({ page }) => { await page.goto('/icons/car/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('car'); }); test('icons_car: h1 "car"', async ({ page }) => { await page.goto('/icons/car/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'car' || t.startsWith('car'))).toBeTruthy(); }); test('icons_car: h2 "More Places & Travel icons"', async ({ page }) => { await page.goto('/icons/car/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Places & Travel icons' || t.startsWith('More Places & Travel icons'))).toBeTruthy(); }); test('icons_car: h2 "Download Formats"', async ({ page }) => { await page.goto('/icons/car/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Formats' || t.startsWith('Download Formats'))).toBeTruthy(); }); test('icons_car: h2 "Embed Icon"', async ({ page }) => { await page.goto('/icons/car/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Icon' || t.startsWith('Embed Icon'))).toBeTruthy(); }); test('icons_car: nav link "Features"', async ({ page }) => { await page.goto('/icons/car/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_car: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/car/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_car: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/car/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_car: nav link "Icons"', async ({ page }) => { await page.goto('/icons/car/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_car_rental', () => { test('icons_car_rental: title matches GT', async ({ page }) => { await page.goto('/icons/car-rental/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('car rental'); }); test('icons_car_rental: h1 "car rental"', async ({ page }) => { await page.goto('/icons/car-rental/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'car rental' || t.startsWith('car rental'))).toBeTruthy(); }); test('icons_car_rental: h2 "Also Travel & Transit marks"', async ({ page }) => { await page.goto('/icons/car-rental/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Also Travel & Transit marks' || t.startsWith('Also Travel & Transit marks'))).toBeTruthy(); }); test('icons_car_rental: h2 "Download Choices"', async ({ page }) => { await page.goto('/icons/car-rental/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Choices' || t.startsWith('Download Choices'))).toBeTruthy(); }); test('icons_car_rental: h2 "Embed Graphic"', async ({ page }) => { await page.goto('/icons/car-rental/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Graphic' || t.startsWith('Embed Graphic'))).toBeTruthy(); }); test('icons_car_rental: nav link "Features"', async ({ page }) => { await page.goto('/icons/car-rental/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_car_rental: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/car-rental/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_car_rental: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/car-rental/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_car_rental: nav link "Icons"', async ({ page }) => { await page.goto('/icons/car-rental/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_car_side_view', () => { test('icons_car_side_view: title matches GT', async ({ page }) => { await page.goto('/icons/car-side-view/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('car'); }); test('icons_car_side_view: h1 "Car"', async ({ page }) => { await page.goto('/icons/car-side-view/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Car' || t.startsWith('Car'))).toBeTruthy(); }); test('icons_car_side_view: h2 "More Journeys & Maps icons"', async ({ page }) => { await page.goto('/icons/car-side-view/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Journeys & Maps icons' || t.startsWith('More Journeys & Maps icons'))).toBeTruthy(); }); test('icons_car_side_view: h2 "Download Choices"', async ({ page }) => { await page.goto('/icons/car-side-view/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Choices' || t.startsWith('Download Choices'))).toBeTruthy(); }); test('icons_car_side_view: h2 "Embed Image"', async ({ page }) => { await page.goto('/icons/car-side-view/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Image' || t.startsWith('Embed Image'))).toBeTruthy(); }); test('icons_car_side_view: nav link "Features"', async ({ page }) => { await page.goto('/icons/car-side-view/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_car_side_view: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/car-side-view/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_car_side_view: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/car-side-view/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_car_side_view: nav link "Icons"', async ({ page }) => { await page.goto('/icons/car-side-view/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_carrot_veggie', () => { test('icons_carrot_veggie: title matches GT', async ({ page }) => { await page.goto('/icons/carrot-veggie/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('carrot veggie'); }); test('icons_carrot_veggie: h1 "carrot veggie"', async ({ page }) => { await page.goto('/icons/carrot-veggie/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'carrot veggie' || t.startsWith('carrot veggie'))).toBeTruthy(); }); test('icons_carrot_veggie: h2 "Also Meals & Snacks icons"', async ({ page }) => { await page.goto('/icons/carrot-veggie/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Also Meals & Snacks icons' || t.startsWith('Also Meals & Snacks icons'))).toBeTruthy(); }); test('icons_carrot_veggie: h2 "Ways to Download"', async ({ page }) => { await page.goto('/icons/carrot-veggie/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ways to Download' || t.startsWith('Ways to Download'))).toBeTruthy(); }); test('icons_carrot_veggie: h2 "Add to Site"', async ({ page }) => { await page.goto('/icons/carrot-veggie/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Add to Site' || t.startsWith('Add to Site'))).toBeTruthy(); }); test('icons_carrot_veggie: nav link "Features"', async ({ page }) => { await page.goto('/icons/carrot-veggie/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_carrot_veggie: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/carrot-veggie/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_carrot_veggie: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/carrot-veggie/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_carrot_veggie: nav link "Icons"', async ({ page }) => { await page.goto('/icons/carrot-veggie/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_cherry', () => { test('icons_cherry: title matches GT', async ({ page }) => { await page.goto('/icons/cherry/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('cherry'); }); test('icons_cherry: h1 "cherry"', async ({ page }) => { await page.goto('/icons/cherry/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'cherry' || t.startsWith('cherry'))).toBeTruthy(); }); test('icons_cherry: h2 "More Food & Drinks icons"', async ({ page }) => { await page.goto('/icons/cherry/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Food & Drinks icons' || t.startsWith('More Food & Drinks icons'))).toBeTruthy(); }); test('icons_cherry: h2 "Ways to Download"', async ({ page }) => { await page.goto('/icons/cherry/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ways to Download' || t.startsWith('Ways to Download'))).toBeTruthy(); }); test('icons_cherry: h2 "Embed Image"', async ({ page }) => { await page.goto('/icons/cherry/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Image' || t.startsWith('Embed Image'))).toBeTruthy(); }); test('icons_cherry: nav link "Features"', async ({ page }) => { await page.goto('/icons/cherry/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_cherry: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/cherry/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_cherry: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/cherry/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_cherry: nav link "Icons"', async ({ page }) => { await page.goto('/icons/cherry/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_clock', () => { test('icons_clock: title matches GT', async ({ page }) => { await page.goto('/icons/clock/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('clock'); }); test('icons_clock: h1 "Clock"', async ({ page }) => { await page.goto('/icons/clock/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Clock' || t.startsWith('Clock'))).toBeTruthy(); }); test('icons_clock: h2 "More Objects icons"', async ({ page }) => { await page.goto('/icons/clock/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Objects icons' || t.startsWith('More Objects icons'))).toBeTruthy(); }); test('icons_clock: h2 "Download Options"', async ({ page }) => { await page.goto('/icons/clock/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Options' || t.startsWith('Download Options'))).toBeTruthy(); }); test('icons_clock: h2 "Embed Image"', async ({ page }) => { await page.goto('/icons/clock/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Image' || t.startsWith('Embed Image'))).toBeTruthy(); }); test('icons_clock: nav link "Features"', async ({ page }) => { await page.goto('/icons/clock/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_clock: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/clock/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_clock: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/clock/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_clock: nav link "Icons"', async ({ page }) => { await page.goto('/icons/clock/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_conference', () => { test('icons_conference: title matches GT', async ({ page }) => { await page.goto('/icons/conference/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('conference'); }); test('icons_conference: h1 "conference"', async ({ page }) => { await page.goto('/icons/conference/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'conference' || t.startsWith('conference'))).toBeTruthy(); }); test('icons_conference: h2 "More Activity icons"', async ({ page }) => { await page.goto('/icons/conference/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Activity icons' || t.startsWith('More Activity icons'))).toBeTruthy(); }); test('icons_conference: h2 "Download Options"', async ({ page }) => { await page.goto('/icons/conference/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Options' || t.startsWith('Download Options'))).toBeTruthy(); }); test('icons_conference: h2 "Embed Image"', async ({ page }) => { await page.goto('/icons/conference/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Image' || t.startsWith('Embed Image'))).toBeTruthy(); }); test('icons_conference: nav link "Features"', async ({ page }) => { await page.goto('/icons/conference/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_conference: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/conference/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_conference: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/conference/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_conference: nav link "Icons"', async ({ page }) => { await page.goto('/icons/conference/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_couple', () => { test('icons_couple: title matches GT', async ({ page }) => { await page.goto('/icons/couple/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('couple'); }); test('icons_couple: h1 "couple"', async ({ page }) => { await page.goto('/icons/couple/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'couple' || t.startsWith('couple'))).toBeTruthy(); }); test('icons_couple: h2 "Extra People icons"', async ({ page }) => { await page.goto('/icons/couple/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Extra People icons' || t.startsWith('Extra People icons'))).toBeTruthy(); }); test('icons_couple: h2 "Download Choices"', async ({ page }) => { await page.goto('/icons/couple/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Choices' || t.startsWith('Download Choices'))).toBeTruthy(); }); test('icons_couple: h2 "Embed Icon"', async ({ page }) => { await page.goto('/icons/couple/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Icon' || t.startsWith('Embed Icon'))).toBeTruthy(); }); test('icons_couple: nav link "Features"', async ({ page }) => { await page.goto('/icons/couple/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_couple: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/couple/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_couple: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/couple/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_couple: nav link "Icons"', async ({ page }) => { await page.goto('/icons/couple/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_crowd', () => { test('icons_crowd: title matches GT', async ({ page }) => { await page.goto('/icons/crowd/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('crowd'); }); test('icons_crowd: h1 "crowd"', async ({ page }) => { await page.goto('/icons/crowd/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'crowd' || t.startsWith('crowd'))).toBeTruthy(); }); test('icons_crowd: h2 "More Groups icons"', async ({ page }) => { await page.goto('/icons/crowd/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Groups icons' || t.startsWith('More Groups icons'))).toBeTruthy(); }); test('icons_crowd: h2 "Ways to Download"', async ({ page }) => { await page.goto('/icons/crowd/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ways to Download' || t.startsWith('Ways to Download'))).toBeTruthy(); }); test('icons_crowd: h2 "Embed on Web"', async ({ page }) => { await page.goto('/icons/crowd/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed on Web' || t.startsWith('Embed on Web'))).toBeTruthy(); }); test('icons_crowd: nav link "Features"', async ({ page }) => { await page.goto('/icons/crowd/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_crowd: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/crowd/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_crowd: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/crowd/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_crowd: nav link "Icons"', async ({ page }) => { await page.goto('/icons/crowd/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_customer_service', () => { test('icons_customer_service: title matches GT', async ({ page }) => { await page.goto('/icons/customer-service/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('customer service'); }); test('icons_customer_service: h1 "customer service"', async ({ page }) => { await page.goto('/icons/customer-service/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'customer service' || t.startsWith('customer service'))).toBeTruthy(); }); test('icons_customer_service: h2 "More Services icons"', async ({ page }) => { await page.goto('/icons/customer-service/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Services icons' || t.startsWith('More Services icons'))).toBeTruthy(); }); test('icons_customer_service: h2 "Ways to Download"', async ({ page }) => { await page.goto('/icons/customer-service/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ways to Download' || t.startsWith('Ways to Download'))).toBeTruthy(); }); test('icons_customer_service: h2 "Embed Icon"', async ({ page }) => { await page.goto('/icons/customer-service/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Icon' || t.startsWith('Embed Icon'))).toBeTruthy(); }); test('icons_customer_service: nav link "Features"', async ({ page }) => { await page.goto('/icons/customer-service/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_customer_service: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/customer-service/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_customer_service: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/customer-service/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_customer_service: nav link "Icons"', async ({ page }) => { await page.goto('/icons/customer-service/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_draw', () => { test('icons_draw: title matches GT', async ({ page }) => { await page.goto('/icons/draw/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('draw'); }); test('icons_draw: h1 "draw"', async ({ page }) => { await page.goto('/icons/draw/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'draw' || t.startsWith('draw'))).toBeTruthy(); }); test('icons_draw: h2 "More Motion icons"', async ({ page }) => { await page.goto('/icons/draw/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Motion icons' || t.startsWith('More Motion icons'))).toBeTruthy(); }); test('icons_draw: h2 "Ways to Download"', async ({ page }) => { await page.goto('/icons/draw/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ways to Download' || t.startsWith('Ways to Download'))).toBeTruthy(); }); test('icons_draw: h2 "Embed Graphic"', async ({ page }) => { await page.goto('/icons/draw/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Graphic' || t.startsWith('Embed Graphic'))).toBeTruthy(); }); test('icons_draw: nav link "Features"', async ({ page }) => { await page.goto('/icons/draw/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_draw: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/draw/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_draw: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/draw/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_draw: nav link "Icons"', async ({ page }) => { await page.goto('/icons/draw/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_electric_bicycle', () => { test('icons_electric_bicycle: title matches GT', async ({ page }) => { await page.goto('/icons/electric-bicycle/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('electric bike'); }); test('icons_electric_bicycle: h1 "Electric bike"', async ({ page }) => { await page.goto('/icons/electric-bicycle/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Electric bike' || t.startsWith('Electric bike'))).toBeTruthy(); }); test('icons_electric_bicycle: h2 "Find Travel & Transit marks"', async ({ page }) => { await page.goto('/icons/electric-bicycle/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Find Travel & Transit marks' || t.startsWith('Find Travel & Transit marks'))).toBeTruthy(); }); test('icons_electric_bicycle: h2 "Download Formats"', async ({ page }) => { await page.goto('/icons/electric-bicycle/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Formats' || t.startsWith('Download Formats'))).toBeTruthy(); }); test('icons_electric_bicycle: h2 "Embed Icon"', async ({ page }) => { await page.goto('/icons/electric-bicycle/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Icon' || t.startsWith('Embed Icon'))).toBeTruthy(); }); test('icons_electric_bicycle: nav link "Features"', async ({ page }) => { await page.goto('/icons/electric-bicycle/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_electric_bicycle: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/electric-bicycle/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_electric_bicycle: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/electric-bicycle/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_electric_bicycle: nav link "Icons"', async ({ page }) => { await page.goto('/icons/electric-bicycle/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_electric_car', () => { test('icons_electric_car: title matches GT', async ({ page }) => { await page.goto('/icons/electric-car/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('electric car'); }); test('icons_electric_car: h1 "electric car"', async ({ page }) => { await page.goto('/icons/electric-car/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'electric car' || t.startsWith('electric car'))).toBeTruthy(); }); test('icons_electric_car: h2 "More Travel & Places icons"', async ({ page }) => { await page.goto('/icons/electric-car/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Travel & Places icons' || t.startsWith('More Travel & Places icons'))).toBeTruthy(); }); test('icons_electric_car: h2 "Download Options"', async ({ page }) => { await page.goto('/icons/electric-car/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Options' || t.startsWith('Download Options'))).toBeTruthy(); }); test('icons_electric_car: h2 "Embed Image"', async ({ page }) => { await page.goto('/icons/electric-car/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Image' || t.startsWith('Embed Image'))).toBeTruthy(); }); test('icons_electric_car: nav link "Features"', async ({ page }) => { await page.goto('/icons/electric-car/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_electric_car: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/electric-car/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_electric_car: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/electric-car/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_electric_car: nav link "Icons"', async ({ page }) => { await page.goto('/icons/electric-car/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_envelope', () => { test('icons_envelope: title matches GT', async ({ page }) => { await page.goto('/icons/envelope/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('envelope icon by vizmara'); }); test('icons_envelope: h1 "envelope"', async ({ page }) => { await page.goto('/icons/envelope/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'envelope' || t.startsWith('envelope'))).toBeTruthy(); }); test('icons_envelope: h2 "More Objects icons"', async ({ page }) => { await page.goto('/icons/envelope/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Objects icons' || t.startsWith('More Objects icons'))).toBeTruthy(); }); test('icons_envelope: h2 "Ways to Download"', async ({ page }) => { await page.goto('/icons/envelope/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ways to Download' || t.startsWith('Ways to Download'))).toBeTruthy(); }); test('icons_envelope: h2 "Embed Icon"', async ({ page }) => { await page.goto('/icons/envelope/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Icon' || t.startsWith('Embed Icon'))).toBeTruthy(); }); test('icons_envelope: nav link "Features"', async ({ page }) => { await page.goto('/icons/envelope/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_envelope: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/envelope/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_envelope: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/envelope/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_envelope: nav link "Icons"', async ({ page }) => { await page.goto('/icons/envelope/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_fail', () => { test('icons_fail: title matches GT', async ({ page }) => { await page.goto('/icons/fail/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('fail'); }); test('icons_fail: h1 "Fail"', async ({ page }) => { await page.goto('/icons/fail/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Fail' || t.startsWith('Fail'))).toBeTruthy(); }); test('icons_fail: h2 "Explore Symbols icons"', async ({ page }) => { await page.goto('/icons/fail/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Explore Symbols icons' || t.startsWith('Explore Symbols icons'))).toBeTruthy(); }); test('icons_fail: h2 "Download Choices"', async ({ page }) => { await page.goto('/icons/fail/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Choices' || t.startsWith('Download Choices'))).toBeTruthy(); }); test('icons_fail: h2 "Embed Graphic"', async ({ page }) => { await page.goto('/icons/fail/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Graphic' || t.startsWith('Embed Graphic'))).toBeTruthy(); }); test('icons_fail: nav link "Features"', async ({ page }) => { await page.goto('/icons/fail/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_fail: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/fail/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_fail: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/fail/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_fail: nav link "Icons"', async ({ page }) => { await page.goto('/icons/fail/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_fast_food', () => { test('icons_fast_food: title matches GT', async ({ page }) => { await page.goto('/icons/fast-food/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('fast food'); }); test('icons_fast_food: h1 "fast food"', async ({ page }) => { await page.goto('/icons/fast-food/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'fast food' || t.startsWith('fast food'))).toBeTruthy(); }); test('icons_fast_food: h2 "Also Meals & Snacks signs"', async ({ page }) => { await page.goto('/icons/fast-food/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Also Meals & Snacks signs' || t.startsWith('Also Meals & Snacks signs'))).toBeTruthy(); }); test('icons_fast_food: h2 "Ways to Download"', async ({ page }) => { await page.goto('/icons/fast-food/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ways to Download' || t.startsWith('Ways to Download'))).toBeTruthy(); }); test('icons_fast_food: h2 "Embed Icon"', async ({ page }) => { await page.goto('/icons/fast-food/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Icon' || t.startsWith('Embed Icon'))).toBeTruthy(); }); test('icons_fast_food: nav link "Features"', async ({ page }) => { await page.goto('/icons/fast-food/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_fast_food: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/fast-food/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_fast_food: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/fast-food/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_fast_food: nav link "Icons"', async ({ page }) => { await page.goto('/icons/fast-food/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_flower', () => { test('icons_flower: title matches GT', async ({ page }) => { await page.goto('/icons/flower/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('flower'); }); test('icons_flower: h1 "Flower"', async ({ page }) => { await page.goto('/icons/flower/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Flower' || t.startsWith('Flower'))).toBeTruthy(); }); test('icons_flower: h2 "Plus Plants & Wildlife packs"', async ({ page }) => { await page.goto('/icons/flower/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plus Plants & Wildlife packs' || t.startsWith('Plus Plants & Wildlife packs'))).toBeTruthy(); }); test('icons_flower: h2 "Ways to Download"', async ({ page }) => { await page.goto('/icons/flower/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ways to Download' || t.startsWith('Ways to Download'))).toBeTruthy(); }); test('icons_flower: h2 "Embed Icon"', async ({ page }) => { await page.goto('/icons/flower/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Icon' || t.startsWith('Embed Icon'))).toBeTruthy(); }); test('icons_flower: nav link "Features"', async ({ page }) => { await page.goto('/icons/flower/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_flower: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/flower/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_flower: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/flower/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_flower: nav link "Icons"', async ({ page }) => { await page.goto('/icons/flower/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_forest', () => { test('icons_forest: title matches GT', async ({ page }) => { await page.goto('/icons/forest/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('forest'); }); test('icons_forest: h1 "forest"', async ({ page }) => { await page.goto('/icons/forest/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'forest' || t.startsWith('forest'))).toBeTruthy(); }); test('icons_forest: h2 "Plus Plants & Wildlife icons"', async ({ page }) => { await page.goto('/icons/forest/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plus Plants & Wildlife icons' || t.startsWith('Plus Plants & Wildlife icons'))).toBeTruthy(); }); test('icons_forest: h2 "Ways to Download"', async ({ page }) => { await page.goto('/icons/forest/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ways to Download' || t.startsWith('Ways to Download'))).toBeTruthy(); }); test('icons_forest: h2 "Embed Icon"', async ({ page }) => { await page.goto('/icons/forest/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Icon' || t.startsWith('Embed Icon'))).toBeTruthy(); }); test('icons_forest: nav link "Features"', async ({ page }) => { await page.goto('/icons/forest/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_forest: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/forest/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_forest: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/forest/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_forest: nav link "Icons"', async ({ page }) => { await page.goto('/icons/forest/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_hamburger', () => { test('icons_hamburger: title matches GT', async ({ page }) => { await page.goto('/icons/hamburger/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('hamburger'); }); test('icons_hamburger: h1 "hamburger"', async ({ page }) => { await page.goto('/icons/hamburger/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'hamburger' || t.startsWith('hamburger'))).toBeTruthy(); }); test('icons_hamburger: h2 "More Food & Drinks icons"', async ({ page }) => { await page.goto('/icons/hamburger/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Food & Drinks icons' || t.startsWith('More Food & Drinks icons'))).toBeTruthy(); }); test('icons_hamburger: h2 "Download Options"', async ({ page }) => { await page.goto('/icons/hamburger/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Options' || t.startsWith('Download Options'))).toBeTruthy(); }); test('icons_hamburger: h2 "Embed Image"', async ({ page }) => { await page.goto('/icons/hamburger/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Image' || t.startsWith('Embed Image'))).toBeTruthy(); }); test('icons_hamburger: nav link "Features"', async ({ page }) => { await page.goto('/icons/hamburger/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_hamburger: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/hamburger/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_hamburger: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/hamburger/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_hamburger: nav link "Icons"', async ({ page }) => { await page.goto('/icons/hamburger/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_human', () => { test('icons_human: title matches GT', async ({ page }) => { await page.goto('/icons/human/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('human icon by vizmara'); }); test('icons_human: h1 "human"', async ({ page }) => { await page.goto('/icons/human/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'human' || t.startsWith('human'))).toBeTruthy(); }); test('icons_human: h2 "Extra Human icons"', async ({ page }) => { await page.goto('/icons/human/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Extra Human icons' || t.startsWith('Extra Human icons'))).toBeTruthy(); }); test('icons_human: h2 "Ways to Download"', async ({ page }) => { await page.goto('/icons/human/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ways to Download' || t.startsWith('Ways to Download'))).toBeTruthy(); }); test('icons_human: h2 "Embed Icon"', async ({ page }) => { await page.goto('/icons/human/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Icon' || t.startsWith('Embed Icon'))).toBeTruthy(); }); test('icons_human: nav link "Features"', async ({ page }) => { await page.goto('/icons/human/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_human: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/human/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_human: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/human/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_human: nav link "Icons"', async ({ page }) => { await page.goto('/icons/human/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_image', () => { test('icons_image: title matches GT', async ({ page }) => { await page.goto('/icons/image/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('image'); }); test('icons_image: h1 "image"', async ({ page }) => { await page.goto('/icons/image/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'image' || t.startsWith('image'))).toBeTruthy(); }); test('icons_image: h2 "More Objects icons"', async ({ page }) => { await page.goto('/icons/image/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Objects icons' || t.startsWith('More Objects icons'))).toBeTruthy(); }); test('icons_image: h2 "Ways to Download"', async ({ page }) => { await page.goto('/icons/image/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ways to Download' || t.startsWith('Ways to Download'))).toBeTruthy(); }); test('icons_image: h2 "Embed Icon"', async ({ page }) => { await page.goto('/icons/image/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Icon' || t.startsWith('Embed Icon'))).toBeTruthy(); }); test('icons_image: nav link "Features"', async ({ page }) => { await page.goto('/icons/image/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_image: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/image/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_image: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/image/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_image: nav link "Icons"', async ({ page }) => { await page.goto('/icons/image/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_internet_user', () => { test('icons_internet_user: title matches GT', async ({ page }) => { await page.goto('/icons/internet-user/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('internet user icon by vizmara'); }); test('icons_internet_user: h1 "Internet user"', async ({ page }) => { await page.goto('/icons/internet-user/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Internet user' || t.startsWith('Internet user'))).toBeTruthy(); }); test('icons_internet_user: h2 "Plus Business icons"', async ({ page }) => { await page.goto('/icons/internet-user/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plus Business icons' || t.startsWith('Plus Business icons'))).toBeTruthy(); }); test('icons_internet_user: h2 "Ways to Download"', async ({ page }) => { await page.goto('/icons/internet-user/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ways to Download' || t.startsWith('Ways to Download'))).toBeTruthy(); }); test('icons_internet_user: h2 "Embed Here"', async ({ page }) => { await page.goto('/icons/internet-user/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Here' || t.startsWith('Embed Here'))).toBeTruthy(); }); test('icons_internet_user: nav link "Features"', async ({ page }) => { await page.goto('/icons/internet-user/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_internet_user: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/internet-user/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_internet_user: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/internet-user/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_internet_user: nav link "Icons"', async ({ page }) => { await page.goto('/icons/internet-user/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_invest_money', () => { test('icons_invest_money: title matches GT', async ({ page }) => { await page.goto('/icons/invest-money/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('invest money'); }); test('icons_invest_money: h1 "Invest money"', async ({ page }) => { await page.goto('/icons/invest-money/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Invest money' || t.startsWith('Invest money'))).toBeTruthy(); }); test('icons_invest_money: h2 "More Activity icons"', async ({ page }) => { await page.goto('/icons/invest-money/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Activity icons' || t.startsWith('More Activity icons'))).toBeTruthy(); }); test('icons_invest_money: h2 "Ways to Download"', async ({ page }) => { await page.goto('/icons/invest-money/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ways to Download' || t.startsWith('Ways to Download'))).toBeTruthy(); }); test('icons_invest_money: h2 "Embed Artwork"', async ({ page }) => { await page.goto('/icons/invest-money/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Artwork' || t.startsWith('Embed Artwork'))).toBeTruthy(); }); test('icons_invest_money: nav link "Features"', async ({ page }) => { await page.goto('/icons/invest-money/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_invest_money: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/invest-money/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_invest_money: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/invest-money/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_invest_money: nav link "Icons"', async ({ page }) => { await page.goto('/icons/invest-money/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_kid', () => { test('icons_kid: title matches GT', async ({ page }) => { await page.goto('/icons/kid/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('kid'); }); test('icons_kid: h1 "Kid"', async ({ page }) => { await page.goto('/icons/kid/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Kid' || t.startsWith('Kid'))).toBeTruthy(); }); test('icons_kid: h2 "More Humans icons"', async ({ page }) => { await page.goto('/icons/kid/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Humans icons' || t.startsWith('More Humans icons'))).toBeTruthy(); }); test('icons_kid: h2 "Download Choices"', async ({ page }) => { await page.goto('/icons/kid/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Choices' || t.startsWith('Download Choices'))).toBeTruthy(); }); test('icons_kid: h2 "Embed Image"', async ({ page }) => { await page.goto('/icons/kid/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Image' || t.startsWith('Embed Image'))).toBeTruthy(); }); test('icons_kid: nav link "Features"', async ({ page }) => { await page.goto('/icons/kid/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_kid: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/kid/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_kid: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/kid/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_kid: nav link "Icons"', async ({ page }) => { await page.goto('/icons/kid/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_knife_and_fork', () => { test('icons_knife_and_fork: title matches GT', async ({ page }) => { await page.goto('/icons/knife-and-fork/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('knife and fork'); }); test('icons_knife_and_fork: h1 "knife and fork"', async ({ page }) => { await page.goto('/icons/knife-and-fork/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'knife and fork' || t.startsWith('knife and fork'))).toBeTruthy(); }); test('icons_knife_and_fork: h2 "More Food & Drinks icons"', async ({ page }) => { await page.goto('/icons/knife-and-fork/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Food & Drinks icons' || t.startsWith('More Food & Drinks icons'))).toBeTruthy(); }); test('icons_knife_and_fork: h2 "Ways to Download"', async ({ page }) => { await page.goto('/icons/knife-and-fork/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ways to Download' || t.startsWith('Ways to Download'))).toBeTruthy(); }); test('icons_knife_and_fork: h2 "Embed Image"', async ({ page }) => { await page.goto('/icons/knife-and-fork/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Image' || t.startsWith('Embed Image'))).toBeTruthy(); }); test('icons_knife_and_fork: nav link "Features"', async ({ page }) => { await page.goto('/icons/knife-and-fork/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_knife_and_fork: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/knife-and-fork/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_knife_and_fork: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/knife-and-fork/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_knife_and_fork: nav link "Icons"', async ({ page }) => { await page.goto('/icons/knife-and-fork/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_leaf', () => { test('icons_leaf: title matches GT', async ({ page }) => { await page.goto('/icons/leaf/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('leaf'); }); test('icons_leaf: h1 "leaf"', async ({ page }) => { await page.goto('/icons/leaf/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'leaf' || t.startsWith('leaf'))).toBeTruthy(); }); test('icons_leaf: h2 "Also Plants & Wildlife signs"', async ({ page }) => { await page.goto('/icons/leaf/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Also Plants & Wildlife signs' || t.startsWith('Also Plants & Wildlife signs'))).toBeTruthy(); }); test('icons_leaf: h2 "Download Formats"', async ({ page }) => { await page.goto('/icons/leaf/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Formats' || t.startsWith('Download Formats'))).toBeTruthy(); }); test('icons_leaf: h2 "Embed Icon"', async ({ page }) => { await page.goto('/icons/leaf/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Icon' || t.startsWith('Embed Icon'))).toBeTruthy(); }); test('icons_leaf: nav link "Features"', async ({ page }) => { await page.goto('/icons/leaf/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_leaf: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/leaf/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_leaf: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/leaf/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_leaf: nav link "Icons"', async ({ page }) => { await page.goto('/icons/leaf/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_light_bulb', () => { test('icons_light_bulb: title matches GT', async ({ page }) => { await page.goto('/icons/light-bulb/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('light bulb'); }); test('icons_light_bulb: h1 "light bulb"', async ({ page }) => { await page.goto('/icons/light-bulb/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'light bulb' || t.startsWith('light bulb'))).toBeTruthy(); }); test('icons_light_bulb: h2 "More Objects icons"', async ({ page }) => { await page.goto('/icons/light-bulb/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Objects icons' || t.startsWith('More Objects icons'))).toBeTruthy(); }); test('icons_light_bulb: h2 "Download Choices"', async ({ page }) => { await page.goto('/icons/light-bulb/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Choices' || t.startsWith('Download Choices'))).toBeTruthy(); }); test('icons_light_bulb: h2 "Embed Image"', async ({ page }) => { await page.goto('/icons/light-bulb/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Image' || t.startsWith('Embed Image'))).toBeTruthy(); }); test('icons_light_bulb: nav link "Features"', async ({ page }) => { await page.goto('/icons/light-bulb/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_light_bulb: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/light-bulb/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_light_bulb: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/light-bulb/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_light_bulb: nav link "Icons"', async ({ page }) => { await page.goto('/icons/light-bulb/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_lotus_pose', () => { test('icons_lotus_pose: title matches GT', async ({ page }) => { await page.goto('/icons/lotus-pose/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('meditation'); }); test('icons_lotus_pose: h1 "Meditation"', async ({ page }) => { await page.goto('/icons/lotus-pose/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Meditation' || t.startsWith('Meditation'))).toBeTruthy(); }); test('icons_lotus_pose: h2 "More Wellness glyphs"', async ({ page }) => { await page.goto('/icons/lotus-pose/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Wellness glyphs' || t.startsWith('More Wellness glyphs'))).toBeTruthy(); }); test('icons_lotus_pose: h2 "Download Choices"', async ({ page }) => { await page.goto('/icons/lotus-pose/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Choices' || t.startsWith('Download Choices'))).toBeTruthy(); }); test('icons_lotus_pose: h2 "Add to Site"', async ({ page }) => { await page.goto('/icons/lotus-pose/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Add to Site' || t.startsWith('Add to Site'))).toBeTruthy(); }); test('icons_lotus_pose: nav link "Features"', async ({ page }) => { await page.goto('/icons/lotus-pose/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_lotus_pose: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/lotus-pose/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_lotus_pose: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/lotus-pose/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_lotus_pose: nav link "Icons"', async ({ page }) => { await page.goto('/icons/lotus-pose/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_mango', () => { test('icons_mango: title matches GT', async ({ page }) => { await page.goto('/icons/mango/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('mango'); }); test('icons_mango: h1 "mango"', async ({ page }) => { await page.goto('/icons/mango/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'mango' || t.startsWith('mango'))).toBeTruthy(); }); test('icons_mango: h2 "More Food & Drinks icons"', async ({ page }) => { await page.goto('/icons/mango/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Food & Drinks icons' || t.startsWith('More Food & Drinks icons'))).toBeTruthy(); }); test('icons_mango: h2 "Download Options"', async ({ page }) => { await page.goto('/icons/mango/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Options' || t.startsWith('Download Options'))).toBeTruthy(); }); test('icons_mango: h2 "Embed Image"', async ({ page }) => { await page.goto('/icons/mango/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Image' || t.startsWith('Embed Image'))).toBeTruthy(); }); test('icons_mango: nav link "Features"', async ({ page }) => { await page.goto('/icons/mango/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_mango: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/mango/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_mango: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/mango/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_mango: nav link "Icons"', async ({ page }) => { await page.goto('/icons/mango/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_newsletter', () => { test('icons_newsletter: title matches GT', async ({ page }) => { await page.goto('/icons/newsletter/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('newsletter icon by vizmara'); }); test('icons_newsletter: h1 "Newsletter"', async ({ page }) => { await page.goto('/icons/newsletter/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Newsletter' || t.startsWith('Newsletter'))).toBeTruthy(); }); test('icons_newsletter: h2 "More Objects icons"', async ({ page }) => { await page.goto('/icons/newsletter/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Objects icons' || t.startsWith('More Objects icons'))).toBeTruthy(); }); test('icons_newsletter: h2 "Ways to Download"', async ({ page }) => { await page.goto('/icons/newsletter/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ways to Download' || t.startsWith('Ways to Download'))).toBeTruthy(); }); test('icons_newsletter: h2 "Embed Image"', async ({ page }) => { await page.goto('/icons/newsletter/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Image' || t.startsWith('Embed Image'))).toBeTruthy(); }); test('icons_newsletter: nav link "Features"', async ({ page }) => { await page.goto('/icons/newsletter/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_newsletter: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/newsletter/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_newsletter: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/newsletter/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_newsletter: nav link "Icons"', async ({ page }) => { await page.goto('/icons/newsletter/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_newspaper', () => { test('icons_newspaper: title matches GT', async ({ page }) => { await page.goto('/icons/newspaper/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('newspaper'); }); test('icons_newspaper: h1 "newspaper"', async ({ page }) => { await page.goto('/icons/newspaper/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'newspaper' || t.startsWith('newspaper'))).toBeTruthy(); }); test('icons_newspaper: h2 "More Symbols icons"', async ({ page }) => { await page.goto('/icons/newspaper/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Symbols icons' || t.startsWith('More Symbols icons'))).toBeTruthy(); }); test('icons_newspaper: h2 "Ways to Download"', async ({ page }) => { await page.goto('/icons/newspaper/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ways to Download' || t.startsWith('Ways to Download'))).toBeTruthy(); }); test('icons_newspaper: h2 "Embed Icon"', async ({ page }) => { await page.goto('/icons/newspaper/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Icon' || t.startsWith('Embed Icon'))).toBeTruthy(); }); test('icons_newspaper: nav link "Features"', async ({ page }) => { await page.goto('/icons/newspaper/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_newspaper: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/newspaper/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_newspaper: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/newspaper/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_newspaper: nav link "Icons"', async ({ page }) => { await page.goto('/icons/newspaper/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_oasis', () => { test('icons_oasis: title matches GT', async ({ page }) => { await page.goto('/icons/oasis/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('oasis icon by vizmara'); }); test('icons_oasis: h1 "oasis"', async ({ page }) => { await page.goto('/icons/oasis/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'oasis' || t.startsWith('oasis'))).toBeTruthy(); }); test('icons_oasis: h2 "More Nature & Wildlife icons"', async ({ page }) => { await page.goto('/icons/oasis/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Nature & Wildlife icons' || t.startsWith('More Nature & Wildlife icons'))).toBeTruthy(); }); test('icons_oasis: h2 "Ways to Download"', async ({ page }) => { await page.goto('/icons/oasis/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ways to Download' || t.startsWith('Ways to Download'))).toBeTruthy(); }); test('icons_oasis: h2 "Embed Graphic"', async ({ page }) => { await page.goto('/icons/oasis/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Graphic' || t.startsWith('Embed Graphic'))).toBeTruthy(); }); test('icons_oasis: nav link "Features"', async ({ page }) => { await page.goto('/icons/oasis/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_oasis: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/oasis/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_oasis: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/oasis/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_oasis: nav link "Icons"', async ({ page }) => { await page.goto('/icons/oasis/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_onion', () => { test('icons_onion: title matches GT', async ({ page }) => { await page.goto('/icons/onion/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('onion'); }); test('icons_onion: h1 "onion"', async ({ page }) => { await page.goto('/icons/onion/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'onion' || t.startsWith('onion'))).toBeTruthy(); }); test('icons_onion: h2 "More Food & Drink icons"', async ({ page }) => { await page.goto('/icons/onion/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Food & Drink icons' || t.startsWith('More Food & Drink icons'))).toBeTruthy(); }); test('icons_onion: h2 "Download Options"', async ({ page }) => { await page.goto('/icons/onion/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Options' || t.startsWith('Download Options'))).toBeTruthy(); }); test('icons_onion: h2 "Embed Image"', async ({ page }) => { await page.goto('/icons/onion/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Image' || t.startsWith('Embed Image'))).toBeTruthy(); }); test('icons_onion: nav link "Features"', async ({ page }) => { await page.goto('/icons/onion/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_onion: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/onion/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_onion: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/onion/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_onion: nav link "Icons"', async ({ page }) => { await page.goto('/icons/onion/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_orange', () => { test('icons_orange: title matches GT', async ({ page }) => { await page.goto('/icons/orange/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('orange'); }); test('icons_orange: h1 "orange"', async ({ page }) => { await page.goto('/icons/orange/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'orange' || t.startsWith('orange'))).toBeTruthy(); }); test('icons_orange: h2 "More Food & Snacks icons"', async ({ page }) => { await page.goto('/icons/orange/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Food & Snacks icons' || t.startsWith('More Food & Snacks icons'))).toBeTruthy(); }); test('icons_orange: h2 "Download Choices"', async ({ page }) => { await page.goto('/icons/orange/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Choices' || t.startsWith('Download Choices'))).toBeTruthy(); }); test('icons_orange: h2 "Embed Icon"', async ({ page }) => { await page.goto('/icons/orange/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Icon' || t.startsWith('Embed Icon'))).toBeTruthy(); }); test('icons_orange: nav link "Features"', async ({ page }) => { await page.goto('/icons/orange/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_orange: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/orange/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_orange: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/orange/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_orange: nav link "Icons"', async ({ page }) => { await page.goto('/icons/orange/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_palm_tree', () => { test('icons_palm_tree: title matches GT', async ({ page }) => { await page.goto('/icons/palm-tree/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('palm tree'); }); test('icons_palm_tree: h1 "palm tree"', async ({ page }) => { await page.goto('/icons/palm-tree/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'palm tree' || t.startsWith('palm tree'))).toBeTruthy(); }); test('icons_palm_tree: h2 "More Plants & Scenery icons"', async ({ page }) => { await page.goto('/icons/palm-tree/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Plants & Scenery icons' || t.startsWith('More Plants & Scenery icons'))).toBeTruthy(); }); test('icons_palm_tree: h2 "Download Choices"', async ({ page }) => { await page.goto('/icons/palm-tree/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Choices' || t.startsWith('Download Choices'))).toBeTruthy(); }); test('icons_palm_tree: h2 "Embed Image"', async ({ page }) => { await page.goto('/icons/palm-tree/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Image' || t.startsWith('Embed Image'))).toBeTruthy(); }); test('icons_palm_tree: nav link "Features"', async ({ page }) => { await page.goto('/icons/palm-tree/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_palm_tree: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/palm-tree/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_palm_tree: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/palm-tree/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_palm_tree: nav link "Icons"', async ({ page }) => { await page.goto('/icons/palm-tree/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_party', () => { test('icons_party: title matches GT', async ({ page }) => { await page.goto('/icons/party/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('party'); }); test('icons_party: h1 "Party"', async ({ page }) => { await page.goto('/icons/party/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Party' || t.startsWith('Party'))).toBeTruthy(); }); test('icons_party: h2 "More People icons"', async ({ page }) => { await page.goto('/icons/party/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More People icons' || t.startsWith('More People icons'))).toBeTruthy(); }); test('icons_party: h2 "Download Options"', async ({ page }) => { await page.goto('/icons/party/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Options' || t.startsWith('Download Options'))).toBeTruthy(); }); test('icons_party: h2 "Embed Image"', async ({ page }) => { await page.goto('/icons/party/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Image' || t.startsWith('Embed Image'))).toBeTruthy(); }); test('icons_party: nav link "Features"', async ({ page }) => { await page.goto('/icons/party/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_party: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/party/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_party: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/party/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_party: nav link "Icons"', async ({ page }) => { await page.goto('/icons/party/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_pear', () => { test('icons_pear: title matches GT', async ({ page }) => { await page.goto('/icons/pear/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('pear icon by vizmara'); }); test('icons_pear: h1 "pear"', async ({ page }) => { await page.goto('/icons/pear/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'pear' || t.startsWith('pear'))).toBeTruthy(); }); test('icons_pear: h2 "More Meals & Drinks icons"', async ({ page }) => { await page.goto('/icons/pear/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Meals & Drinks icons' || t.startsWith('More Meals & Drinks icons'))).toBeTruthy(); }); test('icons_pear: h2 "Download Choices"', async ({ page }) => { await page.goto('/icons/pear/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Choices' || t.startsWith('Download Choices'))).toBeTruthy(); }); test('icons_pear: h2 "Embed Graphic"', async ({ page }) => { await page.goto('/icons/pear/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Graphic' || t.startsWith('Embed Graphic'))).toBeTruthy(); }); test('icons_pear: nav link "Features"', async ({ page }) => { await page.goto('/icons/pear/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_pear: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/pear/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_pear: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/pear/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_pear: nav link "Icons"', async ({ page }) => { await page.goto('/icons/pear/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_pine_tree', () => { test('icons_pine_tree: title matches GT', async ({ page }) => { await page.goto('/icons/pine-tree/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('pine tree'); }); test('icons_pine_tree: h1 "pine tree"', async ({ page }) => { await page.goto('/icons/pine-tree/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'pine tree' || t.startsWith('pine tree'))).toBeTruthy(); }); test('icons_pine_tree: h2 "More Nature & Animals icons"', async ({ page }) => { await page.goto('/icons/pine-tree/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Nature & Animals icons' || t.startsWith('More Nature & Animals icons'))).toBeTruthy(); }); test('icons_pine_tree: h2 "Download Choices"', async ({ page }) => { await page.goto('/icons/pine-tree/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Choices' || t.startsWith('Download Choices'))).toBeTruthy(); }); test('icons_pine_tree: h2 "Embed Icon"', async ({ page }) => { await page.goto('/icons/pine-tree/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Icon' || t.startsWith('Embed Icon'))).toBeTruthy(); }); test('icons_pine_tree: nav link "Features"', async ({ page }) => { await page.goto('/icons/pine-tree/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_pine_tree: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/pine-tree/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_pine_tree: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/pine-tree/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_pine_tree: nav link "Icons"', async ({ page }) => { await page.goto('/icons/pine-tree/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_programmer', () => { test('icons_programmer: title matches GT', async ({ page }) => { await page.goto('/icons/programmer/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('programmer'); }); test('icons_programmer: h1 "Programmer"', async ({ page }) => { await page.goto('/icons/programmer/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Programmer' || t.startsWith('Programmer'))).toBeTruthy(); }); test('icons_programmer: h2 "More Workflow icons"', async ({ page }) => { await page.goto('/icons/programmer/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Workflow icons' || t.startsWith('More Workflow icons'))).toBeTruthy(); }); test('icons_programmer: h2 "Download Choices"', async ({ page }) => { await page.goto('/icons/programmer/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Choices' || t.startsWith('Download Choices'))).toBeTruthy(); }); test('icons_programmer: h2 "Embed Symbol"', async ({ page }) => { await page.goto('/icons/programmer/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Symbol' || t.startsWith('Embed Symbol'))).toBeTruthy(); }); test('icons_programmer: nav link "Features"', async ({ page }) => { await page.goto('/icons/programmer/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_programmer: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/programmer/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_programmer: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/programmer/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_programmer: nav link "Icons"', async ({ page }) => { await page.goto('/icons/programmer/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_read_news', () => { test('icons_read_news: title matches GT', async ({ page }) => { await page.goto('/icons/read-news/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('read news'); }); test('icons_read_news: h1 "read news"', async ({ page }) => { await page.goto('/icons/read-news/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'read news' || t.startsWith('read news'))).toBeTruthy(); }); test('icons_read_news: h2 "More Workflow icons"', async ({ page }) => { await page.goto('/icons/read-news/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Workflow icons' || t.startsWith('More Workflow icons'))).toBeTruthy(); }); test('icons_read_news: h2 "Download Formats"', async ({ page }) => { await page.goto('/icons/read-news/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Formats' || t.startsWith('Download Formats'))).toBeTruthy(); }); test('icons_read_news: h2 "Embed Graphic"', async ({ page }) => { await page.goto('/icons/read-news/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Graphic' || t.startsWith('Embed Graphic'))).toBeTruthy(); }); test('icons_read_news: nav link "Features"', async ({ page }) => { await page.goto('/icons/read-news/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_read_news: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/read-news/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_read_news: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/read-news/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_read_news: nav link "Icons"', async ({ page }) => { await page.goto('/icons/read-news/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_roast_chicken', () => { test('icons_roast_chicken: title matches GT', async ({ page }) => { await page.goto('/icons/roast-chicken/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('roast chicken'); }); test('icons_roast_chicken: h1 "Roast chicken"', async ({ page }) => { await page.goto('/icons/roast-chicken/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Roast chicken' || t.startsWith('Roast chicken'))).toBeTruthy(); }); test('icons_roast_chicken: h2 "Extra Food & Snacks glyphs"', async ({ page }) => { await page.goto('/icons/roast-chicken/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Extra Food & Snacks glyphs' || t.startsWith('Extra Food & Snacks glyphs'))).toBeTruthy(); }); test('icons_roast_chicken: h2 "Download Choices"', async ({ page }) => { await page.goto('/icons/roast-chicken/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Choices' || t.startsWith('Download Choices'))).toBeTruthy(); }); test('icons_roast_chicken: h2 "Embed Icon"', async ({ page }) => { await page.goto('/icons/roast-chicken/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Icon' || t.startsWith('Embed Icon'))).toBeTruthy(); }); test('icons_roast_chicken: nav link "Features"', async ({ page }) => { await page.goto('/icons/roast-chicken/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_roast_chicken: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/roast-chicken/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_roast_chicken: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/roast-chicken/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_roast_chicken: nav link "Icons"', async ({ page }) => { await page.goto('/icons/roast-chicken/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_rose', () => { test('icons_rose: title matches GT', async ({ page }) => { await page.goto('/icons/rose/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('rose'); }); test('icons_rose: h1 "rose"', async ({ page }) => { await page.goto('/icons/rose/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'rose' || t.startsWith('rose'))).toBeTruthy(); }); test('icons_rose: h2 "More Nature & Animals icons"', async ({ page }) => { await page.goto('/icons/rose/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Nature & Animals icons' || t.startsWith('More Nature & Animals icons'))).toBeTruthy(); }); test('icons_rose: h2 "Download Options"', async ({ page }) => { await page.goto('/icons/rose/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Options' || t.startsWith('Download Options'))).toBeTruthy(); }); test('icons_rose: h2 "Embed Image"', async ({ page }) => { await page.goto('/icons/rose/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Image' || t.startsWith('Embed Image'))).toBeTruthy(); }); test('icons_rose: nav link "Features"', async ({ page }) => { await page.goto('/icons/rose/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_rose: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/rose/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_rose: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/rose/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_rose: nav link "Icons"', async ({ page }) => { await page.goto('/icons/rose/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_run', () => { test('icons_run: title matches GT', async ({ page }) => { await page.goto('/icons/run/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('run'); }); test('icons_run: h1 "Run"', async ({ page }) => { await page.goto('/icons/run/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Run' || t.startsWith('Run'))).toBeTruthy(); }); test('icons_run: h2 "More People icons"', async ({ page }) => { await page.goto('/icons/run/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More People icons' || t.startsWith('More People icons'))).toBeTruthy(); }); test('icons_run: h2 "Download Choices"', async ({ page }) => { await page.goto('/icons/run/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Choices' || t.startsWith('Download Choices'))).toBeTruthy(); }); test('icons_run: h2 "Embed Image"', async ({ page }) => { await page.goto('/icons/run/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Image' || t.startsWith('Embed Image'))).toBeTruthy(); }); test('icons_run: nav link "Features"', async ({ page }) => { await page.goto('/icons/run/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_run: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/run/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_run: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/run/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_run: nav link "Icons"', async ({ page }) => { await page.goto('/icons/run/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_small_family', () => { test('icons_small_family: title matches GT', async ({ page }) => { await page.goto('/icons/small-family/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('team huddle'); }); test('icons_small_family: h1 "Team huddle"', async ({ page }) => { await page.goto('/icons/small-family/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Team huddle' || t.startsWith('Team huddle'))).toBeTruthy(); }); test('icons_small_family: h2 "More People icons"', async ({ page }) => { await page.goto('/icons/small-family/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More People icons' || t.startsWith('More People icons'))).toBeTruthy(); }); test('icons_small_family: h2 "Ways to Download"', async ({ page }) => { await page.goto('/icons/small-family/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ways to Download' || t.startsWith('Ways to Download'))).toBeTruthy(); }); test('icons_small_family: h2 "Embed Icon"', async ({ page }) => { await page.goto('/icons/small-family/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Icon' || t.startsWith('Embed Icon'))).toBeTruthy(); }); test('icons_small_family: nav link "Features"', async ({ page }) => { await page.goto('/icons/small-family/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_small_family: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/small-family/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_small_family: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/small-family/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_small_family: nav link "Icons"', async ({ page }) => { await page.goto('/icons/small-family/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_smile', () => { test('icons_smile: title matches GT', async ({ page }) => { await page.goto('/icons/smile/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('smile'); }); test('icons_smile: h1 "smile"', async ({ page }) => { await page.goto('/icons/smile/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'smile' || t.startsWith('smile'))).toBeTruthy(); }); test('icons_smile: h2 "More People icons"', async ({ page }) => { await page.goto('/icons/smile/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More People icons' || t.startsWith('More People icons'))).toBeTruthy(); }); test('icons_smile: h2 "Ways to Download"', async ({ page }) => { await page.goto('/icons/smile/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ways to Download' || t.startsWith('Ways to Download'))).toBeTruthy(); }); test('icons_smile: h2 "Embed Image"', async ({ page }) => { await page.goto('/icons/smile/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Image' || t.startsWith('Embed Image'))).toBeTruthy(); }); test('icons_smile: nav link "Features"', async ({ page }) => { await page.goto('/icons/smile/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_smile: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/smile/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_smile: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/smile/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_smile: nav link "Icons"', async ({ page }) => { await page.goto('/icons/smile/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_spring', () => { test('icons_spring: title matches GT', async ({ page }) => { await page.goto('/icons/spring/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('spring'); }); test('icons_spring: h1 "spring"', async ({ page }) => { await page.goto('/icons/spring/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'spring' || t.startsWith('spring'))).toBeTruthy(); }); test('icons_spring: h2 "More Plants & Seasons icons"', async ({ page }) => { await page.goto('/icons/spring/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Plants & Seasons icons' || t.startsWith('More Plants & Seasons icons'))).toBeTruthy(); }); test('icons_spring: h2 "Ways to Download"', async ({ page }) => { await page.goto('/icons/spring/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ways to Download' || t.startsWith('Ways to Download'))).toBeTruthy(); }); test('icons_spring: h2 "Share Image"', async ({ page }) => { await page.goto('/icons/spring/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Share Image' || t.startsWith('Share Image'))).toBeTruthy(); }); test('icons_spring: nav link "Features"', async ({ page }) => { await page.goto('/icons/spring/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_spring: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/spring/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_spring: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/spring/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_spring: nav link "Icons"', async ({ page }) => { await page.goto('/icons/spring/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_suv', () => { test('icons_suv: title matches GT', async ({ page }) => { await page.goto('/icons/suv/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('suv'); }); test('icons_suv: h1 "suv"', async ({ page }) => { await page.goto('/icons/suv/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'suv' || t.startsWith('suv'))).toBeTruthy(); }); test('icons_suv: h2 "More Transport & Travel icons"', async ({ page }) => { await page.goto('/icons/suv/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Transport & Travel icons' || t.startsWith('More Transport & Travel icons'))).toBeTruthy(); }); test('icons_suv: h2 "Download Formats"', async ({ page }) => { await page.goto('/icons/suv/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Formats' || t.startsWith('Download Formats'))).toBeTruthy(); }); test('icons_suv: h2 "Embed Icon"', async ({ page }) => { await page.goto('/icons/suv/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Icon' || t.startsWith('Embed Icon'))).toBeTruthy(); }); test('icons_suv: nav link "Features"', async ({ page }) => { await page.goto('/icons/suv/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_suv: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/suv/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_suv: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/suv/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_suv: nav link "Icons"', async ({ page }) => { await page.goto('/icons/suv/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_texting_on_phone', () => { test('icons_texting_on_phone: title matches GT', async ({ page }) => { await page.goto('/icons/texting-on-phone/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('texting on phone icon by vizmara'); }); test('icons_texting_on_phone: h1 "Texting on phone"', async ({ page }) => { await page.goto('/icons/texting-on-phone/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Texting on phone' || t.startsWith('Texting on phone'))).toBeTruthy(); }); test('icons_texting_on_phone: h2 "More Activity icons"', async ({ page }) => { await page.goto('/icons/texting-on-phone/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Activity icons' || t.startsWith('More Activity icons'))).toBeTruthy(); }); test('icons_texting_on_phone: h2 "Download Options"', async ({ page }) => { await page.goto('/icons/texting-on-phone/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Options' || t.startsWith('Download Options'))).toBeTruthy(); }); test('icons_texting_on_phone: h2 "Embed Image"', async ({ page }) => { await page.goto('/icons/texting-on-phone/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Image' || t.startsWith('Embed Image'))).toBeTruthy(); }); test('icons_texting_on_phone: nav link "Features"', async ({ page }) => { await page.goto('/icons/texting-on-phone/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_texting_on_phone: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/texting-on-phone/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_texting_on_phone: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/texting-on-phone/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_texting_on_phone: nav link "Icons"', async ({ page }) => { await page.goto('/icons/texting-on-phone/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_thinking', () => { test('icons_thinking: title matches GT', async ({ page }) => { await page.goto('/icons/thinking/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('thinking'); }); test('icons_thinking: h1 "Thinking"', async ({ page }) => { await page.goto('/icons/thinking/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Thinking' || t.startsWith('Thinking'))).toBeTruthy(); }); test('icons_thinking: h2 "Next Movement signs"', async ({ page }) => { await page.goto('/icons/thinking/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Next Movement signs' || t.startsWith('Next Movement signs'))).toBeTruthy(); }); test('icons_thinking: h2 "Download Choices"', async ({ page }) => { await page.goto('/icons/thinking/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Choices' || t.startsWith('Download Choices'))).toBeTruthy(); }); test('icons_thinking: h2 "Embed Graphic"', async ({ page }) => { await page.goto('/icons/thinking/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Graphic' || t.startsWith('Embed Graphic'))).toBeTruthy(); }); test('icons_thinking: nav link "Features"', async ({ page }) => { await page.goto('/icons/thinking/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_thinking: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/thinking/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_thinking: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/thinking/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_thinking: nav link "Icons"', async ({ page }) => { await page.goto('/icons/thinking/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_tools', () => { test('icons_tools: title matches GT', async ({ page }) => { await page.goto('/icons/tools/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('tools'); }); test('icons_tools: h1 "tools"', async ({ page }) => { await page.goto('/icons/tools/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'tools' || t.startsWith('tools'))).toBeTruthy(); }); test('icons_tools: h2 "More Gadgets icons"', async ({ page }) => { await page.goto('/icons/tools/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Gadgets icons' || t.startsWith('More Gadgets icons'))).toBeTruthy(); }); test('icons_tools: h2 "Download Formats"', async ({ page }) => { await page.goto('/icons/tools/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Formats' || t.startsWith('Download Formats'))).toBeTruthy(); }); test('icons_tools: h2 "Embed Icon"', async ({ page }) => { await page.goto('/icons/tools/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Icon' || t.startsWith('Embed Icon'))).toBeTruthy(); }); test('icons_tools: nav link "Features"', async ({ page }) => { await page.goto('/icons/tools/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_tools: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/tools/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_tools: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/tools/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_tools: nav link "Icons"', async ({ page }) => { await page.goto('/icons/tools/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_train', () => { test('icons_train: title matches GT', async ({ page }) => { await page.goto('/icons/train/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('train'); }); test('icons_train: h1 "train"', async ({ page }) => { await page.goto('/icons/train/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'train' || t.startsWith('train'))).toBeTruthy(); }); test('icons_train: h2 "More Travel & Places icons"', async ({ page }) => { await page.goto('/icons/train/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Travel & Places icons' || t.startsWith('More Travel & Places icons'))).toBeTruthy(); }); test('icons_train: h2 "Download Options"', async ({ page }) => { await page.goto('/icons/train/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Options' || t.startsWith('Download Options'))).toBeTruthy(); }); test('icons_train: h2 "Embed Image"', async ({ page }) => { await page.goto('/icons/train/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Image' || t.startsWith('Embed Image'))).toBeTruthy(); }); test('icons_train: nav link "Features"', async ({ page }) => { await page.goto('/icons/train/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_train: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/train/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_train: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/train/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_train: nav link "Icons"', async ({ page }) => { await page.goto('/icons/train/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_tree', () => { test('icons_tree: title matches GT', async ({ page }) => { await page.goto('/icons/tree/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('tree'); }); test('icons_tree: h1 "tree"', async ({ page }) => { await page.goto('/icons/tree/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'tree' || t.startsWith('tree'))).toBeTruthy(); }); test('icons_tree: h2 "More Plants & Wildlife icons"', async ({ page }) => { await page.goto('/icons/tree/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Plants & Wildlife icons' || t.startsWith('More Plants & Wildlife icons'))).toBeTruthy(); }); test('icons_tree: h2 "Ways to Download"', async ({ page }) => { await page.goto('/icons/tree/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ways to Download' || t.startsWith('Ways to Download'))).toBeTruthy(); }); test('icons_tree: h2 "Embed Image"', async ({ page }) => { await page.goto('/icons/tree/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Image' || t.startsWith('Embed Image'))).toBeTruthy(); }); test('icons_tree: nav link "Features"', async ({ page }) => { await page.goto('/icons/tree/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_tree: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/tree/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_tree: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/tree/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_tree: nav link "Icons"', async ({ page }) => { await page.goto('/icons/tree/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_tree_in_winter', () => { test('icons_tree_in_winter: title matches GT', async ({ page }) => { await page.goto('/icons/tree-in-winter/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('tree in winter'); }); test('icons_tree_in_winter: h1 "tree in winter"', async ({ page }) => { await page.goto('/icons/tree-in-winter/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'tree in winter' || t.startsWith('tree in winter'))).toBeTruthy(); }); test('icons_tree_in_winter: h2 "More Nature & Wildlife icons"', async ({ page }) => { await page.goto('/icons/tree-in-winter/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Nature & Wildlife icons' || t.startsWith('More Nature & Wildlife icons'))).toBeTruthy(); }); test('icons_tree_in_winter: h2 "Download Choices"', async ({ page }) => { await page.goto('/icons/tree-in-winter/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Choices' || t.startsWith('Download Choices'))).toBeTruthy(); }); test('icons_tree_in_winter: h2 "Embed Image"', async ({ page }) => { await page.goto('/icons/tree-in-winter/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Image' || t.startsWith('Embed Image'))).toBeTruthy(); }); test('icons_tree_in_winter: nav link "Features"', async ({ page }) => { await page.goto('/icons/tree-in-winter/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_tree_in_winter: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/tree-in-winter/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_tree_in_winter: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/tree-in-winter/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_tree_in_winter: nav link "Icons"', async ({ page }) => { await page.goto('/icons/tree-in-winter/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_trees', () => { test('icons_trees: title matches GT', async ({ page }) => { await page.goto('/icons/trees/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('trees'); }); test('icons_trees: h1 "trees"', async ({ page }) => { await page.goto('/icons/trees/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'trees' || t.startsWith('trees'))).toBeTruthy(); }); test('icons_trees: h2 "More Nature & Wildlife icons"', async ({ page }) => { await page.goto('/icons/trees/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Nature & Wildlife icons' || t.startsWith('More Nature & Wildlife icons'))).toBeTruthy(); }); test('icons_trees: h2 "Download Formats"', async ({ page }) => { await page.goto('/icons/trees/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Formats' || t.startsWith('Download Formats'))).toBeTruthy(); }); test('icons_trees: h2 "Embed Graphic"', async ({ page }) => { await page.goto('/icons/trees/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Graphic' || t.startsWith('Embed Graphic'))).toBeTruthy(); }); test('icons_trees: nav link "Features"', async ({ page }) => { await page.goto('/icons/trees/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_trees: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/trees/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_trees: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/trees/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_trees: nav link "Icons"', async ({ page }) => { await page.goto('/icons/trees/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_truck', () => { test('icons_truck: title matches GT', async ({ page }) => { await page.goto('/icons/truck/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('truck'); }); test('icons_truck: h1 "truck"', async ({ page }) => { await page.goto('/icons/truck/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'truck' || t.startsWith('truck'))).toBeTruthy(); }); test('icons_truck: h2 "More Journeys & Maps icons"', async ({ page }) => { await page.goto('/icons/truck/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Journeys & Maps icons' || t.startsWith('More Journeys & Maps icons'))).toBeTruthy(); }); test('icons_truck: h2 "Ways to Download"', async ({ page }) => { await page.goto('/icons/truck/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ways to Download' || t.startsWith('Ways to Download'))).toBeTruthy(); }); test('icons_truck: h2 "Embed Icon"', async ({ page }) => { await page.goto('/icons/truck/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Icon' || t.startsWith('Embed Icon'))).toBeTruthy(); }); test('icons_truck: nav link "Features"', async ({ page }) => { await page.goto('/icons/truck/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_truck: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/truck/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_truck: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/truck/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_truck: nav link "Icons"', async ({ page }) => { await page.goto('/icons/truck/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_truck_rental', () => { test('icons_truck_rental: title matches GT', async ({ page }) => { await page.goto('/icons/truck-rental/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('truck rental'); }); test('icons_truck_rental: h1 "truck rental"', async ({ page }) => { await page.goto('/icons/truck-rental/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'truck rental' || t.startsWith('truck rental'))).toBeTruthy(); }); test('icons_truck_rental: h2 "More Transit & Routes icons"', async ({ page }) => { await page.goto('/icons/truck-rental/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Transit & Routes icons' || t.startsWith('More Transit & Routes icons'))).toBeTruthy(); }); test('icons_truck_rental: h2 "Download Choices"', async ({ page }) => { await page.goto('/icons/truck-rental/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Choices' || t.startsWith('Download Choices'))).toBeTruthy(); }); test('icons_truck_rental: h2 "Embed Icon"', async ({ page }) => { await page.goto('/icons/truck-rental/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Icon' || t.startsWith('Embed Icon'))).toBeTruthy(); }); test('icons_truck_rental: nav link "Features"', async ({ page }) => { await page.goto('/icons/truck-rental/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_truck_rental: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/truck-rental/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_truck_rental: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/truck-rental/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_truck_rental: nav link "Icons"', async ({ page }) => { await page.goto('/icons/truck-rental/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_typewriter', () => { test('icons_typewriter: title matches GT', async ({ page }) => { await page.goto('/icons/typewriter/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('typewriter'); }); test('icons_typewriter: h1 "typewriter"', async ({ page }) => { await page.goto('/icons/typewriter/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'typewriter' || t.startsWith('typewriter'))).toBeTruthy(); }); test('icons_typewriter: h2 "More Objects icons"', async ({ page }) => { await page.goto('/icons/typewriter/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Objects icons' || t.startsWith('More Objects icons'))).toBeTruthy(); }); test('icons_typewriter: h2 "Download Options"', async ({ page }) => { await page.goto('/icons/typewriter/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Options' || t.startsWith('Download Options'))).toBeTruthy(); }); test('icons_typewriter: h2 "Embed Image"', async ({ page }) => { await page.goto('/icons/typewriter/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Image' || t.startsWith('Embed Image'))).toBeTruthy(); }); test('icons_typewriter: nav link "Features"', async ({ page }) => { await page.goto('/icons/typewriter/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_typewriter: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/typewriter/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_typewriter: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/typewriter/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_typewriter: nav link "Icons"', async ({ page }) => { await page.goto('/icons/typewriter/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_walk', () => { test('icons_walk: title matches GT', async ({ page }) => { await page.goto('/icons/walk/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('walk'); }); test('icons_walk: h1 "walk"', async ({ page }) => { await page.goto('/icons/walk/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'walk' || t.startsWith('walk'))).toBeTruthy(); }); test('icons_walk: h2 "More People icons"', async ({ page }) => { await page.goto('/icons/walk/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More People icons' || t.startsWith('More People icons'))).toBeTruthy(); }); test('icons_walk: h2 "Download Options"', async ({ page }) => { await page.goto('/icons/walk/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Options' || t.startsWith('Download Options'))).toBeTruthy(); }); test('icons_walk: h2 "Embed Image"', async ({ page }) => { await page.goto('/icons/walk/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Image' || t.startsWith('Embed Image'))).toBeTruthy(); }); test('icons_walk: nav link "Features"', async ({ page }) => { await page.goto('/icons/walk/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_walk: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/walk/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_walk: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/walk/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_walk: nav link "Icons"', async ({ page }) => { await page.goto('/icons/walk/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_walking_person', () => { test('icons_walking_person: title matches GT', async ({ page }) => { await page.goto('/icons/walking-person/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('walking person'); }); test('icons_walking_person: h1 "Walking person"', async ({ page }) => { await page.goto('/icons/walking-person/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Walking person' || t.startsWith('Walking person'))).toBeTruthy(); }); test('icons_walking_person: h2 "More Movement icons"', async ({ page }) => { await page.goto('/icons/walking-person/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Movement icons' || t.startsWith('More Movement icons'))).toBeTruthy(); }); test('icons_walking_person: h2 "Download Formats"', async ({ page }) => { await page.goto('/icons/walking-person/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Formats' || t.startsWith('Download Formats'))).toBeTruthy(); }); test('icons_walking_person: h2 "Embed Image"', async ({ page }) => { await page.goto('/icons/walking-person/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Image' || t.startsWith('Embed Image'))).toBeTruthy(); }); test('icons_walking_person: nav link "Features"', async ({ page }) => { await page.goto('/icons/walking-person/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_walking_person: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/walking-person/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_walking_person: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/walking-person/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_walking_person: nav link "Icons"', async ({ page }) => { await page.goto('/icons/walking-person/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_weed', () => { test('icons_weed: title matches GT', async ({ page }) => { await page.goto('/icons/weed/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weed'); }); test('icons_weed: h1 "weed"', async ({ page }) => { await page.goto('/icons/weed/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'weed' || t.startsWith('weed'))).toBeTruthy(); }); test('icons_weed: h2 "More Nature & Animals icons"', async ({ page }) => { await page.goto('/icons/weed/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Nature & Animals icons' || t.startsWith('More Nature & Animals icons'))).toBeTruthy(); }); test('icons_weed: h2 "Download Options"', async ({ page }) => { await page.goto('/icons/weed/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Options' || t.startsWith('Download Options'))).toBeTruthy(); }); test('icons_weed: h2 "Embed Icon"', async ({ page }) => { await page.goto('/icons/weed/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Icon' || t.startsWith('Embed Icon'))).toBeTruthy(); }); test('icons_weed: nav link "Features"', async ({ page }) => { await page.goto('/icons/weed/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_weed: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/weed/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_weed: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/weed/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_weed: nav link "Icons"', async ({ page }) => { await page.goto('/icons/weed/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - icons_woman', () => { test('icons_woman: title matches GT', async ({ page }) => { await page.goto('/icons/woman/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('woman'); }); test('icons_woman: h1 "woman"', async ({ page }) => { await page.goto('/icons/woman/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'woman' || t.startsWith('woman'))).toBeTruthy(); }); test('icons_woman: h2 "More People icons"', async ({ page }) => { await page.goto('/icons/woman/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More People icons' || t.startsWith('More People icons'))).toBeTruthy(); }); test('icons_woman: h2 "Ways to Download"', async ({ page }) => { await page.goto('/icons/woman/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ways to Download' || t.startsWith('Ways to Download'))).toBeTruthy(); }); test('icons_woman: h2 "Embed Icon"', async ({ page }) => { await page.goto('/icons/woman/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Icon' || t.startsWith('Embed Icon'))).toBeTruthy(); }); test('icons_woman: nav link "Features"', async ({ page }) => { await page.goto('/icons/woman/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('features')), 'href fragment present').toBeTruthy(); }); test('icons_woman: nav link "Plans & Pricing"', async ({ page }) => { await page.goto('/icons/woman/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plans & Pricing' || t.startsWith('Plans & Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('icons_woman: nav link "Infographic Examples"', async ({ page }) => { await page.goto('/icons/woman/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Infographic Examples' || t.startsWith('Infographic Examples')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('infographics')), 'href fragment present').toBeTruthy(); }); test('icons_woman: nav link "Icons"', async ({ page }) => { await page.goto('/icons/woman/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Icons' || t.startsWith('Icons')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('icons')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @Business_Education_Infograph_infographic_corporation_vs_llc', () => { test('@Business_Education_Infograph_infographic_corporation_vs_llc: title matches GT', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/corporation-vs-llc/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('corporation vs llc'); }); test('@Business_Education_Infograph_infographic_corporation_vs_llc: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/corporation-vs-llc/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@Business_Education_Infograph_infographic_corporation_vs_llc: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/corporation-vs-llc/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@Business_Education_Infograph_infographic_corporation_vs_llc: nav link "Pricing"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/corporation-vs-llc/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@Business_Education_Infograph_infographic_corporation_vs_llc: nav link "About"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/corporation-vs-llc/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@Business_Education_Infograph_infographic_corporation_vs_llc: nav link "Log In"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/corporation-vs-llc/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @Business_Education_Infograph_infographic_how_dropbox_started', () => { test('@Business_Education_Infograph_infographic_how_dropbox_started: title matches GT', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/how-dropbox-started/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how nimblox started'); }); test('@Business_Education_Infograph_infographic_how_dropbox_started: h4 "Embed This Visual"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/how-dropbox-started/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Visual' || t.startsWith('Embed This Visual'))).toBeTruthy(); }); test('@Business_Education_Infograph_infographic_how_dropbox_started: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/how-dropbox-started/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@Business_Education_Infograph_infographic_how_dropbox_started: nav link "Pricing"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/how-dropbox-started/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@Business_Education_Infograph_infographic_how_dropbox_started: nav link "About"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/how-dropbox-started/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@Business_Education_Infograph_infographic_how_dropbox_started: nav link "Log In"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/how-dropbox-started/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @Business_Education_Infograph_infographic_how_instagram_started', () => { test('@Business_Education_Infograph_infographic_how_instagram_started: title matches GT', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/how-instagram-started/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how glimmr got started'); }); test('@Business_Education_Infograph_infographic_how_instagram_started: h4 "Embed This Visual"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/how-instagram-started/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Visual' || t.startsWith('Embed This Visual'))).toBeTruthy(); }); test('@Business_Education_Infograph_infographic_how_instagram_started: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/how-instagram-started/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@Business_Education_Infograph_infographic_how_instagram_started: nav link "Pricing"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/how-instagram-started/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@Business_Education_Infograph_infographic_how_instagram_started: nav link "About"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/how-instagram-started/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@Business_Education_Infograph_infographic_how_instagram_started: nav link "Log In"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/how-instagram-started/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @Business_Education_Infograph_infographic_how_pinterest_started', () => { test('@Business_Education_Infograph_infographic_how_pinterest_started: title matches GT', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/how-pinterest-started/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how lumio got started'); }); test('@Business_Education_Infograph_infographic_how_pinterest_started: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/how-pinterest-started/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@Business_Education_Infograph_infographic_how_pinterest_started: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/how-pinterest-started/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@Business_Education_Infograph_infographic_how_pinterest_started: nav link "Pricing"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/how-pinterest-started/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@Business_Education_Infograph_infographic_how_pinterest_started: nav link "About"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/how-pinterest-started/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@Business_Education_Infograph_infographic_how_pinterest_started: nav link "Log In"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/how-pinterest-started/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @Business_Education_Infograph_infographic_how_snapchat_started', () => { test('@Business_Education_Infograph_infographic_how_snapchat_started: title matches GT', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/how-snapchat-started/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how blinq got started'); }); test('@Business_Education_Infograph_infographic_how_snapchat_started: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/how-snapchat-started/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@Business_Education_Infograph_infographic_how_snapchat_started: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/how-snapchat-started/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@Business_Education_Infograph_infographic_how_snapchat_started: nav link "Pricing"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/how-snapchat-started/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@Business_Education_Infograph_infographic_how_snapchat_started: nav link "About"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/how-snapchat-started/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@Business_Education_Infograph_infographic_how_snapchat_started: nav link "Log In"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/how-snapchat-started/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @Business_Education_Infograph_infographic_how_twitter_got_started', () => { test('@Business_Education_Infograph_infographic_how_twitter_got_started: title matches GT', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/how-twitter-got-started/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how blipster got started'); }); test('@Business_Education_Infograph_infographic_how_twitter_got_started: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/how-twitter-got-started/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@Business_Education_Infograph_infographic_how_twitter_got_started: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/how-twitter-got-started/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@Business_Education_Infograph_infographic_how_twitter_got_started: nav link "Pricing"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/how-twitter-got-started/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@Business_Education_Infograph_infographic_how_twitter_got_started: nav link "About"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/how-twitter-got-started/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@Business_Education_Infograph_infographic_how_twitter_got_started: nav link "Log In"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/how-twitter-got-started/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @Business_Education_Infograph_infographic_timeline_of_wells_fargo_fraud_scandal', () => { test('@Business_Education_Infograph_infographic_timeline_of_wells_fargo_fraud_scandal: title matches GT', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/timeline-of-wells-fargo-fraud-scandal/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('timeline of northgate bank fraud scandal'); }); test('@Business_Education_Infograph_infographic_timeline_of_wells_fargo_fraud_scandal: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/timeline-of-wells-fargo-fraud-scandal/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@Business_Education_Infograph_infographic_timeline_of_wells_fargo_fraud_scandal: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/timeline-of-wells-fargo-fraud-scandal/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@Business_Education_Infograph_infographic_timeline_of_wells_fargo_fraud_scandal: nav link "Pricing"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/timeline-of-wells-fargo-fraud-scandal/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@Business_Education_Infograph_infographic_timeline_of_wells_fargo_fraud_scandal: nav link "About"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/timeline-of-wells-fargo-fraud-scandal/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@Business_Education_Infograph_infographic_timeline_of_wells_fargo_fraud_scandal: nav link "Log In"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/timeline-of-wells-fargo-fraud-scandal/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @Business_Education_Infograph_infographic_types_of_startup_metrics', () => { test('@Business_Education_Infograph_infographic_types_of_startup_metrics: title matches GT', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/types-of-startup-metrics/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('startup metrics overview'); }); test('@Business_Education_Infograph_infographic_types_of_startup_metrics: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/types-of-startup-metrics/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@Business_Education_Infograph_infographic_types_of_startup_metrics: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/types-of-startup-metrics/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@Business_Education_Infograph_infographic_types_of_startup_metrics: nav link "Pricing"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/types-of-startup-metrics/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@Business_Education_Infograph_infographic_types_of_startup_metrics: nav link "About"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/types-of-startup-metrics/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@Business_Education_Infograph_infographic_types_of_startup_metrics: nav link "Log In"', async ({ page }) => { await page.goto('/@Business-Education-Infograph/infographic/types-of-startup-metrics/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @CC4U_infographic_5ae268f524656', () => { test('@CC4U_infographic_5ae268f524656: title matches GT', async ({ page }) => { await page.goto('/@CC4U/infographic/5ae268f524656/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('infographic'); }); test('@CC4U_infographic_5ae268f524656: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@CC4U/infographic/5ae268f524656/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@CC4U_infographic_5ae268f524656: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@CC4U/infographic/5ae268f524656/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@CC4U_infographic_5ae268f524656: nav link "Pricing"', async ({ page }) => { await page.goto('/@CC4U/infographic/5ae268f524656/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@CC4U_infographic_5ae268f524656: nav link "About"', async ({ page }) => { await page.goto('/@CC4U/infographic/5ae268f524656/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@CC4U_infographic_5ae268f524656: nav link "Log In"', async ({ page }) => { await page.goto('/@CC4U/infographic/5ae268f524656/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @CC4U_infographic_culture_clash4u', () => { test('@CC4U_infographic_culture_clash4u: title matches GT', async ({ page }) => { await page.goto('/@CC4U/infographic/culture-clash4u/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('youth remix lab'); }); test('@CC4U_infographic_culture_clash4u: h4 "Embed The Graphic"', async ({ page }) => { await page.goto('/@CC4U/infographic/culture-clash4u/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed The Graphic' || t.startsWith('Embed The Graphic'))).toBeTruthy(); }); test('@CC4U_infographic_culture_clash4u: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@CC4U/infographic/culture-clash4u/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@CC4U_infographic_culture_clash4u: nav link "Pricing"', async ({ page }) => { await page.goto('/@CC4U/infographic/culture-clash4u/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@CC4U_infographic_culture_clash4u: nav link "About"', async ({ page }) => { await page.goto('/@CC4U/infographic/culture-clash4u/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@CC4U_infographic_culture_clash4u: nav link "Log In"', async ({ page }) => { await page.goto('/@CC4U/infographic/culture-clash4u/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @CC4U_infographic_the_time_travelers', () => { test('@CC4U_infographic_the_time_travelers: title matches GT', async ({ page }) => { await page.goto('/@CC4U/infographic/the-time-travelers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('the star voyagers'); }); test('@CC4U_infographic_the_time_travelers: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@CC4U/infographic/the-time-travelers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@CC4U_infographic_the_time_travelers: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@CC4U/infographic/the-time-travelers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@CC4U_infographic_the_time_travelers: nav link "Pricing"', async ({ page }) => { await page.goto('/@CC4U/infographic/the-time-travelers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@CC4U_infographic_the_time_travelers: nav link "About"', async ({ page }) => { await page.goto('/@CC4U/infographic/the-time-travelers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@CC4U_infographic_the_time_travelers: nav link "Log In"', async ({ page }) => { await page.goto('/@CC4U/infographic/the-time-travelers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @EthicsGlobal_infographic_content', () => { test('@EthicsGlobal_infographic_content: title matches GT', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/content/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('outline'); }); test('@EthicsGlobal_infographic_content: h4 "Embed The Graphic"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/content/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed The Graphic' || t.startsWith('Embed The Graphic'))).toBeTruthy(); }); test('@EthicsGlobal_infographic_content: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/content/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_content: nav link "Pricing"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/content/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_content: nav link "About"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/content/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_content: nav link "Log In"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/content/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @EthicsGlobal_infographic_custom_protocol', () => { test('@EthicsGlobal_infographic_custom_protocol: title matches GT', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/custom-protocol/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('volunteer guide'); }); test('@EthicsGlobal_infographic_custom_protocol: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/custom-protocol/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@EthicsGlobal_infographic_custom_protocol: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/custom-protocol/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_custom_protocol: nav link "Pricing"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/custom-protocol/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_custom_protocol: nav link "About"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/custom-protocol/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_custom_protocol: nav link "Log In"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/custom-protocol/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @EthicsGlobal_infographic_ethicsglobal_e_learning', () => { test('@EthicsGlobal_infographic_ethicsglobal_e_learning: title matches GT', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/ethicsglobal-e-learning/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('corriva labs e'); }); test('@EthicsGlobal_infographic_ethicsglobal_e_learning: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/ethicsglobal-e-learning/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@EthicsGlobal_infographic_ethicsglobal_e_learning: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/ethicsglobal-e-learning/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_ethicsglobal_e_learning: nav link "Pricing"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/ethicsglobal-e-learning/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_ethicsglobal_e_learning: nav link "About"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/ethicsglobal-e-learning/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_ethicsglobal_e_learning: nav link "Log In"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/ethicsglobal-e-learning/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @EthicsGlobal_infographic_ethicsglobal_s_app', () => { test('@EthicsGlobal_infographic_ethicsglobal_s_app: title matches GT', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/ethicsglobal-s-app/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('corriva labs\' app'); }); test('@EthicsGlobal_infographic_ethicsglobal_s_app: h4 "Embed This Visual"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/ethicsglobal-s-app/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Visual' || t.startsWith('Embed This Visual'))).toBeTruthy(); }); test('@EthicsGlobal_infographic_ethicsglobal_s_app: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/ethicsglobal-s-app/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_ethicsglobal_s_app: nav link "Pricing"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/ethicsglobal-s-app/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_ethicsglobal_s_app: nav link "About"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/ethicsglobal-s-app/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_ethicsglobal_s_app: nav link "Log In"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/ethicsglobal-s-app/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @EthicsGlobal_infographic_ethicsglobal_s_e_learning_courses', () => { test('@EthicsGlobal_infographic_ethicsglobal_s_e_learning_courses: title matches GT', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/ethicsglobal-s-e-learning-courses/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('integraethos\'s e'); }); test('@EthicsGlobal_infographic_ethicsglobal_s_e_learning_courses: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/ethicsglobal-s-e-learning-courses/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@EthicsGlobal_infographic_ethicsglobal_s_e_learning_courses: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/ethicsglobal-s-e-learning-courses/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_ethicsglobal_s_e_learning_courses: nav link "Pricing"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/ethicsglobal-s-e-learning-courses/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_ethicsglobal_s_e_learning_courses: nav link "About"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/ethicsglobal-s-e-learning-courses/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_ethicsglobal_s_e_learning_courses: nav link "Log In"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/ethicsglobal-s-e-learning-courses/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @EthicsGlobal_infographic_ethicsglobal_s_history', () => { test('@EthicsGlobal_infographic_ethicsglobal_s_history: title matches GT', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/ethicsglobal-s-history/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('corriva labs\' history'); }); test('@EthicsGlobal_infographic_ethicsglobal_s_history: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/ethicsglobal-s-history/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@EthicsGlobal_infographic_ethicsglobal_s_history: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/ethicsglobal-s-history/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_ethicsglobal_s_history: nav link "Pricing"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/ethicsglobal-s-history/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_ethicsglobal_s_history: nav link "About"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/ethicsglobal-s-history/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_ethicsglobal_s_history: nav link "Log In"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/ethicsglobal-s-history/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @EthicsGlobal_infographic_implementation_process', () => { test('@EthicsGlobal_infographic_implementation_process: title matches GT', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/implementation-process/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('program rollout process'); }); test('@EthicsGlobal_infographic_implementation_process: h4 "Share This Graphic"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/implementation-process/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Share This Graphic' || t.startsWith('Share This Graphic'))).toBeTruthy(); }); test('@EthicsGlobal_infographic_implementation_process: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/implementation-process/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_implementation_process: nav link "Pricing"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/implementation-process/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_implementation_process: nav link "About"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/implementation-process/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_implementation_process: nav link "Log In"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/implementation-process/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @EthicsGlobal_infographic_informant_follow_up', () => { test('@EthicsGlobal_infographic_informant_follow_up: title matches GT', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/informant-follow-up/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('tipster check'); }); test('@EthicsGlobal_infographic_informant_follow_up: h4 "Embed The Visual"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/informant-follow-up/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed The Visual' || t.startsWith('Embed The Visual'))).toBeTruthy(); }); test('@EthicsGlobal_infographic_informant_follow_up: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/informant-follow-up/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_informant_follow_up: nav link "Pricing"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/informant-follow-up/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_informant_follow_up: nav link "About"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/informant-follow-up/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_informant_follow_up: nav link "Log In"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/informant-follow-up/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @EthicsGlobal_infographic_legal_and_investigation_services', () => { test('@EthicsGlobal_infographic_legal_and_investigation_services: title matches GT', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/legal-and-investigation-services/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('security incident response steps'); }); test('@EthicsGlobal_infographic_legal_and_investigation_services: h4 "Embed This Visual"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/legal-and-investigation-services/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Visual' || t.startsWith('Embed This Visual'))).toBeTruthy(); }); test('@EthicsGlobal_infographic_legal_and_investigation_services: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/legal-and-investigation-services/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_legal_and_investigation_services: nav link "Pricing"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/legal-and-investigation-services/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_legal_and_investigation_services: nav link "About"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/legal-and-investigation-services/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_legal_and_investigation_services: nav link "Log In"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/legal-and-investigation-services/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @EthicsGlobal_infographic_paso_1_ethicsglobal', () => { test('@EthicsGlobal_infographic_paso_1_ethicsglobal: title matches GT', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/paso-1-ethicsglobal/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('paso 1 integravida'); }); test('@EthicsGlobal_infographic_paso_1_ethicsglobal: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/paso-1-ethicsglobal/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@EthicsGlobal_infographic_paso_1_ethicsglobal: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/paso-1-ethicsglobal/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_paso_1_ethicsglobal: nav link "Pricing"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/paso-1-ethicsglobal/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_paso_1_ethicsglobal: nav link "About"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/paso-1-ethicsglobal/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_paso_1_ethicsglobal: nav link "Log In"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/paso-1-ethicsglobal/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @EthicsGlobal_infographic_reporting_and_follow_up_channels', () => { test('@EthicsGlobal_infographic_reporting_and_follow_up_channels: title matches GT', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/reporting-and-follow-up-channels/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('ways to report and stay in touch'); }); test('@EthicsGlobal_infographic_reporting_and_follow_up_channels: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/reporting-and-follow-up-channels/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@EthicsGlobal_infographic_reporting_and_follow_up_channels: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/reporting-and-follow-up-channels/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_reporting_and_follow_up_channels: nav link "Pricing"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/reporting-and-follow-up-channels/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_reporting_and_follow_up_channels: nav link "About"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/reporting-and-follow-up-channels/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_reporting_and_follow_up_channels: nav link "Log In"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/reporting-and-follow-up-channels/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @EthicsGlobal_infographic_resolutions', () => { test('@EthicsGlobal_infographic_resolutions: title matches GT', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/resolutions/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('remediations'); }); test('@EthicsGlobal_infographic_resolutions: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/resolutions/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@EthicsGlobal_infographic_resolutions: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/resolutions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_resolutions: nav link "Pricing"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/resolutions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_resolutions: nav link "About"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/resolutions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_resolutions: nav link "Log In"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/resolutions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @EthicsGlobal_infographic_telephone_and_voicemail', () => { test('@EthicsGlobal_infographic_telephone_and_voicemail: title matches GT', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/telephone-and-voicemail/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('call line and voicemail'); }); test('@EthicsGlobal_infographic_telephone_and_voicemail: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/telephone-and-voicemail/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@EthicsGlobal_infographic_telephone_and_voicemail: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/telephone-and-voicemail/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_telephone_and_voicemail: nav link "Pricing"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/telephone-and-voicemail/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_telephone_and_voicemail: nav link "About"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/telephone-and-voicemail/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_telephone_and_voicemail: nav link "Log In"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/telephone-and-voicemail/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @EthicsGlobal_infographic_the_difference', () => { test('@EthicsGlobal_infographic_the_difference: title matches GT', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/the-difference/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('the advantage'); }); test('@EthicsGlobal_infographic_the_difference: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/the-difference/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@EthicsGlobal_infographic_the_difference: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/the-difference/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_the_difference: nav link "Pricing"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/the-difference/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_the_difference: nav link "About"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/the-difference/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_the_difference: nav link "Log In"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/the-difference/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @EthicsGlobal_infographic_web_assistant', () => { test('@EthicsGlobal_infographic_web_assistant: title matches GT', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/web-assistant/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('report portal'); }); test('@EthicsGlobal_infographic_web_assistant: h4 "Embed This Visual"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/web-assistant/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Visual' || t.startsWith('Embed This Visual'))).toBeTruthy(); }); test('@EthicsGlobal_infographic_web_assistant: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/web-assistant/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_web_assistant: nav link "Pricing"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/web-assistant/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_web_assistant: nav link "About"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/web-assistant/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@EthicsGlobal_infographic_web_assistant: nav link "Log In"', async ({ page }) => { await page.goto('/@EthicsGlobal/infographic/web-assistant/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @Majed_infographic_5b4efadcd8dbc', () => { test('@Majed_infographic_5b4efadcd8dbc: title matches GT', async ({ page }) => { await page.goto('/@Majed/infographic/5b4efadcd8dbc/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('infographic'); }); test('@Majed_infographic_5b4efadcd8dbc: h4 "Embed This Visual"', async ({ page }) => { await page.goto('/@Majed/infographic/5b4efadcd8dbc/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Visual' || t.startsWith('Embed This Visual'))).toBeTruthy(); }); test('@Majed_infographic_5b4efadcd8dbc: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@Majed/infographic/5b4efadcd8dbc/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@Majed_infographic_5b4efadcd8dbc: nav link "Pricing"', async ({ page }) => { await page.goto('/@Majed/infographic/5b4efadcd8dbc/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@Majed_infographic_5b4efadcd8dbc: nav link "About"', async ({ page }) => { await page.goto('/@Majed/infographic/5b4efadcd8dbc/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@Majed_infographic_5b4efadcd8dbc: nav link "Log In"', async ({ page }) => { await page.goto('/@Majed/infographic/5b4efadcd8dbc/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @vizmara_infographic_brantly_milligan', () => { test('@vizmara_infographic_brantly_milligan: title matches GT', async ({ page }) => { await page.goto('/@vizmara/infographic/brantly-milligan/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('corwin ashfield'); }); test('@vizmara_infographic_brantly_milligan: h4 "Embed The Graphic"', async ({ page }) => { await page.goto('/@vizmara/infographic/brantly-milligan/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed The Graphic' || t.startsWith('Embed The Graphic'))).toBeTruthy(); }); test('@vizmara_infographic_brantly_milligan: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@vizmara/infographic/brantly-milligan/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@vizmara_infographic_brantly_milligan: nav link "Pricing"', async ({ page }) => { await page.goto('/@vizmara/infographic/brantly-milligan/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@vizmara_infographic_brantly_milligan: nav link "About"', async ({ page }) => { await page.goto('/@vizmara/infographic/brantly-milligan/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@vizmara_infographic_brantly_milligan: nav link "Log In"', async ({ page }) => { await page.goto('/@vizmara/infographic/brantly-milligan/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @vizmara_infographic_how_to_be_unproductive', () => { test('@vizmara_infographic_how_to_be_unproductive: title matches GT', async ({ page }) => { await page.goto('/@vizmara/infographic/how-to-be-unproductive/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how to nap like a pro'); }); test('@vizmara_infographic_how_to_be_unproductive: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@vizmara/infographic/how-to-be-unproductive/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@vizmara_infographic_how_to_be_unproductive: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@vizmara/infographic/how-to-be-unproductive/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@vizmara_infographic_how_to_be_unproductive: nav link "Pricing"', async ({ page }) => { await page.goto('/@vizmara/infographic/how-to-be-unproductive/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@vizmara_infographic_how_to_be_unproductive: nav link "About"', async ({ page }) => { await page.goto('/@vizmara/infographic/how-to-be-unproductive/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@vizmara_infographic_how_to_be_unproductive: nav link "Log In"', async ({ page }) => { await page.goto('/@vizmara/infographic/how-to-be-unproductive/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @vizmara_infographic_infographics_vs_data_visualization', () => { test('@vizmara_infographic_infographics_vs_data_visualization: title matches GT', async ({ page }) => { await page.goto('/@vizmara/infographic/infographics-vs-data-visualization/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('infographics versus visual data sets'); }); test('@vizmara_infographic_infographics_vs_data_visualization: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@vizmara/infographic/infographics-vs-data-visualization/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@vizmara_infographic_infographics_vs_data_visualization: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@vizmara/infographic/infographics-vs-data-visualization/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@vizmara_infographic_infographics_vs_data_visualization: nav link "Pricing"', async ({ page }) => { await page.goto('/@vizmara/infographic/infographics-vs-data-visualization/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@vizmara_infographic_infographics_vs_data_visualization: nav link "About"', async ({ page }) => { await page.goto('/@vizmara/infographic/infographics-vs-data-visualization/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@vizmara_infographic_infographics_vs_data_visualization: nav link "Log In"', async ({ page }) => { await page.goto('/@vizmara/infographic/infographics-vs-data-visualization/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @vizmara_infographic_the_9_types_of_intelligence', () => { test('@vizmara_infographic_the_9_types_of_intelligence: title matches GT', async ({ page }) => { await page.goto('/@vizmara/infographic/the-9-types-of-intelligence/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('the 9 types of imagination'); }); test('@vizmara_infographic_the_9_types_of_intelligence: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@vizmara/infographic/the-9-types-of-intelligence/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@vizmara_infographic_the_9_types_of_intelligence: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@vizmara/infographic/the-9-types-of-intelligence/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@vizmara_infographic_the_9_types_of_intelligence: nav link "Pricing"', async ({ page }) => { await page.goto('/@vizmara/infographic/the-9-types-of-intelligence/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@vizmara_infographic_the_9_types_of_intelligence: nav link "About"', async ({ page }) => { await page.goto('/@vizmara/infographic/the-9-types-of-intelligence/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@vizmara_infographic_the_9_types_of_intelligence: nav link "Log In"', async ({ page }) => { await page.goto('/@vizmara/infographic/the-9-types-of-intelligence/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @vizmara_infographic_the_development_cycle', () => { test('@vizmara_infographic_the_development_cycle: title matches GT', async ({ page }) => { await page.goto('/@vizmara/infographic/the-development-cycle/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('the motivation cycle'); }); test('@vizmara_infographic_the_development_cycle: h4 "Embed This Visual"', async ({ page }) => { await page.goto('/@vizmara/infographic/the-development-cycle/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Visual' || t.startsWith('Embed This Visual'))).toBeTruthy(); }); test('@vizmara_infographic_the_development_cycle: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@vizmara/infographic/the-development-cycle/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@vizmara_infographic_the_development_cycle: nav link "Pricing"', async ({ page }) => { await page.goto('/@vizmara/infographic/the-development-cycle/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@vizmara_infographic_the_development_cycle: nav link "About"', async ({ page }) => { await page.goto('/@vizmara/infographic/the-development-cycle/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@vizmara_infographic_the_development_cycle: nav link "Log In"', async ({ page }) => { await page.goto('/@vizmara/infographic/the-development-cycle/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @vizmara_infographic_the_history_of_ethereum_v2', () => { test('@vizmara_infographic_the_history_of_ethereum_v2: title matches GT', async ({ page }) => { await page.goto('/@vizmara/infographic/the-history-of-ethereum-v2/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('the history of nexchain'); }); test('@vizmara_infographic_the_history_of_ethereum_v2: h4 "Embed This Visual"', async ({ page }) => { await page.goto('/@vizmara/infographic/the-history-of-ethereum-v2/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Visual' || t.startsWith('Embed This Visual'))).toBeTruthy(); }); test('@vizmara_infographic_the_history_of_ethereum_v2: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@vizmara/infographic/the-history-of-ethereum-v2/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@vizmara_infographic_the_history_of_ethereum_v2: nav link "Pricing"', async ({ page }) => { await page.goto('/@vizmara/infographic/the-history-of-ethereum-v2/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@vizmara_infographic_the_history_of_ethereum_v2: nav link "About"', async ({ page }) => { await page.goto('/@vizmara/infographic/the-history-of-ethereum-v2/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@vizmara_infographic_the_history_of_ethereum_v2: nav link "Log In"', async ({ page }) => { await page.goto('/@vizmara/infographic/the-history-of-ethereum-v2/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @vizmara_infographic_the_history_of_ethereum_v3', () => { test('@vizmara_infographic_the_history_of_ethereum_v3: title matches GT', async ({ page }) => { await page.goto('/@vizmara/infographic/the-history-of-ethereum-v3/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('the story of nexchain v3'); }); test('@vizmara_infographic_the_history_of_ethereum_v3: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@vizmara/infographic/the-history-of-ethereum-v3/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@vizmara_infographic_the_history_of_ethereum_v3: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@vizmara/infographic/the-history-of-ethereum-v3/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@vizmara_infographic_the_history_of_ethereum_v3: nav link "Pricing"', async ({ page }) => { await page.goto('/@vizmara/infographic/the-history-of-ethereum-v3/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@vizmara_infographic_the_history_of_ethereum_v3: nav link "About"', async ({ page }) => { await page.goto('/@vizmara/infographic/the-history-of-ethereum-v3/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@vizmara_infographic_the_history_of_ethereum_v3: nav link "Log In"', async ({ page }) => { await page.goto('/@vizmara/infographic/the-history-of-ethereum-v3/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @vizmara_infographic_types_of_startup_metrics', () => { test('@vizmara_infographic_types_of_startup_metrics: title matches GT', async ({ page }) => { await page.goto('/@vizmara/infographic/types-of-startup-metrics/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('types of startup metrics'); }); test('@vizmara_infographic_types_of_startup_metrics: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@vizmara/infographic/types-of-startup-metrics/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@vizmara_infographic_types_of_startup_metrics: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@vizmara/infographic/types-of-startup-metrics/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@vizmara_infographic_types_of_startup_metrics: nav link "Pricing"', async ({ page }) => { await page.goto('/@vizmara/infographic/types-of-startup-metrics/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@vizmara_infographic_types_of_startup_metrics: nav link "About"', async ({ page }) => { await page.goto('/@vizmara/infographic/types-of-startup-metrics/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@vizmara_infographic_types_of_startup_metrics: nav link "Log In"', async ({ page }) => { await page.goto('/@vizmara/infographic/types-of-startup-metrics/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @anna_infographic_corporations_vs_llcs', () => { test('@anna_infographic_corporations_vs_llcs: title matches GT', async ({ page }) => { await page.goto('/@anna/infographic/corporations-vs-llcs/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('corporations vs llcs'); }); test('@anna_infographic_corporations_vs_llcs: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@anna/infographic/corporations-vs-llcs/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@anna_infographic_corporations_vs_llcs: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@anna/infographic/corporations-vs-llcs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_corporations_vs_llcs: nav link "Pricing"', async ({ page }) => { await page.goto('/@anna/infographic/corporations-vs-llcs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_corporations_vs_llcs: nav link "About"', async ({ page }) => { await page.goto('/@anna/infographic/corporations-vs-llcs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_corporations_vs_llcs: nav link "Log In"', async ({ page }) => { await page.goto('/@anna/infographic/corporations-vs-llcs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @anna_infographic_features', () => { test('@anna_infographic_features: title matches GT', async ({ page }) => { await page.goto('/@anna/infographic/features/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('features'); }); test('@anna_infographic_features: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@anna/infographic/features/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@anna_infographic_features: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@anna/infographic/features/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_features: nav link "Pricing"', async ({ page }) => { await page.goto('/@anna/infographic/features/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_features: nav link "About"', async ({ page }) => { await page.goto('/@anna/infographic/features/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_features: nav link "Log In"', async ({ page }) => { await page.goto('/@anna/infographic/features/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @anna_infographic_how_it_works', () => { test('@anna_infographic_how_it_works: title matches GT', async ({ page }) => { await page.goto('/@anna/infographic/how-it-works/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how it works'); }); test('@anna_infographic_how_it_works: h4 "Embed Your Graphic"', async ({ page }) => { await page.goto('/@anna/infographic/how-it-works/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed Your Graphic' || t.startsWith('Embed Your Graphic'))).toBeTruthy(); }); test('@anna_infographic_how_it_works: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@anna/infographic/how-it-works/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_how_it_works: nav link "Pricing"', async ({ page }) => { await page.goto('/@anna/infographic/how-it-works/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_how_it_works: nav link "About"', async ({ page }) => { await page.goto('/@anna/infographic/how-it-works/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_how_it_works: nav link "Log In"', async ({ page }) => { await page.goto('/@anna/infographic/how-it-works/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @anna_infographic_how_to_make_an_article_visual', () => { test('@anna_infographic_how_to_make_an_article_visual: title matches GT', async ({ page }) => { await page.goto('/@anna/infographic/how-to-make-an-article-visual/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how to turn text into visuals'); }); test('@anna_infographic_how_to_make_an_article_visual: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@anna/infographic/how-to-make-an-article-visual/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@anna_infographic_how_to_make_an_article_visual: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@anna/infographic/how-to-make-an-article-visual/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_how_to_make_an_article_visual: nav link "Pricing"', async ({ page }) => { await page.goto('/@anna/infographic/how-to-make-an-article-visual/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_how_to_make_an_article_visual: nav link "About"', async ({ page }) => { await page.goto('/@anna/infographic/how-to-make-an-article-visual/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_how_to_make_an_article_visual: nav link "Log In"', async ({ page }) => { await page.goto('/@anna/infographic/how-to-make-an-article-visual/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @anna_infographic_how_to_visualize_any_article', () => { test('@anna_infographic_how_to_visualize_any_article: title matches GT', async ({ page }) => { await page.goto('/@anna/infographic/how-to-visualize-any-article/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how to map out any article'); }); test('@anna_infographic_how_to_visualize_any_article: h4 "Embed This Visual"', async ({ page }) => { await page.goto('/@anna/infographic/how-to-visualize-any-article/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Visual' || t.startsWith('Embed This Visual'))).toBeTruthy(); }); test('@anna_infographic_how_to_visualize_any_article: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@anna/infographic/how-to-visualize-any-article/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_how_to_visualize_any_article: nav link "Pricing"', async ({ page }) => { await page.goto('/@anna/infographic/how-to-visualize-any-article/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_how_to_visualize_any_article: nav link "About"', async ({ page }) => { await page.goto('/@anna/infographic/how-to-visualize-any-article/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_how_to_visualize_any_article: nav link "Log In"', async ({ page }) => { await page.goto('/@anna/infographic/how-to-visualize-any-article/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @anna_infographic_infographic_design_rules', () => { test('@anna_infographic_infographic_design_rules: title matches GT', async ({ page }) => { await page.goto('/@anna/infographic/infographic-design-rules/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('infographic layout rules'); }); test('@anna_infographic_infographic_design_rules: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@anna/infographic/infographic-design-rules/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@anna_infographic_infographic_design_rules: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@anna/infographic/infographic-design-rules/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_infographic_design_rules: nav link "Pricing"', async ({ page }) => { await page.goto('/@anna/infographic/infographic-design-rules/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_infographic_design_rules: nav link "About"', async ({ page }) => { await page.goto('/@anna/infographic/infographic-design-rules/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_infographic_design_rules: nav link "Log In"', async ({ page }) => { await page.goto('/@anna/infographic/infographic-design-rules/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @anna_infographic_pitch_deck_summary', () => { test('@anna_infographic_pitch_deck_summary: title matches GT', async ({ page }) => { await page.goto('/@anna/infographic/pitch-deck-summary/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('pitch deck rundown'); }); test('@anna_infographic_pitch_deck_summary: h4 "Embed This Visual"', async ({ page }) => { await page.goto('/@anna/infographic/pitch-deck-summary/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Visual' || t.startsWith('Embed This Visual'))).toBeTruthy(); }); test('@anna_infographic_pitch_deck_summary: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@anna/infographic/pitch-deck-summary/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_pitch_deck_summary: nav link "Pricing"', async ({ page }) => { await page.goto('/@anna/infographic/pitch-deck-summary/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_pitch_deck_summary: nav link "About"', async ({ page }) => { await page.goto('/@anna/infographic/pitch-deck-summary/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_pitch_deck_summary: nav link "Log In"', async ({ page }) => { await page.goto('/@anna/infographic/pitch-deck-summary/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @anna_infographic_self_funded_vs_investor_funded', () => { test('@anna_infographic_self_funded_vs_investor_funded: title matches GT', async ({ page }) => { await page.goto('/@anna/infographic/self-funded-vs-investor-funded/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('bootstrapped vs backed startups'); }); test('@anna_infographic_self_funded_vs_investor_funded: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@anna/infographic/self-funded-vs-investor-funded/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@anna_infographic_self_funded_vs_investor_funded: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@anna/infographic/self-funded-vs-investor-funded/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_self_funded_vs_investor_funded: nav link "Pricing"', async ({ page }) => { await page.goto('/@anna/infographic/self-funded-vs-investor-funded/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_self_funded_vs_investor_funded: nav link "About"', async ({ page }) => { await page.goto('/@anna/infographic/self-funded-vs-investor-funded/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_self_funded_vs_investor_funded: nav link "Log In"', async ({ page }) => { await page.goto('/@anna/infographic/self-funded-vs-investor-funded/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @anna_infographic_stages_of_psychosocial_development', () => { test('@anna_infographic_stages_of_psychosocial_development: title matches GT', async ({ page }) => { await page.goto('/@anna/infographic/stages-of-psychosocial-development/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('stages of lifelong personal growth'); }); test('@anna_infographic_stages_of_psychosocial_development: h4 "Embed This Visual"', async ({ page }) => { await page.goto('/@anna/infographic/stages-of-psychosocial-development/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Visual' || t.startsWith('Embed This Visual'))).toBeTruthy(); }); test('@anna_infographic_stages_of_psychosocial_development: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@anna/infographic/stages-of-psychosocial-development/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_stages_of_psychosocial_development: nav link "Pricing"', async ({ page }) => { await page.goto('/@anna/infographic/stages-of-psychosocial-development/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_stages_of_psychosocial_development: nav link "About"', async ({ page }) => { await page.goto('/@anna/infographic/stages-of-psychosocial-development/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_stages_of_psychosocial_development: nav link "Log In"', async ({ page }) => { await page.goto('/@anna/infographic/stages-of-psychosocial-development/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @anna_infographic_the_meaning_of_life', () => { test('@anna_infographic_the_meaning_of_life: title matches GT', async ({ page }) => { await page.goto('/@anna/infographic/the-meaning-of-life/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how we find purpose'); }); test('@anna_infographic_the_meaning_of_life: h4 "Embed This Visual"', async ({ page }) => { await page.goto('/@anna/infographic/the-meaning-of-life/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Visual' || t.startsWith('Embed This Visual'))).toBeTruthy(); }); test('@anna_infographic_the_meaning_of_life: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@anna/infographic/the-meaning-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 === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_the_meaning_of_life: nav link "Pricing"', async ({ page }) => { await page.goto('/@anna/infographic/the-meaning-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 === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_the_meaning_of_life: nav link "About"', async ({ page }) => { await page.goto('/@anna/infographic/the-meaning-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 === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_the_meaning_of_life: nav link "Log In"', async ({ page }) => { await page.goto('/@anna/infographic/the-meaning-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 === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @anna_infographic_the_problem', () => { test('@anna_infographic_the_problem: title matches GT', async ({ page }) => { await page.goto('/@anna/infographic/the-problem/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('the hurdle'); }); test('@anna_infographic_the_problem: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@anna/infographic/the-problem/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@anna_infographic_the_problem: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@anna/infographic/the-problem/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_the_problem: nav link "Pricing"', async ({ page }) => { await page.goto('/@anna/infographic/the-problem/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_the_problem: nav link "About"', async ({ page }) => { await page.goto('/@anna/infographic/the-problem/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_the_problem: nav link "Log In"', async ({ page }) => { await page.goto('/@anna/infographic/the-problem/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @anna_infographic_the_solution', () => { test('@anna_infographic_the_solution: title matches GT', async ({ page }) => { await page.goto('/@anna/infographic/the-solution/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('the approach'); }); test('@anna_infographic_the_solution: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@anna/infographic/the-solution/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@anna_infographic_the_solution: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@anna/infographic/the-solution/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_the_solution: nav link "Pricing"', async ({ page }) => { await page.goto('/@anna/infographic/the-solution/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_the_solution: nav link "About"', async ({ page }) => { await page.goto('/@anna/infographic/the-solution/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_the_solution: nav link "Log In"', async ({ page }) => { await page.goto('/@anna/infographic/the-solution/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @anna_infographic_use_cases', () => { test('@anna_infographic_use_cases: title matches GT', async ({ page }) => { await page.goto('/@anna/infographic/use-cases/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('use cases'); }); test('@anna_infographic_use_cases: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@anna/infographic/use-cases/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@anna_infographic_use_cases: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@anna/infographic/use-cases/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_use_cases: nav link "Pricing"', async ({ page }) => { await page.goto('/@anna/infographic/use-cases/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_use_cases: nav link "About"', async ({ page }) => { await page.goto('/@anna/infographic/use-cases/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_use_cases: nav link "Log In"', async ({ page }) => { await page.goto('/@anna/infographic/use-cases/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @anna_infographic_users', () => { test('@anna_infographic_users: title matches GT', async ({ page }) => { await page.goto('/@anna/infographic/users/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('users'); }); test('@anna_infographic_users: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@anna/infographic/users/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@anna_infographic_users: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@anna/infographic/users/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_users: nav link "Pricing"', async ({ page }) => { await page.goto('/@anna/infographic/users/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_users: nav link "About"', async ({ page }) => { await page.goto('/@anna/infographic/users/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_users: nav link "Log In"', async ({ page }) => { await page.goto('/@anna/infographic/users/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @anna_infographic_why_we_offer_no_free_accounts', () => { test('@anna_infographic_why_we_offer_no_free_accounts: title matches GT', async ({ page }) => { await page.goto('/@anna/infographic/why-we-offer-no-free-accounts/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('why there is no free tier here'); }); test('@anna_infographic_why_we_offer_no_free_accounts: h4 "Embed This Visual"', async ({ page }) => { await page.goto('/@anna/infographic/why-we-offer-no-free-accounts/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Visual' || t.startsWith('Embed This Visual'))).toBeTruthy(); }); test('@anna_infographic_why_we_offer_no_free_accounts: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@anna/infographic/why-we-offer-no-free-accounts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_why_we_offer_no_free_accounts: nav link "Pricing"', async ({ page }) => { await page.goto('/@anna/infographic/why-we-offer-no-free-accounts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_why_we_offer_no_free_accounts: nav link "About"', async ({ page }) => { await page.goto('/@anna/infographic/why-we-offer-no-free-accounts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@anna_infographic_why_we_offer_no_free_accounts: nav link "Log In"', async ({ page }) => { await page.goto('/@anna/infographic/why-we-offer-no-free-accounts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @davidng_infographic_cnaptic_story', () => { test('@davidng_infographic_cnaptic_story: title matches GT', async ({ page }) => { await page.goto('/@davidng/infographic/cnaptic-story/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('bloomkit story'); }); test('@davidng_infographic_cnaptic_story: h4 "Embed The Graphic"', async ({ page }) => { await page.goto('/@davidng/infographic/cnaptic-story/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed The Graphic' || t.startsWith('Embed The Graphic'))).toBeTruthy(); }); test('@davidng_infographic_cnaptic_story: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@davidng/infographic/cnaptic-story/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@davidng_infographic_cnaptic_story: nav link "Pricing"', async ({ page }) => { await page.goto('/@davidng/infographic/cnaptic-story/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@davidng_infographic_cnaptic_story: nav link "About"', async ({ page }) => { await page.goto('/@davidng/infographic/cnaptic-story/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@davidng_infographic_cnaptic_story: nav link "Log In"', async ({ page }) => { await page.goto('/@davidng/infographic/cnaptic-story/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @davidng_infographic_r_d_career_highlight', () => { test('@davidng_infographic_r_d_career_highlight: title matches GT', async ({ page }) => { await page.goto('/@davidng/infographic/r-d-career-highlight/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('r&d career highlight'); }); test('@davidng_infographic_r_d_career_highlight: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@davidng/infographic/r-d-career-highlight/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@davidng_infographic_r_d_career_highlight: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@davidng/infographic/r-d-career-highlight/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@davidng_infographic_r_d_career_highlight: nav link "Pricing"', async ({ page }) => { await page.goto('/@davidng/infographic/r-d-career-highlight/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@davidng_infographic_r_d_career_highlight: nav link "About"', async ({ page }) => { await page.goto('/@davidng/infographic/r-d-career-highlight/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@davidng_infographic_r_d_career_highlight: nav link "Log In"', async ({ page }) => { await page.goto('/@davidng/infographic/r-d-career-highlight/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @dlam_infographic_my_resume', () => { test('@dlam_infographic_my_resume: title matches GT', async ({ page }) => { await page.goto('/@dlam/infographic/my-resume/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('my career'); }); test('@dlam_infographic_my_resume: h4 "Grab The Embed Code"', async ({ page }) => { await page.goto('/@dlam/infographic/my-resume/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Grab The Embed Code' || t.startsWith('Grab The Embed Code'))).toBeTruthy(); }); test('@dlam_infographic_my_resume: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@dlam/infographic/my-resume/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@dlam_infographic_my_resume: nav link "Pricing"', async ({ page }) => { await page.goto('/@dlam/infographic/my-resume/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@dlam_infographic_my_resume: nav link "About"', async ({ page }) => { await page.goto('/@dlam/infographic/my-resume/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@dlam_infographic_my_resume: nav link "Log In"', async ({ page }) => { await page.goto('/@dlam/infographic/my-resume/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @lena_infographic_stages_of_psychosocial_development', () => { test('@lena_infographic_stages_of_psychosocial_development: title matches GT', async ({ page }) => { await page.goto('/@lena/infographic/stages-of-psychosocial-development/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('phases of lifelong personal growth'); }); test('@lena_infographic_stages_of_psychosocial_development: h4 "Add It To Your Site"', async ({ page }) => { await page.goto('/@lena/infographic/stages-of-psychosocial-development/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Add It To Your Site' || t.startsWith('Add It To Your Site'))).toBeTruthy(); }); test('@lena_infographic_stages_of_psychosocial_development: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@lena/infographic/stages-of-psychosocial-development/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@lena_infographic_stages_of_psychosocial_development: nav link "Pricing"', async ({ page }) => { await page.goto('/@lena/infographic/stages-of-psychosocial-development/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@lena_infographic_stages_of_psychosocial_development: nav link "About"', async ({ page }) => { await page.goto('/@lena/infographic/stages-of-psychosocial-development/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@lena_infographic_stages_of_psychosocial_development: nav link "Log In"', async ({ page }) => { await page.goto('/@lena/infographic/stages-of-psychosocial-development/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @mark_infographic_16_personality_types', () => { test('@mark_infographic_16_personality_types: title matches GT', async ({ page }) => { await page.goto('/@mark/infographic/16-personality-types/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('16 personality styles'); }); test('@mark_infographic_16_personality_types: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@mark/infographic/16-personality-types/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@mark_infographic_16_personality_types: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@mark/infographic/16-personality-types/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@mark_infographic_16_personality_types: nav link "Pricing"', async ({ page }) => { await page.goto('/@mark/infographic/16-personality-types/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@mark_infographic_16_personality_types: nav link "About"', async ({ page }) => { await page.goto('/@mark/infographic/16-personality-types/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@mark_infographic_16_personality_types: nav link "Log In"', async ({ page }) => { await page.goto('/@mark/infographic/16-personality-types/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @mark_infographic_how_carl_sagan_started', () => { test('@mark_infographic_how_carl_sagan_started: title matches GT', async ({ page }) => { await page.goto('/@mark/infographic/how-carl-sagan-started/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how elias voss started'); }); test('@mark_infographic_how_carl_sagan_started: h4 "Upvoto"', async ({ page }) => { await page.goto('/@mark/infographic/how-carl-sagan-started/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Upvoto' || t.startsWith('Upvoto'))).toBeTruthy(); }); test('@mark_infographic_how_carl_sagan_started: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@mark/infographic/how-carl-sagan-started/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@mark_infographic_how_carl_sagan_started: nav link "Pricing"', async ({ page }) => { await page.goto('/@mark/infographic/how-carl-sagan-started/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@mark_infographic_how_carl_sagan_started: nav link "About"', async ({ page }) => { await page.goto('/@mark/infographic/how-carl-sagan-started/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@mark_infographic_how_carl_sagan_started: nav link "Log In"', async ({ page }) => { await page.goto('/@mark/infographic/how-carl-sagan-started/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @mark_infographic_how_to_write_better_code', () => { test('@mark_infographic_how_to_write_better_code: title matches GT', async ({ page }) => { await page.goto('/@mark/infographic/how-to-write-better-code/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('habits for stronger code'); }); test('@mark_infographic_how_to_write_better_code: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@mark/infographic/how-to-write-better-code/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@mark_infographic_how_to_write_better_code: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@mark/infographic/how-to-write-better-code/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@mark_infographic_how_to_write_better_code: nav link "Pricing"', async ({ page }) => { await page.goto('/@mark/infographic/how-to-write-better-code/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@mark_infographic_how_to_write_better_code: nav link "About"', async ({ page }) => { await page.goto('/@mark/infographic/how-to-write-better-code/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@mark_infographic_how_to_write_better_code: nav link "Log In"', async ({ page }) => { await page.goto('/@mark/infographic/how-to-write-better-code/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @mark_infographic_intro_to_internet_acronyms', () => { test('@mark_infographic_intro_to_internet_acronyms: title matches GT', async ({ page }) => { await page.goto('/@mark/infographic/intro-to-internet-acronyms/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('intro to internet acronyms'); }); test('@mark_infographic_intro_to_internet_acronyms: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@mark/infographic/intro-to-internet-acronyms/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@mark_infographic_intro_to_internet_acronyms: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@mark/infographic/intro-to-internet-acronyms/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@mark_infographic_intro_to_internet_acronyms: nav link "Pricing"', async ({ page }) => { await page.goto('/@mark/infographic/intro-to-internet-acronyms/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@mark_infographic_intro_to_internet_acronyms: nav link "About"', async ({ page }) => { await page.goto('/@mark/infographic/intro-to-internet-acronyms/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@mark_infographic_intro_to_internet_acronyms: nav link "Log In"', async ({ page }) => { await page.goto('/@mark/infographic/intro-to-internet-acronyms/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @mark_infographic_our_infographic_journey', () => { test('@mark_infographic_our_infographic_journey: title matches GT', async ({ page }) => { await page.goto('/@mark/infographic/our-infographic-journey/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how vizmara came to be'); }); test('@mark_infographic_our_infographic_journey: h4 "Embed This Visual"', async ({ page }) => { await page.goto('/@mark/infographic/our-infographic-journey/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Visual' || t.startsWith('Embed This Visual'))).toBeTruthy(); }); test('@mark_infographic_our_infographic_journey: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@mark/infographic/our-infographic-journey/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@mark_infographic_our_infographic_journey: nav link "Pricing"', async ({ page }) => { await page.goto('/@mark/infographic/our-infographic-journey/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@mark_infographic_our_infographic_journey: nav link "About"', async ({ page }) => { await page.goto('/@mark/infographic/our-infographic-journey/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@mark_infographic_our_infographic_journey: nav link "Log In"', async ({ page }) => { await page.goto('/@mark/infographic/our-infographic-journey/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @mark_infographic_types_of_bugs_i_fix', () => { test('@mark_infographic_types_of_bugs_i_fix: title matches GT', async ({ page }) => { await page.goto('/@mark/infographic/types-of-bugs-i-fix/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('types of naps i take'); }); test('@mark_infographic_types_of_bugs_i_fix: h4 "Embed The Graphic"', async ({ page }) => { await page.goto('/@mark/infographic/types-of-bugs-i-fix/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed The Graphic' || t.startsWith('Embed The Graphic'))).toBeTruthy(); }); test('@mark_infographic_types_of_bugs_i_fix: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@mark/infographic/types-of-bugs-i-fix/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@mark_infographic_types_of_bugs_i_fix: nav link "Pricing"', async ({ page }) => { await page.goto('/@mark/infographic/types-of-bugs-i-fix/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@mark_infographic_types_of_bugs_i_fix: nav link "About"', async ({ page }) => { await page.goto('/@mark/infographic/types-of-bugs-i-fix/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@mark_infographic_types_of_bugs_i_fix: nav link "Log In"', async ({ page }) => { await page.goto('/@mark/infographic/types-of-bugs-i-fix/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - @mark_infographic_why_i_play_starcraft', () => { test('@mark_infographic_why_i_play_starcraft: title matches GT', async ({ page }) => { await page.goto('/@mark/infographic/why-i-play-starcraft/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('why i climb mountains?'); }); test('@mark_infographic_why_i_play_starcraft: h4 "Embed This Graphic"', async ({ page }) => { await page.goto('/@mark/infographic/why-i-play-starcraft/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Embed This Graphic' || t.startsWith('Embed This Graphic'))).toBeTruthy(); }); test('@mark_infographic_why_i_play_starcraft: nav link "SIGN UP"', async ({ page }) => { await page.goto('/@mark/infographic/why-i-play-starcraft/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SIGN UP' || t.startsWith('SIGN UP')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@mark_infographic_why_i_play_starcraft: nav link "Pricing"', async ({ page }) => { await page.goto('/@mark/infographic/why-i-play-starcraft/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pricing')), 'href fragment present').toBeTruthy(); }); test('@mark_infographic_why_i_play_starcraft: nav link "About"', async ({ page }) => { await page.goto('/@mark/infographic/why-i-play-starcraft/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); }); test('@mark_infographic_why_i_play_starcraft: nav link "Log In"', async ({ page }) => { await page.goto('/@mark/infographic/why-i-play-starcraft/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - Routing', () => { test('navigate to features via "Features"', async ({ page }) => { await page.goto('/'); const link = page.locator('a[href*="features"]').first(); expect(await link.count(), 'nav link to features exists').toBeGreaterThan(0); await link.click(); await page.waitForTimeout(1200); expect(page.url().toLowerCase(), 'URL changed to destination').toContain('features'); const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); expect(bodyText, 'destination distinctive content shown').toContain('Generative Templates'); }); test('navigate to pricing via "Plans & Pricing"', async ({ page }) => { await page.goto('/'); const link = page.locator('a[href*="pricing"]').first(); expect(await link.count(), 'nav link to pricing exists').toBeGreaterThan(0); await link.click(); await page.waitForTimeout(1200); expect(page.url().toLowerCase(), 'URL changed to destination').toContain('pricing'); const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); expect(bodyText, 'destination distinctive content shown').toContain('Pricing'); }); test('navigate to infographics via "Infographic Examples"', async ({ page }) => { await page.goto('/'); const link = page.locator('a[href*="infographics"]').first(); expect(await link.count(), 'nav link to infographics exists').toBeGreaterThan(0); await link.click(); await page.waitForTimeout(1200); expect(page.url().toLowerCase(), 'URL changed to destination').toContain('infographics'); const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); expect(bodyText, 'destination distinctive content shown').toContain('Infographics By Our Users'); }); });