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('modern hiring software & applicant track'); }); test('homepage: h1 "Find and Hire Top People, Soon"', async ({ page }) => { await page.goto('/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Find and Hire Top People, Sooner.' || t.startsWith('Find and Hire Top People, Sooner.'))).toBeTruthy(); }); test('homepage: h2 "Advertise & Attract"', async ({ page }) => { await page.goto('/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Advertise & Attract' || t.startsWith('Advertise & Attract'))).toBeTruthy(); }); test('homepage: h2 "Automate & Qualify"', async ({ page }) => { await page.goto('/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Automate & Qualify' || t.startsWith('Automate & Qualify'))).toBeTruthy(); }); test('homepage: h2 "Hire & Measure"', async ({ page }) => { await page.goto('/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Hire & Measure' || t.startsWith('Hire & Measure'))).toBeTruthy(); }); test('homepage: nav link "Advertise & PromotePut your op"', 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 === 'Advertise & PromotePut your open roles in front of the right' || t.startsWith('Advertise & PromotePut your open roles in front of the right')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('attract')), 'href fragment present').toBeTruthy(); }); test('homepage: nav link "Career Sites"', 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 === 'Career Sites' || t.startsWith('Career Sites')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('career-sites')), 'href fragment present').toBeTruthy(); }); test('homepage: nav link "Job Advertising"', 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 === 'Job Advertising' || t.startsWith('Job Advertising')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('advertise-jobs')), 'href fragment present').toBeTruthy(); }); test('homepage: nav link "Employee Referrals"', 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 === 'Employee Referrals' || t.startsWith('Employee Referrals')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('employee-referrals')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - applicant_tracking_system', () => { test('applicant_tracking_system: title matches GT', async ({ page }) => { await page.goto('/applicant-tracking-system/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('applicant tracking system'); }); test('applicant_tracking_system: h1 "Applicant Tracking System"', async ({ page }) => { await page.goto('/applicant-tracking-system/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Applicant Tracking System' || t.startsWith('Applicant Tracking System'))).toBeTruthy(); }); test('applicant_tracking_system: h2 "The complete guide to a system"', async ({ page }) => { await page.goto('/applicant-tracking-system/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The complete guide to a system you\'ll love' || t.startsWith('The complete guide to a system you\'ll love'))).toBeTruthy(); }); test('applicant_tracking_system: h2 "Applicant Tracking System: Wha"', async ({ page }) => { await page.goto('/applicant-tracking-system/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Applicant Tracking System: What we\'ll cover' || t.startsWith('Applicant Tracking System: What we\'ll cover'))).toBeTruthy(); }); test('applicant_tracking_system: h2 "What is an ATS system? And why"', async ({ page }) => { await page.goto('/applicant-tracking-system/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'What is an ATS system? And why every growing company needs one' || t.startsWith('What is an ATS system? And why every growing company needs one'))).toBeTruthy(); }); test('applicant_tracking_system: nav link "Broadcast & AttractPut your op"', async ({ page }) => { await page.goto('/applicant-tracking-system/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Broadcast & AttractPut your open roles in front of the right' || t.startsWith('Broadcast & AttractPut your open roles in front of the right')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('attract')), 'href fragment present').toBeTruthy(); }); test('applicant_tracking_system: nav link "Career Sites"', async ({ page }) => { await page.goto('/applicant-tracking-system/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Career Sites' || t.startsWith('Career Sites')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('career-sites')), 'href fragment present').toBeTruthy(); }); test('applicant_tracking_system: nav link "Job Advertising"', async ({ page }) => { await page.goto('/applicant-tracking-system/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Job Advertising' || t.startsWith('Job Advertising')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('advertise-jobs')), 'href fragment present').toBeTruthy(); }); test('applicant_tracking_system: nav link "Employee Referrals"', async ({ page }) => { await page.goto('/applicant-tracking-system/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Employee Referrals' || t.startsWith('Employee Referrals')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('employee-referrals')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - attract', () => { test('attract: title matches GT', async ({ page }) => { await page.goto('/attract/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('hire the right people for every role, fa'); }); test('attract: h1 "Attract the best candidates, w"', async ({ page }) => { await page.goto('/attract/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract the best candidates, wherever they work.' || t.startsWith('Attract the best candidates, wherever they work.'))).toBeTruthy(); }); test('attract: h2 "Features"', async ({ page }) => { await page.goto('/attract/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features'))).toBeTruthy(); }); test('attract: h2 "Job Advertising"', async ({ page }) => { await page.goto('/attract/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Job Advertising' || t.startsWith('Job Advertising'))).toBeTruthy(); }); test('attract: h2 "Career Sites"', async ({ page }) => { await page.goto('/attract/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Career Sites' || t.startsWith('Career Sites'))).toBeTruthy(); }); test('attract: nav link "Advertise & AttractPut your op"', async ({ page }) => { await page.goto('/attract/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Advertise & AttractPut your open roles in front of the right' || t.startsWith('Advertise & AttractPut your open roles in front of the right')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('attract')), 'href fragment present').toBeTruthy(); }); test('attract: nav link "Career Sites"', async ({ page }) => { await page.goto('/attract/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Career Sites' || t.startsWith('Career Sites')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('career-sites')), 'href fragment present').toBeTruthy(); }); test('attract: nav link "Job Advertising"', async ({ page }) => { await page.goto('/attract/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Job Advertising' || t.startsWith('Job Advertising')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('advertise-jobs')), 'href fragment present').toBeTruthy(); }); test('attract: nav link "Employee Referrals"', async ({ page }) => { await page.goto('/attract/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Employee Referrals' || t.startsWith('Employee Referrals')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('employee-referrals')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - customers', () => { test('customers: title matches GT', async ({ page }) => { await page.goto('/customers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('customer stories & success case studies'); }); test('customers: h2 "How Adloft Labs Used Talvio to"', async ({ page }) => { await page.goto('/customers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How Adloft Labs Used Talvio to 5X Their Team in Just 3 Years' || t.startsWith('How Adloft Labs Used Talvio to 5X Their Team in Just 3 Years'))).toBeTruthy(); }); test('customers: h2 "How Lernova Manages Hyper-Grow"', async ({ page }) => { await page.goto('/customers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How Lernova Manages Hyper-Growth' || t.startsWith('How Lernova Manages Hyper-Growth'))).toBeTruthy(); }); test('customers: h2 "How Kestrel Data & Analytics H"', async ({ page }) => { await page.goto('/customers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How Kestrel Data & Analytics Hires 80% Faster' || t.startsWith('How Kestrel Data & Analytics Hires 80% Faster'))).toBeTruthy(); }); test('customers: nav link "Advertise & AttractPut your op"', async ({ page }) => { await page.goto('/customers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Advertise & AttractPut your open roles in front of the right' || t.startsWith('Advertise & AttractPut your open roles in front of the right')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('attract')), 'href fragment present').toBeTruthy(); }); test('customers: nav link "Career Sites"', async ({ page }) => { await page.goto('/customers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Career Sites' || t.startsWith('Career Sites')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('career-sites')), 'href fragment present').toBeTruthy(); }); test('customers: nav link "Job Advertising"', async ({ page }) => { await page.goto('/customers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Job Advertising' || t.startsWith('Job Advertising')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('advertise-jobs')), 'href fragment present').toBeTruthy(); }); test('customers: nav link "Employee Referrals"', async ({ page }) => { await page.goto('/customers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Employee Referrals' || t.startsWith('Employee Referrals')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('employee-referrals')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - demo', () => { test('demo: title matches GT', async ({ page }) => { await page.goto('/demo/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('schedule your demo'); }); test('demo: h1 "Schedule Your Free Demo"', async ({ page }) => { await page.goto('/demo/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Schedule Your Free Demo' || t.startsWith('Schedule Your Free Demo'))).toBeTruthy(); }); }); test.describe('Functional - hire', () => { test('hire: title matches GT', async ({ page }) => { await page.goto('/hire/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('hire better & measure your recruiting pr'); }); test('hire: h1 "Turn your best candidates into"', async ({ page }) => { await page.goto('/hire/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Turn your best candidates into new hires, in far less time.' || t.startsWith('Turn your best candidates into new hires, in far less time.'))).toBeTruthy(); }); test('hire: h2 "Features"', async ({ page }) => { await page.goto('/hire/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features'))).toBeTruthy(); }); test('hire: h2 "Offer Management"', async ({ page }) => { await page.goto('/hire/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Offer Management' || t.startsWith('Offer Management'))).toBeTruthy(); }); test('hire: h2 "HRIS Integrations"', async ({ page }) => { await page.goto('/hire/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'HRIS Integrations' || t.startsWith('HRIS Integrations'))).toBeTruthy(); }); test('hire: nav link "Promote & AttractDisplay your "', async ({ page }) => { await page.goto('/hire/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Promote & AttractDisplay your open roles in all the places t' || t.startsWith('Promote & AttractDisplay your open roles in all the places t')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('attract')), 'href fragment present').toBeTruthy(); }); test('hire: nav link "Career Sites"', async ({ page }) => { await page.goto('/hire/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Career Sites' || t.startsWith('Career Sites')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('career-sites')), 'href fragment present').toBeTruthy(); }); test('hire: nav link "Job Advertising"', async ({ page }) => { await page.goto('/hire/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Job Advertising' || t.startsWith('Job Advertising')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('advertise-jobs')), 'href fragment present').toBeTruthy(); }); test('hire: nav link "Employee Referrals"', async ({ page }) => { await page.goto('/hire/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Employee Referrals' || t.startsWith('Employee Referrals')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('employee-referrals')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - hire_learning', () => { test('hire_learning: title matches GT', async ({ page }) => { await page.goto('/hire-learning/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('hire learning'); }); test('hire_learning: h1 "Talvio, can you help me..."', async ({ page }) => { await page.goto('/hire-learning/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Talvio, can you help me...' || t.startsWith('Talvio, can you help me...'))).toBeTruthy(); }); test('hire_learning: h2 "Can you help me..."', async ({ page }) => { await page.goto('/hire-learning/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('hire_learning: h2 "Reel in Awesome Applicants"', async ({ page }) => { await page.goto('/hire-learning/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in Awesome Applicants' || t.startsWith('Reel in Awesome Applicants'))).toBeTruthy(); }); test('hire_learning: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/hire-learning/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Killing Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Killing Candidate Experience'))).toBeTruthy(); }); test('hire_learning: nav link "Reel in awesome applicants"', async ({ page }) => { await page.goto('/hire-learning/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in awesome applicants' || t.startsWith('Reel in awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('hire_learning: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/hire-learning/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Killin' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Killin')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('hire_learning: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/hire-learning/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Form + Best Practic' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Form + Best Practic')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('hire_learning: nav link "View All Awesome Applicant Art"', async ({ page }) => { await page.goto('/hire-learning/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Awesome Applicant Articles' || t.startsWith('View All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - hire_offers', () => { test('hire_offers: title matches GT', async ({ page }) => { await page.goto('/hire/offers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('hire better & measure your recruiting pr'); }); test('hire_offers: h1 "Turn your top candidates into "', async ({ page }) => { await page.goto('/hire/offers/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Turn your top candidates into new hires, in far less time.' || t.startsWith('Turn your top candidates into new hires, in far less time.'))).toBeTruthy(); }); test('hire_offers: h2 "Features"', async ({ page }) => { await page.goto('/hire/offers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features'))).toBeTruthy(); }); test('hire_offers: h2 "Offer Management"', async ({ page }) => { await page.goto('/hire/offers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Offer Management' || t.startsWith('Offer Management'))).toBeTruthy(); }); test('hire_offers: h2 "HRIS Integrations"', async ({ page }) => { await page.goto('/hire/offers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'HRIS Integrations' || t.startsWith('HRIS Integrations'))).toBeTruthy(); }); test('hire_offers: nav link "Advertise & AttractPut your op"', async ({ page }) => { await page.goto('/hire/offers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Advertise & AttractPut your open roles in front of the right' || t.startsWith('Advertise & AttractPut your open roles in front of the right')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('attract')), 'href fragment present').toBeTruthy(); }); test('hire_offers: nav link "Career Sites"', async ({ page }) => { await page.goto('/hire/offers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Career Sites' || t.startsWith('Career Sites')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('career-sites')), 'href fragment present').toBeTruthy(); }); test('hire_offers: nav link "Job Advertising"', async ({ page }) => { await page.goto('/hire/offers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Job Advertising' || t.startsWith('Job Advertising')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('advertise-jobs')), 'href fragment present').toBeTruthy(); }); test('hire_offers: nav link "Employee Referrals"', async ({ page }) => { await page.goto('/hire/offers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Employee Referrals' || t.startsWith('Employee Referrals')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('employee-referrals')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - integrations', () => { test('integrations: title matches GT', async ({ page }) => { await page.goto('/integrations/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('integrations for recruiting, hr, & produ'); }); test('integrations: h1 "Streamline… all of it."', async ({ page }) => { await page.goto('/integrations/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamline… all of it.' || t.startsWith('Streamline… all of it.'))).toBeTruthy(); }); test('integrations: h2 "Popular Connections"', async ({ page }) => { await page.goto('/integrations/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Popular Connections' || t.startsWith('Popular Connections'))).toBeTruthy(); }); test('integrations: h2 "Integrations"', async ({ page }) => { await page.goto('/integrations/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Integrations' || t.startsWith('Integrations'))).toBeTruthy(); }); test('integrations: h2 "You\'re in Great Company"', async ({ page }) => { await page.goto('/integrations/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'You\'re in Great Company' || t.startsWith('You\'re in Great Company'))).toBeTruthy(); }); test('integrations: nav link "Advertise & AttractFeature you"', async ({ page }) => { await page.goto('/integrations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Advertise & AttractFeature your open positions in all the ri' || t.startsWith('Advertise & AttractFeature your open positions in all the ri')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('attract')), 'href fragment present').toBeTruthy(); }); test('integrations: nav link "Career Sites"', async ({ page }) => { await page.goto('/integrations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Career Sites' || t.startsWith('Career Sites')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('career-sites')), 'href fragment present').toBeTruthy(); }); test('integrations: nav link "Job Advertising"', async ({ page }) => { await page.goto('/integrations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Job Advertising' || t.startsWith('Job Advertising')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('advertise-jobs')), 'href fragment present').toBeTruthy(); }); test('integrations: nav link "Employee Referrals"', async ({ page }) => { await page.goto('/integrations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Employee Referrals' || t.startsWith('Employee Referrals')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('employee-referrals')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - onboard', () => { test('onboard: title matches GT', async ({ page }) => { await page.goto('/onboard/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('new hire onboarding software for growing'); }); test('onboard: h1 "Stop Improvising Your Onboardi"', async ({ page }) => { await page.goto('/onboard/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stop Improvising Your Onboarding' || t.startsWith('Stop Improvising Your Onboarding'))).toBeTruthy(); }); test('onboard: h2 "The Honest Truth"', async ({ page }) => { await page.goto('/onboard/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Honest Truth' || t.startsWith('The Honest Truth'))).toBeTruthy(); }); test('onboard: h2 "A Genuine Roadmap for Every Ne"', async ({ page }) => { await page.goto('/onboard/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'A Genuine Roadmap for Every New Hire' || t.startsWith('A Genuine Roadmap for Every New Hire'))).toBeTruthy(); }); test('onboard: h2 "Why Talvio Onboard Works for G"', async ({ page }) => { await page.goto('/onboard/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Why Talvio Onboard Works for Growing Teams' || t.startsWith('Why Talvio Onboard Works for Growing Teams'))).toBeTruthy(); }); test('onboard: nav link "Promote & AttractPut your open"', async ({ page }) => { await page.goto('/onboard/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Promote & AttractPut your open roles in front of the right p' || t.startsWith('Promote & AttractPut your open roles in front of the right p')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('attract')), 'href fragment present').toBeTruthy(); }); test('onboard: nav link "Career Sites"', async ({ page }) => { await page.goto('/onboard/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Career Sites' || t.startsWith('Career Sites')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('career-sites')), 'href fragment present').toBeTruthy(); }); test('onboard: nav link "Job Advertising"', async ({ page }) => { await page.goto('/onboard/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Job Advertising' || t.startsWith('Job Advertising')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('advertise-jobs')), 'href fragment present').toBeTruthy(); }); test('onboard: nav link "Employee Referrals"', async ({ page }) => { await page.goto('/onboard/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Employee Referrals' || t.startsWith('Employee Referrals')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('employee-referrals')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - partners', () => { test('partners: title matches GT', async ({ page }) => { await page.goto('/partners/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('talvio affiliate program'); }); test('partners: h1 "Talvio Partner Program"', async ({ page }) => { await page.goto('/partners/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Talvio Partner Program' || t.startsWith('Talvio Partner Program'))).toBeTruthy(); }); test('partners: h2 "HR Service Providers"', async ({ page }) => { await page.goto('/partners/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'HR Service Providers' || t.startsWith('HR Service Providers'))).toBeTruthy(); }); test('partners: h2 "Affiliate Partners"', async ({ page }) => { await page.goto('/partners/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Affiliate Partners' || t.startsWith('Affiliate Partners'))).toBeTruthy(); }); test('partners: h2 "Why partner with Talvio?"', async ({ page }) => { await page.goto('/partners/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Why partner with Talvio?' || t.startsWith('Why partner with Talvio?'))).toBeTruthy(); }); test('partners: nav link "Promote & AttractShowcase your"', async ({ page }) => { await page.goto('/partners/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Promote & AttractShowcase your open roles in all the places ' || t.startsWith('Promote & AttractShowcase your open roles in all the places ')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('attract')), 'href fragment present').toBeTruthy(); }); test('partners: nav link "Career Sites"', async ({ page }) => { await page.goto('/partners/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Career Sites' || t.startsWith('Career Sites')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('career-sites')), 'href fragment present').toBeTruthy(); }); test('partners: nav link "Job Advertising"', async ({ page }) => { await page.goto('/partners/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Job Advertising' || t.startsWith('Job Advertising')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('advertise-jobs')), 'href fragment present').toBeTruthy(); }); test('partners: nav link "Employee Referrals"', async ({ page }) => { await page.goto('/partners/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Employee Referrals' || t.startsWith('Employee Referrals')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('employee-referrals')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - perform_features', () => { test('perform_features: title matches GT', async ({ page }) => { await page.goto('/perform/features/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('talvio perform'); }); test('perform_features: h1 "Measurably Boost Your Team\'s P"', async ({ page }) => { await page.goto('/perform/features/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Measurably Boost Your Team\'s Performance.' || t.startsWith('Measurably Boost Your Team\'s Performance.'))).toBeTruthy(); }); test('perform_features: h2 "Features"', async ({ page }) => { await page.goto('/perform/features/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features'))).toBeTruthy(); }); test('perform_features: h2 "Performance Reviews"', async ({ page }) => { await page.goto('/perform/features/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Performance Reviews' || t.startsWith('Performance Reviews'))).toBeTruthy(); }); test('perform_features: h2 "Goal Setting and Tracking"', async ({ page }) => { await page.goto('/perform/features/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Goal Setting and Tracking' || t.startsWith('Goal Setting and Tracking'))).toBeTruthy(); }); test('perform_features: nav link "Features"', async ({ page }) => { await page.goto('/perform/features/'); 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('perform_features: nav link "Pricing"', async ({ page }) => { await page.goto('/perform/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('perform_features: nav link "Talvio ATS"', async ({ page }) => { await page.goto('/perform/features/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Talvio ATS' || t.startsWith('Talvio ATS')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - perform_pricing', () => { test('perform_pricing: title matches GT', async ({ page }) => { await page.goto('/perform/pricing/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('talvio perform'); }); test('perform_pricing: h1 "Simple, Clear, Fair Pricing."', async ({ page }) => { await page.goto('/perform/pricing/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Simple, Clear, Fair Pricing.' || t.startsWith('Simple, Clear, Fair Pricing.'))).toBeTruthy(); }); test('perform_pricing: h2 "Bootstrap"', async ({ page }) => { await page.goto('/perform/pricing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Bootstrap' || t.startsWith('Bootstrap'))).toBeTruthy(); }); test('perform_pricing: h2 "Startup"', async ({ page }) => { await page.goto('/perform/pricing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Startup' || t.startsWith('Startup'))).toBeTruthy(); }); test('perform_pricing: h2 "10-49 Employees"', async ({ page }) => { await page.goto('/perform/pricing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '10-49 Employees' || t.startsWith('10-49 Employees'))).toBeTruthy(); }); test('perform_pricing: nav link "Features"', async ({ page }) => { await page.goto('/perform/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('perform_pricing: nav link "Pricing"', async ({ page }) => { await page.goto('/perform/pricing/'); 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('perform_pricing: nav link "Talvio ATS"', async ({ page }) => { await page.goto('/perform/pricing/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Talvio ATS' || t.startsWith('Talvio ATS')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - policies_terms', () => { test('policies_terms: title matches GT', async ({ page }) => { await page.goto('/policies/terms/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('terms of service'); }); test('policies_terms: h2 "You\'re in Great Company"', async ({ page }) => { await page.goto('/policies/terms/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'You\'re in Great Company' || t.startsWith('You\'re in Great Company'))).toBeTruthy(); }); test('policies_terms: h2 "Start improving your hiring pr"', async ({ page }) => { await page.goto('/policies/terms/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Start improving your hiring process today.' || t.startsWith('Start improving your hiring process today.'))).toBeTruthy(); }); test('policies_terms: h3 "Attract & Promote"', async ({ page }) => { await page.goto('/policies/terms/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract & Promote' || t.startsWith('Attract & Promote'))).toBeTruthy(); }); test('policies_terms: nav link "Advertise & AttractFeature you"', async ({ page }) => { await page.goto('/policies/terms/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Advertise & AttractFeature your open positions in all the ri' || t.startsWith('Advertise & AttractFeature your open positions in all the ri')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('attract')), 'href fragment present').toBeTruthy(); }); test('policies_terms: nav link "Career Sites"', async ({ page }) => { await page.goto('/policies/terms/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Career Sites' || t.startsWith('Career Sites')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('career-sites')), 'href fragment present').toBeTruthy(); }); test('policies_terms: nav link "Job Advertising"', async ({ page }) => { await page.goto('/policies/terms/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Job Advertising' || t.startsWith('Job Advertising')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('advertise-jobs')), 'href fragment present').toBeTruthy(); }); test('policies_terms: nav link "Employee Referrals"', async ({ page }) => { await page.goto('/policies/terms/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Employee Referrals' || t.startsWith('Employee Referrals')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('employee-referrals')), '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: h2 "Bootstrap"', 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 === 'Bootstrap' || t.startsWith('Bootstrap'))).toBeTruthy(); }); test('pricing: h2 "Startup"', 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 === 'Startup' || t.startsWith('Startup'))).toBeTruthy(); }); test('pricing: h2 "Growth"', 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 === 'Growth' || t.startsWith('Growth'))).toBeTruthy(); }); test('pricing: nav link "Advertise & AttractFeature you"', 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 === 'Advertise & AttractFeature your open roles in all the right ' || t.startsWith('Advertise & AttractFeature your open roles in all the right ')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('attract')), 'href fragment present').toBeTruthy(); }); test('pricing: nav link "Career Sites"', 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 === 'Career Sites' || t.startsWith('Career Sites')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('career-sites')), 'href fragment present').toBeTruthy(); }); test('pricing: nav link "Job Advertising"', 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 === 'Job Advertising' || t.startsWith('Job Advertising')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('advertise-jobs')), 'href fragment present').toBeTruthy(); }); test('pricing: nav link "Employee Referrals"', 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 === 'Employee Referrals' || t.startsWith('Employee Referrals')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('employee-referrals')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - pricing_old', () => { test('pricing_old: title matches GT', async ({ page }) => { await page.goto('/pricing-old/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('pricing'); }); test('pricing_old: h1 "Simple, Flexible Pricing"', async ({ page }) => { await page.goto('/pricing-old/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Simple, Flexible Pricing' || t.startsWith('Simple, Flexible Pricing'))).toBeTruthy(); }); test('pricing_old: h2 "Bootstrap"', async ({ page }) => { await page.goto('/pricing-old/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Bootstrap' || t.startsWith('Bootstrap'))).toBeTruthy(); }); test('pricing_old: h2 "Startup"', async ({ page }) => { await page.goto('/pricing-old/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Startup' || t.startsWith('Startup'))).toBeTruthy(); }); test('pricing_old: h2 "Growth"', async ({ page }) => { await page.goto('/pricing-old/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Growth' || t.startsWith('Growth'))).toBeTruthy(); }); test('pricing_old: nav link "Advertise & AttractPut your op"', async ({ page }) => { await page.goto('/pricing-old/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Advertise & AttractPut your open roles in front of the right' || t.startsWith('Advertise & AttractPut your open roles in front of the right')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('attract')), 'href fragment present').toBeTruthy(); }); test('pricing_old: nav link "Career Sites"', async ({ page }) => { await page.goto('/pricing-old/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Career Sites' || t.startsWith('Career Sites')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('career-sites')), 'href fragment present').toBeTruthy(); }); test('pricing_old: nav link "Job Advertising"', async ({ page }) => { await page.goto('/pricing-old/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Job Advertising' || t.startsWith('Job Advertising')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('advertise-jobs')), 'href fragment present').toBeTruthy(); }); test('pricing_old: nav link "Employee Referrals"', async ({ page }) => { await page.goto('/pricing-old/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Employee Referrals' || t.startsWith('Employee Referrals')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('employee-referrals')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - qualify', () => { test('qualify: title matches GT', async ({ page }) => { await page.goto('/qualify/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('qualify candidates faster with talvio ap'); }); test('qualify: h1 "Compare and screen candidates,"', async ({ page }) => { await page.goto('/qualify/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Compare and screen candidates, faster.' || t.startsWith('Compare and screen candidates, faster.'))).toBeTruthy(); }); test('qualify: h2 "Features"', async ({ page }) => { await page.goto('/qualify/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features'))).toBeTruthy(); }); test('qualify: h2 "Candidate Management"', async ({ page }) => { await page.goto('/qualify/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Candidate Management' || t.startsWith('Candidate Management'))).toBeTruthy(); }); test('qualify: h2 "Talvio Intelligence"', async ({ page }) => { await page.goto('/qualify/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Talvio Intelligence' || t.startsWith('Talvio Intelligence'))).toBeTruthy(); }); test('qualify: nav link "Advertise & AttractFeature you"', async ({ page }) => { await page.goto('/qualify/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Advertise & AttractFeature your open positions in all the ri' || t.startsWith('Advertise & AttractFeature your open positions in all the ri')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('attract')), 'href fragment present').toBeTruthy(); }); test('qualify: nav link "Career Sites"', async ({ page }) => { await page.goto('/qualify/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Career Sites' || t.startsWith('Career Sites')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('career-sites')), 'href fragment present').toBeTruthy(); }); test('qualify: nav link "Job Advertising"', async ({ page }) => { await page.goto('/qualify/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Job Advertising' || t.startsWith('Job Advertising')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('advertise-jobs')), 'href fragment present').toBeTruthy(); }); test('qualify: nav link "Employee Referrals"', async ({ page }) => { await page.goto('/qualify/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Employee Referrals' || t.startsWith('Employee Referrals')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('employee-referrals')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - resources', () => { test('resources: title matches GT', async ({ page }) => { await page.goto('/resources/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('recruiting & hiring tools'); }); test('resources: h1 "Tools & Templates"', async ({ page }) => { await page.goto('/resources/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Tools & Templates' || t.startsWith('Tools & Templates'))).toBeTruthy(); }); test('resources: h2 "Need a hand with..."', async ({ page }) => { await page.goto('/resources/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Need a hand with...' || t.startsWith('Need a hand with...'))).toBeTruthy(); }); test('resources: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/resources/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('resources: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/resources/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('resources: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/resources/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('resources: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/resources/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('resources: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/resources/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Form + Best Practic' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Form + Best Practic')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('resources: nav link "See All Standout Applicant Art"', async ({ page }) => { await page.goto('/resources/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See All Standout Applicant Articles' || t.startsWith('See All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - resources_courses', () => { test('resources_courses: title matches GT', async ({ page }) => { await page.goto('/resources/courses/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('free hiring courses'); }); test('resources_courses: h2 "Can you help me..."', async ({ page }) => { await page.goto('/resources/courses/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('resources_courses: h2 "Attract Awesome Applicants"', async ({ page }) => { await page.goto('/resources/courses/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Awesome Applicants' || t.startsWith('Attract Awesome Applicants'))).toBeTruthy(); }); test('resources_courses: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/resources/courses/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('resources_courses: nav link "Attract awesome applicants"', async ({ page }) => { await page.goto('/resources/courses/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract awesome applicants' || t.startsWith('Attract awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('resources_courses: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/resources/courses/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('resources_courses: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/resources/courses/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Sample + Best Practic' || t.startsWith('ArticleWhat Is a Job Requisition? Free Sample + Best Practic')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('resources_courses: nav link "Browse All Awesome Applicant A"', async ({ page }) => { await page.goto('/resources/courses/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Browse All Awesome Applicant Articles' || t.startsWith('Browse All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - resources_guides', () => { test('resources_guides: title matches GT', async ({ page }) => { await page.goto('/resources/guides/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('free hr guides for a stronger hiring pro'); }); test('resources_guides: h1 "Guides"', async ({ page }) => { await page.goto('/resources/guides/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Guides' || t.startsWith('Guides'))).toBeTruthy(); }); test('resources_guides: h2 "Need a hand with..."', async ({ page }) => { await page.goto('/resources/guides/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Need a hand with...' || t.startsWith('Need a hand with...'))).toBeTruthy(); }); test('resources_guides: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/resources/guides/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('resources_guides: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/resources/guides/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('resources_guides: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/resources/guides/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('resources_guides: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/resources/guides/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('resources_guides: nav link "ArticleHow to Build a Hiring P"', async ({ page }) => { await page.goto('/resources/guides/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Build a Hiring Plan: Free Checklist + Smart Ti' || t.startsWith('ArticleHow to Build a Hiring Plan: Free Checklist + Smart Ti')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('resources_guides: nav link "Browse Every Smart Recruiting "', async ({ page }) => { await page.goto('/resources/guides/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Browse Every Smart Recruiting Guide' || t.startsWith('Browse Every Smart Recruiting Guide')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - resources_hiring_reports', () => { test('resources_hiring_reports: title matches GT', async ({ page }) => { await page.goto('/resources/hiring-reports/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('free recruiting and hiring reports'); }); test('resources_hiring_reports: h1 "Recruiting & Hiring Reports"', async ({ page }) => { await page.goto('/resources/hiring-reports/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recruiting & Hiring Reports' || t.startsWith('Recruiting & Hiring Reports'))).toBeTruthy(); }); test('resources_hiring_reports: h2 "Can you help me..."', async ({ page }) => { await page.goto('/resources/hiring-reports/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('resources_hiring_reports: h2 "Reel in Awesome Applicants"', async ({ page }) => { await page.goto('/resources/hiring-reports/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in Awesome Applicants' || t.startsWith('Reel in Awesome Applicants'))).toBeTruthy(); }); test('resources_hiring_reports: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/resources/hiring-reports/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Workflow Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Workflow Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('resources_hiring_reports: nav link "Reel in awesome applicants"', async ({ page }) => { await page.goto('/resources/hiring-reports/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in awesome applicants' || t.startsWith('Reel in awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('resources_hiring_reports: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/resources/hiring-reports/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Workflow Without Wreck' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Workflow Without Wreck')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('resources_hiring_reports: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/resources/hiring-reports/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Form + Best Practic' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Form + Best Practic')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('resources_hiring_reports: nav link "View All Awesome Applicant Art"', async ({ page }) => { await page.goto('/resources/hiring-reports/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Awesome Applicant Articles' || t.startsWith('View All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - resources_hiring_reports_source_of_hire_report', () => { test('resources_hiring_reports_source_of_hire_report: title matches GT', async ({ page }) => { await page.goto('/resources/hiring-reports/source-of-hire-report/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('the top hiring sources from 2024'); }); test('resources_hiring_reports_source_of_hire_report: h1 "Where Hires Begin"', async ({ page }) => { await page.goto('/resources/hiring-reports/source-of-hire-report/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Where Hires Begin' || t.startsWith('Where Hires Begin'))).toBeTruthy(); }); test('resources_hiring_reports_source_of_hire_report: h2 "Best Job Boards & Sourcing Cha"', async ({ page }) => { await page.goto('/resources/hiring-reports/source-of-hire-report/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Best Job Boards & Sourcing Channels for 2026' || t.startsWith('Best Job Boards & Sourcing Channels for 2026'))).toBeTruthy(); }); test('resources_hiring_reports_source_of_hire_report: h2 "We dug into the 14.2 million a"', async ({ page }) => { await page.goto('/resources/hiring-reports/source-of-hire-report/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We dug into the 14.2 million applications that reached Talvio in 2025.' || t.startsWith('We dug into the 14.2 million applications that reached Talvio in 2025.'))).toBeTruthy(); }); test('resources_hiring_reports_source_of_hire_report: h2 "You\'re in Great Company"', async ({ page }) => { await page.goto('/resources/hiring-reports/source-of-hire-report/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'You\'re in Great Company' || t.startsWith('You\'re in Great Company'))).toBeTruthy(); }); }); test.describe('Functional - blog_3_examples_of_termination_letters_done_right', () => { test('blog_3_examples_of_termination_letters_done_right: title matches GT', async ({ page }) => { await page.goto('/blog/3-examples-of-termination-letters-done-right/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('5 sample termination letters from employ'); }); test('blog_3_examples_of_termination_letters_done_right: h1 "5 Termination Letter Samples F"', async ({ page }) => { await page.goto('/blog/3-examples-of-termination-letters-done-right/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '5 Termination Letter Samples From Employer to Employee' || t.startsWith('5 Termination Letter Samples From Employer to Employee'))).toBeTruthy(); }); test('blog_3_examples_of_termination_letters_done_right: h2 "Home"', async ({ page }) => { await page.goto('/blog/3-examples-of-termination-letters-done-right/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Home' || t.startsWith('Home'))).toBeTruthy(); }); test('blog_3_examples_of_termination_letters_done_right: h2 "With every project you run"', async ({ page }) => { await page.goto('/blog/3-examples-of-termination-letters-done-right/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'With every project you run' || t.startsWith('With every project you run'))).toBeTruthy(); }); test('blog_3_examples_of_termination_letters_done_right: h2 "Run Our platform helps teams p"', async ({ page }) => { await page.goto('/blog/3-examples-of-termination-letters-done-right/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Run Our platform helps teams plan build and ship dependable software with c' || t.startsWith('Run Our platform helps teams plan build and ship dependable software with c'))).toBeTruthy(); }); test('blog_3_examples_of_termination_letters_done_right: nav link "Return"', async ({ page }) => { await page.goto('/blog/3-examples-of-termination-letters-done-right/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Return' || t.startsWith('Return')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_3_examples_of_termination_letters_done_right: nav link "ProjectRun Our platform helps "', async ({ page }) => { await page.goto('/blog/3-examples-of-termination-letters-done-right/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ProjectRun Our platform helps teams plan build and ship depe' || t.startsWith('ProjectRun Our platform helps teams plan build and ship depe')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_3_examples_of_termination_letters_done_right: nav link "Clear wShared conventions and "', async ({ page }) => { await page.goto('/blog/3-examples-of-termination-letters-done-right/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Clear wShared conventions and tools that scale with every pr' || t.startsWith('Clear wShared conventions and tools that scale with every pr')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_3_examples_of_termination_letters_done_right: nav link "Helps teams plan build and shi"', async ({ page }) => { await page.goto('/blog/3-examples-of-termination-letters-done-right/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Helps teams plan build and ship dep' || t.startsWith('Helps teams plan build and ship dep')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_applicant_tracking_system_checklist_crucial_features_of_your_next_ats', () => { test('blog_applicant_tracking_system_checklist_crucial_features_of_your_next_ats: title matches GT', async ({ page }) => { await page.goto('/blog/applicant-tracking-system-checklist-crucial-features-of-your-next-ats/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('checklist'); }); test('blog_applicant_tracking_system_checklist_crucial_features_of_your_next_ats: h1 "Applicant Tracking System Chec"', async ({ page }) => { await page.goto('/blog/applicant-tracking-system-checklist-crucial-features-of-your-next-ats/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Applicant Tracking System Checklist — Must-Have Features for Your Next ATS' || t.startsWith('Applicant Tracking System Checklist — Must-Have Features for Your Next ATS'))).toBeTruthy(); }); test('blog_applicant_tracking_system_checklist_crucial_features_of_your_next_ats: h2 "Here to help you..."', async ({ page }) => { await page.goto('/blog/applicant-tracking-system-checklist-crucial-features-of-your-next-ats/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Here to help you...' || t.startsWith('Here to help you...'))).toBeTruthy(); }); test('blog_applicant_tracking_system_checklist_crucial_features_of_your_next_ats: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/applicant-tracking-system-checklist-crucial-features-of-your-next-ats/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_applicant_tracking_system_checklist_crucial_features_of_your_next_ats: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/applicant-tracking-system-checklist-crucial-features-of-your-next-ats/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('blog_applicant_tracking_system_checklist_crucial_features_of_your_next_ats: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/applicant-tracking-system-checklist-crucial-features-of-your-next-ats/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_applicant_tracking_system_checklist_crucial_features_of_your_next_ats: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/applicant-tracking-system-checklist-crucial-features-of-your-next-ats/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_applicant_tracking_system_checklist_crucial_features_of_your_next_ats: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/applicant-tracking-system-checklist-crucial-features-of-your-next-ats/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Template + Best Pract' || t.startsWith('ArticleWhat Is a Job Requisition? Free Template + Best Pract')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_applicant_tracking_system_checklist_crucial_features_of_your_next_ats: nav link "See All Standout Applicant Art"', async ({ page }) => { await page.goto('/blog/applicant-tracking-system-checklist-crucial-features-of-your-next-ats/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See All Standout Applicant Articles' || t.startsWith('See All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_areas_of_improvement', () => { test('blog_areas_of_improvement: title matches GT', async ({ page }) => { await page.goto('/blog/areas-of-improvement/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('5 key areas of improvement for employee '); }); test('blog_areas_of_improvement: h1 "5 Areas of Growth for a More M"', async ({ page }) => { await page.goto('/blog/areas-of-improvement/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '5 Areas of Growth for a More Meaningful Performance Review' || t.startsWith('5 Areas of Growth for a More Meaningful Performance Review'))).toBeTruthy(); }); test('blog_areas_of_improvement: h2 "How can we help..."', async ({ page }) => { await page.goto('/blog/areas-of-improvement/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How can we help...' || t.startsWith('How can we help...'))).toBeTruthy(); }); test('blog_areas_of_improvement: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/areas-of-improvement/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_areas_of_improvement: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/areas-of-improvement/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('blog_areas_of_improvement: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/areas-of-improvement/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_areas_of_improvement: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/areas-of-improvement/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_areas_of_improvement: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/areas-of-improvement/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Template + 2026 Best ' || t.startsWith('ArticleWhat Is a Job Requisition? Free Template + 2026 Best ')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_areas_of_improvement: nav link "See All Attract Applicants Art"', async ({ page }) => { await page.goto('/blog/areas-of-improvement/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See All Attract Applicants Articles' || t.startsWith('See All Attract Applicants Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_attract_and_retain_millennial_healthcare_workers', () => { test('blog_attract_and_retain_millennial_healthcare_workers: title matches GT', async ({ page }) => { await page.goto('/blog/attract-and-retain-millennial-healthcare-workers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how to attract millennial healthcare wor'); }); test('blog_attract_and_retain_millennial_healthcare_workers: h1 "How to Attract and Keep Millen"', async ({ page }) => { await page.goto('/blog/attract-and-retain-millennial-healthcare-workers/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Attract and Keep Millennial Healthcare Talent (+ Examples and a Free Checklist)' || t.startsWith('How to Attract and Keep Millennial Healthcare Talent (+ Examples and a Free Checklist)'))).toBeTruthy(); }); test('blog_attract_and_retain_millennial_healthcare_workers: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/attract-and-retain-millennial-healthcare-workers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_attract_and_retain_millennial_healthcare_workers: h2 "Reel in Awesome Applicants"', async ({ page }) => { await page.goto('/blog/attract-and-retain-millennial-healthcare-workers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in Awesome Applicants' || t.startsWith('Reel in Awesome Applicants'))).toBeTruthy(); }); test('blog_attract_and_retain_millennial_healthcare_workers: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/attract-and-retain-millennial-healthcare-workers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_attract_and_retain_millennial_healthcare_workers: nav link "Reel in awesome applicants"', async ({ page }) => { await page.goto('/blog/attract-and-retain-millennial-healthcare-workers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in awesome applicants' || t.startsWith('Reel in awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_attract_and_retain_millennial_healthcare_workers: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/attract-and-retain-millennial-healthcare-workers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_attract_and_retain_millennial_healthcare_workers: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/attract-and-retain-millennial-healthcare-workers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Form + Best Practic' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Form + Best Practic')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_attract_and_retain_millennial_healthcare_workers: nav link "View All Awesome Applicant Art"', async ({ page }) => { await page.goto('/blog/attract-and-retain-millennial-healthcare-workers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Awesome Applicant Articles' || t.startsWith('View All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_blockchain_meets_recruitment', () => { test('blog_blockchain_meets_recruitment: title matches GT', async ({ page }) => { await page.goto('/blog/blockchain-meets-recruitment/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('3 things every recruiter should know abo'); }); test('blog_blockchain_meets_recruitment: h1 "Blockchain and Recruiting: 3 T"', async ({ page }) => { await page.goto('/blog/blockchain-meets-recruitment/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Blockchain and Recruiting: 3 Things Every Recruiter Must Know [+ Free Guide!]' || t.startsWith('Blockchain and Recruiting: 3 Things Every Recruiter Must Know [+ Free Guide!]'))).toBeTruthy(); }); test('blog_blockchain_meets_recruitment: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/blockchain-meets-recruitment/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_blockchain_meets_recruitment: h2 "Draw In Standout Applicants"', async ({ page }) => { await page.goto('/blog/blockchain-meets-recruitment/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Draw In Standout Applicants' || t.startsWith('Draw In Standout Applicants'))).toBeTruthy(); }); test('blog_blockchain_meets_recruitment: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/blockchain-meets-recruitment/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Flow Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Flow Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('blog_blockchain_meets_recruitment: nav link "Draw in standout applicants"', async ({ page }) => { await page.goto('/blog/blockchain-meets-recruitment/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Draw in standout applicants' || t.startsWith('Draw in standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_blockchain_meets_recruitment: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/blockchain-meets-recruitment/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Flow Without Wrecking ' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Flow Without Wrecking ')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_blockchain_meets_recruitment: nav link "ArticleWhat\'s a Job Requisitio"', async ({ page }) => { await page.goto('/blog/blockchain-meets-recruitment/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat\'s a Job Requisition? Free Sample Form + Best Pra' || t.startsWith('ArticleWhat\'s a Job Requisition? Free Sample Form + Best Pra')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_blockchain_meets_recruitment: nav link "View All Standout Applicant Ar"', async ({ page }) => { await page.goto('/blog/blockchain-meets-recruitment/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Standout Applicant Articles' || t.startsWith('View All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_talvio_accessible_site_redesign', () => { test('blog_talvio_accessible_site_redesign: title matches GT', async ({ page }) => { await page.goto('/blog/talvio-accessible-site-redesign/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('the inside scoop on talvio\'s fresh, acce'); }); test('blog_talvio_accessible_site_redesign: h1 "The Inside Scoop on Talvio\'s F"', async ({ page }) => { await page.goto('/blog/talvio-accessible-site-redesign/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Inside Scoop on Talvio\'s Fresh, Accessible Site Redesign' || t.startsWith('The Inside Scoop on Talvio\'s Fresh, Accessible Site Redesign'))).toBeTruthy(); }); test('blog_talvio_accessible_site_redesign: h2 "How can we help?"', async ({ page }) => { await page.goto('/blog/talvio-accessible-site-redesign/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How can we help?' || t.startsWith('How can we help?'))).toBeTruthy(); }); test('blog_talvio_accessible_site_redesign: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/talvio-accessible-site-redesign/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_talvio_accessible_site_redesign: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/talvio-accessible-site-redesign/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Pipeline Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Pipeline Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_talvio_accessible_site_redesign: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/talvio-accessible-site-redesign/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_talvio_accessible_site_redesign: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/talvio-accessible-site-redesign/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_talvio_accessible_site_redesign: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/talvio-accessible-site-redesign/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Template + Best Pract' || t.startsWith('ArticleWhat Is a Job Requisition? Free Template + Best Pract')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_talvio_accessible_site_redesign: nav link "View All Standout Applicant Ar"', async ({ page }) => { await page.goto('/blog/talvio-accessible-site-redesign/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Standout Applicant Articles' || t.startsWith('View All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_candidate_database', () => { test('blog_candidate_database: title matches GT', async ({ page }) => { await page.goto('/blog/candidate-database/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('5 smart ways to get more from your candi'); }); test('blog_candidate_database: h1 "How to Build a Candidate Datab"', async ({ page }) => { await page.goto('/blog/candidate-database/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Build a Candidate Database: 5 Best Practices for Recruiters and Managers' || t.startsWith('How to Build a Candidate Database: 5 Best Practices for Recruiters and Managers'))).toBeTruthy(); }); test('blog_candidate_database: h2 "Need a hand with..."', async ({ page }) => { await page.goto('/blog/candidate-database/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Need a hand with...' || t.startsWith('Need a hand with...'))).toBeTruthy(); }); test('blog_candidate_database: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/candidate-database/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_candidate_database: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/candidate-database/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Workflow Without Wrecking the Candidate Journey' || t.startsWith('How to Fraud-Proof Your Hiring Workflow Without Wrecking the Candidate Journey'))).toBeTruthy(); }); test('blog_candidate_database: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/candidate-database/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_candidate_database: nav link "FeatureHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/candidate-database/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FeatureHow to Fraud-Proof Your Hiring Workflow Without Wreck' || t.startsWith('FeatureHow to Fraud-Proof Your Hiring Workflow Without Wreck')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_candidate_database: nav link "FeatureWhat\'s a Job Requisitio"', async ({ page }) => { await page.goto('/blog/candidate-database/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FeatureWhat\'s a Job Requisition? Free Template + Top Tips fo' || t.startsWith('FeatureWhat\'s a Job Requisition? Free Template + Top Tips fo')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_candidate_database: nav link "See All Standout Applicant Fea"', async ({ page }) => { await page.goto('/blog/candidate-database/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See All Standout Applicant Features' || t.startsWith('See All Standout Applicant 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('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_candidate_fraud', () => { test('blog_candidate_fraud: title matches GT', async ({ page }) => { await page.goto('/blog/candidate-fraud/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how to fraud'); }); test('blog_candidate_fraud: h1 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/candidate-fraud/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('blog_candidate_fraud: h2 "Need a hand with..."', async ({ page }) => { await page.goto('/blog/candidate-fraud/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Need a hand with...' || t.startsWith('Need a hand with...'))).toBeTruthy(); }); test('blog_candidate_fraud: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/candidate-fraud/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_candidate_fraud: h2 "Fraud-Proof Your Hiring Proces"', async ({ page }) => { await page.goto('/blog/candidate-fraud/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Fraud-Proof Your Hiring Process Without Wrecking the Candidate Experience' || t.startsWith('Fraud-Proof Your Hiring Process Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('blog_candidate_fraud: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/candidate-fraud/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_candidate_fraud: nav link "ArticleFraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/candidate-fraud/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleFraud-Proof Your Hiring Process Without Wrecking the ' || t.startsWith('ArticleFraud-Proof Your Hiring Process Without Wrecking the ')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_candidate_fraud: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/candidate-fraud/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Template + Best Pra' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Template + Best Pra')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_candidate_fraud: nav link "View All Standout Applicant Ar"', async ({ page }) => { await page.goto('/blog/candidate-fraud/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Standout Applicant Articles' || t.startsWith('View All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_data_driven_assessment_structured_interviews', () => { test('blog_data_driven_assessment_structured_interviews: title matches GT', async ({ page }) => { await page.goto('/blog/data-driven-assessment-structured-interviews/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('assessments made simple'); }); test('blog_data_driven_assessment_structured_interviews: h1 "Talent Assessments Demystified"', async ({ page }) => { await page.goto('/blog/data-driven-assessment-structured-interviews/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Talent Assessments Demystified: Your Playbook for Hiring the Best' || t.startsWith('Talent Assessments Demystified: Your Playbook for Hiring the Best'))).toBeTruthy(); }); test('blog_data_driven_assessment_structured_interviews: h2 "Need a hand with..."', async ({ page }) => { await page.goto('/blog/data-driven-assessment-structured-interviews/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Need a hand with...' || t.startsWith('Need a hand with...'))).toBeTruthy(); }); test('blog_data_driven_assessment_structured_interviews: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/data-driven-assessment-structured-interviews/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_data_driven_assessment_structured_interviews: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/data-driven-assessment-structured-interviews/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('blog_data_driven_assessment_structured_interviews: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/data-driven-assessment-structured-interviews/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_data_driven_assessment_structured_interviews: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/data-driven-assessment-structured-interviews/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_data_driven_assessment_structured_interviews: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/data-driven-assessment-structured-interviews/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Form + Best Practic' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Form + Best Practic')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_data_driven_assessment_structured_interviews: nav link "View All Standout Applicant Ar"', async ({ page }) => { await page.goto('/blog/data-driven-assessment-structured-interviews/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Standout Applicant Articles' || t.startsWith('View All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_dei_initiatives', () => { test('blog_dei_initiatives: title matches GT', async ({ page }) => { await page.goto('/blog/dei-initiatives/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('dei past and present'); }); test('blog_dei_initiatives: h1 "DEI Then and Now: 5 Bold Initi"', async ({ page }) => { await page.goto('/blog/dei-initiatives/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DEI Then and Now: 5 Bold Initiatives to Watch in 2025' || t.startsWith('DEI Then and Now: 5 Bold Initiatives to Watch in 2025'))).toBeTruthy(); }); test('blog_dei_initiatives: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/dei-initiatives/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_dei_initiatives: h2 "Attract Awesome Applicants"', async ({ page }) => { await page.goto('/blog/dei-initiatives/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Awesome Applicants' || t.startsWith('Attract Awesome Applicants'))).toBeTruthy(); }); test('blog_dei_initiatives: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/dei-initiatives/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Pipeline Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Pipeline Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_dei_initiatives: nav link "Attract awesome applicants"', async ({ page }) => { await page.goto('/blog/dei-initiatives/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract awesome applicants' || t.startsWith('Attract awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_dei_initiatives: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/dei-initiatives/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_dei_initiatives: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/dei-initiatives/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Template + Best Pract' || t.startsWith('ArticleWhat Is a Job Requisition? Free Template + Best Pract')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_dei_initiatives: nav link "See All Awesome Applicant Arti"', async ({ page }) => { await page.goto('/blog/dei-initiatives/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See All Awesome Applicant Articles' || t.startsWith('See All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_detect_ai_resume_cheating', () => { test('blog_detect_ai_resume_cheating: title matches GT', async ({ page }) => { await page.goto('/blog/detect-ai-resume-cheating/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('3 ways applicants outsmart your hiring f'); }); test('blog_detect_ai_resume_cheating: h1 "3 Tactics Applicants Use to Ou"', async ({ page }) => { await page.goto('/blog/detect-ai-resume-cheating/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '3 Tactics Applicants Use to Outsmart Your Screening Tools' || t.startsWith('3 Tactics Applicants Use to Outsmart Your Screening Tools'))).toBeTruthy(); }); test('blog_detect_ai_resume_cheating: h2 "Need a hand with..."', async ({ page }) => { await page.goto('/blog/detect-ai-resume-cheating/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Need a hand with...' || t.startsWith('Need a hand with...'))).toBeTruthy(); }); test('blog_detect_ai_resume_cheating: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/detect-ai-resume-cheating/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_detect_ai_resume_cheating: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/detect-ai-resume-cheating/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Pipeline Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Pipeline Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_detect_ai_resume_cheating: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/detect-ai-resume-cheating/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_detect_ai_resume_cheating: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/detect-ai-resume-cheating/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_detect_ai_resume_cheating: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/detect-ai-resume-cheating/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Template + Best Pract' || t.startsWith('ArticleWhat Is a Job Requisition? Free Template + Best Pract')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_detect_ai_resume_cheating: nav link "View All Attract Applicants Ar"', async ({ page }) => { await page.goto('/blog/detect-ai-resume-cheating/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Attract Applicants Articles' || t.startsWith('View All Attract Applicants Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_diversity_inclusion_quick_checklist', () => { test('blog_diversity_inclusion_quick_checklist: title matches GT', async ({ page }) => { await page.goto('/blog/diversity-inclusion-quick-checklist/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('the real deal on diversity & inclusion'); }); test('blog_diversity_inclusion_quick_checklist: h1 "The Real Deal on Diversity, Eq"', async ({ page }) => { await page.goto('/blog/diversity-inclusion-quick-checklist/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Real Deal on Diversity, Equity & Inclusion: A Quick Checklist to Check In' || t.startsWith('The Real Deal on Diversity, Equity & Inclusion: A Quick Checklist to Check In'))).toBeTruthy(); }); test('blog_diversity_inclusion_quick_checklist: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/diversity-inclusion-quick-checklist/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_diversity_inclusion_quick_checklist: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/diversity-inclusion-quick-checklist/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_diversity_inclusion_quick_checklist: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/diversity-inclusion-quick-checklist/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Pipeline Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Pipeline Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('blog_diversity_inclusion_quick_checklist: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/diversity-inclusion-quick-checklist/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_diversity_inclusion_quick_checklist: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/diversity-inclusion-quick-checklist/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_diversity_inclusion_quick_checklist: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/diversity-inclusion-quick-checklist/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Sample Form + Best Pr' || t.startsWith('ArticleWhat Is a Job Requisition? Free Sample Form + Best Pr')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_diversity_inclusion_quick_checklist: nav link "View All Standout Applicant Ar"', async ({ page }) => { await page.goto('/blog/diversity-inclusion-quick-checklist/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Standout Applicant Articles' || t.startsWith('View All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_do_interview_thank_you_emails_matter', () => { test('blog_do_interview_thank_you_emails_matter: title matches GT', async ({ page }) => { await page.goto('/blog/do-interview-thank-you-emails-matter/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('do interview thank you emails really mat'); }); test('blog_do_interview_thank_you_emails_matter: h1 "Interview Thank You Emails: Ho"', async ({ page }) => { await page.goto('/blog/do-interview-thank-you-emails-matter/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Interview Thank You Emails: How Much Weight Should They Truly Carry?' || t.startsWith('Interview Thank You Emails: How Much Weight Should They Truly Carry?'))).toBeTruthy(); }); test('blog_do_interview_thank_you_emails_matter: h2 "Need a hand with..."', async ({ page }) => { await page.goto('/blog/do-interview-thank-you-emails-matter/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Need a hand with...' || t.startsWith('Need a hand with...'))).toBeTruthy(); }); test('blog_do_interview_thank_you_emails_matter: h2 "Attract Amazing Applicants"', async ({ page }) => { await page.goto('/blog/do-interview-thank-you-emails-matter/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Amazing Applicants' || t.startsWith('Attract Amazing Applicants'))).toBeTruthy(); }); test('blog_do_interview_thank_you_emails_matter: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/do-interview-thank-you-emails-matter/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('blog_do_interview_thank_you_emails_matter: nav link "Attract amazing applicants"', async ({ page }) => { await page.goto('/blog/do-interview-thank-you-emails-matter/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract amazing applicants' || t.startsWith('Attract amazing applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_do_interview_thank_you_emails_matter: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/do-interview-thank-you-emails-matter/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_do_interview_thank_you_emails_matter: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/do-interview-thank-you-emails-matter/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Form + Best Practices' || t.startsWith('ArticleWhat Is a Job Requisition? Free Form + Best Practices')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_do_interview_thank_you_emails_matter: nav link "View All Amazing Applicant Art"', async ({ page }) => { await page.goto('/blog/do-interview-thank-you-emails-matter/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Amazing Applicant Articles' || t.startsWith('View All Amazing Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_eeo_categories', () => { test('blog_eeo_categories: title matches GT', async ({ page }) => { await page.goto('/blog/eeo-categories/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('eeo categories, explained'); }); test('blog_eeo_categories: h1 "EEO Categories, Explained: A P"', async ({ page }) => { await page.goto('/blog/eeo-categories/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'EEO Categories, Explained: A Practical Guide for Employers' || t.startsWith('EEO Categories, Explained: A Practical Guide for Employers'))).toBeTruthy(); }); test('blog_eeo_categories: h2 "Could you help me..."', async ({ page }) => { await page.goto('/blog/eeo-categories/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Could you help me...' || t.startsWith('Could you help me...'))).toBeTruthy(); }); test('blog_eeo_categories: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/eeo-categories/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_eeo_categories: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/eeo-categories/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Pipeline Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Pipeline Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_eeo_categories: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/eeo-categories/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_eeo_categories: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/eeo-categories/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_eeo_categories: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/eeo-categories/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Form Plus Best Prac' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Form Plus Best Prac')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_eeo_categories: nav link "View All Attract Applicants Ar"', async ({ page }) => { await page.goto('/blog/eeo-categories/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Attract Applicants Articles' || t.startsWith('View All Attract Applicants Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_employee_feedback_system', () => { test('blog_employee_feedback_system: title matches GT', async ({ page }) => { await page.goto('/blog/employee-feedback-system/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('5 ways to turn feedback into a reality'); }); test('blog_employee_feedback_system: h1 "Designing an Employee Feedback"', async ({ page }) => { await page.goto('/blog/employee-feedback-system/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Designing an Employee Feedback System: 5 Strategies to Make Feedback Real' || t.startsWith('Designing an Employee Feedback System: 5 Strategies to Make Feedback Real'))).toBeTruthy(); }); test('blog_employee_feedback_system: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/employee-feedback-system/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_employee_feedback_system: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/employee-feedback-system/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_employee_feedback_system: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/employee-feedback-system/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Pipeline Without Wrecking the Candidate Journey' || t.startsWith('How to Fraud-Proof Your Hiring Pipeline Without Wrecking the Candidate Journey'))).toBeTruthy(); }); test('blog_employee_feedback_system: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/employee-feedback-system/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_employee_feedback_system: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/employee-feedback-system/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_employee_feedback_system: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/employee-feedback-system/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Form + Top Practices ' || t.startsWith('ArticleWhat Is a Job Requisition? Free Form + Top Practices ')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_employee_feedback_system: nav link "View All Standout Applicant Ar"', async ({ page }) => { await page.goto('/blog/employee-feedback-system/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Standout Applicant Articles' || t.startsWith('View All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_employee_onboarding_that_works', () => { test('blog_employee_onboarding_that_works: title matches GT', async ({ page }) => { await page.goto('/blog/employee-onboarding-that-works/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('employee onboarding that actually works'); }); test('blog_employee_onboarding_that_works: h1 "Ditch the Endless Handbook: Ho"', async ({ page }) => { await page.goto('/blog/employee-onboarding-that-works/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ditch the Endless Handbook: How to Build Onboarding Resources People Actually Use' || t.startsWith('Ditch the Endless Handbook: How to Build Onboarding Resources People Actually Use'))).toBeTruthy(); }); test('blog_employee_onboarding_that_works: h2 "I need help with..."', async ({ page }) => { await page.goto('/blog/employee-onboarding-that-works/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'I need help with...' || t.startsWith('I need help with...'))).toBeTruthy(); }); test('blog_employee_onboarding_that_works: h2 "Draw In Standout Applicants"', async ({ page }) => { await page.goto('/blog/employee-onboarding-that-works/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Draw In Standout Applicants' || t.startsWith('Draw In Standout Applicants'))).toBeTruthy(); }); test('blog_employee_onboarding_that_works: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/employee-onboarding-that-works/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Funnel Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Funnel Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_employee_onboarding_that_works: nav link "Draw in standout applicants"', async ({ page }) => { await page.goto('/blog/employee-onboarding-that-works/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Draw in standout applicants' || t.startsWith('Draw in standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_employee_onboarding_that_works: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/employee-onboarding-that-works/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Funnel Without Wreckin' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Funnel Without Wreckin')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_employee_onboarding_that_works: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/employee-onboarding-that-works/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Template + Best Pract' || t.startsWith('ArticleWhat Is a Job Requisition? Free Template + Best Pract')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_employee_onboarding_that_works: nav link "See Every Standout Applicant A"', async ({ page }) => { await page.goto('/blog/employee-onboarding-that-works/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See Every Standout Applicant Article' || t.startsWith('See Every Standout Applicant Article')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_employee_recognition_ideas', () => { test('blog_employee_recognition_ideas: title matches GT', async ({ page }) => { await page.goto('/blog/employee-recognition-ideas/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('employee recognition'); }); test('blog_employee_recognition_ideas: h1 "Employee Recognition: 8 Ways t"', async ({ page }) => { await page.goto('/blog/employee-recognition-ideas/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Employee Recognition: 8 Ways to Show You Care' || t.startsWith('Employee Recognition: 8 Ways to Show You Care'))).toBeTruthy(); }); test('blog_employee_recognition_ideas: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/employee-recognition-ideas/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_employee_recognition_ideas: h2 "Reel in Awesome Applicants"', async ({ page }) => { await page.goto('/blog/employee-recognition-ideas/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in Awesome Applicants' || t.startsWith('Reel in Awesome Applicants'))).toBeTruthy(); }); test('blog_employee_recognition_ideas: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/employee-recognition-ideas/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_employee_recognition_ideas: nav link "Reel in awesome applicants"', async ({ page }) => { await page.goto('/blog/employee-recognition-ideas/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in awesome applicants' || t.startsWith('Reel in awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_employee_recognition_ideas: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/employee-recognition-ideas/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_employee_recognition_ideas: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/employee-recognition-ideas/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Sample Form + 2026 Be' || t.startsWith('ArticleWhat Is a Job Requisition? Free Sample Form + 2026 Be')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_employee_recognition_ideas: nav link "View All Awesome Applicant Art"', async ({ page }) => { await page.goto('/blog/employee-recognition-ideas/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Awesome Applicant Articles' || t.startsWith('View All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_employee_referral_program', () => { test('blog_employee_referral_program: title matches GT', async ({ page }) => { await page.goto('/blog/employee-referral-program/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('want your own employee referral program?'); }); test('blog_employee_referral_program: h1 "The Hiring Team\'s DIY Guide to"', async ({ page }) => { await page.goto('/blog/employee-referral-program/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Hiring Team\'s DIY Guide to a Great Employee Referral Program' || t.startsWith('The Hiring Team\'s DIY Guide to a Great Employee Referral Program'))).toBeTruthy(); }); test('blog_employee_referral_program: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/employee-referral-program/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_employee_referral_program: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/employee-referral-program/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_employee_referral_program: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/employee-referral-program/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Pipeline Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Pipeline Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_employee_referral_program: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/employee-referral-program/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_employee_referral_program: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/employee-referral-program/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_employee_referral_program: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/employee-referral-program/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Template + Best Pract' || t.startsWith('ArticleWhat Is a Job Requisition? Free Template + Best Pract')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_employee_referral_program: nav link "View All Standout Applicant Ar"', async ({ page }) => { await page.goto('/blog/employee-referral-program/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Standout Applicant Articles' || t.startsWith('View All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_employer_branding', () => { test('blog_employer_branding: title matches GT', async ({ page }) => { await page.goto('/blog/employer-branding/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('10 employer branding examples worth copy'); }); test('blog_employer_branding: h1 "Employer Branding Examples: 10"', async ({ page }) => { await page.goto('/blog/employer-branding/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Employer Branding Examples: 10 Brands That Nail It' || t.startsWith('Employer Branding Examples: 10 Brands That Nail It'))).toBeTruthy(); }); test('blog_employer_branding: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/employer-branding/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_employer_branding: h2 "Draw in Standout Applicants"', async ({ page }) => { await page.goto('/blog/employer-branding/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Draw in Standout Applicants' || t.startsWith('Draw in Standout Applicants'))).toBeTruthy(); }); test('blog_employer_branding: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/employer-branding/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('blog_employer_branding: nav link "Draw in standout applicants"', async ({ page }) => { await page.goto('/blog/employer-branding/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Draw in standout applicants' || t.startsWith('Draw in standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_employer_branding: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/employer-branding/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_employer_branding: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/employer-branding/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Template + Best Pra' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Template + Best Pra')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_employer_branding: nav link "View All Standout Applicant Ar"', async ({ page }) => { await page.goto('/blog/employer-branding/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Standout Applicant Articles' || t.startsWith('View All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_employer_value_proposition', () => { test('blog_employer_value_proposition: title matches GT', async ({ page }) => { await page.goto('/blog/employer-value-proposition/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('stand out with a killer employer value p'); }); test('blog_employer_value_proposition: h1 "What Is an Employer Value Prop"', async ({ page }) => { await page.goto('/blog/employer-value-proposition/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'What Is an Employer Value Proposition? Your Secret Weapon for Winning Qualified Candidates' || t.startsWith('What Is an Employer Value Proposition? Your Secret Weapon for Winning Qualified Candidates'))).toBeTruthy(); }); test('blog_employer_value_proposition: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/employer-value-proposition/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_employer_value_proposition: h2 "Draw In Awesome Applicants"', async ({ page }) => { await page.goto('/blog/employer-value-proposition/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Draw In Awesome Applicants' || t.startsWith('Draw In Awesome Applicants'))).toBeTruthy(); }); test('blog_employer_value_proposition: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/employer-value-proposition/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_employer_value_proposition: nav link "Draw in awesome applicants"', async ({ page }) => { await page.goto('/blog/employer-value-proposition/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Draw in awesome applicants' || t.startsWith('Draw in awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_employer_value_proposition: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/employer-value-proposition/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_employer_value_proposition: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/employer-value-proposition/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Form + Best Practices' || t.startsWith('ArticleWhat Is a Job Requisition? Free Form + Best Practices')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_employer_value_proposition: nav link "See All Awesome Applicant Arti"', async ({ page }) => { await page.goto('/blog/employer-value-proposition/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See All Awesome Applicant Articles' || t.startsWith('See All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_free_job_posting_site', () => { test('blog_free_job_posting_site: title matches GT', async ({ page }) => { await page.goto('/blog/free-job-posting-site/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('5 free job posting sites every employer '); }); test('blog_free_job_posting_site: h1 "The 5 Best Free Job Posting Si"', async ({ page }) => { await page.goto('/blog/free-job-posting-site/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The 5 Best Free Job Posting Sites Every Employer Should Know' || t.startsWith('The 5 Best Free Job Posting Sites Every Employer Should Know'))).toBeTruthy(); }); test('blog_free_job_posting_site: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/free-job-posting-site/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_free_job_posting_site: h2 "Draw In Awesome Applicants"', async ({ page }) => { await page.goto('/blog/free-job-posting-site/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Draw In Awesome Applicants' || t.startsWith('Draw In Awesome Applicants'))).toBeTruthy(); }); test('blog_free_job_posting_site: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/free-job-posting-site/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_free_job_posting_site: nav link "Draw in awesome applicants"', async ({ page }) => { await page.goto('/blog/free-job-posting-site/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Draw in awesome applicants' || t.startsWith('Draw in awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_free_job_posting_site: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/free-job-posting-site/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_free_job_posting_site: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/free-job-posting-site/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Form + Best Practices' || t.startsWith('ArticleWhat Is a Job Requisition? Free Form + Best Practices')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_free_job_posting_site: nav link "See All Awesome Applicant Arti"', async ({ page }) => { await page.goto('/blog/free-job-posting-site/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See All Awesome Applicant Articles' || t.startsWith('See All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_gen_z_in_the_workplace', () => { test('blog_gen_z_in_the_workplace: title matches GT', async ({ page }) => { await page.goto('/blog/gen-z-in-the-workplace/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('getting gen z right'); }); test('blog_gen_z_in_the_workplace: h1 "Getting Real with Gen Z: 8 Way"', async ({ page }) => { await page.goto('/blog/gen-z-in-the-workplace/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Getting Real with Gen Z: 8 Ways to Attract and Keep the Internet Generation' || t.startsWith('Getting Real with Gen Z: 8 Ways to Attract and Keep the Internet Generation'))).toBeTruthy(); }); test('blog_gen_z_in_the_workplace: h2 "I need help with..."', async ({ page }) => { await page.goto('/blog/gen-z-in-the-workplace/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'I need help with...' || t.startsWith('I need help with...'))).toBeTruthy(); }); test('blog_gen_z_in_the_workplace: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/gen-z-in-the-workplace/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_gen_z_in_the_workplace: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/gen-z-in-the-workplace/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Flow Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Flow Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_gen_z_in_the_workplace: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/gen-z-in-the-workplace/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_gen_z_in_the_workplace: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/gen-z-in-the-workplace/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Flow Without Wrecking ' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Flow Without Wrecking ')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_gen_z_in_the_workplace: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/gen-z-in-the-workplace/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Template + Best Pract' || t.startsWith('ArticleWhat Is a Job Requisition? Free Template + Best Pract')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_gen_z_in_the_workplace: nav link "See All Standout Applicant Art"', async ({ page }) => { await page.goto('/blog/gen-z-in-the-workplace/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See All Standout Applicant Articles' || t.startsWith('See All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_guide_to_your_best_interview_process', () => { test('blog_guide_to_your_best_interview_process: title matches GT', async ({ page }) => { await page.goto('/blog/guide-to-your-best-interview-process/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('your best interview process'); }); test('blog_guide_to_your_best_interview_process: h1 "Your Best Interview Process: A"', async ({ page }) => { await page.goto('/blog/guide-to-your-best-interview-process/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Your Best Interview Process: A Complete Interview Playbook for Employers Who Give a Damn' || t.startsWith('Your Best Interview Process: A Complete Interview Playbook for Employers Who Give a Damn'))).toBeTruthy(); }); test('blog_guide_to_your_best_interview_process: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/guide-to-your-best-interview-process/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_guide_to_your_best_interview_process: h2 "Attract Awesome Applicants"', async ({ page }) => { await page.goto('/blog/guide-to-your-best-interview-process/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Awesome Applicants' || t.startsWith('Attract Awesome Applicants'))).toBeTruthy(); }); test('blog_guide_to_your_best_interview_process: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/guide-to-your-best-interview-process/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_guide_to_your_best_interview_process: nav link "Attract awesome applicants"', async ({ page }) => { await page.goto('/blog/guide-to-your-best-interview-process/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract awesome applicants' || t.startsWith('Attract awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_guide_to_your_best_interview_process: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/guide-to-your-best-interview-process/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_guide_to_your_best_interview_process: nav link "ArticleWhat\'s a Job Requisitio"', async ({ page }) => { await page.goto('/blog/guide-to-your-best-interview-process/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat\'s a Job Requisition? Sample Form + Best Practice' || t.startsWith('ArticleWhat\'s a Job Requisition? Sample Form + Best Practice')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_guide_to_your_best_interview_process: nav link "View All Awesome Applicant Art"', async ({ page }) => { await page.goto('/blog/guide-to-your-best-interview-process/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Awesome Applicant Articles' || t.startsWith('View All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_hire_content_manager', () => { test('blog_hire_content_manager: title matches GT', async ({ page }) => { await page.goto('/blog/hire-content-manager/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how to hire a standout content manager'); }); test('blog_hire_content_manager: h1 "Hiring a Content Manager Is a "', async ({ page }) => { await page.goto('/blog/hire-content-manager/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Hiring a Content Manager Is a Big Move: Here\'s How to Get It Right' || t.startsWith('Hiring a Content Manager Is a Big Move: Here\'s How to Get It Right'))).toBeTruthy(); }); test('blog_hire_content_manager: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/hire-content-manager/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_hire_content_manager: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/hire-content-manager/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_hire_content_manager: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/hire-content-manager/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('blog_hire_content_manager: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/hire-content-manager/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_hire_content_manager: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/hire-content-manager/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_hire_content_manager: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/hire-content-manager/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Form + Best Practices' || t.startsWith('ArticleWhat Is a Job Requisition? Free Form + Best Practices')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_hire_content_manager: nav link "View All Attract Applicants Ar"', async ({ page }) => { await page.goto('/blog/hire-content-manager/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Attract Applicants Articles' || t.startsWith('View All Attract Applicants Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_hiring_an_seo_expert', () => { test('blog_hiring_an_seo_expert: title matches GT', async ({ page }) => { await page.goto('/blog/hiring-an-seo-expert/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('a frills'); }); test('blog_hiring_an_seo_expert: h1 "Cut Through the Noise: Hire an"', async ({ page }) => { await page.goto('/blog/hiring-an-seo-expert/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Cut Through the Noise: Hire an SEO Expert Who Delivers Exactly What Your Business Needs' || t.startsWith('Cut Through the Noise: Hire an SEO Expert Who Delivers Exactly What Your Business Needs'))).toBeTruthy(); }); test('blog_hiring_an_seo_expert: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/hiring-an-seo-expert/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_hiring_an_seo_expert: h2 "Attract Awesome Applicants"', async ({ page }) => { await page.goto('/blog/hiring-an-seo-expert/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Awesome Applicants' || t.startsWith('Attract Awesome Applicants'))).toBeTruthy(); }); test('blog_hiring_an_seo_expert: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/hiring-an-seo-expert/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_hiring_an_seo_expert: nav link "Attract awesome applicants"', async ({ page }) => { await page.goto('/blog/hiring-an-seo-expert/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract awesome applicants' || t.startsWith('Attract awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_hiring_an_seo_expert: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/hiring-an-seo-expert/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_hiring_an_seo_expert: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/hiring-an-seo-expert/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Form + Best Practic' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Form + Best Practic')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_hiring_an_seo_expert: nav link "View All Awesome Applicant Art"', async ({ page }) => { await page.goto('/blog/hiring-an-seo-expert/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Awesome Applicant Articles' || t.startsWith('View All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_hiring_managers_guide_candidate_experience', () => { test('blog_hiring_managers_guide_candidate_experience: title matches GT', async ({ page }) => { await page.goto('/blog/hiring-managers-guide-candidate-experience/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('candidate experience 101'); }); test('blog_hiring_managers_guide_candidate_experience: h1 "Candidate Experience 101: The "', async ({ page }) => { await page.goto('/blog/hiring-managers-guide-candidate-experience/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Candidate Experience 101: The Hiring Manager\'s Complete Playbook for Making Candidates Love Your Bra' || t.startsWith('Candidate Experience 101: The Hiring Manager\'s Complete Playbook for Making Candidates Love Your Bra'))).toBeTruthy(); }); test('blog_hiring_managers_guide_candidate_experience: h2 "I need help with..."', async ({ page }) => { await page.goto('/blog/hiring-managers-guide-candidate-experience/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'I need help with...' || t.startsWith('I need help with...'))).toBeTruthy(); }); test('blog_hiring_managers_guide_candidate_experience: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/hiring-managers-guide-candidate-experience/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_hiring_managers_guide_candidate_experience: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/hiring-managers-guide-candidate-experience/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Pipeline Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Pipeline Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('blog_hiring_managers_guide_candidate_experience: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/hiring-managers-guide-candidate-experience/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_hiring_managers_guide_candidate_experience: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/hiring-managers-guide-candidate-experience/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_hiring_managers_guide_candidate_experience: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/hiring-managers-guide-candidate-experience/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Template + Best Pra' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Template + Best Pra')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_hiring_managers_guide_candidate_experience: nav link "See All Standout Applicant Art"', async ({ page }) => { await page.goto('/blog/hiring-managers-guide-candidate-experience/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See All Standout Applicant Articles' || t.startsWith('See All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_hiring_process_guide', () => { test('blog_hiring_process_guide: title matches GT', async ({ page }) => { await page.goto('/blog/hiring-process-guide/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('your hiring process, simplified'); }); test('blog_hiring_process_guide: h1 "Your Hiring Process, Simplifie"', async ({ page }) => { await page.goto('/blog/hiring-process-guide/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Your Hiring Process, Simplified: A Step-by-Step Guide to Making Hiring Effortless' || t.startsWith('Your Hiring Process, Simplified: A Step-by-Step Guide to Making Hiring Effortless'))).toBeTruthy(); }); test('blog_hiring_process_guide: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/hiring-process-guide/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_hiring_process_guide: h2 "Reel in Awesome Applicants"', async ({ page }) => { await page.goto('/blog/hiring-process-guide/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in Awesome Applicants' || t.startsWith('Reel in Awesome Applicants'))).toBeTruthy(); }); test('blog_hiring_process_guide: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/hiring-process-guide/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Killing Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Killing Candidate Experience'))).toBeTruthy(); }); test('blog_hiring_process_guide: nav link "Reel in awesome applicants"', async ({ page }) => { await page.goto('/blog/hiring-process-guide/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in awesome applicants' || t.startsWith('Reel in awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_hiring_process_guide: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/hiring-process-guide/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Killin' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Killin')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_hiring_process_guide: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/hiring-process-guide/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Form + Best Practic' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Form + Best Practic')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_hiring_process_guide: nav link "View All Awesome Applicant Art"', async ({ page }) => { await page.goto('/blog/hiring-process-guide/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Awesome Applicant Articles' || t.startsWith('View All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_hiring_seasonal_employees', () => { test('blog_hiring_seasonal_employees: title matches GT', async ({ page }) => { await page.goto('/blog/hiring-seasonal-employees/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('7 hiring moves to land the best seasonal'); }); test('blog_hiring_seasonal_employees: h1 "7 Hiring Tactics to Land Your "', async ({ page }) => { await page.goto('/blog/hiring-seasonal-employees/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '7 Hiring Tactics to Land Your Best Seasonal Workers Yet' || t.startsWith('7 Hiring Tactics to Land Your Best Seasonal Workers Yet'))).toBeTruthy(); }); test('blog_hiring_seasonal_employees: h2 "I need help with..."', async ({ page }) => { await page.goto('/blog/hiring-seasonal-employees/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'I need help with...' || t.startsWith('I need help with...'))).toBeTruthy(); }); test('blog_hiring_seasonal_employees: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/hiring-seasonal-employees/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_hiring_seasonal_employees: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/hiring-seasonal-employees/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Pipeline Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Pipeline Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('blog_hiring_seasonal_employees: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/hiring-seasonal-employees/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_hiring_seasonal_employees: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/hiring-seasonal-employees/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_hiring_seasonal_employees: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/hiring-seasonal-employees/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Template + Best Pra' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Template + Best Pra')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_hiring_seasonal_employees: nav link "See All Standout Applicant Art"', async ({ page }) => { await page.goto('/blog/hiring-seasonal-employees/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See All Standout Applicant Articles' || t.startsWith('See All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_how_to_find_employees', () => { test('blog_how_to_find_employees: title matches GT', async ({ page }) => { await page.goto('/blog/how-to-find-employees/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('7 ways to find quality employees'); }); test('blog_how_to_find_employees: h1 "Hire Stronger Talent, Sooner: "', async ({ page }) => { await page.goto('/blog/how-to-find-employees/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Hire Stronger Talent, Sooner: 7 Ways to Lift Your Quality of Hire' || t.startsWith('Hire Stronger Talent, Sooner: 7 Ways to Lift Your Quality of Hire'))).toBeTruthy(); }); test('blog_how_to_find_employees: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/how-to-find-employees/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_how_to_find_employees: h2 "Attract Awesome Applicants"', async ({ page }) => { await page.goto('/blog/how-to-find-employees/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Awesome Applicants' || t.startsWith('Attract Awesome Applicants'))).toBeTruthy(); }); test('blog_how_to_find_employees: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/how-to-find-employees/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_how_to_find_employees: nav link "Attract awesome applicants"', async ({ page }) => { await page.goto('/blog/how-to-find-employees/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract awesome applicants' || t.startsWith('Attract awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_how_to_find_employees: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/how-to-find-employees/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_how_to_find_employees: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/how-to-find-employees/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Sample Form + Best Pr' || t.startsWith('ArticleWhat Is a Job Requisition? Free Sample Form + Best Pr')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_how_to_find_employees: nav link "See All Awesome Applicant Arti"', async ({ page }) => { await page.goto('/blog/how-to-find-employees/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See All Awesome Applicant Articles' || t.startsWith('See All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_how_to_fire_someone', () => { test('blog_how_to_fire_someone: title matches GT', async ({ page }) => { await page.goto('/blog/how-to-fire-someone/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how to let someone go the professional w'); }); test('blog_how_to_fire_someone: h1 "How to Terminate an Employee P"', async ({ page }) => { await page.goto('/blog/how-to-fire-someone/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Terminate an Employee Professionally: A Manager\'s Guide' || t.startsWith('How to Terminate an Employee Professionally: A Manager\'s Guide'))).toBeTruthy(); }); test('blog_how_to_fire_someone: h2 "Could you help me..."', async ({ page }) => { await page.goto('/blog/how-to-fire-someone/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Could you help me...' || t.startsWith('Could you help me...'))).toBeTruthy(); }); test('blog_how_to_fire_someone: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/how-to-fire-someone/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_how_to_fire_someone: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/how-to-fire-someone/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_how_to_fire_someone: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/how-to-fire-someone/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_how_to_fire_someone: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/how-to-fire-someone/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_how_to_fire_someone: nav link "ArticleWhat’s a Job Requisitio"', async ({ page }) => { await page.goto('/blog/how-to-fire-someone/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat’s a Job Requisition? Free Form + Best Practices ' || t.startsWith('ArticleWhat’s a Job Requisition? Free Form + Best Practices ')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_how_to_fire_someone: nav link "See All Standout Applicant Art"', async ({ page }) => { await page.goto('/blog/how-to-fire-someone/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See All Standout Applicant Articles' || t.startsWith('See All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_how_to_give_feedback', () => { test('blog_how_to_give_feedback: title matches GT', async ({ page }) => { await page.goto('/blog/how-to-give-feedback/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how to give feedback'); }); test('blog_how_to_give_feedback: h1 "Giving Feedback: 7 Habits Ever"', async ({ page }) => { await page.goto('/blog/how-to-give-feedback/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Giving Feedback: 7 Habits Every Great Manager Should Master' || t.startsWith('Giving Feedback: 7 Habits Every Great Manager Should Master'))).toBeTruthy(); }); test('blog_how_to_give_feedback: h2 "How can we assist..."', async ({ page }) => { await page.goto('/blog/how-to-give-feedback/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How can we assist...' || t.startsWith('How can we assist...'))).toBeTruthy(); }); test('blog_how_to_give_feedback: h2 "Pull in Stellar Applicants"', async ({ page }) => { await page.goto('/blog/how-to-give-feedback/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pull in Stellar Applicants' || t.startsWith('Pull in Stellar Applicants'))).toBeTruthy(); }); test('blog_how_to_give_feedback: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/how-to-give-feedback/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_how_to_give_feedback: nav link "Pull in stellar applicants"', async ({ page }) => { await page.goto('/blog/how-to-give-feedback/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pull in stellar applicants' || t.startsWith('Pull in stellar applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_how_to_give_feedback: nav link "FeatureHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/how-to-give-feedback/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FeatureHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('FeatureHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_how_to_give_feedback: nav link "FeatureWhat\'s a Job Requisitio"', async ({ page }) => { await page.goto('/blog/how-to-give-feedback/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FeatureWhat\'s a Job Requisition? Free Template + Best Practi' || t.startsWith('FeatureWhat\'s a Job Requisition? Free Template + Best Practi')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_how_to_give_feedback: nav link "Browse Every Awesome Applicant"', async ({ page }) => { await page.goto('/blog/how-to-give-feedback/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Browse Every Awesome Applicant Post' || t.startsWith('Browse Every Awesome Applicant Post')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_how_to_give_feedback_unsuccessful_candidates_will_appreciate_with_examples', () => { test('blog_how_to_give_feedback_unsuccessful_candidates_will_appreciate_with_examples: title matches GT', async ({ page }) => { await page.goto('/blog/how-to-give-feedback-unsuccessful-candidates-will-appreciate-with-examples/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('5 kind ways to tell someone they didn\'t '); }); test('blog_how_to_give_feedback_unsuccessful_candidates_will_appreciate_with_examples: h1 "How to Break the News to a Can"', async ({ page }) => { await page.goto('/blog/how-to-give-feedback-unsuccessful-candidates-will-appreciate-with-examples/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Break the News to a Candidate Kindly: 5 Sample Scripts for Recruiters' || t.startsWith('How to Break the News to a Candidate Kindly: 5 Sample Scripts for Recruiters'))).toBeTruthy(); }); test('blog_how_to_give_feedback_unsuccessful_candidates_will_appreciate_with_examples: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/how-to-give-feedback-unsuccessful-candidates-will-appreciate-with-examples/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_how_to_give_feedback_unsuccessful_candidates_will_appreciate_with_examples: h2 "Draw In Standout Applicants"', async ({ page }) => { await page.goto('/blog/how-to-give-feedback-unsuccessful-candidates-will-appreciate-with-examples/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Draw In Standout Applicants' || t.startsWith('Draw In Standout Applicants'))).toBeTruthy(); }); test('blog_how_to_give_feedback_unsuccessful_candidates_will_appreciate_with_examples: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/how-to-give-feedback-unsuccessful-candidates-will-appreciate-with-examples/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Pipeline Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Pipeline Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_how_to_give_feedback_unsuccessful_candidates_will_appreciate_with_examples: nav link "Draw in standout applicants"', async ({ page }) => { await page.goto('/blog/how-to-give-feedback-unsuccessful-candidates-will-appreciate-with-examples/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Draw in standout applicants' || t.startsWith('Draw in standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_how_to_give_feedback_unsuccessful_candidates_will_appreciate_with_examples: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/how-to-give-feedback-unsuccessful-candidates-will-appreciate-with-examples/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_how_to_give_feedback_unsuccessful_candidates_will_appreciate_with_examples: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/how-to-give-feedback-unsuccessful-candidates-will-appreciate-with-examples/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Form + Best Practices' || t.startsWith('ArticleWhat Is a Job Requisition? Free Form + Best Practices')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_how_to_give_feedback_unsuccessful_candidates_will_appreciate_with_examples: nav link "View All Standout Applicant Ar"', async ({ page }) => { await page.goto('/blog/how-to-give-feedback-unsuccessful-candidates-will-appreciate-with-examples/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Standout Applicant Articles' || t.startsWith('View All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_how_to_hire_fractional_executives', () => { test('blog_how_to_hire_fractional_executives: title matches GT', async ({ page }) => { await page.goto('/blog/how-to-hire-fractional-executives/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('5 steps to hire a fractional executive'); }); test('blog_how_to_hire_fractional_executives: h1 "What Is a Fractional Executive"', async ({ page }) => { await page.goto('/blog/how-to-hire-fractional-executives/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'What Is a Fractional Executive? A Guide to Hiring a Stellar Interim C-level' || t.startsWith('What Is a Fractional Executive? A Guide to Hiring a Stellar Interim C-level'))).toBeTruthy(); }); test('blog_how_to_hire_fractional_executives: h2 "Need a hand with..."', async ({ page }) => { await page.goto('/blog/how-to-hire-fractional-executives/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Need a hand with...' || t.startsWith('Need a hand with...'))).toBeTruthy(); }); test('blog_how_to_hire_fractional_executives: h2 "Attract Awesome Applicants"', async ({ page }) => { await page.goto('/blog/how-to-hire-fractional-executives/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Awesome Applicants' || t.startsWith('Attract Awesome Applicants'))).toBeTruthy(); }); test('blog_how_to_hire_fractional_executives: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/how-to-hire-fractional-executives/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Ruining Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Ruining Candidate Experience'))).toBeTruthy(); }); test('blog_how_to_hire_fractional_executives: nav link "Attract awesome applicants"', async ({ page }) => { await page.goto('/blog/how-to-hire-fractional-executives/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract awesome applicants' || t.startsWith('Attract awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_how_to_hire_fractional_executives: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/how-to-hire-fractional-executives/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Ruinin' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Ruinin')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_how_to_hire_fractional_executives: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/how-to-hire-fractional-executives/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Template + Best Pract' || t.startsWith('ArticleWhat Is a Job Requisition? Free Template + Best Pract')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_how_to_hire_fractional_executives: nav link "Browse All Awesome Applicant A"', async ({ page }) => { await page.goto('/blog/how-to-hire-fractional-executives/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Browse All Awesome Applicant Articles' || t.startsWith('Browse All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_how_to_identify_fake_candidates', () => { test('blog_how_to_identify_fake_candidates: title matches GT', async ({ page }) => { await page.goto('/blog/how-to-identify-fake-candidates/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('7 ways to spot fake job candidates'); }); test('blog_how_to_identify_fake_candidates: h1 "7 Ways to Catch Fake Candidate"', async ({ page }) => { await page.goto('/blog/how-to-identify-fake-candidates/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '7 Ways to Catch Fake Candidates (Without Spooking the Genuine Ones)' || t.startsWith('7 Ways to Catch Fake Candidates (Without Spooking the Genuine Ones)'))).toBeTruthy(); }); test('blog_how_to_identify_fake_candidates: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/how-to-identify-fake-candidates/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_how_to_identify_fake_candidates: h2 "Attract Awesome Applicants"', async ({ page }) => { await page.goto('/blog/how-to-identify-fake-candidates/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Awesome Applicants' || t.startsWith('Attract Awesome Applicants'))).toBeTruthy(); }); test('blog_how_to_identify_fake_candidates: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/how-to-identify-fake-candidates/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_how_to_identify_fake_candidates: nav link "Attract awesome applicants"', async ({ page }) => { await page.goto('/blog/how-to-identify-fake-candidates/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract awesome applicants' || t.startsWith('Attract awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_how_to_identify_fake_candidates: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/how-to-identify-fake-candidates/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_how_to_identify_fake_candidates: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/how-to-identify-fake-candidates/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Form + Best Practic' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Form + Best Practic')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_how_to_identify_fake_candidates: nav link "Browse All Awesome Applicant A"', async ({ page }) => { await page.goto('/blog/how-to-identify-fake-candidates/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Browse All Awesome Applicant Articles' || t.startsWith('Browse All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_how_to_screen_candidates_with_ai', () => { test('blog_how_to_screen_candidates_with_ai: title matches GT', async ({ page }) => { await page.goto('/blog/how-to-screen-candidates-with-ai/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('no more resume roulette'); }); test('blog_how_to_screen_candidates_with_ai: h1 "No More Resume Roulette: A Gui"', async ({ page }) => { await page.goto('/blog/how-to-screen-candidates-with-ai/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'No More Resume Roulette: A Guide to AI-Powered Candidate Screening' || t.startsWith('No More Resume Roulette: A Guide to AI-Powered Candidate Screening'))).toBeTruthy(); }); test('blog_how_to_screen_candidates_with_ai: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/how-to-screen-candidates-with-ai/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_how_to_screen_candidates_with_ai: h2 "Reel in Awesome Applicants"', async ({ page }) => { await page.goto('/blog/how-to-screen-candidates-with-ai/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in Awesome Applicants' || t.startsWith('Reel in Awesome Applicants'))).toBeTruthy(); }); test('blog_how_to_screen_candidates_with_ai: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/how-to-screen-candidates-with-ai/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Killing Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Killing Candidate Experience'))).toBeTruthy(); }); test('blog_how_to_screen_candidates_with_ai: nav link "Reel in awesome applicants"', async ({ page }) => { await page.goto('/blog/how-to-screen-candidates-with-ai/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in awesome applicants' || t.startsWith('Reel in awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_how_to_screen_candidates_with_ai: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/how-to-screen-candidates-with-ai/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Killin' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Killin')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_how_to_screen_candidates_with_ai: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/how-to-screen-candidates-with-ai/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Form + Best Practic' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Form + Best Practic')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_how_to_screen_candidates_with_ai: nav link "View All Awesome Applicant Art"', async ({ page }) => { await page.goto('/blog/how-to-screen-candidates-with-ai/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Awesome Applicant Articles' || t.startsWith('View All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_hr_buzzwords', () => { test('blog_hr_buzzwords: title matches GT', async ({ page }) => { await page.goto('/blog/hr-buzzwords/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('12 hr buzzwords that dominated the web i'); }); test('blog_hr_buzzwords: h1 "A Rundown of the Top 10 HR Buz"', async ({ page }) => { await page.goto('/blog/hr-buzzwords/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'A Rundown of the Top 10 HR Buzzwords of 2023' || t.startsWith('A Rundown of the Top 10 HR Buzzwords of 2023'))).toBeTruthy(); }); test('blog_hr_buzzwords: h2 "Need a hand with..."', async ({ page }) => { await page.goto('/blog/hr-buzzwords/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Need a hand with...' || t.startsWith('Need a hand with...'))).toBeTruthy(); }); test('blog_hr_buzzwords: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/hr-buzzwords/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_hr_buzzwords: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/hr-buzzwords/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('blog_hr_buzzwords: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/hr-buzzwords/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_hr_buzzwords: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/hr-buzzwords/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_hr_buzzwords: nav link "ArticleJob Requisitions Explai"', async ({ page }) => { await page.goto('/blog/hr-buzzwords/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleJob Requisitions Explained: Free Template + Best Prac' || t.startsWith('ArticleJob Requisitions Explained: Free Template + Best Prac')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_hr_buzzwords: nav link "Browse Every Attract-Talent Ar"', async ({ page }) => { await page.goto('/blog/hr-buzzwords/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Browse Every Attract-Talent Article' || t.startsWith('Browse Every Attract-Talent Article')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_hr_horror_stories_2023', () => { test('blog_hr_horror_stories_2023: title matches GT', async ({ page }) => { await page.goto('/blog/hr-horror-stories-2023/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('10 hr horror stories that will make you '); }); test('blog_hr_horror_stories_2023: h1 "Don\'t Turn Off the Lights: 10 "', async ({ page }) => { await page.goto('/blog/hr-horror-stories-2023/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Don\'t Turn Off the Lights: 10 Chilling HR Tales to Keep You Awake at Night' || t.startsWith('Don\'t Turn Off the Lights: 10 Chilling HR Tales to Keep You Awake at Night'))).toBeTruthy(); }); test('blog_hr_horror_stories_2023: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/hr-horror-stories-2023/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_hr_horror_stories_2023: h2 "Reel in Amazing Applicants"', async ({ page }) => { await page.goto('/blog/hr-horror-stories-2023/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in Amazing Applicants' || t.startsWith('Reel in Amazing Applicants'))).toBeTruthy(); }); test('blog_hr_horror_stories_2023: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/hr-horror-stories-2023/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Ruining Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Ruining Candidate Experience'))).toBeTruthy(); }); test('blog_hr_horror_stories_2023: nav link "Reel in amazing applicants"', async ({ page }) => { await page.goto('/blog/hr-horror-stories-2023/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in amazing applicants' || t.startsWith('Reel in amazing applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_hr_horror_stories_2023: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/hr-horror-stories-2023/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Ruinin' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Ruinin')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_hr_horror_stories_2023: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/hr-horror-stories-2023/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Template + Best Pract' || t.startsWith('ArticleWhat Is a Job Requisition? Free Template + Best Pract')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_hr_horror_stories_2023: nav link "View All Amazing Applicant Art"', async ({ page }) => { await page.goto('/blog/hr-horror-stories-2023/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Amazing Applicant Articles' || t.startsWith('View All Amazing Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_hr_horror_stories_2025', () => { test('blog_hr_horror_stories_2025: title matches GT', async ({ page }) => { await page.goto('/blog/hr-horror-stories-2025/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('hr after dark'); }); test('blog_hr_horror_stories_2025: h1 "HR\'s Most Haunted: Real Nightm"', async ({ page }) => { await page.goto('/blog/hr-horror-stories-2025/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'HR\'s Most Haunted: Real Nightmares from 2025' || t.startsWith('HR\'s Most Haunted: Real Nightmares from 2025'))).toBeTruthy(); }); test('blog_hr_horror_stories_2025: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/hr-horror-stories-2025/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_hr_horror_stories_2025: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/hr-horror-stories-2025/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_hr_horror_stories_2025: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/hr-horror-stories-2025/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('blog_hr_horror_stories_2025: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/hr-horror-stories-2025/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_hr_horror_stories_2025: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/hr-horror-stories-2025/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_hr_horror_stories_2025: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/hr-horror-stories-2025/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Template + Best Pract' || t.startsWith('ArticleWhat Is a Job Requisition? Free Template + Best Pract')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_hr_horror_stories_2025: nav link "View All Attract Applicants Ar"', async ({ page }) => { await page.goto('/blog/hr-horror-stories-2025/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Attract Applicants Articles' || t.startsWith('View All Attract Applicants Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_indeed_vs_linkedin', () => { test('blog_indeed_vs_linkedin: title matches GT', async ({ page }) => { await page.goto('/blog/indeed-vs-linkedin/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('jobward vs connectr'); }); test('blog_indeed_vs_linkedin: h1 "Jobward vs Connectr: How to Ch"', async ({ page }) => { await page.goto('/blog/indeed-vs-linkedin/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Jobward vs Connectr: How to Choose Where to Post Your Next Open Role' || t.startsWith('Jobward vs Connectr: How to Choose Where to Post Your Next Open Role'))).toBeTruthy(); }); test('blog_indeed_vs_linkedin: h2 "Need a hand with..."', async ({ page }) => { await page.goto('/blog/indeed-vs-linkedin/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Need a hand with...' || t.startsWith('Need a hand with...'))).toBeTruthy(); }); test('blog_indeed_vs_linkedin: h2 "Attract Awesome Applicants"', async ({ page }) => { await page.goto('/blog/indeed-vs-linkedin/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Awesome Applicants' || t.startsWith('Attract Awesome Applicants'))).toBeTruthy(); }); test('blog_indeed_vs_linkedin: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/indeed-vs-linkedin/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_indeed_vs_linkedin: nav link "Attract awesome applicants"', async ({ page }) => { await page.goto('/blog/indeed-vs-linkedin/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract awesome applicants' || t.startsWith('Attract awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_indeed_vs_linkedin: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/indeed-vs-linkedin/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_indeed_vs_linkedin: nav link "ArticleWhat\'s a Job Requisitio"', async ({ page }) => { await page.goto('/blog/indeed-vs-linkedin/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat\'s a Job Requisition? Sample Form + Best Practice' || t.startsWith('ArticleWhat\'s a Job Requisition? Sample Form + Best Practice')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_indeed_vs_linkedin: nav link "Read All Awesome Applicant Art"', async ({ page }) => { await page.goto('/blog/indeed-vs-linkedin/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Read All Awesome Applicant Articles' || t.startsWith('Read All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_job_analysis', () => { test('blog_job_analysis: title matches GT', async ({ page }) => { await page.goto('/blog/job-analysis/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('your next job analysis'); }); test('blog_job_analysis: h1 "Your Next Job Analysis Starts "', async ({ page }) => { await page.goto('/blog/job-analysis/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Your Next Job Analysis Starts Here: A 3-Step Guide for Modern Hiring Teams' || t.startsWith('Your Next Job Analysis Starts Here: A 3-Step Guide for Modern Hiring Teams'))).toBeTruthy(); }); test('blog_job_analysis: h2 "Can you show me..."', async ({ page }) => { await page.goto('/blog/job-analysis/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you show me...' || t.startsWith('Can you show me...'))).toBeTruthy(); }); test('blog_job_analysis: h2 "Draw in Amazing Applicants"', async ({ page }) => { await page.goto('/blog/job-analysis/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Draw in Amazing Applicants' || t.startsWith('Draw in Amazing Applicants'))).toBeTruthy(); }); test('blog_job_analysis: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/job-analysis/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('blog_job_analysis: nav link "Draw in amazing applicants"', async ({ page }) => { await page.goto('/blog/job-analysis/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Draw in amazing applicants' || t.startsWith('Draw in amazing applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_job_analysis: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/job-analysis/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_job_analysis: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/job-analysis/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Form + Best Practic' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Form + Best Practic')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_job_analysis: nav link "See All Amazing Applicant Arti"', async ({ page }) => { await page.goto('/blog/job-analysis/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See All Amazing Applicant Articles' || t.startsWith('See All Amazing Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_job_requisition', () => { test('blog_job_requisition: title matches GT', async ({ page }) => { await page.goto('/blog/job-requisition/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('what is a job requisition? form + best p'); }); test('blog_job_requisition: h1 "Job Requisitions Explained: A "', async ({ page }) => { await page.goto('/blog/job-requisition/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Job Requisitions Explained: A Sample Form and 2026 Best Practices' || t.startsWith('Job Requisitions Explained: A Sample Form and 2026 Best Practices'))).toBeTruthy(); }); test('blog_job_requisition: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/job-requisition/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_job_requisition: h2 "Draw in Awesome Applicants"', async ({ page }) => { await page.goto('/blog/job-requisition/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Draw in Awesome Applicants' || t.startsWith('Draw in Awesome Applicants'))).toBeTruthy(); }); test('blog_job_requisition: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/job-requisition/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_job_requisition: nav link "Draw in awesome applicants"', async ({ page }) => { await page.goto('/blog/job-requisition/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Draw in awesome applicants' || t.startsWith('Draw in awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_job_requisition: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/job-requisition/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_job_requisition: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/job-requisition/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Example Form + Best Practi' || t.startsWith('ArticleWhat Is a Job Requisition? Example Form + Best Practi')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_job_requisition: nav link "See All Awesome Applicant Arti"', async ({ page }) => { await page.goto('/blog/job-requisition/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See All Awesome Applicant Articles' || t.startsWith('See All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_linkedin_job_posting', () => { test('blog_linkedin_job_posting: title matches GT', async ({ page }) => { await page.goto('/blog/linkedin-job-posting/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('posting jobs on connectr'); }); test('blog_linkedin_job_posting: h1 "Connectr Job Posting: A Comple"', async ({ page }) => { await page.goto('/blog/linkedin-job-posting/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Connectr Job Posting: A Complete Guide for Hiring Teams' || t.startsWith('Connectr Job Posting: A Complete Guide for Hiring Teams'))).toBeTruthy(); }); test('blog_linkedin_job_posting: h2 "How can we help you?"', async ({ page }) => { await page.goto('/blog/linkedin-job-posting/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How can we help you?' || t.startsWith('How can we help you?'))).toBeTruthy(); }); test('blog_linkedin_job_posting: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/linkedin-job-posting/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_linkedin_job_posting: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/linkedin-job-posting/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('blog_linkedin_job_posting: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/linkedin-job-posting/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_linkedin_job_posting: nav link "FeatureHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/linkedin-job-posting/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FeatureHow to Fraud-Proof Your Hiring Without Wrecking the C' || t.startsWith('FeatureHow to Fraud-Proof Your Hiring Without Wrecking the C')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_linkedin_job_posting: nav link "FeatureWhat Is a Hiring Requis"', async ({ page }) => { await page.goto('/blog/linkedin-job-posting/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FeatureWhat Is a Hiring Requisition? Free Template + Top Tip' || t.startsWith('FeatureWhat Is a Hiring Requisition? Free Template + Top Tip')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_linkedin_job_posting: nav link "Browse All Great Applicant Art"', async ({ page }) => { await page.goto('/blog/linkedin-job-posting/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Browse All Great Applicant Articles' || t.startsWith('Browse All Great Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_mcdonalds_hiring_data_breach', () => { test('blog_mcdonalds_hiring_data_breach: title matches GT', async ({ page }) => { await page.goto('/blog/mcdonalds-hiring-data-breach/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('an ai hiring data breach'); }); test('blog_mcdonalds_hiring_data_breach: h1 "What We Can All Learn from Bur"', async ({ page }) => { await page.goto('/blog/mcdonalds-hiring-data-breach/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'What We Can All Learn from BurgerBarn’s AI Recruiting Nightmare' || t.startsWith('What We Can All Learn from BurgerBarn’s AI Recruiting Nightmare'))).toBeTruthy(); }); test('blog_mcdonalds_hiring_data_breach: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/mcdonalds-hiring-data-breach/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_mcdonalds_hiring_data_breach: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/mcdonalds-hiring-data-breach/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_mcdonalds_hiring_data_breach: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/mcdonalds-hiring-data-breach/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Pipeline Without Hurting Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Pipeline Without Hurting Candidate Experience'))).toBeTruthy(); }); test('blog_mcdonalds_hiring_data_breach: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/mcdonalds-hiring-data-breach/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_mcdonalds_hiring_data_breach: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/mcdonalds-hiring-data-breach/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Pipeline Without Hurti' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Pipeline Without Hurti')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_mcdonalds_hiring_data_breach: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/mcdonalds-hiring-data-breach/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Template + Best Pract' || t.startsWith('ArticleWhat Is a Job Requisition? Free Template + Best Pract')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_mcdonalds_hiring_data_breach: nav link "View All Standout Applicant Ar"', async ({ page }) => { await page.goto('/blog/mcdonalds-hiring-data-breach/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Standout Applicant Articles' || t.startsWith('View All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_mid_year_review', () => { test('blog_mid_year_review: title matches GT', async ({ page }) => { await page.goto('/blog/mid-year-review/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('mid'); }); test('blog_mid_year_review: h1 "How to Lead a Great Mid-year R"', async ({ page }) => { await page.goto('/blog/mid-year-review/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Lead a Great Mid-year Review: Templates and Best Practices' || t.startsWith('How to Lead a Great Mid-year Review: Templates and Best Practices'))).toBeTruthy(); }); test('blog_mid_year_review: h2 "How can we help you?"', async ({ page }) => { await page.goto('/blog/mid-year-review/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How can we help you?' || t.startsWith('How can we help you?'))).toBeTruthy(); }); test('blog_mid_year_review: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/mid-year-review/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_mid_year_review: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/mid-year-review/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('blog_mid_year_review: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/mid-year-review/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_mid_year_review: nav link "FeatureHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/mid-year-review/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FeatureHow to Fraud-Proof Your Hiring Without Wrecking the C' || t.startsWith('FeatureHow to Fraud-Proof Your Hiring Without Wrecking the C')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_mid_year_review: nav link "FeatureWhat Is a Hiring Requis"', async ({ page }) => { await page.goto('/blog/mid-year-review/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FeatureWhat Is a Hiring Requisition? Free Template + Top Tip' || t.startsWith('FeatureWhat Is a Hiring Requisition? Free Template + Top Tip')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_mid_year_review: nav link "Browse All Great Applicant Art"', async ({ page }) => { await page.goto('/blog/mid-year-review/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Browse All Great Applicant Articles' || t.startsWith('Browse All Great Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_neuroinclusive_workplace', () => { test('blog_neuroinclusive_workplace: title matches GT', async ({ page }) => { await page.goto('/blog/neuroinclusive-workplace/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('5 ways to build a neuroinclusive workpla'); }); test('blog_neuroinclusive_workplace: h1 "Wired Differently: 5 Ways to B"', async ({ page }) => { await page.goto('/blog/neuroinclusive-workplace/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Wired Differently: 5 Ways to Build a Neuroinclusive Workplace' || t.startsWith('Wired Differently: 5 Ways to Build a Neuroinclusive Workplace'))).toBeTruthy(); }); test('blog_neuroinclusive_workplace: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/neuroinclusive-workplace/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_neuroinclusive_workplace: h2 "Reel in Awesome Applicants"', async ({ page }) => { await page.goto('/blog/neuroinclusive-workplace/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in Awesome Applicants' || t.startsWith('Reel in Awesome Applicants'))).toBeTruthy(); }); test('blog_neuroinclusive_workplace: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/neuroinclusive-workplace/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('blog_neuroinclusive_workplace: nav link "Reel in awesome applicants"', async ({ page }) => { await page.goto('/blog/neuroinclusive-workplace/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in awesome applicants' || t.startsWith('Reel in awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_neuroinclusive_workplace: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/neuroinclusive-workplace/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_neuroinclusive_workplace: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/neuroinclusive-workplace/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Form + Best Practic' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Form + Best Practic')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_neuroinclusive_workplace: nav link "View All Awesome Applicant Art"', async ({ page }) => { await page.goto('/blog/neuroinclusive-workplace/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Awesome Applicant Articles' || t.startsWith('View All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_niche_job_boards', () => { test('blog_niche_job_boards: title matches GT', async ({ page }) => { await page.goto('/blog/niche-job-boards/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('the 18 top niche job boards for hiring s'); }); test('blog_niche_job_boards: h1 "The 18 Best Niche Job Boards f"', async ({ page }) => { await page.goto('/blog/niche-job-boards/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The 18 Best Niche Job Boards for Hiring Skilled Professionals' || t.startsWith('The 18 Best Niche Job Boards for Hiring Skilled Professionals'))).toBeTruthy(); }); test('blog_niche_job_boards: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/niche-job-boards/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_niche_job_boards: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/niche-job-boards/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_niche_job_boards: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/niche-job-boards/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_niche_job_boards: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/niche-job-boards/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_niche_job_boards: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/niche-job-boards/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_niche_job_boards: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/niche-job-boards/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Template + Best Pract' || t.startsWith('ArticleWhat Is a Job Requisition? Free Template + Best Pract')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_niche_job_boards: nav link "View All Standout Applicant Ar"', async ({ page }) => { await page.goto('/blog/niche-job-boards/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Standout Applicant Articles' || t.startsWith('View All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_onboarding_best_practices', () => { test('blog_onboarding_best_practices: title matches GT', async ({ page }) => { await page.goto('/blog/onboarding-best-practices/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('onboarding best practices'); }); test('blog_onboarding_best_practices: h1 "10 Onboarding Best Practices T"', async ({ page }) => { await page.goto('/blog/onboarding-best-practices/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '10 Onboarding Best Practices That Truly Deliver in 2026' || t.startsWith('10 Onboarding Best Practices That Truly Deliver in 2026'))).toBeTruthy(); }); test('blog_onboarding_best_practices: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/onboarding-best-practices/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_onboarding_best_practices: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/onboarding-best-practices/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_onboarding_best_practices: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/onboarding-best-practices/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('blog_onboarding_best_practices: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/onboarding-best-practices/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_onboarding_best_practices: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/onboarding-best-practices/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_onboarding_best_practices: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/onboarding-best-practices/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Template + Best Pract' || t.startsWith('ArticleWhat Is a Job Requisition? Free Template + Best Pract')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_onboarding_best_practices: nav link "View All Standout Applicant Ar"', async ({ page }) => { await page.goto('/blog/onboarding-best-practices/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Standout Applicant Articles' || t.startsWith('View All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_organizational_communication', () => { test('blog_organizational_communication: title matches GT', async ({ page }) => { await page.goto('/blog/organizational-communication/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('organizational communication'); }); test('blog_organizational_communication: h1 "Organizational Communication: "', async ({ page }) => { await page.goto('/blog/organizational-communication/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Organizational Communication: Get Our Free HR Comms Checklist and Help Everyone Feel Heard' || t.startsWith('Organizational Communication: Get Our Free HR Comms Checklist and Help Everyone Feel Heard'))).toBeTruthy(); }); test('blog_organizational_communication: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/organizational-communication/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_organizational_communication: h2 "Attract Awesome Applicants"', async ({ page }) => { await page.goto('/blog/organizational-communication/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Awesome Applicants' || t.startsWith('Attract Awesome Applicants'))).toBeTruthy(); }); test('blog_organizational_communication: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/organizational-communication/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_organizational_communication: nav link "Attract awesome applicants"', async ({ page }) => { await page.goto('/blog/organizational-communication/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract awesome applicants' || t.startsWith('Attract awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_organizational_communication: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/organizational-communication/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_organizational_communication: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/organizational-communication/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Form + Best Practic' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Form + Best Practic')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_organizational_communication: nav link "View All Awesome Applicant Art"', async ({ page }) => { await page.goto('/blog/organizational-communication/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Awesome Applicant Articles' || t.startsWith('View All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_performance_management_system', () => { test('blog_performance_management_system: title matches GT', async ({ page }) => { await page.goto('/blog/performance-management-system/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('what is a performance management system?'); }); test('blog_performance_management_system: h1 "What Is a Performance Manageme"', async ({ page }) => { await page.goto('/blog/performance-management-system/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'What Is a Performance Management System? Key Strategies and Examples' || t.startsWith('What Is a Performance Management System? Key Strategies and Examples'))).toBeTruthy(); }); test('blog_performance_management_system: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/performance-management-system/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_performance_management_system: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/performance-management-system/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_performance_management_system: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/performance-management-system/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Without Ruining the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Without Ruining the Candidate Experience'))).toBeTruthy(); }); test('blog_performance_management_system: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/performance-management-system/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_performance_management_system: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/performance-management-system/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Without Ruining the Ca' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Without Ruining the Ca')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_performance_management_system: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/performance-management-system/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Form + Best Practices' || t.startsWith('ArticleWhat Is a Job Requisition? Free Form + Best Practices')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_performance_management_system: nav link "View All Standout Applicant Ar"', async ({ page }) => { await page.goto('/blog/performance-management-system/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Standout Applicant Articles' || t.startsWith('View All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_post_a_job_on_google', () => { test('blog_post_a_job_on_google: title matches GT', async ({ page }) => { await page.goto('/blog/post-a-job-on-google/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how to list a role on search'); }); test('blog_post_a_job_on_google: h1 "Need to Post a Job on Findly? "', async ({ page }) => { await page.goto('/blog/post-a-job-on-google/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Need to Post a Job on Findly? A Step-by-Step Guide for Employers' || t.startsWith('Need to Post a Job on Findly? A Step-by-Step Guide for Employers'))).toBeTruthy(); }); test('blog_post_a_job_on_google: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/post-a-job-on-google/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_post_a_job_on_google: h2 "Reel in Awesome Applicants"', async ({ page }) => { await page.goto('/blog/post-a-job-on-google/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in Awesome Applicants' || t.startsWith('Reel in Awesome Applicants'))).toBeTruthy(); }); test('blog_post_a_job_on_google: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/post-a-job-on-google/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Pipeline Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Pipeline Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('blog_post_a_job_on_google: nav link "Reel in awesome applicants"', async ({ page }) => { await page.goto('/blog/post-a-job-on-google/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in awesome applicants' || t.startsWith('Reel in awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_post_a_job_on_google: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/post-a-job-on-google/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_post_a_job_on_google: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/post-a-job-on-google/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Sample Form + Best Pr' || t.startsWith('ArticleWhat Is a Job Requisition? Free Sample Form + Best Pr')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_post_a_job_on_google: nav link "View All Awesome Applicant Art"', async ({ page }) => { await page.goto('/blog/post-a-job-on-google/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Awesome Applicant Articles' || t.startsWith('View All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_post_and_pray_vs_precision_hiring', () => { test('blog_post_and_pray_vs_precision_hiring: title matches GT', async ({ page }) => { await page.goto('/blog/post-and-pray-vs-precision-hiring/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('beyond post‑and‑pray'); }); test('blog_post_and_pray_vs_precision_hiring: h1 "So long, post‑and‑pray: why pr"', async ({ page }) => { await page.goto('/blog/post-and-pray-vs-precision-hiring/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'So long, post‑and‑pray: why precision hiring wins in 2026' || t.startsWith('So long, post‑and‑pray: why precision hiring wins in 2026'))).toBeTruthy(); }); test('blog_post_and_pray_vs_precision_hiring: h2 "Looking for help?"', async ({ page }) => { await page.goto('/blog/post-and-pray-vs-precision-hiring/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Looking for help?' || t.startsWith('Looking for help?'))).toBeTruthy(); }); test('blog_post_and_pray_vs_precision_hiring: h2 "Draw In Amazing Applicants"', async ({ page }) => { await page.goto('/blog/post-and-pray-vs-precision-hiring/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Draw In Amazing Applicants' || t.startsWith('Draw In Amazing Applicants'))).toBeTruthy(); }); test('blog_post_and_pray_vs_precision_hiring: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/post-and-pray-vs-precision-hiring/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_post_and_pray_vs_precision_hiring: nav link "Draw in amazing applicants"', async ({ page }) => { await page.goto('/blog/post-and-pray-vs-precision-hiring/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Draw in amazing applicants' || t.startsWith('Draw in amazing applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_post_and_pray_vs_precision_hiring: nav link "FeatureHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/post-and-pray-vs-precision-hiring/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FeatureHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('FeatureHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_post_and_pray_vs_precision_hiring: nav link "FeatureWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/post-and-pray-vs-precision-hiring/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FeatureWhat Is a Job Requisition? Sample Form + Smart Practi' || t.startsWith('FeatureWhat Is a Job Requisition? Sample Form + Smart Practi')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_post_and_pray_vs_precision_hiring: nav link "Browse All Great Applicant Art"', async ({ page }) => { await page.goto('/blog/post-and-pray-vs-precision-hiring/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Browse All Great Applicant Articles' || t.startsWith('Browse All Great Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_preboarding_checklist', () => { test('blog_preboarding_checklist: title matches GT', async ({ page }) => { await page.goto('/blog/preboarding-checklist/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('preboarding checklist'); }); test('blog_preboarding_checklist: h1 "Turn Offer Acceptances into Co"', async ({ page }) => { await page.goto('/blog/preboarding-checklist/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Turn Offer Acceptances into Confident Day-One Starts' || t.startsWith('Turn Offer Acceptances into Confident Day-One Starts'))).toBeTruthy(); }); test('blog_preboarding_checklist: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/preboarding-checklist/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_preboarding_checklist: h2 "Reel in Awesome Applicants"', async ({ page }) => { await page.goto('/blog/preboarding-checklist/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in Awesome Applicants' || t.startsWith('Reel in Awesome Applicants'))).toBeTruthy(); }); test('blog_preboarding_checklist: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/preboarding-checklist/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Pipeline Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Pipeline Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('blog_preboarding_checklist: nav link "Reel in awesome applicants"', async ({ page }) => { await page.goto('/blog/preboarding-checklist/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in awesome applicants' || t.startsWith('Reel in awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_preboarding_checklist: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/preboarding-checklist/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_preboarding_checklist: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/preboarding-checklist/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Sample Form + Best Pr' || t.startsWith('ArticleWhat Is a Job Requisition? Free Sample Form + Best Pr')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_preboarding_checklist: nav link "View All Awesome Applicant Art"', async ({ page }) => { await page.goto('/blog/preboarding-checklist/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Awesome Applicant Articles' || t.startsWith('View All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_put_gdpr_compliance_on_auto_pilot_with_the_talvio_compliance_kit', () => { test('blog_put_gdpr_compliance_on_auto_pilot_with_the_talvio_compliance_kit: title matches GT', async ({ page }) => { await page.goto('/blog/put-gdpr-compliance-on-auto-pilot-with-the-talvio-compliance-kit/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('set gdpr compliance to auto'); }); test('blog_put_gdpr_compliance_on_auto_pilot_with_the_talvio_compliance_kit: h1 "Put GDPR Compliance on Auto-Pi"', async ({ page }) => { await page.goto('/blog/put-gdpr-compliance-on-auto-pilot-with-the-talvio-compliance-kit/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Put GDPR Compliance on Auto-Pilot with the Talvio Compliance Kit' || t.startsWith('Put GDPR Compliance on Auto-Pilot with the Talvio Compliance Kit'))).toBeTruthy(); }); test('blog_put_gdpr_compliance_on_auto_pilot_with_the_talvio_compliance_kit: h2 "Show me how to..."', async ({ page }) => { await page.goto('/blog/put-gdpr-compliance-on-auto-pilot-with-the-talvio-compliance-kit/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Show me how to...' || t.startsWith('Show me how to...'))).toBeTruthy(); }); test('blog_put_gdpr_compliance_on_auto_pilot_with_the_talvio_compliance_kit: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/put-gdpr-compliance-on-auto-pilot-with-the-talvio-compliance-kit/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_put_gdpr_compliance_on_auto_pilot_with_the_talvio_compliance_kit: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/put-gdpr-compliance-on-auto-pilot-with-the-talvio-compliance-kit/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking the Candidate Journey' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking the Candidate Journey'))).toBeTruthy(); }); test('blog_put_gdpr_compliance_on_auto_pilot_with_the_talvio_compliance_kit: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/put-gdpr-compliance-on-auto-pilot-with-the-talvio-compliance-kit/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_put_gdpr_compliance_on_auto_pilot_with_the_talvio_compliance_kit: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/put-gdpr-compliance-on-auto-pilot-with-the-talvio-compliance-kit/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_put_gdpr_compliance_on_auto_pilot_with_the_talvio_compliance_kit: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/put-gdpr-compliance-on-auto-pilot-with-the-talvio-compliance-kit/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Template + Best Pract' || t.startsWith('ArticleWhat Is a Job Requisition? Free Template + Best Pract')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_put_gdpr_compliance_on_auto_pilot_with_the_talvio_compliance_kit: nav link "See Every Standout Applicant A"', async ({ page }) => { await page.goto('/blog/put-gdpr-compliance-on-auto-pilot-with-the-talvio-compliance-kit/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See Every Standout Applicant Article' || t.startsWith('See Every Standout Applicant Article')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_ready_to_use_employee_check_in_questions', () => { test('blog_ready_to_use_employee_check_in_questions: title matches GT', async ({ page }) => { await page.goto('/blog/ready-to-use-employee-check-in-questions/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('employee check'); }); test('blog_ready_to_use_employee_check_in_questions: h1 "25+ Ready-to-Use Employee Chec"', async ({ page }) => { await page.goto('/blog/ready-to-use-employee-check-in-questions/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '25+ Ready-to-Use Employee Check-In Questions' || t.startsWith('25+ Ready-to-Use Employee Check-In Questions'))).toBeTruthy(); }); test('blog_ready_to_use_employee_check_in_questions: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/ready-to-use-employee-check-in-questions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_ready_to_use_employee_check_in_questions: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/ready-to-use-employee-check-in-questions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_ready_to_use_employee_check_in_questions: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/ready-to-use-employee-check-in-questions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Ruining Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Ruining Candidate Experience'))).toBeTruthy(); }); test('blog_ready_to_use_employee_check_in_questions: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/ready-to-use-employee-check-in-questions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_ready_to_use_employee_check_in_questions: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/ready-to-use-employee-check-in-questions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Ruinin' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Ruinin')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_ready_to_use_employee_check_in_questions: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/ready-to-use-employee-check-in-questions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Template + Best Pract' || t.startsWith('ArticleWhat Is a Job Requisition? Free Template + Best Pract')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_ready_to_use_employee_check_in_questions: nav link "Browse All Awesome Applicant A"', async ({ page }) => { await page.goto('/blog/ready-to-use-employee-check-in-questions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Browse All Awesome Applicant Articles' || t.startsWith('Browse All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_recruiting_via_text_message_6_ways_sms_can_help_you_hire_better', () => { test('blog_recruiting_via_text_message_6_ways_sms_can_help_you_hire_better: title matches GT', async ({ page }) => { await page.goto('/blog/recruiting-via-text-message-6-ways-sms-can-help-you-hire-better/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('recruiting via text message'); }); test('blog_recruiting_via_text_message_6_ways_sms_can_help_you_hire_better: h1 "Texting Candidates: 6 Ways SMS"', async ({ page }) => { await page.goto('/blog/recruiting-via-text-message-6-ways-sms-can-help-you-hire-better/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Texting Candidates: 6 Ways SMS Can Help You Hire Faster Today' || t.startsWith('Texting Candidates: 6 Ways SMS Can Help You Hire Faster Today'))).toBeTruthy(); }); test('blog_recruiting_via_text_message_6_ways_sms_can_help_you_hire_better: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/recruiting-via-text-message-6-ways-sms-can-help-you-hire-better/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_recruiting_via_text_message_6_ways_sms_can_help_you_hire_better: h2 "Reel in Awesome Applicants"', async ({ page }) => { await page.goto('/blog/recruiting-via-text-message-6-ways-sms-can-help-you-hire-better/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in Awesome Applicants' || t.startsWith('Reel in Awesome Applicants'))).toBeTruthy(); }); test('blog_recruiting_via_text_message_6_ways_sms_can_help_you_hire_better: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/recruiting-via-text-message-6-ways-sms-can-help-you-hire-better/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_recruiting_via_text_message_6_ways_sms_can_help_you_hire_better: nav link "Reel in awesome applicants"', async ({ page }) => { await page.goto('/blog/recruiting-via-text-message-6-ways-sms-can-help-you-hire-better/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in awesome applicants' || t.startsWith('Reel in awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_recruiting_via_text_message_6_ways_sms_can_help_you_hire_better: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/recruiting-via-text-message-6-ways-sms-can-help-you-hire-better/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_recruiting_via_text_message_6_ways_sms_can_help_you_hire_better: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/recruiting-via-text-message-6-ways-sms-can-help-you-hire-better/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Form + Best Practic' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Form + Best Practic')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_recruiting_via_text_message_6_ways_sms_can_help_you_hire_better: nav link "View All Awesome Applicant Art"', async ({ page }) => { await page.goto('/blog/recruiting-via-text-message-6-ways-sms-can-help-you-hire-better/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Awesome Applicant Articles' || t.startsWith('View All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_recruiting_with_linkedin', () => { test('blog_recruiting_with_linkedin: title matches GT', async ({ page }) => { await page.goto('/blog/recruiting-with-linkedin/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('recruiting with connectr'); }); test('blog_recruiting_with_linkedin: h1 "Pro Network Recruiting in 2026"', async ({ page }) => { await page.goto('/blog/recruiting-with-linkedin/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pro Network Recruiting in 2026: 12 Tactics That Actually Work' || t.startsWith('Pro Network Recruiting in 2026: 12 Tactics That Actually Work'))).toBeTruthy(); }); test('blog_recruiting_with_linkedin: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/recruiting-with-linkedin/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_recruiting_with_linkedin: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/recruiting-with-linkedin/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_recruiting_with_linkedin: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/recruiting-with-linkedin/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Pipeline Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Pipeline Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_recruiting_with_linkedin: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/recruiting-with-linkedin/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_recruiting_with_linkedin: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/recruiting-with-linkedin/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_recruiting_with_linkedin: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/recruiting-with-linkedin/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Form + Best Practic' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Form + Best Practic')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_recruiting_with_linkedin: nav link "View All Standout Applicant Ar"', async ({ page }) => { await page.goto('/blog/recruiting-with-linkedin/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Standout Applicant Articles' || t.startsWith('View All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_recruitment_budget', () => { test('blog_recruitment_budget: title matches GT', async ({ page }) => { await page.goto('/blog/recruitment-budget/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('11 ways to get more out of your recruitm'); }); test('blog_recruitment_budget: h1 "11 Ways to Get More Out of You"', async ({ page }) => { await page.goto('/blog/recruitment-budget/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '11 Ways to Get More Out of Your Recruitment Budget in 2026' || t.startsWith('11 Ways to Get More Out of Your Recruitment Budget in 2026'))).toBeTruthy(); }); test('blog_recruitment_budget: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/recruitment-budget/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_recruitment_budget: h2 "Reel in Awesome Applicants"', async ({ page }) => { await page.goto('/blog/recruitment-budget/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in Awesome Applicants' || t.startsWith('Reel in Awesome Applicants'))).toBeTruthy(); }); test('blog_recruitment_budget: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/recruitment-budget/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_recruitment_budget: nav link "Reel in awesome applicants"', async ({ page }) => { await page.goto('/blog/recruitment-budget/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in awesome applicants' || t.startsWith('Reel in awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_recruitment_budget: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/recruitment-budget/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_recruitment_budget: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/recruitment-budget/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Form + Best Practic' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Form + Best Practic')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_recruitment_budget: nav link "View All Awesome Applicant Art"', async ({ page }) => { await page.goto('/blog/recruitment-budget/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Awesome Applicant Articles' || t.startsWith('View All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_recruitment_compliance', () => { test('blog_recruitment_compliance: title matches GT', async ({ page }) => { await page.goto('/blog/recruitment-compliance/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('recruitment compliance basics for scalin'); }); test('blog_recruitment_compliance: h1 "Ready for Recruitment Complian"', async ({ page }) => { await page.goto('/blog/recruitment-compliance/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ready for Recruitment Compliance? The Can’t-Miss Quick Primer for Scaling Companies' || t.startsWith('Ready for Recruitment Compliance? The Can’t-Miss Quick Primer for Scaling Companies'))).toBeTruthy(); }); test('blog_recruitment_compliance: h2 "Need a hand with..."', async ({ page }) => { await page.goto('/blog/recruitment-compliance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Need a hand with...' || t.startsWith('Need a hand with...'))).toBeTruthy(); }); test('blog_recruitment_compliance: h2 "Reel in Awesome Applicants"', async ({ page }) => { await page.goto('/blog/recruitment-compliance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in Awesome Applicants' || t.startsWith('Reel in Awesome Applicants'))).toBeTruthy(); }); test('blog_recruitment_compliance: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/recruitment-compliance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Pipeline Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Pipeline Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('blog_recruitment_compliance: nav link "Reel in awesome applicants"', async ({ page }) => { await page.goto('/blog/recruitment-compliance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in awesome applicants' || t.startsWith('Reel in awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_recruitment_compliance: nav link "FeatureHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/recruitment-compliance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FeatureHow to Fraud-Proof Your Hiring Pipeline Without Wreck' || t.startsWith('FeatureHow to Fraud-Proof Your Hiring Pipeline Without Wreck')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_recruitment_compliance: nav link "FeatureWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/recruitment-compliance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FeatureWhat Is a Job Requisition? Free Sample Form + Best Pr' || t.startsWith('FeatureWhat Is a Job Requisition? Free Sample Form + Best Pr')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_recruitment_compliance: nav link "Browse All Awesome Applicant A"', async ({ page }) => { await page.goto('/blog/recruitment-compliance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Browse All Awesome Applicant Articles' || t.startsWith('Browse All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_recruitment_funnel', () => { test('blog_recruitment_funnel: title matches GT', async ({ page }) => { await page.goto('/blog/recruitment-funnel/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('create your recruitment funnel in 7 simp'); }); test('blog_recruitment_funnel: h1 "Build Your Recruitment Funnel "', async ({ page }) => { await page.goto('/blog/recruitment-funnel/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Build Your Recruitment Funnel in 7 Simple Steps' || t.startsWith('Build Your Recruitment Funnel in 7 Simple Steps'))).toBeTruthy(); }); test('blog_recruitment_funnel: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/recruitment-funnel/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_recruitment_funnel: h2 "Attract Awesome Applicants"', async ({ page }) => { await page.goto('/blog/recruitment-funnel/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Awesome Applicants' || t.startsWith('Attract Awesome Applicants'))).toBeTruthy(); }); test('blog_recruitment_funnel: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/recruitment-funnel/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_recruitment_funnel: nav link "Attract awesome applicants"', async ({ page }) => { await page.goto('/blog/recruitment-funnel/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract awesome applicants' || t.startsWith('Attract awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_recruitment_funnel: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/recruitment-funnel/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_recruitment_funnel: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/recruitment-funnel/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Form + Best Practic' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Form + Best Practic')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_recruitment_funnel: nav link "See All Awesome Applicant Arti"', async ({ page }) => { await page.goto('/blog/recruitment-funnel/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See All Awesome Applicant Articles' || t.startsWith('See All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_recruitment_plan', () => { test('blog_recruitment_plan: title matches GT', async ({ page }) => { await page.goto('/blog/recruitment-plan/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('5 steps to a ready'); }); test('blog_recruitment_plan: h1 "Build a Ready-for-Anything Rec"', async ({ page }) => { await page.goto('/blog/recruitment-plan/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Build a Ready-for-Anything Recruitment Plan in 5 Simple Steps' || t.startsWith('Build a Ready-for-Anything Recruitment Plan in 5 Simple Steps'))).toBeTruthy(); }); test('blog_recruitment_plan: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/recruitment-plan/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_recruitment_plan: h2 "Draw In Standout Applicants"', async ({ page }) => { await page.goto('/blog/recruitment-plan/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Draw In Standout Applicants' || t.startsWith('Draw In Standout Applicants'))).toBeTruthy(); }); test('blog_recruitment_plan: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/recruitment-plan/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_recruitment_plan: nav link "Draw in standout applicants"', async ({ page }) => { await page.goto('/blog/recruitment-plan/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Draw in standout applicants' || t.startsWith('Draw in standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_recruitment_plan: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/recruitment-plan/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_recruitment_plan: nav link "ArticleWhat\'s a Job Requisitio"', async ({ page }) => { await page.goto('/blog/recruitment-plan/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat\'s a Job Requisition? Sample Form + Best Practice' || t.startsWith('ArticleWhat\'s a Job Requisition? Sample Form + Best Practice')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_recruitment_plan: nav link "See All Standout Applicant Art"', async ({ page }) => { await page.goto('/blog/recruitment-plan/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See All Standout Applicant Articles' || t.startsWith('See All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_remote_recruitment_a_to_z_guide', () => { test('blog_remote_recruitment_a_to_z_guide: title matches GT', async ({ page }) => { await page.goto('/blog/remote-recruitment-a-to-z-guide/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('remote recruitment'); }); test('blog_remote_recruitment_a_to_z_guide: h1 "Remote Recruitment: The A to Z"', async ({ page }) => { await page.goto('/blog/remote-recruitment-a-to-z-guide/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Remote Recruitment: The A to Z Guide to Remote Hiring Success' || t.startsWith('Remote Recruitment: The A to Z Guide to Remote Hiring Success'))).toBeTruthy(); }); test('blog_remote_recruitment_a_to_z_guide: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/remote-recruitment-a-to-z-guide/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_remote_recruitment_a_to_z_guide: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/remote-recruitment-a-to-z-guide/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_remote_recruitment_a_to_z_guide: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/remote-recruitment-a-to-z-guide/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_remote_recruitment_a_to_z_guide: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/remote-recruitment-a-to-z-guide/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_remote_recruitment_a_to_z_guide: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/remote-recruitment-a-to-z-guide/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_remote_recruitment_a_to_z_guide: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/remote-recruitment-a-to-z-guide/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Template + Best Pract' || t.startsWith('ArticleWhat Is a Job Requisition? Free Template + Best Pract')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_remote_recruitment_a_to_z_guide: nav link "See All Standout Applicant Art"', async ({ page }) => { await page.goto('/blog/remote-recruitment-a-to-z-guide/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See All Standout Applicant Articles' || t.startsWith('See All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_should_you_use_ai_interviews', () => { test('blog_should_you_use_ai_interviews: title matches GT', async ({ page }) => { await page.goto('/blog/should-you-use-ai-interviews/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('candidates reject ai interviews'); }); test('blog_should_you_use_ai_interviews: h1 "An Honest Look at AI Video Int"', async ({ page }) => { await page.goto('/blog/should-you-use-ai-interviews/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'An Honest Look at AI Video Interviews (and Why Candidates Dodge Them)' || t.startsWith('An Honest Look at AI Video Interviews (and Why Candidates Dodge Them)'))).toBeTruthy(); }); test('blog_should_you_use_ai_interviews: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/should-you-use-ai-interviews/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_should_you_use_ai_interviews: h2 "Reel in Awesome Applicants"', async ({ page }) => { await page.goto('/blog/should-you-use-ai-interviews/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in Awesome Applicants' || t.startsWith('Reel in Awesome Applicants'))).toBeTruthy(); }); test('blog_should_you_use_ai_interviews: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/should-you-use-ai-interviews/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('blog_should_you_use_ai_interviews: nav link "Reel in awesome applicants"', async ({ page }) => { await page.goto('/blog/should-you-use-ai-interviews/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in awesome applicants' || t.startsWith('Reel in awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_should_you_use_ai_interviews: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/should-you-use-ai-interviews/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_should_you_use_ai_interviews: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/should-you-use-ai-interviews/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Form + Best Practic' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Form + Best Practic')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_should_you_use_ai_interviews: nav link "View All Awesome Applicant Art"', async ({ page }) => { await page.goto('/blog/should-you-use-ai-interviews/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Awesome Applicant Articles' || t.startsWith('View All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_stay_interview_questions', () => { test('blog_stay_interview_questions: title matches GT', async ({ page }) => { await page.goto('/blog/stay-interview-questions/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('15 smart questions that make a stay inte'); }); test('blog_stay_interview_questions: h1 "15 Smart Questions for a Truly"', async ({ page }) => { await page.goto('/blog/stay-interview-questions/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '15 Smart Questions for a Truly Meaningful Stay Interview' || t.startsWith('15 Smart Questions for a Truly Meaningful Stay Interview'))).toBeTruthy(); }); test('blog_stay_interview_questions: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/stay-interview-questions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_stay_interview_questions: h2 "Draw In Standout Talent"', async ({ page }) => { await page.goto('/blog/stay-interview-questions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Draw In Standout Talent' || t.startsWith('Draw In Standout Talent'))).toBeTruthy(); }); test('blog_stay_interview_questions: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/stay-interview-questions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Pipeline Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Pipeline Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_stay_interview_questions: nav link "Draw in standout talent"', async ({ page }) => { await page.goto('/blog/stay-interview-questions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Draw in standout talent' || t.startsWith('Draw in standout talent')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_stay_interview_questions: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/stay-interview-questions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_stay_interview_questions: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/stay-interview-questions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Form + Best Practic' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Form + Best Practic')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_stay_interview_questions: nav link "Browse All Standout Talent Art"', async ({ page }) => { await page.goto('/blog/stay-interview-questions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Browse All Standout Talent Articles' || t.startsWith('Browse All Standout Talent Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_structured_interview_process', () => { test('blog_structured_interview_process: title matches GT', async ({ page }) => { await page.goto('/blog/structured-interview-process/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('5 steps to a candidate'); }); test('blog_structured_interview_process: h1 "What Is a Structured Interview"', async ({ page }) => { await page.goto('/blog/structured-interview-process/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'What Is a Structured Interview? Your Complete Guide to Keeping It Inclusive & Candidate-friendly' || t.startsWith('What Is a Structured Interview? Your Complete Guide to Keeping It Inclusive & Candidate-friendly'))).toBeTruthy(); }); test('blog_structured_interview_process: h2 "Need a hand with..."', async ({ page }) => { await page.goto('/blog/structured-interview-process/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Need a hand with...' || t.startsWith('Need a hand with...'))).toBeTruthy(); }); test('blog_structured_interview_process: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/structured-interview-process/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_structured_interview_process: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/structured-interview-process/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_structured_interview_process: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/structured-interview-process/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_structured_interview_process: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/structured-interview-process/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_structured_interview_process: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/structured-interview-process/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Form + Best Practic' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Form + Best Practic')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_structured_interview_process: nav link "See All Standout Applicant Art"', async ({ page }) => { await page.goto('/blog/structured-interview-process/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See All Standout Applicant Articles' || t.startsWith('See All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_talent_acquisition', () => { test('blog_talent_acquisition: title matches GT', async ({ page }) => { await page.goto('/blog/talent-acquisition/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('talent acquisition'); }); test('blog_talent_acquisition: h1 "What Is Talent Acquisition? A "', async ({ page }) => { await page.goto('/blog/talent-acquisition/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'What Is Talent Acquisition? A No-Ghosting Guide for Scaling Teams' || t.startsWith('What Is Talent Acquisition? A No-Ghosting Guide for Scaling Teams'))).toBeTruthy(); }); test('blog_talent_acquisition: h2 "Need a hand with..."', async ({ page }) => { await page.goto('/blog/talent-acquisition/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Need a hand with...' || t.startsWith('Need a hand with...'))).toBeTruthy(); }); test('blog_talent_acquisition: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/talent-acquisition/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_talent_acquisition: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/talent-acquisition/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('blog_talent_acquisition: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/talent-acquisition/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_talent_acquisition: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/talent-acquisition/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_talent_acquisition: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/talent-acquisition/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Template + Best Pract' || t.startsWith('ArticleWhat Is a Job Requisition? Free Template + Best Pract')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_talent_acquisition: nav link "See All Standout Applicant Art"', async ({ page }) => { await page.goto('/blog/talent-acquisition/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See All Standout Applicant Articles' || t.startsWith('See All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_the_all_in_one_guide_to_your_best_interview_process_yet', () => { test('blog_the_all_in_one_guide_to_your_best_interview_process_yet: title matches GT', async ({ page }) => { await page.goto('/blog/the-all-in-one-guide-to-your-best-interview-process-yet/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('the complete guide to a sharper intervie'); }); test('blog_the_all_in_one_guide_to_your_best_interview_process_yet: h1 "The Complete Guide to Your Bes"', async ({ page }) => { await page.goto('/blog/the-all-in-one-guide-to-your-best-interview-process-yet/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Complete Guide to Your Best Interview Process Yet' || t.startsWith('The Complete Guide to Your Best Interview Process Yet'))).toBeTruthy(); }); test('blog_the_all_in_one_guide_to_your_best_interview_process_yet: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/the-all-in-one-guide-to-your-best-interview-process-yet/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_the_all_in_one_guide_to_your_best_interview_process_yet: h2 "Reel in Awesome Applicants"', async ({ page }) => { await page.goto('/blog/the-all-in-one-guide-to-your-best-interview-process-yet/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in Awesome Applicants' || t.startsWith('Reel in Awesome Applicants'))).toBeTruthy(); }); test('blog_the_all_in_one_guide_to_your_best_interview_process_yet: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/the-all-in-one-guide-to-your-best-interview-process-yet/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('blog_the_all_in_one_guide_to_your_best_interview_process_yet: nav link "Reel in awesome applicants"', async ({ page }) => { await page.goto('/blog/the-all-in-one-guide-to-your-best-interview-process-yet/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in awesome applicants' || t.startsWith('Reel in awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_the_all_in_one_guide_to_your_best_interview_process_yet: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/the-all-in-one-guide-to-your-best-interview-process-yet/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_the_all_in_one_guide_to_your_best_interview_process_yet: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/the-all-in-one-guide-to-your-best-interview-process-yet/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Form + Best Practic' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Form + Best Practic')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_the_all_in_one_guide_to_your_best_interview_process_yet: nav link "View All Awesome Applicant Art"', async ({ page }) => { await page.goto('/blog/the-all-in-one-guide-to-your-best-interview-process-yet/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Awesome Applicant Articles' || t.startsWith('View All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_the_end_of_burnout_culture', () => { test('blog_the_end_of_burnout_culture: title matches GT', async ({ page }) => { await page.goto('/blog/the-end-of-burnout-culture/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('stop burnout culture from crushing emplo'); }); test('blog_the_end_of_burnout_culture: h1 "Beating Burnout Culture: 6 Way"', async ({ page }) => { await page.goto('/blog/the-end-of-burnout-culture/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Beating Burnout Culture: 6 Ways to Rally When Motivation Runs Low' || t.startsWith('Beating Burnout Culture: 6 Ways to Rally When Motivation Runs Low'))).toBeTruthy(); }); test('blog_the_end_of_burnout_culture: h2 "Help me handle..."', async ({ page }) => { await page.goto('/blog/the-end-of-burnout-culture/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Help me handle...' || t.startsWith('Help me handle...'))).toBeTruthy(); }); test('blog_the_end_of_burnout_culture: h2 "Draw In Standout Applicants"', async ({ page }) => { await page.goto('/blog/the-end-of-burnout-culture/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Draw In Standout Applicants' || t.startsWith('Draw In Standout Applicants'))).toBeTruthy(); }); test('blog_the_end_of_burnout_culture: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/the-end-of-burnout-culture/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_the_end_of_burnout_culture: nav link "Draw in standout applicants"', async ({ page }) => { await page.goto('/blog/the-end-of-burnout-culture/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Draw in standout applicants' || t.startsWith('Draw in standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_the_end_of_burnout_culture: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/the-end-of-burnout-culture/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_the_end_of_burnout_culture: nav link "ArticleWhat Exactly Is a Job R"', async ({ page }) => { await page.goto('/blog/the-end-of-burnout-culture/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Exactly Is a Job Requisition? Form + Best Practi' || t.startsWith('ArticleWhat Exactly Is a Job Requisition? Form + Best Practi')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_the_end_of_burnout_culture: nav link "See All Standout Applicant Art"', async ({ page }) => { await page.goto('/blog/the-end-of-burnout-culture/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See All Standout Applicant Articles' || t.startsWith('See All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_the_hiring_managers_complete_guide_to_creating_a_stellar_candidate_experience', () => { test('blog_the_hiring_managers_complete_guide_to_creating_a_stellar_candidate_experience: title matches GT', async ({ page }) => { await page.goto('/blog/the-hiring-managers-complete-guide-to-creating-a-stellar-candidate-experience/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('the complete guide to building a stellar'); }); test('blog_the_hiring_managers_complete_guide_to_creating_a_stellar_candidate_experience: h1 "The Recruiter\'s Complete Playb"', async ({ page }) => { await page.goto('/blog/the-hiring-managers-complete-guide-to-creating-a-stellar-candidate-experience/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Recruiter\'s Complete Playbook for Building an Unforgettable Candidate Journey' || t.startsWith('The Recruiter\'s Complete Playbook for Building an Unforgettable Candidate Journey'))).toBeTruthy(); }); test('blog_the_hiring_managers_complete_guide_to_creating_a_stellar_candidate_experience: h2 "How can we assist?"', async ({ page }) => { await page.goto('/blog/the-hiring-managers-complete-guide-to-creating-a-stellar-candidate-experience/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How can we assist?' || t.startsWith('How can we assist?'))).toBeTruthy(); }); test('blog_the_hiring_managers_complete_guide_to_creating_a_stellar_candidate_experience: h2 "Reel in Awesome Applicants"', async ({ page }) => { await page.goto('/blog/the-hiring-managers-complete-guide-to-creating-a-stellar-candidate-experience/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in Awesome Applicants' || t.startsWith('Reel in Awesome Applicants'))).toBeTruthy(); }); test('blog_the_hiring_managers_complete_guide_to_creating_a_stellar_candidate_experience: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/the-hiring-managers-complete-guide-to-creating-a-stellar-candidate-experience/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_the_hiring_managers_complete_guide_to_creating_a_stellar_candidate_experience: nav link "Reel in awesome applicants"', async ({ page }) => { await page.goto('/blog/the-hiring-managers-complete-guide-to-creating-a-stellar-candidate-experience/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in awesome applicants' || t.startsWith('Reel in awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_the_hiring_managers_complete_guide_to_creating_a_stellar_candidate_experience: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/the-hiring-managers-complete-guide-to-creating-a-stellar-candidate-experience/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_the_hiring_managers_complete_guide_to_creating_a_stellar_candidate_experience: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/the-hiring-managers-complete-guide-to-creating-a-stellar-candidate-experience/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Form + Best Practic' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Form + Best Practic')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_the_hiring_managers_complete_guide_to_creating_a_stellar_candidate_experience: nav link "View All Awesome Applicant Art"', async ({ page }) => { await page.goto('/blog/the-hiring-managers-complete-guide-to-creating-a-stellar-candidate-experience/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Awesome Applicant Articles' || t.startsWith('View All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_the_no_nonsense_guide_to_sourcing_talent', () => { test('blog_the_no_nonsense_guide_to_sourcing_talent: title matches GT', async ({ page }) => { await page.goto('/blog/the-no-nonsense-guide-to-sourcing-talent/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('the straight'); }); test('blog_the_no_nonsense_guide_to_sourcing_talent: h1 "The No-Fluff Guide to Sourcing"', async ({ page }) => { await page.goto('/blog/the-no-nonsense-guide-to-sourcing-talent/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The No-Fluff Guide to Sourcing Top Talent' || t.startsWith('The No-Fluff Guide to Sourcing Top Talent'))).toBeTruthy(); }); test('blog_the_no_nonsense_guide_to_sourcing_talent: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/the-no-nonsense-guide-to-sourcing-talent/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_the_no_nonsense_guide_to_sourcing_talent: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/the-no-nonsense-guide-to-sourcing-talent/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_the_no_nonsense_guide_to_sourcing_talent: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/the-no-nonsense-guide-to-sourcing-talent/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_the_no_nonsense_guide_to_sourcing_talent: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/the-no-nonsense-guide-to-sourcing-talent/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_the_no_nonsense_guide_to_sourcing_talent: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/the-no-nonsense-guide-to-sourcing-talent/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_the_no_nonsense_guide_to_sourcing_talent: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/the-no-nonsense-guide-to-sourcing-talent/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Template + Best Pract' || t.startsWith('ArticleWhat Is a Job Requisition? Free Template + Best Pract')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_the_no_nonsense_guide_to_sourcing_talent: nav link "View All Standout Applicant Ar"', async ({ page }) => { await page.goto('/blog/the-no-nonsense-guide-to-sourcing-talent/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Standout Applicant Articles' || t.startsWith('View All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_top_20_job_boards_diversity_hiring', () => { test('blog_top_20_job_boards_diversity_hiring: title matches GT', async ({ page }) => { await page.goto('/blog/top-20-job-boards-diversity-hiring/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('the best diversity job boards'); }); test('blog_top_20_job_boards_diversity_hiring: h1 "20 Diversity Job Boards to Bui"', async ({ page }) => { await page.goto('/blog/top-20-job-boards-diversity-hiring/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '20 Diversity Job Boards to Build a Standout Team (+ Pricing Guide)' || t.startsWith('20 Diversity Job Boards to Build a Standout Team (+ Pricing Guide)'))).toBeTruthy(); }); test('blog_top_20_job_boards_diversity_hiring: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/top-20-job-boards-diversity-hiring/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_top_20_job_boards_diversity_hiring: h2 "Reel in Awesome Applicants"', async ({ page }) => { await page.goto('/blog/top-20-job-boards-diversity-hiring/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in Awesome Applicants' || t.startsWith('Reel in Awesome Applicants'))).toBeTruthy(); }); test('blog_top_20_job_boards_diversity_hiring: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/top-20-job-boards-diversity-hiring/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_top_20_job_boards_diversity_hiring: nav link "Reel in awesome applicants"', async ({ page }) => { await page.goto('/blog/top-20-job-boards-diversity-hiring/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in awesome applicants' || t.startsWith('Reel in awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_top_20_job_boards_diversity_hiring: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/top-20-job-boards-diversity-hiring/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_top_20_job_boards_diversity_hiring: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/top-20-job-boards-diversity-hiring/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Template + Best Pract' || t.startsWith('ArticleWhat Is a Job Requisition? Free Template + Best Pract')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_top_20_job_boards_diversity_hiring: nav link "View All Awesome Applicant Art"', async ({ page }) => { await page.goto('/blog/top-20-job-boards-diversity-hiring/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Awesome Applicant Articles' || t.startsWith('View All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_toxic_work_environment', () => { test('blog_toxic_work_environment: title matches GT', async ({ page }) => { await page.goto('/blog/toxic-work-environment/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('exactly how to fix a toxic work environm'); }); test('blog_toxic_work_environment: h1 "From Toxic to Thriving: Exactl"', async ({ page }) => { await page.goto('/blog/toxic-work-environment/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'From Toxic to Thriving: Exactly How to Repair a Broken Workplace' || t.startsWith('From Toxic to Thriving: Exactly How to Repair a Broken Workplace'))).toBeTruthy(); }); test('blog_toxic_work_environment: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/toxic-work-environment/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_toxic_work_environment: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/toxic-work-environment/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_toxic_work_environment: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/toxic-work-environment/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('blog_toxic_work_environment: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/toxic-work-environment/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_toxic_work_environment: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/toxic-work-environment/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_toxic_work_environment: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/toxic-work-environment/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Form + Best Practic' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Form + Best Practic')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_toxic_work_environment: nav link "See All Standout Applicant Art"', async ({ page }) => { await page.goto('/blog/toxic-work-environment/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See All Standout Applicant Articles' || t.startsWith('See All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_vacation_policy_for_small_businesses', () => { test('blog_vacation_policy_for_small_businesses: title matches GT', async ({ page }) => { await page.goto('/blog/vacation-policy-for-small-businesses/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('5 pto policy models to boost employee en'); }); test('blog_vacation_policy_for_small_businesses: h1 "Build a Vacation Policy That W"', async ({ page }) => { await page.goto('/blog/vacation-policy-for-small-businesses/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Build a Vacation Policy That Works: 5 PTO Models to Lift Usage and Reduce Burnout' || t.startsWith('Build a Vacation Policy That Works: 5 PTO Models to Lift Usage and Reduce Burnout'))).toBeTruthy(); }); test('blog_vacation_policy_for_small_businesses: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/vacation-policy-for-small-businesses/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_vacation_policy_for_small_businesses: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/vacation-policy-for-small-businesses/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_vacation_policy_for_small_businesses: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/vacation-policy-for-small-businesses/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('blog_vacation_policy_for_small_businesses: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/vacation-policy-for-small-businesses/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_vacation_policy_for_small_businesses: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/vacation-policy-for-small-businesses/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_vacation_policy_for_small_businesses: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/vacation-policy-for-small-businesses/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Template + Best Pract' || t.startsWith('ArticleWhat Is a Job Requisition? Free Template + Best Pract')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_vacation_policy_for_small_businesses: nav link "View All Standout Applicant Ar"', async ({ page }) => { await page.goto('/blog/vacation-policy-for-small-businesses/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Standout Applicant Articles' || t.startsWith('View All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_video_interviews_made_easy_by_talvio_hr', () => { test('blog_video_interviews_made_easy_by_talvio_hr: title matches GT', async ({ page }) => { await page.goto('/blog/video-interviews-made-easy-by-talvio-hr/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('video interview tips'); }); test('blog_video_interviews_made_easy_by_talvio_hr: h1 "How to Run a Video Interview: "', async ({ page }) => { await page.goto('/blog/video-interviews-made-easy-by-talvio-hr/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Run a Video Interview: Top Tips for Recruiters and Managers' || t.startsWith('How to Run a Video Interview: Top Tips for Recruiters and Managers'))).toBeTruthy(); }); test('blog_video_interviews_made_easy_by_talvio_hr: h2 "Can you help me..."', async ({ page }) => { await page.goto('/blog/video-interviews-made-easy-by-talvio-hr/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('blog_video_interviews_made_easy_by_talvio_hr: h2 "Reel in Awesome Applicants"', async ({ page }) => { await page.goto('/blog/video-interviews-made-easy-by-talvio-hr/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in Awesome Applicants' || t.startsWith('Reel in Awesome Applicants'))).toBeTruthy(); }); test('blog_video_interviews_made_easy_by_talvio_hr: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/video-interviews-made-easy-by-talvio-hr/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Pipeline Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Pipeline Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('blog_video_interviews_made_easy_by_talvio_hr: nav link "Reel in awesome applicants"', async ({ page }) => { await page.goto('/blog/video-interviews-made-easy-by-talvio-hr/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in awesome applicants' || t.startsWith('Reel in awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_video_interviews_made_easy_by_talvio_hr: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/video-interviews-made-easy-by-talvio-hr/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_video_interviews_made_easy_by_talvio_hr: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/video-interviews-made-easy-by-talvio-hr/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Template + Best Pract' || t.startsWith('ArticleWhat Is a Job Requisition? Free Template + Best Pract')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_video_interviews_made_easy_by_talvio_hr: nav link "View All Awesome Applicant Art"', async ({ page }) => { await page.goto('/blog/video-interviews-made-easy-by-talvio-hr/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Awesome Applicant Articles' || t.startsWith('View All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_what_candidates_want', () => { test('blog_what_candidates_want: title matches GT', async ({ page }) => { await page.goto('/blog/what-candidates-want/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('what candidates do and don\'t care about '); }); test('blog_what_candidates_want: h1 "Things Candidates Do (and Don\'"', async ({ page }) => { await page.goto('/blog/what-candidates-want/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Things Candidates Do (and Don\'t) Care About According to the Latest Talent Data' || t.startsWith('Things Candidates Do (and Don\'t) Care About According to the Latest Talent Data'))).toBeTruthy(); }); test('blog_what_candidates_want: h2 "Need a hand with..."', async ({ page }) => { await page.goto('/blog/what-candidates-want/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Need a hand with...' || t.startsWith('Need a hand with...'))).toBeTruthy(); }); test('blog_what_candidates_want: h2 "Draw In Amazing Applicants"', async ({ page }) => { await page.goto('/blog/what-candidates-want/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Draw In Amazing Applicants' || t.startsWith('Draw In Amazing Applicants'))).toBeTruthy(); }); test('blog_what_candidates_want: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/what-candidates-want/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('blog_what_candidates_want: nav link "Draw in amazing applicants"', async ({ page }) => { await page.goto('/blog/what-candidates-want/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Draw in amazing applicants' || t.startsWith('Draw in amazing applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_what_candidates_want: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/what-candidates-want/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_what_candidates_want: nav link "ArticleJob Requisitions Explai"', async ({ page }) => { await page.goto('/blog/what-candidates-want/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleJob Requisitions Explained: Free Sample Form + 2026 B' || t.startsWith('ArticleJob Requisitions Explained: Free Sample Form + 2026 B')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_what_candidates_want: nav link "See All Amazing Applicant Arti"', async ({ page }) => { await page.goto('/blog/what-candidates-want/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See All Amazing Applicant Articles' || t.startsWith('See All Amazing Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_women_in_the_workplace', () => { test('blog_women_in_the_workplace: title matches GT', async ({ page }) => { await page.goto('/blog/women-in-the-workplace/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('23 leaders on how to make work a better '); }); test('blog_women_in_the_workplace: h1 "Women at Work: 23 Leaders on W"', async ({ page }) => { await page.goto('/blog/women-in-the-workplace/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Women at Work: 23 Leaders on What Employers Should Stop, Keep, and Start Doing to Make Work a Better' || t.startsWith('Women at Work: 23 Leaders on What Employers Should Stop, Keep, and Start Doing to Make Work a Better'))).toBeTruthy(); }); test('blog_women_in_the_workplace: h2 "I need help with..."', async ({ page }) => { await page.goto('/blog/women-in-the-workplace/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'I need help with...' || t.startsWith('I need help with...'))).toBeTruthy(); }); test('blog_women_in_the_workplace: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/women-in-the-workplace/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_women_in_the_workplace: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/blog/women-in-the-workplace/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('blog_women_in_the_workplace: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/women-in-the-workplace/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_women_in_the_workplace: nav link "FeatureHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/blog/women-in-the-workplace/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FeatureHow to Fraud-Proof Your Hiring Without Wrecking the C' || t.startsWith('FeatureHow to Fraud-Proof Your Hiring Without Wrecking the C')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_women_in_the_workplace: nav link "FeatureWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/blog/women-in-the-workplace/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FeatureWhat Is a Job Requisition? Free Template + Best Pract' || t.startsWith('FeatureWhat Is a Job Requisition? Free Template + Best Pract')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_women_in_the_workplace: nav link "See All Standout Applicant Fea"', async ({ page }) => { await page.goto('/blog/women-in-the-workplace/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See All Standout Applicant Features' || t.startsWith('See All Standout Applicant 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('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_working_moms_report', () => { test('blog_working_moms_report: title matches GT', async ({ page }) => { await page.goto('/blog/working-moms-report/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('the 2022 state of working moms report'); }); test('blog_working_moms_report: h1 "The Working Moms Report brough"', async ({ page }) => { await page.goto('/blog/working-moms-report/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Working Moms Report brought to you by Talvio and Bloom Collective' || t.startsWith('The Working Moms Report brought to you by Talvio and Bloom Collective'))).toBeTruthy(); }); test('blog_working_moms_report: h2 "Can you show me..."', async ({ page }) => { await page.goto('/blog/working-moms-report/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you show me...' || t.startsWith('Can you show me...'))).toBeTruthy(); }); test('blog_working_moms_report: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/blog/working-moms-report/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('blog_working_moms_report: h2 "How to Stop Hiring Fraud Witho"', async ({ page }) => { await page.goto('/blog/working-moms-report/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Stop Hiring Fraud Without Wrecking the Candidate Experience Itself' || t.startsWith('How to Stop Hiring Fraud Without Wrecking the Candidate Experience Itself'))).toBeTruthy(); }); test('blog_working_moms_report: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/blog/working-moms-report/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('blog_working_moms_report: nav link "ArticleHow to Stop Hiring Frau"', async ({ page }) => { await page.goto('/blog/working-moms-report/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Stop Hiring Fraud Without Wrecking the Candida' || t.startsWith('ArticleHow to Stop Hiring Fraud Without Wrecking the Candida')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('blog_working_moms_report: nav link "ArticleJob Requisitions Explai"', async ({ page }) => { await page.goto('/blog/working-moms-report/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleJob Requisitions Explained: Free Sample Form + Best P' || t.startsWith('ArticleJob Requisitions Explained: Free Sample Form + Best P')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('blog_working_moms_report: nav link "Browse All Standout Applicant "', async ({ page }) => { await page.goto('/blog/working-moms-report/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Browse All Standout Applicant Posts' || t.startsWith('Browse All Standout Applicant Posts')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - customers_booster_box', () => { test('customers_booster_box: title matches GT', async ({ page }) => { await page.goto('/customers/booster-box/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how adloft labs used talvio hr to 5x the'); }); test('customers_booster_box: h1 "How Adloft Labs Used Talvio to"', async ({ page }) => { await page.goto('/customers/booster-box/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How Adloft Labs Used Talvio to 5X Their Team in Just 3 Years' || t.startsWith('How Adloft Labs Used Talvio to 5X Their Team in Just 3 Years'))).toBeTruthy(); }); test('customers_booster_box: h2 "Adloft Labs"', async ({ page }) => { await page.goto('/customers/booster-box/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Adloft Labs' || t.startsWith('Adloft Labs'))).toBeTruthy(); }); test('customers_booster_box: h2 "Find top candidates. Waste no "', async ({ page }) => { await page.goto('/customers/booster-box/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Find top candidates. Waste no time.' || t.startsWith('Find top candidates. Waste no time.'))).toBeTruthy(); }); test('customers_booster_box: h2 "Solution"', async ({ page }) => { await page.goto('/customers/booster-box/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Solution' || t.startsWith('Solution'))).toBeTruthy(); }); test('customers_booster_box: nav link "Advertise & AttractShowcase yo"', async ({ page }) => { await page.goto('/customers/booster-box/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Advertise & AttractShowcase your open roles in all the right' || t.startsWith('Advertise & AttractShowcase your open roles in all the right')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('attract')), 'href fragment present').toBeTruthy(); }); test('customers_booster_box: nav link "Career Sites"', async ({ page }) => { await page.goto('/customers/booster-box/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Career Sites' || t.startsWith('Career Sites')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('career-sites')), 'href fragment present').toBeTruthy(); }); test('customers_booster_box: nav link "Job Advertising"', async ({ page }) => { await page.goto('/customers/booster-box/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Job Advertising' || t.startsWith('Job Advertising')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('advertise-jobs')), 'href fragment present').toBeTruthy(); }); test('customers_booster_box: nav link "Employee Referrals"', async ({ page }) => { await page.goto('/customers/booster-box/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Employee Referrals' || t.startsWith('Employee Referrals')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('employee-referrals')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - customers_docebo', () => { test('customers_docebo: title matches GT', async ({ page }) => { await page.goto('/customers/docebo/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how lernova manages hyper'); }); test('customers_docebo: h1 "How Lernova Manages Hyper-Grow"', async ({ page }) => { await page.goto('/customers/docebo/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How Lernova Manages Hyper-Growth' || t.startsWith('How Lernova Manages Hyper-Growth'))).toBeTruthy(); }); test('customers_docebo: h2 "Lernova"', async ({ page }) => { await page.goto('/customers/docebo/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Lernova' || t.startsWith('Lernova'))).toBeTruthy(); }); test('customers_docebo: h2 "Customized, global hiring as a"', async ({ page }) => { await page.goto('/customers/docebo/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Customized, global hiring as a team' || t.startsWith('Customized, global hiring as a team'))).toBeTruthy(); }); test('customers_docebo: h2 "About Lernova"', async ({ page }) => { await page.goto('/customers/docebo/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About Lernova' || t.startsWith('About Lernova'))).toBeTruthy(); }); test('customers_docebo: nav link "Broadcast & AttractPut your op"', async ({ page }) => { await page.goto('/customers/docebo/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Broadcast & AttractPut your open roles in front of the right' || t.startsWith('Broadcast & AttractPut your open roles in front of the right')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('attract')), 'href fragment present').toBeTruthy(); }); test('customers_docebo: nav link "Career Pages"', async ({ page }) => { await page.goto('/customers/docebo/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Career Pages' || t.startsWith('Career Pages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('career-sites')), 'href fragment present').toBeTruthy(); }); test('customers_docebo: nav link "Role Advertising"', async ({ page }) => { await page.goto('/customers/docebo/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Role Advertising' || t.startsWith('Role Advertising')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('advertise-jobs')), 'href fragment present').toBeTruthy(); }); test('customers_docebo: nav link "Coworker Referrals"', async ({ page }) => { await page.goto('/customers/docebo/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Coworker Referrals' || t.startsWith('Coworker Referrals')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('employee-referrals')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - customers_dodge', () => { test('customers_dodge: title matches GT', async ({ page }) => { await page.goto('/customers/dodge/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how kestrel data & analytics hires 80% f'); }); test('customers_dodge: h1 "How Kestrel Data & Analytics H"', async ({ page }) => { await page.goto('/customers/dodge/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How Kestrel Data & Analytics Hires 80% Faster' || t.startsWith('How Kestrel Data & Analytics Hires 80% Faster'))).toBeTruthy(); }); test('customers_dodge: h2 "Kestrel Data & Analytics"', async ({ page }) => { await page.goto('/customers/dodge/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Kestrel Data & Analytics' || t.startsWith('Kestrel Data & Analytics'))).toBeTruthy(); }); test('customers_dodge: h2 "Always Be Recruiting: How the "', async ({ page }) => { await page.goto('/customers/dodge/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Always Be Recruiting: How the Head of TA at Kestrel Data & Analytics Hires 80% Faster' || t.startsWith('Always Be Recruiting: How the Head of TA at Kestrel Data & Analytics Hires 80% Faster'))).toBeTruthy(); }); test('customers_dodge: h2 "A salesman with the soul of a "', async ({ page }) => { await page.goto('/customers/dodge/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'A salesman with the soul of a recruiter' || t.startsWith('A salesman with the soul of a recruiter'))).toBeTruthy(); }); test('customers_dodge: nav link "Advertise & AttractShowcase yo"', async ({ page }) => { await page.goto('/customers/dodge/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Advertise & AttractShowcase your open positions in all the r' || t.startsWith('Advertise & AttractShowcase your open positions in all the r')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('attract')), 'href fragment present').toBeTruthy(); }); test('customers_dodge: nav link "Career Sites"', async ({ page }) => { await page.goto('/customers/dodge/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Career Sites' || t.startsWith('Career Sites')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('career-sites')), 'href fragment present').toBeTruthy(); }); test('customers_dodge: nav link "Job Advertising"', async ({ page }) => { await page.goto('/customers/dodge/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Job Advertising' || t.startsWith('Job Advertising')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('advertise-jobs')), 'href fragment present').toBeTruthy(); }); test('customers_dodge: nav link "Employee Referrals"', async ({ page }) => { await page.goto('/customers/dodge/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Employee Referrals' || t.startsWith('Employee Referrals')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('employee-referrals')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - customers_dollar_flight_club', () => { test('customers_dollar_flight_club: title matches GT', async ({ page }) => { await page.goto('/customers/dollar-flight-club/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('fly higher with a faster path to hiring'); }); test('customers_dollar_flight_club: h1 "Take Off Faster with a Smoothe"', async ({ page }) => { await page.goto('/customers/dollar-flight-club/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Take Off Faster with a Smoother Hiring Path' || t.startsWith('Take Off Faster with a Smoother Hiring Path'))).toBeTruthy(); }); test('customers_dollar_flight_club: h2 "Skyfare Travel Club"', async ({ page }) => { await page.goto('/customers/dollar-flight-club/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Skyfare Travel Club' || t.startsWith('Skyfare Travel Club'))).toBeTruthy(); }); test('customers_dollar_flight_club: h2 "Finding a recruiting system ni"', async ({ page }) => { await page.goto('/customers/dollar-flight-club/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Finding a recruiting system nimble enough to keep pace with company growth' || t.startsWith('Finding a recruiting system nimble enough to keep pace with company growth'))).toBeTruthy(); }); test('customers_dollar_flight_club: h2 "Better organization = Zero hea"', async ({ page }) => { await page.goto('/customers/dollar-flight-club/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Better organization = Zero headaches' || t.startsWith('Better organization = Zero headaches'))).toBeTruthy(); }); test('customers_dollar_flight_club: nav link "Advertise & AttractShowcase yo"', async ({ page }) => { await page.goto('/customers/dollar-flight-club/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Advertise & AttractShowcase your open positions in all the r' || t.startsWith('Advertise & AttractShowcase your open positions in all the r')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('attract')), 'href fragment present').toBeTruthy(); }); test('customers_dollar_flight_club: nav link "Career Sites"', async ({ page }) => { await page.goto('/customers/dollar-flight-club/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Career Sites' || t.startsWith('Career Sites')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('career-sites')), 'href fragment present').toBeTruthy(); }); test('customers_dollar_flight_club: nav link "Job Advertising"', async ({ page }) => { await page.goto('/customers/dollar-flight-club/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Job Advertising' || t.startsWith('Job Advertising')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('advertise-jobs')), 'href fragment present').toBeTruthy(); }); test('customers_dollar_flight_club: nav link "Employee Referrals"', async ({ page }) => { await page.goto('/customers/dollar-flight-club/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Employee Referrals' || t.startsWith('Employee Referrals')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('employee-referrals')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - customers_dp_logistics', () => { test('customers_dp_logistics: title matches GT', async ({ page }) => { await page.goto('/customers/dp-logistics/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('hiring fast? how redline cargo cut time '); }); test('customers_dp_logistics: h1 "Hiring Quickly? How Redline Ca"', async ({ page }) => { await page.goto('/customers/dp-logistics/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Hiring Quickly? How Redline Cargo Cut Their Time to Hire by 66%' || t.startsWith('Hiring Quickly? How Redline Cargo Cut Their Time to Hire by 66%'))).toBeTruthy(); }); test('customers_dp_logistics: h2 "Redline Cargo"', async ({ page }) => { await page.goto('/customers/dp-logistics/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Redline Cargo' || t.startsWith('Redline Cargo'))).toBeTruthy(); }); test('customers_dp_logistics: h2 "From 1 Month to a 10-Day Time "', async ({ page }) => { await page.goto('/customers/dp-logistics/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'From 1 Month to a 10-Day Time to Hire' || t.startsWith('From 1 Month to a 10-Day Time to Hire'))).toBeTruthy(); }); test('customers_dp_logistics: h2 "More Customer Stories"', async ({ page }) => { await page.goto('/customers/dp-logistics/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Customer Stories' || t.startsWith('More Customer Stories'))).toBeTruthy(); }); test('customers_dp_logistics: nav link "Advertise & AttractShowcase yo"', async ({ page }) => { await page.goto('/customers/dp-logistics/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Advertise & AttractShowcase your open positions in all the r' || t.startsWith('Advertise & AttractShowcase your open positions in all the r')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('attract')), 'href fragment present').toBeTruthy(); }); test('customers_dp_logistics: nav link "Career Sites"', async ({ page }) => { await page.goto('/customers/dp-logistics/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Career Sites' || t.startsWith('Career Sites')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('career-sites')), 'href fragment present').toBeTruthy(); }); test('customers_dp_logistics: nav link "Job Advertising"', async ({ page }) => { await page.goto('/customers/dp-logistics/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Job Advertising' || t.startsWith('Job Advertising')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('advertise-jobs')), 'href fragment present').toBeTruthy(); }); test('customers_dp_logistics: nav link "Employee Referrals"', async ({ page }) => { await page.goto('/customers/dp-logistics/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Employee Referrals' || t.startsWith('Employee Referrals')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('employee-referrals')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - customers_elevation_church', () => { test('customers_elevation_church: title matches GT', async ({ page }) => { await page.goto('/customers/elevation-church/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('mission'); }); test('customers_elevation_church: h1 "Purpose-Driven Hiring. Made Ea"', async ({ page }) => { await page.goto('/customers/elevation-church/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Purpose-Driven Hiring. Made Easy' || t.startsWith('Purpose-Driven Hiring. Made Easy'))).toBeTruthy(); }); test('customers_elevation_church: h2 "Riverstone Church"', async ({ page }) => { await page.goto('/customers/elevation-church/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Riverstone Church' || t.startsWith('Riverstone Church'))).toBeTruthy(); }); test('customers_elevation_church: h2 "Find the applicant tracking sy"', async ({ page }) => { await page.goto('/customers/elevation-church/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Find the applicant tracking system that fits' || t.startsWith('Find the applicant tracking system that fits'))).toBeTruthy(); }); test('customers_elevation_church: h2 "One home for everything hiring"', async ({ page }) => { await page.goto('/customers/elevation-church/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'One home for everything hiring' || t.startsWith('One home for everything hiring'))).toBeTruthy(); }); test('customers_elevation_church: nav link "Advertise & AttractPut your op"', async ({ page }) => { await page.goto('/customers/elevation-church/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Advertise & AttractPut your open roles in front of the right' || t.startsWith('Advertise & AttractPut your open roles in front of the right')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('attract')), 'href fragment present').toBeTruthy(); }); test('customers_elevation_church: nav link "Career Sites"', async ({ page }) => { await page.goto('/customers/elevation-church/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Career Sites' || t.startsWith('Career Sites')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('career-sites')), 'href fragment present').toBeTruthy(); }); test('customers_elevation_church: nav link "Job Advertising"', async ({ page }) => { await page.goto('/customers/elevation-church/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Job Advertising' || t.startsWith('Job Advertising')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('advertise-jobs')), 'href fragment present').toBeTruthy(); }); test('customers_elevation_church: nav link "Employee Referrals"', async ({ page }) => { await page.goto('/customers/elevation-church/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Employee Referrals' || t.startsWith('Employee Referrals')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('employee-referrals')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - customers_hip_creative', () => { test('customers_hip_creative: title matches GT', async ({ page }) => { await page.goto('/customers/hip-creative/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('growing pains? see how bold fig nailed t'); }); test('customers_hip_creative: h1 "Growing Pains? Here\'s How Bold"', async ({ page }) => { await page.goto('/customers/hip-creative/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Growing Pains? Here\'s How Bold Fig Nailed Their Hiring Process (and Tripled in Size)' || t.startsWith('Growing Pains? Here\'s How Bold Fig Nailed Their Hiring Process (and Tripled in Size)'))).toBeTruthy(); }); test('customers_hip_creative: h2 "Bold Fig"', async ({ page }) => { await page.goto('/customers/hip-creative/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Bold Fig' || t.startsWith('Bold Fig'))).toBeTruthy(); }); test('customers_hip_creative: h2 "From scattered tools to one ce"', async ({ page }) => { await page.goto('/customers/hip-creative/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'From scattered tools to one central hub' || t.startsWith('From scattered tools to one central hub'))).toBeTruthy(); }); test('customers_hip_creative: h2 "Finding the perfect fit"', async ({ page }) => { await page.goto('/customers/hip-creative/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Finding the perfect fit' || t.startsWith('Finding the perfect fit'))).toBeTruthy(); }); test('customers_hip_creative: nav link "Advertise & AttractPut your op"', async ({ page }) => { await page.goto('/customers/hip-creative/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Advertise & AttractPut your open roles in front of the right' || t.startsWith('Advertise & AttractPut your open roles in front of the right')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('attract')), 'href fragment present').toBeTruthy(); }); test('customers_hip_creative: nav link "Career Sites"', async ({ page }) => { await page.goto('/customers/hip-creative/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Career Sites' || t.startsWith('Career Sites')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('career-sites')), 'href fragment present').toBeTruthy(); }); test('customers_hip_creative: nav link "Job Advertising"', async ({ page }) => { await page.goto('/customers/hip-creative/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Job Advertising' || t.startsWith('Job Advertising')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('advertise-jobs')), 'href fragment present').toBeTruthy(); }); test('customers_hip_creative: nav link "Employee Referrals"', async ({ page }) => { await page.goto('/customers/hip-creative/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Employee Referrals' || t.startsWith('Employee Referrals')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('employee-referrals')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - customers_kci_wireless', () => { test('customers_kci_wireless: title matches GT', async ({ page }) => { await page.goto('/customers/kci-wireless/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('high velocity millennial hiring'); }); test('customers_kci_wireless: h1 "Fast-Paced Millennial Recruiti"', async ({ page }) => { await page.goto('/customers/kci-wireless/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Fast-Paced Millennial Recruiting' || t.startsWith('Fast-Paced Millennial Recruiting'))).toBeTruthy(); }); test('customers_kci_wireless: h2 "Voxa Wireless"', async ({ page }) => { await page.goto('/customers/kci-wireless/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Voxa Wireless' || t.startsWith('Voxa Wireless'))).toBeTruthy(); }); test('customers_kci_wireless: h2 "Challenge Accepted"', async ({ page }) => { await page.goto('/customers/kci-wireless/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Challenge Accepted' || t.startsWith('Challenge Accepted'))).toBeTruthy(); }); test('customers_kci_wireless: h2 "More Customer Stories"', async ({ page }) => { await page.goto('/customers/kci-wireless/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Customer Stories' || t.startsWith('More Customer Stories'))).toBeTruthy(); }); test('customers_kci_wireless: nav link "Advertise & AttractPut your op"', async ({ page }) => { await page.goto('/customers/kci-wireless/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Advertise & AttractPut your open roles in front of the right' || t.startsWith('Advertise & AttractPut your open roles in front of the right')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('attract')), 'href fragment present').toBeTruthy(); }); test('customers_kci_wireless: nav link "Career Sites"', async ({ page }) => { await page.goto('/customers/kci-wireless/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Career Sites' || t.startsWith('Career Sites')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('career-sites')), 'href fragment present').toBeTruthy(); }); test('customers_kci_wireless: nav link "Job Advertising"', async ({ page }) => { await page.goto('/customers/kci-wireless/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Job Advertising' || t.startsWith('Job Advertising')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('advertise-jobs')), 'href fragment present').toBeTruthy(); }); test('customers_kci_wireless: nav link "Employee Referrals"', async ({ page }) => { await page.goto('/customers/kci-wireless/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Employee Referrals' || t.startsWith('Employee Referrals')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('employee-referrals')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - customers_knock', () => { test('customers_knock: title matches GT', async ({ page }) => { await page.goto('/customers/knock/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('swapp is growing...and fast'); }); test('customers_knock: h1 "Swapp is growing...and fast"', async ({ page }) => { await page.goto('/customers/knock/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Swapp is growing...and fast' || t.startsWith('Swapp is growing...and fast'))).toBeTruthy(); }); test('customers_knock: h2 "Swapp"', async ({ page }) => { await page.goto('/customers/knock/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Swapp' || t.startsWith('Swapp'))).toBeTruthy(); }); test('customers_knock: h2 "Grow fast, cut no corners"', async ({ page }) => { await page.goto('/customers/knock/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Grow fast, cut no corners' || t.startsWith('Grow fast, cut no corners'))).toBeTruthy(); }); test('customers_knock: h2 "Better Hires in Less Time"', async ({ page }) => { await page.goto('/customers/knock/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Better Hires in Less Time' || t.startsWith('Better Hires in Less Time'))).toBeTruthy(); }); test('customers_knock: nav link "Advertise & AttractPut your op"', async ({ page }) => { await page.goto('/customers/knock/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Advertise & AttractPut your open roles in front of the right' || t.startsWith('Advertise & AttractPut your open roles in front of the right')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('attract')), 'href fragment present').toBeTruthy(); }); test('customers_knock: nav link "Career Sites"', async ({ page }) => { await page.goto('/customers/knock/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Career Sites' || t.startsWith('Career Sites')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('career-sites')), 'href fragment present').toBeTruthy(); }); test('customers_knock: nav link "Job Advertising"', async ({ page }) => { await page.goto('/customers/knock/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Job Advertising' || t.startsWith('Job Advertising')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('advertise-jobs')), 'href fragment present').toBeTruthy(); }); test('customers_knock: nav link "Employee Referrals"', async ({ page }) => { await page.goto('/customers/knock/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Employee Referrals' || t.startsWith('Employee Referrals')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('employee-referrals')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - customers_mavha', () => { test('customers_mavha: title matches GT', async ({ page }) => { await page.goto('/customers/mavha/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('hire quality remote candidates, fast'); }); test('customers_mavha: h1 "Hire top-tier remote candidate"', async ({ page }) => { await page.goto('/customers/mavha/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Hire top-tier remote candidates, fast' || t.startsWith('Hire top-tier remote candidates, fast'))).toBeTruthy(); }); test('customers_mavha: h2 "Mavo"', async ({ page }) => { await page.goto('/customers/mavha/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Mavo' || t.startsWith('Mavo'))).toBeTruthy(); }); test('customers_mavha: h2 "Find standout remote talent AS"', async ({ page }) => { await page.goto('/customers/mavha/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Find standout remote talent ASAP' || t.startsWith('Find standout remote talent ASAP'))).toBeTruthy(); }); test('customers_mavha: h2 "Handle applicants with a singl"', async ({ page }) => { await page.goto('/customers/mavha/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Handle applicants with a single click of a button' || t.startsWith('Handle applicants with a single click of a button'))).toBeTruthy(); }); test('customers_mavha: nav link "Advertise & AttractShowcase yo"', async ({ page }) => { await page.goto('/customers/mavha/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Advertise & AttractShowcase your open positions in all the r' || t.startsWith('Advertise & AttractShowcase your open positions in all the r')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('attract')), 'href fragment present').toBeTruthy(); }); test('customers_mavha: nav link "Career Sites"', async ({ page }) => { await page.goto('/customers/mavha/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Career Sites' || t.startsWith('Career Sites')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('career-sites')), 'href fragment present').toBeTruthy(); }); test('customers_mavha: nav link "Job Advertising"', async ({ page }) => { await page.goto('/customers/mavha/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Job Advertising' || t.startsWith('Job Advertising')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('advertise-jobs')), 'href fragment present').toBeTruthy(); }); test('customers_mavha: nav link "Employee Referrals"', async ({ page }) => { await page.goto('/customers/mavha/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Employee Referrals' || t.startsWith('Employee Referrals')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('employee-referrals')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - customers_nandos_peri_peri', () => { test('customers_nandos_peri_peri: title matches GT', async ({ page }) => { await page.goto('/customers/nandos-peri-peri/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('let’s make recruiting personal'); }); test('customers_nandos_peri_peri: h1 "Let\'s Personalize Recruiting"', async ({ page }) => { await page.goto('/customers/nandos-peri-peri/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Let\'s Personalize Recruiting' || t.startsWith('Let\'s Personalize Recruiting'))).toBeTruthy(); }); test('customers_nandos_peri_peri: h2 "Zami\'s Peri-Peri"', async ({ page }) => { await page.goto('/customers/nandos-peri-peri/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Zami\'s Peri-Peri' || t.startsWith('Zami\'s Peri-Peri'))).toBeTruthy(); }); test('customers_nandos_peri_peri: h2 "Tailored Tools for a Tailored "', async ({ page }) => { await page.goto('/customers/nandos-peri-peri/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Tailored Tools for a Tailored Process' || t.startsWith('Tailored Tools for a Tailored Process'))).toBeTruthy(); }); test('customers_nandos_peri_peri: h2 "More Customer Stories"', async ({ page }) => { await page.goto('/customers/nandos-peri-peri/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More Customer Stories' || t.startsWith('More Customer Stories'))).toBeTruthy(); }); test('customers_nandos_peri_peri: nav link "Advertise & AttractPut your op"', async ({ page }) => { await page.goto('/customers/nandos-peri-peri/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Advertise & AttractPut your open roles in front of the right' || t.startsWith('Advertise & AttractPut your open roles in front of the right')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('attract')), 'href fragment present').toBeTruthy(); }); test('customers_nandos_peri_peri: nav link "Career Sites"', async ({ page }) => { await page.goto('/customers/nandos-peri-peri/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Career Sites' || t.startsWith('Career Sites')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('career-sites')), 'href fragment present').toBeTruthy(); }); test('customers_nandos_peri_peri: nav link "Job Advertising"', async ({ page }) => { await page.goto('/customers/nandos-peri-peri/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Job Advertising' || t.startsWith('Job Advertising')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('advertise-jobs')), 'href fragment present').toBeTruthy(); }); test('customers_nandos_peri_peri: nav link "Employee Referrals"', async ({ page }) => { await page.goto('/customers/nandos-peri-peri/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Employee Referrals' || t.startsWith('Employee Referrals')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('employee-referrals')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - customers_nucamp', () => { test('customers_nucamp: title matches GT', async ({ page }) => { await page.goto('/customers/nucamp/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('repeatable, high'); }); test('customers_nucamp: h1 "Repeatable High Volume, High-Q"', async ({ page }) => { await page.goto('/customers/nucamp/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Repeatable High Volume, High-Quality Hiring' || t.startsWith('Repeatable High Volume, High-Quality Hiring'))).toBeTruthy(); }); test('customers_nucamp: h2 "Bytora"', async ({ page }) => { await page.goto('/customers/nucamp/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Bytora' || t.startsWith('Bytora'))).toBeTruthy(); }); test('customers_nucamp: h2 "Hiring for 200+ open roles, wi"', async ({ page }) => { await page.goto('/customers/nucamp/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Hiring for 200+ open roles, with a small startup HR team' || t.startsWith('Hiring for 200+ open roles, with a small startup HR team'))).toBeTruthy(); }); test('customers_nucamp: h2 "A scalable recruitment system "', async ({ page }) => { await page.goto('/customers/nucamp/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'A scalable recruitment system to hire high-quality candidates in less time' || t.startsWith('A scalable recruitment system to hire high-quality candidates in less time'))).toBeTruthy(); }); test('customers_nucamp: nav link "Promote & AttractGet your open"', async ({ page }) => { await page.goto('/customers/nucamp/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Promote & AttractGet your open roles seen in all the right p' || t.startsWith('Promote & AttractGet your open roles seen in all the right p')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('attract')), 'href fragment present').toBeTruthy(); }); test('customers_nucamp: nav link "Career Sites"', async ({ page }) => { await page.goto('/customers/nucamp/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Career Sites' || t.startsWith('Career Sites')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('career-sites')), 'href fragment present').toBeTruthy(); }); test('customers_nucamp: nav link "Job Advertising"', async ({ page }) => { await page.goto('/customers/nucamp/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Job Advertising' || t.startsWith('Job Advertising')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('advertise-jobs')), 'href fragment present').toBeTruthy(); }); test('customers_nucamp: nav link "Employee Referrals"', async ({ page }) => { await page.goto('/customers/nucamp/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Employee Referrals' || t.startsWith('Employee Referrals')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('employee-referrals')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - customers_p3', () => { test('customers_p3: title matches GT', async ({ page }) => { await page.goto('/customers/p3/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('less wasted time, more quality candidate'); }); test('customers_p3: h1 "Less Time Lost, More High-Qual"', async ({ page }) => { await page.goto('/customers/p3/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Less Time Lost, More High-Quality Candidates' || t.startsWith('Less Time Lost, More High-Quality Candidates'))).toBeTruthy(); }); test('customers_p3: h2 "DataForge Pro"', async ({ page }) => { await page.goto('/customers/p3/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DataForge Pro' || t.startsWith('DataForge Pro'))).toBeTruthy(); }); test('customers_p3: h2 "Modernize the hiring process t"', async ({ page }) => { await page.goto('/customers/p3/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Modernize the hiring process to keep pace with your company\'s growth' || t.startsWith('Modernize the hiring process to keep pace with your company\'s growth'))).toBeTruthy(); }); test('customers_p3: h2 "The just-right ATS that genuin"', async ({ page }) => { await page.goto('/customers/p3/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The just-right ATS that genuinely makes you smile' || t.startsWith('The just-right ATS that genuinely makes you smile'))).toBeTruthy(); }); test('customers_p3: nav link "Advertise & AttractPut your op"', async ({ page }) => { await page.goto('/customers/p3/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Advertise & AttractPut your open roles in front of the right' || t.startsWith('Advertise & AttractPut your open roles in front of the right')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('attract')), 'href fragment present').toBeTruthy(); }); test('customers_p3: nav link "Career Sites"', async ({ page }) => { await page.goto('/customers/p3/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Career Sites' || t.startsWith('Career Sites')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('career-sites')), 'href fragment present').toBeTruthy(); }); test('customers_p3: nav link "Job Advertising"', async ({ page }) => { await page.goto('/customers/p3/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Job Advertising' || t.startsWith('Job Advertising')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('advertise-jobs')), 'href fragment present').toBeTruthy(); }); test('customers_p3: nav link "Employee Referrals"', async ({ page }) => { await page.goto('/customers/p3/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Employee Referrals' || t.startsWith('Employee Referrals')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('employee-referrals')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - customers_piksel', () => { test('customers_piksel: title matches GT', async ({ page }) => { await page.goto('/customers/piksel/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('growing stronger by looking within'); }); test('customers_piksel: h1 "Growing Stronger by Looking In"', async ({ page }) => { await page.goto('/customers/piksel/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Growing Stronger by Looking Inward' || t.startsWith('Growing Stronger by Looking Inward'))).toBeTruthy(); }); test('customers_piksel: h2 "Vidara"', async ({ page }) => { await page.goto('/customers/piksel/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vidara' || t.startsWith('Vidara'))).toBeTruthy(); }); test('customers_piksel: h2 "Toward great work for every te"', async ({ page }) => { await page.goto('/customers/piksel/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Toward great work for every team' || t.startsWith('Toward great work for every team'))).toBeTruthy(); }); test('customers_piksel: h2 "Less Spend, Better Results"', async ({ page }) => { await page.goto('/customers/piksel/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Less Spend, Better Results' || t.startsWith('Less Spend, Better Results'))).toBeTruthy(); }); test('customers_piksel: nav link "Advertise & AttractPut your op"', async ({ page }) => { await page.goto('/customers/piksel/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Advertise & AttractPut your open roles in front of the right' || t.startsWith('Advertise & AttractPut your open roles in front of the right')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('attract')), 'href fragment present').toBeTruthy(); }); test('customers_piksel: nav link "Career Sites"', async ({ page }) => { await page.goto('/customers/piksel/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Career Sites' || t.startsWith('Career Sites')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('career-sites')), 'href fragment present').toBeTruthy(); }); test('customers_piksel: nav link "Job Advertising"', async ({ page }) => { await page.goto('/customers/piksel/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Job Advertising' || t.startsWith('Job Advertising')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('advertise-jobs')), 'href fragment present').toBeTruthy(); }); test('customers_piksel: nav link "Employee Referrals"', async ({ page }) => { await page.goto('/customers/piksel/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Employee Referrals' || t.startsWith('Employee Referrals')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('employee-referrals')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - hire_learning_talvio_updates', () => { test('hire_learning_talvio_updates: title matches GT', async ({ page }) => { await page.goto('/hire-learning/talvio-updates/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('find updates about talvio'); }); test('hire_learning_talvio_updates: h1 "Talvio, can you help me..."', async ({ page }) => { await page.goto('/hire-learning/talvio-updates/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Talvio, can you help me...' || t.startsWith('Talvio, can you help me...'))).toBeTruthy(); }); test('hire_learning_talvio_updates: h2 "Can you help me..."', async ({ page }) => { await page.goto('/hire-learning/talvio-updates/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('hire_learning_talvio_updates: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/hire-learning/talvio-updates/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('hire_learning_talvio_updates: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/hire-learning/talvio-updates/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('hire_learning_talvio_updates: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/hire-learning/talvio-updates/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('hire_learning_talvio_updates: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/hire-learning/talvio-updates/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('hire_learning_talvio_updates: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/hire-learning/talvio-updates/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Template + Best Pract' || t.startsWith('ArticleWhat Is a Job Requisition? Free Template + Best Pract')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('hire_learning_talvio_updates: nav link "View All Standout Applicant Ar"', async ({ page }) => { await page.goto('/hire-learning/talvio-updates/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Standout Applicant Articles' || t.startsWith('View All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - hire_learning_candidate_experience', () => { test('hire_learning_candidate_experience: title matches GT', async ({ page }) => { await page.goto('/hire-learning/candidate-experience/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('nail the candidate experience'); }); test('hire_learning_candidate_experience: h1 "Talvio, can you help me..."', async ({ page }) => { await page.goto('/hire-learning/candidate-experience/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Talvio, can you help me...' || t.startsWith('Talvio, can you help me...'))).toBeTruthy(); }); test('hire_learning_candidate_experience: h2 "Can you help me..."', async ({ page }) => { await page.goto('/hire-learning/candidate-experience/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('hire_learning_candidate_experience: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/hire-learning/candidate-experience/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('hire_learning_candidate_experience: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/hire-learning/candidate-experience/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('hire_learning_candidate_experience: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/hire-learning/candidate-experience/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('hire_learning_candidate_experience: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/hire-learning/candidate-experience/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('hire_learning_candidate_experience: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/hire-learning/candidate-experience/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Template + Best Pract' || t.startsWith('ArticleWhat Is a Job Requisition? Free Template + Best Pract')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('hire_learning_candidate_experience: nav link "View All Standout Applicant Ar"', async ({ page }) => { await page.goto('/hire-learning/candidate-experience/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Standout Applicant Articles' || t.startsWith('View All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - hire_learning_company_culture', () => { test('hire_learning_company_culture: title matches GT', async ({ page }) => { await page.goto('/hire-learning/company-culture/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('improve company culture'); }); test('hire_learning_company_culture: h1 "Talvio, Can you help me..."', async ({ page }) => { await page.goto('/hire-learning/company-culture/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Talvio, Can you help me...' || t.startsWith('Talvio, Can you help me...'))).toBeTruthy(); }); test('hire_learning_company_culture: h2 "Show me how to..."', async ({ page }) => { await page.goto('/hire-learning/company-culture/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Show me how to...' || t.startsWith('Show me how to...'))).toBeTruthy(); }); test('hire_learning_company_culture: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/hire-learning/company-culture/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('hire_learning_company_culture: h2 "How to Shield Your Hiring Pipe"', async ({ page }) => { await page.goto('/hire-learning/company-culture/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Shield Your Hiring Pipeline From Fraud Without Losing Great People' || t.startsWith('How to Shield Your Hiring Pipeline From Fraud Without Losing Great People'))).toBeTruthy(); }); test('hire_learning_company_culture: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/hire-learning/company-culture/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('hire_learning_company_culture: nav link "ArticleHow to Shield Your Hiri"', async ({ page }) => { await page.goto('/hire-learning/company-culture/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Shield Your Hiring Pipeline From Fraud Without' || t.startsWith('ArticleHow to Shield Your Hiring Pipeline From Fraud Without')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('hire_learning_company_culture: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/hire-learning/company-culture/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Template + 2026 Best ' || t.startsWith('ArticleWhat Is a Job Requisition? Free Template + 2026 Best ')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('hire_learning_company_culture: nav link "See Every Standout Applicant A"', async ({ page }) => { await page.goto('/hire-learning/company-culture/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See Every Standout Applicant Article' || t.startsWith('See Every Standout Applicant Article')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - hire_learning_dei', () => { test('hire_learning_dei: title matches GT', async ({ page }) => { await page.goto('/hire-learning/dei/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('build a dei strategy'); }); test('hire_learning_dei: h1 "Talvio, Can you help me..."', async ({ page }) => { await page.goto('/hire-learning/dei/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Talvio, Can you help me...' || t.startsWith('Talvio, Can you help me...'))).toBeTruthy(); }); test('hire_learning_dei: h2 "Can we help you..."', async ({ page }) => { await page.goto('/hire-learning/dei/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can we help you...' || t.startsWith('Can we help you...'))).toBeTruthy(); }); test('hire_learning_dei: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/hire-learning/dei/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('hire_learning_dei: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/hire-learning/dei/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('hire_learning_dei: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/hire-learning/dei/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('hire_learning_dei: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/hire-learning/dei/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('hire_learning_dei: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/hire-learning/dei/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Template + Best Pract' || t.startsWith('ArticleWhat Is a Job Requisition? Free Template + Best Pract')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('hire_learning_dei: nav link "See All Awesome Applicant Arti"', async ({ page }) => { await page.goto('/hire-learning/dei/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See All Awesome Applicant Articles' || t.startsWith('See All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - hire_learning_destress', () => { test('hire_learning_destress: h1 "Talvio, Can you help me..."', async ({ page }) => { await page.goto('/hire-learning/destress/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Talvio, Can you help me...' || t.startsWith('Talvio, Can you help me...'))).toBeTruthy(); }); test('hire_learning_destress: h2 "Show me how to..."', async ({ page }) => { await page.goto('/hire-learning/destress/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Show me how to...' || t.startsWith('Show me how to...'))).toBeTruthy(); }); test('hire_learning_destress: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/hire-learning/destress/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('hire_learning_destress: h2 "How to Shield Your Hiring Pipe"', async ({ page }) => { await page.goto('/hire-learning/destress/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Shield Your Hiring Pipeline From Fraud Without Losing Great People' || t.startsWith('How to Shield Your Hiring Pipeline From Fraud Without Losing Great People'))).toBeTruthy(); }); test('hire_learning_destress: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/hire-learning/destress/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('hire_learning_destress: nav link "ArticleHow to Shield Your Hiri"', async ({ page }) => { await page.goto('/hire-learning/destress/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Shield Your Hiring Pipeline From Fraud Without' || t.startsWith('ArticleHow to Shield Your Hiring Pipeline From Fraud Without')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('hire_learning_destress: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/hire-learning/destress/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Template + 2026 Best ' || t.startsWith('ArticleWhat Is a Job Requisition? Free Template + 2026 Best ')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('hire_learning_destress: nav link "See Every Standout Applicant A"', async ({ page }) => { await page.goto('/hire-learning/destress/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See Every Standout Applicant Article' || t.startsWith('See Every Standout Applicant Article')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - hire_learning_employer_brand', () => { test('hire_learning_employer_brand: title matches GT', async ({ page }) => { await page.goto('/hire-learning/employer-brand/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('improve employer branding'); }); test('hire_learning_employer_brand: h1 "Talvio, Can you help me..."', async ({ page }) => { await page.goto('/hire-learning/employer-brand/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Talvio, Can you help me...' || t.startsWith('Talvio, Can you help me...'))).toBeTruthy(); }); test('hire_learning_employer_brand: h2 "Can you help me..."', async ({ page }) => { await page.goto('/hire-learning/employer-brand/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('hire_learning_employer_brand: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/hire-learning/employer-brand/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('hire_learning_employer_brand: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/hire-learning/employer-brand/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Ruining Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Ruining Candidate Experience'))).toBeTruthy(); }); test('hire_learning_employer_brand: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/hire-learning/employer-brand/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('hire_learning_employer_brand: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/hire-learning/employer-brand/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Ruinin' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Ruinin')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('hire_learning_employer_brand: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/hire-learning/employer-brand/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Form + Top Tips for' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Form + Top Tips for')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('hire_learning_employer_brand: nav link "View All Standout Applicant Ar"', async ({ page }) => { await page.goto('/hire-learning/employer-brand/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Standout Applicant Articles' || t.startsWith('View All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - hire_learning_future_of_recruiting', () => { test('hire_learning_future_of_recruiting: title matches GT', async ({ page }) => { await page.goto('/hire-learning/future-of-recruiting/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('understand the future of recruiting'); }); test('hire_learning_future_of_recruiting: h1 "Talvio, can you help me..."', async ({ page }) => { await page.goto('/hire-learning/future-of-recruiting/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Talvio, can you help me...' || t.startsWith('Talvio, can you help me...'))).toBeTruthy(); }); test('hire_learning_future_of_recruiting: h2 "Need a hand with..."', async ({ page }) => { await page.goto('/hire-learning/future-of-recruiting/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Need a hand with...' || t.startsWith('Need a hand with...'))).toBeTruthy(); }); test('hire_learning_future_of_recruiting: h2 "Draw in Great Applicants"', async ({ page }) => { await page.goto('/hire-learning/future-of-recruiting/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Draw in Great Applicants' || t.startsWith('Draw in Great Applicants'))).toBeTruthy(); }); test('hire_learning_future_of_recruiting: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/hire-learning/future-of-recruiting/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('hire_learning_future_of_recruiting: nav link "Draw in great applicants"', async ({ page }) => { await page.goto('/hire-learning/future-of-recruiting/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Draw in great applicants' || t.startsWith('Draw in great applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('hire_learning_future_of_recruiting: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/hire-learning/future-of-recruiting/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('hire_learning_future_of_recruiting: nav link "ArticleJob Requisitions Explai"', async ({ page }) => { await page.goto('/hire-learning/future-of-recruiting/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleJob Requisitions Explained: Sample Form + Best Practi' || t.startsWith('ArticleJob Requisitions Explained: Sample Form + Best Practi')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('hire_learning_future_of_recruiting: nav link "See All Awesome Applicant Arti"', async ({ page }) => { await page.goto('/hire-learning/future-of-recruiting/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See All Awesome Applicant Articles' || t.startsWith('See All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - hire_learning_hiring_decisions', () => { test('hire_learning_hiring_decisions: title matches GT', async ({ page }) => { await page.goto('/hire-learning/hiring-decisions/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('make smart hiring calls'); }); test('hire_learning_hiring_decisions: h1 "Talvio, can you help me..."', async ({ page }) => { await page.goto('/hire-learning/hiring-decisions/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Talvio, can you help me...' || t.startsWith('Talvio, can you help me...'))).toBeTruthy(); }); test('hire_learning_hiring_decisions: h2 "Can you help me..."', async ({ page }) => { await page.goto('/hire-learning/hiring-decisions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('hire_learning_hiring_decisions: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/hire-learning/hiring-decisions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('hire_learning_hiring_decisions: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/hire-learning/hiring-decisions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Ruining Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Ruining Candidate Experience'))).toBeTruthy(); }); test('hire_learning_hiring_decisions: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/hire-learning/hiring-decisions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('hire_learning_hiring_decisions: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/hire-learning/hiring-decisions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Ruinin' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Ruinin')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('hire_learning_hiring_decisions: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/hire-learning/hiring-decisions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Form + Top Tips for' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Form + Top Tips for')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('hire_learning_hiring_decisions: nav link "View All Standout Applicant Ar"', async ({ page }) => { await page.goto('/hire-learning/hiring-decisions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Standout Applicant Articles' || t.startsWith('View All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - hire_learning_hiring_process', () => { test('hire_learning_hiring_process: title matches GT', async ({ page }) => { await page.goto('/hire-learning/hiring-process/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('develop a hiring process'); }); test('hire_learning_hiring_process: h1 "Talvio, can you help me..."', async ({ page }) => { await page.goto('/hire-learning/hiring-process/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Talvio, can you help me...' || t.startsWith('Talvio, can you help me...'))).toBeTruthy(); }); test('hire_learning_hiring_process: h2 "Can you help me..."', async ({ page }) => { await page.goto('/hire-learning/hiring-process/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('hire_learning_hiring_process: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/hire-learning/hiring-process/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('hire_learning_hiring_process: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/hire-learning/hiring-process/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('hire_learning_hiring_process: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/hire-learning/hiring-process/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('hire_learning_hiring_process: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/hire-learning/hiring-process/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('hire_learning_hiring_process: nav link "ArticleJob Requisitions Explai"', async ({ page }) => { await page.goto('/hire-learning/hiring-process/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleJob Requisitions Explained: Sample Form + Best Practi' || t.startsWith('ArticleJob Requisitions Explained: Sample Form + Best Practi')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('hire_learning_hiring_process: nav link "Browse All Standout Applicant "', async ({ page }) => { await page.goto('/hire-learning/hiring-process/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Browse All Standout Applicant Articles' || t.startsWith('Browse All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - hire_learning_hr_regulations', () => { test('hire_learning_hr_regulations: title matches GT', async ({ page }) => { await page.goto('/hire-learning/hr-regulations/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('comply with the government stuff'); }); test('hire_learning_hr_regulations: h1 "Talvio, Can you help me..."', async ({ page }) => { await page.goto('/hire-learning/hr-regulations/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Talvio, Can you help me...' || t.startsWith('Talvio, Can you help me...'))).toBeTruthy(); }); test('hire_learning_hr_regulations: h2 "Can you help me..."', async ({ page }) => { await page.goto('/hire-learning/hr-regulations/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('hire_learning_hr_regulations: h2 "Reel in Awesome Applicants"', async ({ page }) => { await page.goto('/hire-learning/hr-regulations/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in Awesome Applicants' || t.startsWith('Reel in Awesome Applicants'))).toBeTruthy(); }); test('hire_learning_hr_regulations: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/hire-learning/hr-regulations/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('hire_learning_hr_regulations: nav link "Reel in awesome applicants"', async ({ page }) => { await page.goto('/hire-learning/hr-regulations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in awesome applicants' || t.startsWith('Reel in awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('hire_learning_hr_regulations: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/hire-learning/hr-regulations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('hire_learning_hr_regulations: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/hire-learning/hr-regulations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Sample Form + Best Pr' || t.startsWith('ArticleWhat Is a Job Requisition? Free Sample Form + Best Pr')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('hire_learning_hr_regulations: nav link "View All Awesome Applicant Art"', async ({ page }) => { await page.goto('/hire-learning/hr-regulations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Awesome Applicant Articles' || t.startsWith('View All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - hire_learning_more_applicants', () => { test('hire_learning_more_applicants: title matches GT', async ({ page }) => { await page.goto('/hire-learning/more-applicants/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('reel in awesome applicants'); }); test('hire_learning_more_applicants: h1 "Talvio, Can you help me..."', async ({ page }) => { await page.goto('/hire-learning/more-applicants/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Talvio, Can you help me...' || t.startsWith('Talvio, Can you help me...'))).toBeTruthy(); }); test('hire_learning_more_applicants: h2 "Can you help me..."', async ({ page }) => { await page.goto('/hire-learning/more-applicants/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('hire_learning_more_applicants: h2 "Reel in Awesome Applicants"', async ({ page }) => { await page.goto('/hire-learning/more-applicants/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in Awesome Applicants' || t.startsWith('Reel in Awesome Applicants'))).toBeTruthy(); }); test('hire_learning_more_applicants: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/hire-learning/more-applicants/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Ruining Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Ruining Candidate Experience'))).toBeTruthy(); }); test('hire_learning_more_applicants: nav link "Reel in awesome applicants"', async ({ page }) => { await page.goto('/hire-learning/more-applicants/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in awesome applicants' || t.startsWith('Reel in awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('hire_learning_more_applicants: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/hire-learning/more-applicants/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Ruinin' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Ruinin')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('hire_learning_more_applicants: nav link "ArticleWhat\'s a Job Requisitio"', async ({ page }) => { await page.goto('/hire-learning/more-applicants/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat\'s a Job Requisition? Free Sample Form + Best Pra' || t.startsWith('ArticleWhat\'s a Job Requisition? Free Sample Form + Best Pra')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('hire_learning_more_applicants: nav link "View All Awesome Applicant Art"', async ({ page }) => { await page.goto('/hire-learning/more-applicants/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Awesome Applicant Articles' || t.startsWith('View All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - hire_learning_productive_interviewing', () => { test('hire_learning_productive_interviewing: title matches GT', async ({ page }) => { await page.goto('/hire-learning/productive-interviewing/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('run productive interviews'); }); test('hire_learning_productive_interviewing: h1 "Talvio, can you help me..."', async ({ page }) => { await page.goto('/hire-learning/productive-interviewing/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Talvio, can you help me...' || t.startsWith('Talvio, can you help me...'))).toBeTruthy(); }); test('hire_learning_productive_interviewing: h2 "Could you help me..."', async ({ page }) => { await page.goto('/hire-learning/productive-interviewing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Could you help me...' || t.startsWith('Could you help me...'))).toBeTruthy(); }); test('hire_learning_productive_interviewing: h2 "Attract Awesome Applicants"', async ({ page }) => { await page.goto('/hire-learning/productive-interviewing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Awesome Applicants' || t.startsWith('Attract Awesome Applicants'))).toBeTruthy(); }); test('hire_learning_productive_interviewing: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/hire-learning/productive-interviewing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('hire_learning_productive_interviewing: nav link "Attract awesome applicants"', async ({ page }) => { await page.goto('/hire-learning/productive-interviewing/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract awesome applicants' || t.startsWith('Attract awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('hire_learning_productive_interviewing: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/hire-learning/productive-interviewing/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('hire_learning_productive_interviewing: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/hire-learning/productive-interviewing/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Form + Best Practices' || t.startsWith('ArticleWhat Is a Job Requisition? Free Form + Best Practices')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('hire_learning_productive_interviewing: nav link "See All Awesome Applicant Arti"', async ({ page }) => { await page.goto('/hire-learning/productive-interviewing/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See All Awesome Applicant Articles' || t.startsWith('See All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - hire_learning_small_business', () => { test('hire_learning_small_business: title matches GT', async ({ page }) => { await page.goto('/hire-learning/small-business/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('recruit as a small business (smb)'); }); test('hire_learning_small_business: h1 "Talvio, can you help me..."', async ({ page }) => { await page.goto('/hire-learning/small-business/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Talvio, can you help me...' || t.startsWith('Talvio, can you help me...'))).toBeTruthy(); }); test('hire_learning_small_business: h2 "Can you help me..."', async ({ page }) => { await page.goto('/hire-learning/small-business/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('hire_learning_small_business: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/hire-learning/small-business/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('hire_learning_small_business: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/hire-learning/small-business/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('hire_learning_small_business: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/hire-learning/small-business/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('hire_learning_small_business: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/hire-learning/small-business/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('hire_learning_small_business: nav link "ArticleWhat\'s a Job Requisitio"', async ({ page }) => { await page.goto('/hire-learning/small-business/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat\'s a Job Requisition? Free Form + Best Practices ' || t.startsWith('ArticleWhat\'s a Job Requisition? Free Form + Best Practices ')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('hire_learning_small_business: nav link "View All Standout Applicant Ar"', async ({ page }) => { await page.goto('/hire-learning/small-business/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Standout Applicant Articles' || t.startsWith('View All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - hire_learning_team_performance', () => { test('hire_learning_team_performance: title matches GT', async ({ page }) => { await page.goto('/hire-learning/team-performance/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('improve my team performance'); }); test('hire_learning_team_performance: h1 "Talvio, Can you help me..."', async ({ page }) => { await page.goto('/hire-learning/team-performance/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Talvio, Can you help me...' || t.startsWith('Talvio, Can you help me...'))).toBeTruthy(); }); test('hire_learning_team_performance: h2 "Can you help me..."', async ({ page }) => { await page.goto('/hire-learning/team-performance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('hire_learning_team_performance: h2 "Reel in Awesome Applicants"', async ({ page }) => { await page.goto('/hire-learning/team-performance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in Awesome Applicants' || t.startsWith('Reel in Awesome Applicants'))).toBeTruthy(); }); test('hire_learning_team_performance: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/hire-learning/team-performance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking Candidate Experience'))).toBeTruthy(); }); test('hire_learning_team_performance: nav link "Reel in awesome applicants"', async ({ page }) => { await page.goto('/hire-learning/team-performance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in awesome applicants' || t.startsWith('Reel in awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('hire_learning_team_performance: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/hire-learning/team-performance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('hire_learning_team_performance: nav link "ArticleJob Requisitions Explai"', async ({ page }) => { await page.goto('/hire-learning/team-performance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleJob Requisitions Explained: Free Sample Form + Best P' || t.startsWith('ArticleJob Requisitions Explained: Free Sample Form + Best P')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('hire_learning_team_performance: nav link "View All Awesome Applicant Art"', async ({ page }) => { await page.goto('/hire-learning/team-performance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Awesome Applicant Articles' || t.startsWith('View All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - qualify_diversity_inclusion', () => { test('qualify_diversity_inclusion: title matches GT', async ({ page }) => { await page.goto('/qualify/diversity-inclusion/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('qualify candidates faster with talvio ap'); }); test('qualify_diversity_inclusion: h1 "Review and rank your candidate"', async ({ page }) => { await page.goto('/qualify/diversity-inclusion/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Review and rank your candidates, faster.' || t.startsWith('Review and rank your candidates, faster.'))).toBeTruthy(); }); test('qualify_diversity_inclusion: h2 "Features"', async ({ page }) => { await page.goto('/qualify/diversity-inclusion/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features'))).toBeTruthy(); }); test('qualify_diversity_inclusion: h2 "Candidate Management"', async ({ page }) => { await page.goto('/qualify/diversity-inclusion/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Candidate Management' || t.startsWith('Candidate Management'))).toBeTruthy(); }); test('qualify_diversity_inclusion: h2 "Talvio Intelligence"', async ({ page }) => { await page.goto('/qualify/diversity-inclusion/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Talvio Intelligence' || t.startsWith('Talvio Intelligence'))).toBeTruthy(); }); test('qualify_diversity_inclusion: nav link "Promote & AttractGet your open"', async ({ page }) => { await page.goto('/qualify/diversity-inclusion/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Promote & AttractGet your open roles in front of all the rig' || t.startsWith('Promote & AttractGet your open roles in front of all the rig')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('attract')), 'href fragment present').toBeTruthy(); }); test('qualify_diversity_inclusion: nav link "Career Pages"', async ({ page }) => { await page.goto('/qualify/diversity-inclusion/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Career Pages' || t.startsWith('Career Pages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('career-sites')), 'href fragment present').toBeTruthy(); }); test('qualify_diversity_inclusion: nav link "Role Advertising"', async ({ page }) => { await page.goto('/qualify/diversity-inclusion/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Role Advertising' || t.startsWith('Role Advertising')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('advertise-jobs')), 'href fragment present').toBeTruthy(); }); test('qualify_diversity_inclusion: nav link "Colleague Referrals"', async ({ page }) => { await page.goto('/qualify/diversity-inclusion/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Colleague Referrals' || t.startsWith('Colleague Referrals')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('employee-referrals')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - resources_talvio_updates_sms_text_messaging', () => { test('resources_talvio_updates_sms_text_messaging: title matches GT', async ({ page }) => { await page.goto('/resources/talvio-updates/sms-text-messaging/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('talvio hr sms/text messaging'); }); test('resources_talvio_updates_sms_text_messaging: h1 "SMS/Text Messaging"', async ({ page }) => { await page.goto('/resources/talvio-updates/sms-text-messaging/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SMS/Text Messaging' || t.startsWith('SMS/Text Messaging'))).toBeTruthy(); }); test('resources_talvio_updates_sms_text_messaging: h2 "Hiring Is A Conversation, Not "', async ({ page }) => { await page.goto('/resources/talvio-updates/sms-text-messaging/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Hiring Is A Conversation, Not an Endless Game of Tag' || t.startsWith('Hiring Is A Conversation, Not an Endless Game of Tag'))).toBeTruthy(); }); test('resources_talvio_updates_sms_text_messaging: h2 "How SMS/Text Messaging Works"', async ({ page }) => { await page.goto('/resources/talvio-updates/sms-text-messaging/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How SMS/Text Messaging Works' || t.startsWith('How SMS/Text Messaging Works'))).toBeTruthy(); }); test('resources_talvio_updates_sms_text_messaging: h2 "Welcome to Modern Applicant Tr"', async ({ page }) => { await page.goto('/resources/talvio-updates/sms-text-messaging/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Welcome to Modern Applicant Tracking' || t.startsWith('Welcome to Modern Applicant Tracking'))).toBeTruthy(); }); test('resources_talvio_updates_sms_text_messaging: nav link "Advertise & AttractPut your op"', async ({ page }) => { await page.goto('/resources/talvio-updates/sms-text-messaging/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Advertise & AttractPut your open roles in front of the right' || t.startsWith('Advertise & AttractPut your open roles in front of the right')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('attract')), 'href fragment present').toBeTruthy(); }); test('resources_talvio_updates_sms_text_messaging: nav link "Career Sites"', async ({ page }) => { await page.goto('/resources/talvio-updates/sms-text-messaging/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Career Sites' || t.startsWith('Career Sites')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('career-sites')), 'href fragment present').toBeTruthy(); }); test('resources_talvio_updates_sms_text_messaging: nav link "Job Advertising"', async ({ page }) => { await page.goto('/resources/talvio-updates/sms-text-messaging/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Job Advertising' || t.startsWith('Job Advertising')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('advertise-jobs')), 'href fragment present').toBeTruthy(); }); test('resources_talvio_updates_sms_text_messaging: nav link "Employee Referrals"', async ({ page }) => { await page.goto('/resources/talvio-updates/sms-text-messaging/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Employee Referrals' || t.startsWith('Employee Referrals')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('employee-referrals')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - resources_ebooks_fake_job_applicants', () => { test('resources_ebooks_fake_job_applicants: title matches GT', async ({ page }) => { await page.goto('/resources/ebooks/fake-job-applicants/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('catch fake job applicants early'); }); test('resources_ebooks_fake_job_applicants: h1 "Stop Fake Job Applicants Befor"', async ({ page }) => { await page.goto('/resources/ebooks/fake-job-applicants/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stop Fake Job Applicants Before They Drain Hours' || t.startsWith('Stop Fake Job Applicants Before They Drain Hours'))).toBeTruthy(); }); test('resources_ebooks_fake_job_applicants: h2 "Telling the real signal from t"', async ({ page }) => { await page.goto('/resources/ebooks/fake-job-applicants/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Telling the real signal from the noise' || t.startsWith('Telling the real signal from the noise'))).toBeTruthy(); }); test('resources_ebooks_fake_job_applicants: h2 "What does the data reveal abou"', async ({ page }) => { await page.goto('/resources/ebooks/fake-job-applicants/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'What does the data reveal about fake job applicants across certain roles?' || t.startsWith('What does the data reveal about fake job applicants across certain roles?'))).toBeTruthy(); }); test('resources_ebooks_fake_job_applicants: h2 "Design a scam-proof hiring pro"', async ({ page }) => { await page.goto('/resources/ebooks/fake-job-applicants/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Design a scam-proof hiring process' || t.startsWith('Design a scam-proof hiring process'))).toBeTruthy(); }); }); test.describe('Functional - resources_hiring_reports_diversity_hiring_report', () => { test('resources_hiring_reports_diversity_hiring_report: title matches GT', async ({ page }) => { await page.goto('/resources/hiring-reports/diversity-hiring-report/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('diversity hiring in 2025'); }); test('resources_hiring_reports_diversity_hiring_report: h1 "Where Diversity Hiring Stands "', async ({ page }) => { await page.goto('/resources/hiring-reports/diversity-hiring-report/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Where Diversity Hiring Stands in 2025' || t.startsWith('Where Diversity Hiring Stands in 2025'))).toBeTruthy(); }); test('resources_hiring_reports_diversity_hiring_report: h2 "Momentum or Retreat?"', async ({ page }) => { await page.goto('/resources/hiring-reports/diversity-hiring-report/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Momentum or Retreat?' || t.startsWith('Momentum or Retreat?'))).toBeTruthy(); }); test('resources_hiring_reports_diversity_hiring_report: h2 "You\'re in Great Company"', async ({ page }) => { await page.goto('/resources/hiring-reports/diversity-hiring-report/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'You\'re in Great Company' || t.startsWith('You\'re in Great Company'))).toBeTruthy(); }); test('resources_hiring_reports_diversity_hiring_report: h2 "Start improving your recruitin"', async ({ page }) => { await page.goto('/resources/hiring-reports/diversity-hiring-report/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Start improving your recruiting process today.' || t.startsWith('Start improving your recruiting process today.'))).toBeTruthy(); }); }); test.describe('Functional - resources_hr_email_templates', () => { test('resources_hr_email_templates: title matches GT', async ({ page }) => { await page.goto('/resources/hr-email-templates/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('human resources (hr) templates'); }); test('resources_hr_email_templates: h1 "HR Email Templates"', async ({ page }) => { await page.goto('/resources/hr-email-templates/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'HR Email Templates' || t.startsWith('HR Email Templates'))).toBeTruthy(); }); test('resources_hr_email_templates: h2 "Can you help me..."', async ({ page }) => { await page.goto('/resources/hr-email-templates/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('resources_hr_email_templates: h2 "Bring in Awesome Applicants"', async ({ page }) => { await page.goto('/resources/hr-email-templates/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Bring in Awesome Applicants' || t.startsWith('Bring in Awesome Applicants'))).toBeTruthy(); }); test('resources_hr_email_templates: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/resources/hr-email-templates/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('resources_hr_email_templates: nav link "Bring in awesome applicants"', async ({ page }) => { await page.goto('/resources/hr-email-templates/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Bring in awesome applicants' || t.startsWith('Bring in awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('resources_hr_email_templates: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/resources/hr-email-templates/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Wrecki')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('resources_hr_email_templates: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/resources/hr-email-templates/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Form and Best Pract' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Form and Best Pract')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('resources_hr_email_templates: nav link "Browse All Awesome Applicant A"', async ({ page }) => { await page.goto('/resources/hr-email-templates/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Browse All Awesome Applicant Articles' || t.startsWith('Browse All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - resources_interview_questions', () => { test('resources_interview_questions: title matches GT', async ({ page }) => { await page.goto('/resources/interview-questions/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('interview questions to guide your hiring'); }); test('resources_interview_questions: h1 "Interview Questions"', async ({ page }) => { await page.goto('/resources/interview-questions/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Interview Questions' || t.startsWith('Interview Questions'))).toBeTruthy(); }); test('resources_interview_questions: h2 "Help me tackle..."', async ({ page }) => { await page.goto('/resources/interview-questions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Help me tackle...' || t.startsWith('Help me tackle...'))).toBeTruthy(); }); test('resources_interview_questions: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/resources/interview-questions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('resources_interview_questions: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/resources/interview-questions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Workflow Without Wrecking the Candidate Journey' || t.startsWith('How to Fraud-Proof Your Hiring Workflow Without Wrecking the Candidate Journey'))).toBeTruthy(); }); test('resources_interview_questions: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/resources/interview-questions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('resources_interview_questions: nav link "FeatureHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/resources/interview-questions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FeatureHow to Fraud-Proof Your Hiring Workflow Without Wreck' || t.startsWith('FeatureHow to Fraud-Proof Your Hiring Workflow Without Wreck')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('resources_interview_questions: nav link "FeatureWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/resources/interview-questions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FeatureWhat Is a Job Requisition? Sample Template + Smart Ti' || t.startsWith('FeatureWhat Is a Job Requisition? Sample Template + Smart Ti')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('resources_interview_questions: nav link "Browse All Standout Applicant "', async ({ page }) => { await page.goto('/resources/interview-questions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Browse All Standout Applicant Guides' || t.startsWith('Browse All Standout Applicant Guides')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - resources_job_descriptions', () => { test('resources_job_descriptions: title matches GT', async ({ page }) => { await page.goto('/resources/job-descriptions/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('job description templates'); }); test('resources_job_descriptions: h1 "Job Description Templates"', async ({ page }) => { await page.goto('/resources/job-descriptions/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Job Description Templates' || t.startsWith('Job Description Templates'))).toBeTruthy(); }); test('resources_job_descriptions: h2 "Show me how to..."', async ({ page }) => { await page.goto('/resources/job-descriptions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Show me how to...' || t.startsWith('Show me how to...'))).toBeTruthy(); }); test('resources_job_descriptions: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/resources/job-descriptions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('resources_job_descriptions: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/resources/job-descriptions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Without Ruining the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Without Ruining the Candidate Experience'))).toBeTruthy(); }); test('resources_job_descriptions: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/resources/job-descriptions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('resources_job_descriptions: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/resources/job-descriptions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Without Ruining the Ca' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Without Ruining the Ca')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('resources_job_descriptions: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/resources/job-descriptions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Form and Best Practic' || t.startsWith('ArticleWhat Is a Job Requisition? Free Form and Best Practic')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('resources_job_descriptions: nav link "See All Standout Applicant Art"', async ({ page }) => { await page.goto('/resources/job-descriptions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See All Standout Applicant Articles' || t.startsWith('See All Standout Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - resources_onboarding_checklists', () => { test('resources_onboarding_checklists: title matches GT', async ({ page }) => { await page.goto('/resources/onboarding-checklists/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('onboarding templates & checklists'); }); test('resources_onboarding_checklists: h1 "Onboarding & Checklists"', async ({ page }) => { await page.goto('/resources/onboarding-checklists/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Onboarding & Checklists' || t.startsWith('Onboarding & Checklists'))).toBeTruthy(); }); test('resources_onboarding_checklists: h2 "Help me handle..."', async ({ page }) => { await page.goto('/resources/onboarding-checklists/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Help me handle...' || t.startsWith('Help me handle...'))).toBeTruthy(); }); test('resources_onboarding_checklists: h2 "Hook Great Candidates Fast"', async ({ page }) => { await page.goto('/resources/onboarding-checklists/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Hook Great Candidates Fast' || t.startsWith('Hook Great Candidates Fast'))).toBeTruthy(); }); test('resources_onboarding_checklists: h2 "How to Stop Hiring Fraud Witho"', async ({ page }) => { await page.goto('/resources/onboarding-checklists/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Stop Hiring Fraud Without Wrecking the Candidate Experience' || t.startsWith('How to Stop Hiring Fraud Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('resources_onboarding_checklists: nav link "Hook great candidates fast"', async ({ page }) => { await page.goto('/resources/onboarding-checklists/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Hook great candidates fast' || t.startsWith('Hook great candidates fast')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('resources_onboarding_checklists: nav link "ArticleHow to Stop Hiring Frau"', async ({ page }) => { await page.goto('/resources/onboarding-checklists/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Stop Hiring Fraud Without Wrecking the Candida' || t.startsWith('ArticleHow to Stop Hiring Fraud Without Wrecking the Candida')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('resources_onboarding_checklists: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/resources/onboarding-checklists/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? A Sample Form + 2026 Best ' || t.startsWith('ArticleWhat Is a Job Requisition? A Sample Form + 2026 Best ')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('resources_onboarding_checklists: nav link "View All Great Candidate Artic"', async ({ page }) => { await page.goto('/resources/onboarding-checklists/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Great Candidate Articles' || t.startsWith('View All Great Candidate Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - resources_recruiting_email_templates', () => { test('resources_recruiting_email_templates: title matches GT', async ({ page }) => { await page.goto('/resources/recruiting-email-templates/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('recruiting email templates'); }); test('resources_recruiting_email_templates: h1 "Recruiter Email Templates"', async ({ page }) => { await page.goto('/resources/recruiting-email-templates/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recruiter Email Templates' || t.startsWith('Recruiter Email Templates'))).toBeTruthy(); }); test('resources_recruiting_email_templates: h2 "Can you help me..."', async ({ page }) => { await page.goto('/resources/recruiting-email-templates/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('resources_recruiting_email_templates: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/resources/recruiting-email-templates/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('resources_recruiting_email_templates: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/resources/recruiting-email-templates/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Pipeline Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Pipeline Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('resources_recruiting_email_templates: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/resources/recruiting-email-templates/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('resources_recruiting_email_templates: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/resources/recruiting-email-templates/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Pipeline Without Wreck')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('resources_recruiting_email_templates: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/resources/recruiting-email-templates/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Form + Best Practic' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Form + Best Practic')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('resources_recruiting_email_templates: nav link "View All Awesome Applicant Art"', async ({ page }) => { await page.goto('/resources/recruiting-email-templates/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Awesome Applicant Articles' || t.startsWith('View All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - resources_salary_profiles', () => { test('resources_salary_profiles: title matches GT', async ({ page }) => { await page.goto('/resources/salary-profiles/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('salary profiles by role'); }); test('resources_salary_profiles: h1 "Salary Profiles"', async ({ page }) => { await page.goto('/resources/salary-profiles/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Salary Profiles' || t.startsWith('Salary Profiles'))).toBeTruthy(); }); test('resources_salary_profiles: h2 "Need a hand with..."', async ({ page }) => { await page.goto('/resources/salary-profiles/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Need a hand with...' || t.startsWith('Need a hand with...'))).toBeTruthy(); }); test('resources_salary_profiles: h2 "Attract Standout Applicants"', async ({ page }) => { await page.goto('/resources/salary-profiles/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract Standout Applicants' || t.startsWith('Attract Standout Applicants'))).toBeTruthy(); }); test('resources_salary_profiles: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/resources/salary-profiles/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Without Wrecking the Candidate Experience'))).toBeTruthy(); }); test('resources_salary_profiles: nav link "Attract standout applicants"', async ({ page }) => { await page.goto('/resources/salary-profiles/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Attract standout applicants' || t.startsWith('Attract standout applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('resources_salary_profiles: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/resources/salary-profiles/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Without Wrecking the C')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('resources_salary_profiles: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/resources/salary-profiles/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Free Form + Best Practices' || t.startsWith('ArticleWhat Is a Job Requisition? Free Form + Best Practices')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('resources_salary_profiles: nav link "See Every Standout Applicant A"', async ({ page }) => { await page.goto('/resources/salary-profiles/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See Every Standout Applicant Article' || t.startsWith('See Every Standout Applicant Article')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - resources_topics', () => { test('resources_topics: title matches GT', async ({ page }) => { await page.goto('/resources/topics/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('hiring resources'); }); test('resources_topics: h1 "Hiring Resources: All Topics"', async ({ page }) => { await page.goto('/resources/topics/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Hiring Resources: All Topics' || t.startsWith('Hiring Resources: All Topics'))).toBeTruthy(); }); test('resources_topics: h2 "Can you help me..."', async ({ page }) => { await page.goto('/resources/topics/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can you help me...' || t.startsWith('Can you help me...'))).toBeTruthy(); }); test('resources_topics: h2 "Reel in Awesome Applicants"', async ({ page }) => { await page.goto('/resources/topics/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in Awesome Applicants' || t.startsWith('Reel in Awesome Applicants'))).toBeTruthy(); }); test('resources_topics: h2 "How to Fraud-Proof Your Hiring"', async ({ page }) => { await page.goto('/resources/topics/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Fraud-Proof Your Hiring Process Without Ruining Candidate Experience' || t.startsWith('How to Fraud-Proof Your Hiring Process Without Ruining Candidate Experience'))).toBeTruthy(); }); test('resources_topics: nav link "Reel in awesome applicants"', async ({ page }) => { await page.goto('/resources/topics/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reel in awesome applicants' || t.startsWith('Reel in awesome applicants')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); test('resources_topics: nav link "ArticleHow to Fraud-Proof Your"', async ({ page }) => { await page.goto('/resources/topics/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleHow to Fraud-Proof Your Hiring Process Without Ruinin' || t.startsWith('ArticleHow to Fraud-Proof Your Hiring Process Without Ruinin')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('candidate-fraud')), 'href fragment present').toBeTruthy(); }); test('resources_topics: nav link "ArticleWhat Is a Job Requisiti"', async ({ page }) => { await page.goto('/resources/topics/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArticleWhat Is a Job Requisition? Sample Form + Best Practic' || t.startsWith('ArticleWhat Is a Job Requisition? Sample Form + Best Practic')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('job-requisition')), 'href fragment present').toBeTruthy(); }); test('resources_topics: nav link "View All Awesome Applicant Art"', async ({ page }) => { await page.goto('/resources/topics/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View All Awesome Applicant Articles' || t.startsWith('View All Awesome Applicant Articles')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('more-applicants')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - Routing', () => { test('navigate to resources_hiring_reports_source_of_hire_report via "2026 State of Hiring Report"', async ({ page }) => { await page.goto('/'); const link = page.locator('a[href*="source-of-hire-report"]').first(); expect(await link.count(), 'nav link to resources_hiring_reports_source_of_hire_report exists').toBeGreaterThan(0); await link.click(); await page.waitForTimeout(1200); expect(page.url().toLowerCase(), 'URL changed to destination').toContain('source-of-hire-report'); const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); expect(bodyText, 'destination distinctive content shown').toContain('Where Hires Begin'); }); test('navigate to attract via "Advertise & PromotePut your op"', async ({ page }) => { await page.goto('/'); const link = page.locator('a[href*="attract"]').first(); expect(await link.count(), 'nav link to attract exists').toBeGreaterThan(0); await link.click(); await page.waitForTimeout(1200); expect(page.url().toLowerCase(), 'URL changed to destination').toContain('attract'); const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); expect(bodyText, 'destination distinctive content shown').toContain('Attract the best candidates, wherever they work.'); }); test('navigate to qualify via "Qualify & AutomateSpeed up scr"', async ({ page }) => { await page.goto('/'); const link = page.locator('a[href*="qualify"]').first(); expect(await link.count(), 'nav link to qualify exists').toBeGreaterThan(0); await link.click(); await page.waitForTimeout(1200); expect(page.url().toLowerCase(), 'URL changed to destination').toContain('qualify'); const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); expect(bodyText, 'destination distinctive content shown').toContain('Compare and screen candidates, faster.'); }); });