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('sentorra'); }); test('homepage: h1 "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra'))).toBeTruthy(); }); test('homepage: h2 "Privacy is a right that belong"', async ({ page }) => { await page.goto('/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Privacy is a right that belongs to everyone.' || t.startsWith('Privacy is a right that belongs to everyone.'))).toBeTruthy(); }); test('homepage: h2 "Our Issues"', async ({ page }) => { await page.goto('/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Issues' || t.startsWith('Our Issues'))).toBeTruthy(); }); test('homepage: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('homepage: nav link "AI & Civil Liberties"', 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 === 'AI & Civil Liberties' || t.startsWith('AI & Civil Liberties')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('homepage: nav link "AI in Public Safety"', 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 === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('homepage: nav link "AI Ethics"', 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 === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - GradingOnACurve', () => { test('GradingOnACurve: title matches GT', async ({ page }) => { await page.goto('/GradingOnACurve/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('held to the standard'); }); test('GradingOnACurve: h2 "Contents"', async ({ page }) => { await page.goto('/GradingOnACurve/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('GradingOnACurve: h2 "Elements of a Privacy Law"', async ({ page }) => { await page.goto('/GradingOnACurve/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Elements of a Privacy Law' || t.startsWith('Elements of a Privacy Law'))).toBeTruthy(); }); test('GradingOnACurve: h2 "Scorecard"', async ({ page }) => { await page.goto('/GradingOnACurve/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Scorecard' || t.startsWith('Scorecard'))).toBeTruthy(); }); test('GradingOnACurve: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/GradingOnACurve/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('GradingOnACurve: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/GradingOnACurve/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('GradingOnACurve: nav link "AI in Policing Tools"', async ({ page }) => { await page.goto('/GradingOnACurve/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Tools' || t.startsWith('AI in Policing Tools')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('GradingOnACurve: nav link "AI Policy"', async ({ page }) => { await page.goto('/GradingOnACurve/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - about', () => { test('about: title matches GT', async ({ page }) => { await page.goto('/about/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('about us'); }); test('about: h2 "Our stance…"', async ({ page }) => { await page.goto('/about/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our stance…' || t.startsWith('Our stance…'))).toBeTruthy(); }); test('about: h2 "Fund Our Mission"', async ({ page }) => { await page.goto('/about/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Fund Our Mission' || t.startsWith('Fund Our Mission'))).toBeTruthy(); }); test('about: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/about/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('about: nav link "AI & Human Dignity"', async ({ page }) => { await page.goto('/about/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Dignity' || t.startsWith('AI & Human Dignity')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('about: nav link "AI in Criminal Justice"', async ({ page }) => { await page.goto('/about/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Criminal Justice' || t.startsWith('AI in Criminal Justice')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('about: nav link "AI Reform"', async ({ page }) => { await page.goto('/about/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Reform' || t.startsWith('AI Reform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - alert', () => { test('alert: title matches GT', async ({ page }) => { await page.goto('/alert/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra alert'); }); test('alert: h1 "The Signal"', async ({ page }) => { await page.goto('/alert/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Signal' || t.startsWith('The Signal'))).toBeTruthy(); }); test('alert: h2 "Fund Our Mission"', async ({ page }) => { await page.goto('/alert/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Fund Our Mission' || t.startsWith('Fund Our Mission'))).toBeTruthy(); }); test('alert: h3 "The Signal 33.4 – April 2026"', async ({ page }) => { await page.goto('/alert/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Signal 33.4 – April 2026' || t.startsWith('The Signal 33.4 – April 2026'))).toBeTruthy(); }); test('alert: h3 "KEY UPDATES"', async ({ page }) => { await page.goto('/alert/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'KEY UPDATES' || t.startsWith('KEY UPDATES'))).toBeTruthy(); }); test('alert: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/alert/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('alert: nav link "AI & Human Dignity"', async ({ page }) => { await page.goto('/alert/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Dignity' || t.startsWith('AI & Human Dignity')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('alert: nav link "AI and Policing Tools"', async ({ page }) => { await page.goto('/alert/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI and Policing Tools' || t.startsWith('AI and Policing Tools')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('alert: nav link "AI Policy"', async ({ page }) => { await page.goto('/alert/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - america_needs_a_strong_privacy_law_the_secure_data_act_isnt_it', () => { test('america_needs_a_strong_privacy_law_the_secure_data_act_isnt_it: title matches GT', async ({ page }) => { await page.goto('/america-needs-a-strong-privacy-law-the-secure-data-act-isnt-it/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('the nation needs real privacy protection'); }); test('america_needs_a_strong_privacy_law_the_secure_data_act_isnt_it: h1 "America needs real privacy pro"', async ({ page }) => { await page.goto('/america-needs-a-strong-privacy-law-the-secure-data-act-isnt-it/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'America needs real privacy protection. The SHIELD Data Act fails us.' || t.startsWith('America needs real privacy protection. The SHIELD Data Act fails us.'))).toBeTruthy(); }); test('america_needs_a_strong_privacy_law_the_secure_data_act_isnt_it: h2 "Back Our Mission"', async ({ page }) => { await page.goto('/america-needs-a-strong-privacy-law-the-secure-data-act-isnt-it/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back Our Mission' || t.startsWith('Back Our Mission'))).toBeTruthy(); }); test('america_needs_a_strong_privacy_law_the_secure_data_act_isnt_it: h3 "The SHIELD Data Act lets rampa"', async ({ page }) => { await page.goto('/america-needs-a-strong-privacy-law-the-secure-data-act-isnt-it/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The SHIELD Data Act lets rampant data collection and abuse carry on uninterrupted' || t.startsWith('The SHIELD Data Act lets rampant data collection and abuse carry on uninterrupted'))).toBeTruthy(); }); test('america_needs_a_strong_privacy_law_the_secure_data_act_isnt_it: h3 "The SHIELD Data Act disregards"', async ({ page }) => { await page.goto('/america-needs-a-strong-privacy-law-the-secure-data-act-isnt-it/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The SHIELD Data Act disregards the growing movement in the states toward stronger safeguards for sen' || t.startsWith('The SHIELD Data Act disregards the growing movement in the states toward stronger safeguards for sen'))).toBeTruthy(); }); test('america_needs_a_strong_privacy_law_the_secure_data_act_isnt_it: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/america-needs-a-strong-privacy-law-the-secure-data-act-isnt-it/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('america_needs_a_strong_privacy_law_the_secure_data_act_isnt_it: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/america-needs-a-strong-privacy-law-the-secure-data-act-isnt-it/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('america_needs_a_strong_privacy_law_the_secure_data_act_isnt_it: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/america-needs-a-strong-privacy-law-the-secure-data-act-isnt-it/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('america_needs_a_strong_privacy_law_the_secure_data_act_isnt_it: nav link "AI Ethics"', async ({ page }) => { await page.goto('/america-needs-a-strong-privacy-law-the-secure-data-act-isnt-it/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - analysis', () => { test('analysis: title matches GT', async ({ page }) => { await page.goto('/analysis/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('analysis'); }); test('analysis: h1 "Insights"', async ({ page }) => { await page.goto('/analysis/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Insights' || t.startsWith('Insights'))).toBeTruthy(); }); test('analysis: h2 "Safeguarding children online c"', async ({ page }) => { await page.goto('/analysis/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Safeguarding children online calls for better platform design, not access bans.' || t.startsWith('Safeguarding children online calls for better platform design, not access bans.'))).toBeTruthy(); }); test('analysis: h2 "The country deserves a real pr"', async ({ page }) => { await page.goto('/analysis/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The country deserves a real privacy law. The SENTRY Act isn’t enough.' || t.startsWith('The country deserves a real privacy law. The SENTRY Act isn’t enough.'))).toBeTruthy(); }); test('analysis: h2 "To keep children safe online, "', async ({ page }) => { await page.goto('/analysis/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'To keep children safe online, don’t lock them out of apps. Fix the design.' || t.startsWith('To keep children safe online, don’t lock them out of apps. Fix the design.'))).toBeTruthy(); }); test('analysis: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/analysis/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('analysis: nav link "AI & Basic Rights"', async ({ page }) => { await page.goto('/analysis/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Basic Rights' || t.startsWith('AI & Basic Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('analysis: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/analysis/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('analysis: nav link "AI Ethics"', async ({ page }) => { await page.goto('/analysis/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - assessing_the_assessments', () => { test('assessing_the_assessments: title matches GT', async ({ page }) => { await page.goto('/assessing-the-assessments/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('grading the graders'); }); test('assessing_the_assessments: h1 "Evaluating the Evaluations"', async ({ page }) => { await page.goto('/assessing-the-assessments/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Evaluating the Evaluations' || t.startsWith('Evaluating the Evaluations'))).toBeTruthy(); }); test('assessing_the_assessments: h2 "Risks and Risk Assessments Pan"', async ({ page }) => { await page.goto('/assessing-the-assessments/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Risks and Risk Assessments Panel Conversation' || t.startsWith('Risks and Risk Assessments Panel Conversation'))).toBeTruthy(); }); test('assessing_the_assessments: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/assessing-the-assessments/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('assessing_the_assessments: nav link "AI & Human Dignity"', async ({ page }) => { await page.goto('/assessing-the-assessments/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Dignity' || t.startsWith('AI & Human Dignity')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('assessing_the_assessments: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/assessing-the-assessments/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('assessing_the_assessments: nav link "AI Rules"', async ({ page }) => { await page.goto('/assessing-the-assessments/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - assessing_the_assessments_maximizing_the_effectiveness_of_ccpa_risk_assessments', () => { test('assessing_the_assessments_maximizing_the_effectiveness_of_ccpa_risk_assessments: title matches GT', async ({ page }) => { await page.goto('/assessing-the-assessments-maximizing-the-effectiveness-of-ccpa-risk-assessments/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('reading the risk reports'); }); test('assessing_the_assessments_maximizing_the_effectiveness_of_ccpa_risk_assessments: h1 "Rating the Reviews: Strengthen"', async ({ page }) => { await page.goto('/assessing-the-assessments-maximizing-the-effectiveness-of-ccpa-risk-assessments/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Rating the Reviews: Strengthening the Real-World Impact of CCPA Risk Assessments' || t.startsWith('Rating the Reviews: Strengthening the Real-World Impact of CCPA Risk Assessments'))).toBeTruthy(); }); test('assessing_the_assessments_maximizing_the_effectiveness_of_ccpa_risk_assessments: h2 "Fund Our Mission"', async ({ page }) => { await page.goto('/assessing-the-assessments-maximizing-the-effectiveness-of-ccpa-risk-assessments/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Fund Our Mission' || t.startsWith('Fund Our Mission'))).toBeTruthy(); }); test('assessing_the_assessments_maximizing_the_effectiveness_of_ccpa_risk_assessments: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/assessing-the-assessments-maximizing-the-effectiveness-of-ccpa-risk-assessments/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('assessing_the_assessments_maximizing_the_effectiveness_of_ccpa_risk_assessments: nav link "AI & Basic Rights"', async ({ page }) => { await page.goto('/assessing-the-assessments-maximizing-the-effectiveness-of-ccpa-risk-assessments/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Basic Rights' || t.startsWith('AI & Basic Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('assessing_the_assessments_maximizing_the_effectiveness_of_ccpa_risk_assessments: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/assessing-the-assessments-maximizing-the-effectiveness-of-ccpa-risk-assessments/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('assessing_the_assessments_maximizing_the_effectiveness_of_ccpa_risk_assessments: nav link "AI Reform"', async ({ page }) => { await page.goto('/assessing-the-assessments-maximizing-the-effectiveness-of-ccpa-risk-assessments/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Reform' || t.startsWith('AI Reform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - colorado_is_first_state_to_pass_broad_ai_legislation', () => { test('colorado_is_first_state_to_pass_broad_ai_legislation: title matches GT', async ({ page }) => { await page.goto('/colorado-is-first-state-to-pass-broad-ai-legislation/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('colorado becomes the first state to enac'); }); test('colorado_is_first_state_to_pass_broad_ai_legislation: h1 "Colorado becomes first state t"', async ({ page }) => { await page.goto('/colorado-is-first-state-to-pass-broad-ai-legislation/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Colorado becomes first state to enact broad AI law' || t.startsWith('Colorado becomes first state to enact broad AI law'))).toBeTruthy(); }); test('colorado_is_first_state_to_pass_broad_ai_legislation: h2 "Support Our Work"', async ({ page }) => { await page.goto('/colorado-is-first-state-to-pass-broad-ai-legislation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support Our Work' || t.startsWith('Support Our Work'))).toBeTruthy(); }); test('colorado_is_first_state_to_pass_broad_ai_legislation: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/colorado-is-first-state-to-pass-broad-ai-legislation/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('colorado_is_first_state_to_pass_broad_ai_legislation: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/colorado-is-first-state-to-pass-broad-ai-legislation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('colorado_is_first_state_to_pass_broad_ai_legislation: nav link "AI in Law & Policing"', async ({ page }) => { await page.goto('/colorado-is-first-state-to-pass-broad-ai-legislation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Law & Policing' || t.startsWith('AI in Law & Policing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('colorado_is_first_state_to_pass_broad_ai_legislation: nav link "AI Reform"', async ({ page }) => { await page.goto('/colorado-is-first-state-to-pass-broad-ai-legislation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Reform' || t.startsWith('AI Reform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - colorado_legislature_again_amends_landmark_ai_law', () => { test('colorado_legislature_again_amends_landmark_ai_law: title matches GT', async ({ page }) => { await page.goto('/colorado-legislature-again-amends-landmark-ai-law/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('colorado legislature again amends landma'); }); test('colorado_legislature_again_amends_landmark_ai_law: h1 "Meridia Again Scales Back Its "', async ({ page }) => { await page.goto('/colorado-legislature-again-amends-landmark-ai-law/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Meridia Again Scales Back Its Landmark AI Statute' || t.startsWith('Meridia Again Scales Back Its Landmark AI Statute'))).toBeTruthy(); }); test('colorado_legislature_again_amends_landmark_ai_law: h2 "Back Our Mission"', async ({ page }) => { await page.goto('/colorado-legislature-again-amends-landmark-ai-law/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back Our Mission' || t.startsWith('Back Our Mission'))).toBeTruthy(); }); test('colorado_legislature_again_amends_landmark_ai_law: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/colorado-legislature-again-amends-landmark-ai-law/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('colorado_legislature_again_amends_landmark_ai_law: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/colorado-legislature-again-amends-landmark-ai-law/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('colorado_legislature_again_amends_landmark_ai_law: nav link "AI in Police Systems"', async ({ page }) => { await page.goto('/colorado-legislature-again-amends-landmark-ai-law/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Police Systems' || t.startsWith('AI in Police Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('colorado_legislature_again_amends_landmark_ai_law: nav link "AI Reform"', async ({ page }) => { await page.goto('/colorado-legislature-again-amends-landmark-ai-law/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Reform' || t.startsWith('AI Reform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - connecticut_ag_issues_report_on_how_existing_state_law_applies_to_ai', () => { test('connecticut_ag_issues_report_on_how_existing_state_law_applies_to_ai: title matches GT', async ({ page }) => { await page.goto('/connecticut-ag-issues-report-on-how-existing-state-law-applies-to-ai/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('state watchdog releases findings on how '); }); test('connecticut_ag_issues_report_on_how_existing_state_law_applies_to_ai: h1 "State Attorney General Issues "', async ({ page }) => { await page.goto('/connecticut-ag-issues-report-on-how-existing-state-law-applies-to-ai/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'State Attorney General Issues Report on How Current Law Applies to AI' || t.startsWith('State Attorney General Issues Report on How Current Law Applies to AI'))).toBeTruthy(); }); test('connecticut_ag_issues_report_on_how_existing_state_law_applies_to_ai: h2 "Support Our Work"', async ({ page }) => { await page.goto('/connecticut-ag-issues-report-on-how-existing-state-law-applies-to-ai/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support Our Work' || t.startsWith('Support Our Work'))).toBeTruthy(); }); test('connecticut_ag_issues_report_on_how_existing_state_law_applies_to_ai: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/connecticut-ag-issues-report-on-how-existing-state-law-applies-to-ai/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('connecticut_ag_issues_report_on_how_existing_state_law_applies_to_ai: nav link "AI & Basic Rights"', async ({ page }) => { await page.goto('/connecticut-ag-issues-report-on-how-existing-state-law-applies-to-ai/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Basic Rights' || t.startsWith('AI & Basic Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('connecticut_ag_issues_report_on_how_existing_state_law_applies_to_ai: nav link "AI in Public Policing"', async ({ page }) => { await page.goto('/connecticut-ag-issues-report-on-how-existing-state-law-applies-to-ai/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Policing' || t.startsWith('AI in Public Policing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('connecticut_ag_issues_report_on_how_existing_state_law_applies_to_ai: nav link "AI Ethics"', async ({ page }) => { await page.goto('/connecticut-ag-issues-report-on-how-existing-state-law-applies-to-ai/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - cppa_votes_to_adopt_weak_cybersecurity_risk_assessments_and_admt_regulations', () => { test('cppa_votes_to_adopt_weak_cybersecurity_risk_assessments_and_admt_regulations: title matches GT', async ({ page }) => { await page.goto('/cppa-votes-to-adopt-weak-cybersecurity-risk-assessments-and-admt-regulations/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra condemns state agency as board '); }); test('cppa_votes_to_adopt_weak_cybersecurity_risk_assessments_and_admt_regulations: h1 "Sentorra Condemns SDPB as Boar"', async ({ page }) => { await page.goto('/cppa-votes-to-adopt-weak-cybersecurity-risk-assessments-and-admt-regulations/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra Condemns SDPB as Board Votes to Adopt Weak Risk Assessment, ADMT, and Cybersecurity Rules' || t.startsWith('Sentorra Condemns SDPB as Board Votes to Adopt Weak Risk Assessment, ADMT, and Cybersecurity Rules'))).toBeTruthy(); }); test('cppa_votes_to_adopt_weak_cybersecurity_risk_assessments_and_admt_regulations: h2 "Support Our Work"', async ({ page }) => { await page.goto('/cppa-votes-to-adopt-weak-cybersecurity-risk-assessments-and-admt-regulations/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support Our Work' || t.startsWith('Support Our Work'))).toBeTruthy(); }); test('cppa_votes_to_adopt_weak_cybersecurity_risk_assessments_and_admt_regulations: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/cppa-votes-to-adopt-weak-cybersecurity-risk-assessments-and-admt-regulations/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('cppa_votes_to_adopt_weak_cybersecurity_risk_assessments_and_admt_regulations: nav link "AI & Human Rights"', async ({ page }) => { await page.goto('/cppa-votes-to-adopt-weak-cybersecurity-risk-assessments-and-admt-regulations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Rights' || t.startsWith('AI & Human Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('cppa_votes_to_adopt_weak_cybersecurity_risk_assessments_and_admt_regulations: nav link "AI in Law Enforcement"', async ({ page }) => { await page.goto('/cppa-votes-to-adopt-weak-cybersecurity-risk-assessments-and-admt-regulations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Law Enforcement' || t.startsWith('AI in Law Enforcement')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('cppa_votes_to_adopt_weak_cybersecurity_risk_assessments_and_admt_regulations: nav link "AI Policy"', async ({ page }) => { await page.goto('/cppa-votes-to-adopt-weak-cybersecurity-risk-assessments-and-admt-regulations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - cy_pres', () => { test('cy_pres: title matches GT', async ({ page }) => { await page.goto('/cy-pres/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('cy pres awards'); }); test('cy_pres: h1 "Cy Pres Awards – Consumer Priv"', async ({ page }) => { await page.goto('/cy-pres/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Cy Pres Awards – Consumer Privacy' || t.startsWith('Cy Pres Awards – Consumer Privacy'))).toBeTruthy(); }); test('cy_pres: h2 "Resources"', async ({ page }) => { await page.goto('/cy-pres/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('cy_pres: h2 "Explore Sentorra’s Work"', async ({ page }) => { await page.goto('/cy-pres/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Explore Sentorra’s Work' || t.startsWith('Explore Sentorra’s Work'))).toBeTruthy(); }); test('cy_pres: h3 "Being a Non-Profit"', async ({ page }) => { await page.goto('/cy-pres/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Being a Non-Profit' || t.startsWith('Being a Non-Profit'))).toBeTruthy(); }); test('cy_pres: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/cy-pres/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('cy_pres: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/cy-pres/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('cy_pres: nav link "AI in Policing Tools"', async ({ page }) => { await page.goto('/cy-pres/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Tools' || t.startsWith('AI in Policing Tools')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('cy_pres: nav link "AI Ethics"', async ({ page }) => { await page.goto('/cy-pres/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - donate', () => { test('donate: title matches GT', async ({ page }) => { await page.goto('/donate/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('donate to sentorra.'); }); test('donate: h1 "Support Sentorra."', async ({ page }) => { await page.goto('/donate/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support Sentorra.' || t.startsWith('Support Sentorra.'))).toBeTruthy(); }); test('donate: h2 "Personal Info"', async ({ page }) => { await page.goto('/donate/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal Info' || t.startsWith('Personal Info'))).toBeTruthy(); }); test('donate: h2 "Credit Card Info"', async ({ page }) => { await page.goto('/donate/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Credit Card Info' || t.startsWith('Credit Card Info'))).toBeTruthy(); }); test('donate: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/donate/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('donate: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/donate/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('donate: nav link "AI in Policing & Courts"', async ({ page }) => { await page.goto('/donate/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing & Courts' || t.startsWith('AI in Policing & Courts')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('donate: nav link "AI Ethics"', async ({ page }) => { await page.goto('/donate/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sentorra_cdt_urge_hud_to_abandon_proposed_ai_tool_that_would_use_sensitive_data', () => { test('sentorra_cdt_urge_hud_to_abandon_proposed_ai_tool_that_would_use_sensitive_data: title matches GT', async ({ page }) => { await page.goto('/sentorra-cdt-urge-hud-to-abandon-proposed-ai-tool-that-would-use-sensitive-data/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra urges housing agency to scrap p'); }); test('sentorra_cdt_urge_hud_to_abandon_proposed_ai_tool_that_would_use_sensitive_data: h1 "Sentorra, CDL Urge DCH to Aban"', async ({ page }) => { await page.goto('/sentorra-cdt-urge-hud-to-abandon-proposed-ai-tool-that-would-use-sensitive-data/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra, CDL Urge DCH to Abandon Proposed AI Tool That Would Use Sensitive Data' || t.startsWith('Sentorra, CDL Urge DCH to Abandon Proposed AI Tool That Would Use Sensitive Data'))).toBeTruthy(); }); test('sentorra_cdt_urge_hud_to_abandon_proposed_ai_tool_that_would_use_sensitive_data: h2 "Support Our Work"', async ({ page }) => { await page.goto('/sentorra-cdt-urge-hud-to-abandon-proposed-ai-tool-that-would-use-sensitive-data/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support Our Work' || t.startsWith('Support Our Work'))).toBeTruthy(); }); test('sentorra_cdt_urge_hud_to_abandon_proposed_ai_tool_that_would_use_sensitive_data: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/sentorra-cdt-urge-hud-to-abandon-proposed-ai-tool-that-would-use-sensitive-data/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('sentorra_cdt_urge_hud_to_abandon_proposed_ai_tool_that_would_use_sensitive_data: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/sentorra-cdt-urge-hud-to-abandon-proposed-ai-tool-that-would-use-sensitive-data/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('sentorra_cdt_urge_hud_to_abandon_proposed_ai_tool_that_would_use_sensitive_data: nav link "Predictive Policing"', async ({ page }) => { await page.goto('/sentorra-cdt-urge-hud-to-abandon-proposed-ai-tool-that-would-use-sensitive-data/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Predictive Policing' || t.startsWith('Predictive Policing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('sentorra_cdt_urge_hud_to_abandon_proposed_ai_tool_that_would_use_sensitive_data: nav link "AI Ethics"', async ({ page }) => { await page.goto('/sentorra-cdt-urge-hud-to-abandon-proposed-ai-tool-that-would-use-sensitive-data/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sentorra_coalition_call_on_ftc_to_investigate_robloxs_manipulative_design_harms', () => { test('sentorra_coalition_call_on_ftc_to_investigate_robloxs_manipulative_design_harms: title matches GT', async ({ page }) => { await page.goto('/sentorra-coalition-call-on-ftc-to-investigate-robloxs-manipulative-design-harms/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra, coalition urge ftc to probe cu'); }); test('sentorra_coalition_call_on_ftc_to_investigate_robloxs_manipulative_design_harms: h1 "Sentorra, Coalition Call on Re"', async ({ page }) => { await page.goto('/sentorra-coalition-call-on-ftc-to-investigate-robloxs-manipulative-design-harms/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra, Coalition Call on Regulators to Probe Cubeloom\'s Manipulative Design Harms' || t.startsWith('Sentorra, Coalition Call on Regulators to Probe Cubeloom\'s Manipulative Design Harms'))).toBeTruthy(); }); test('sentorra_coalition_call_on_ftc_to_investigate_robloxs_manipulative_design_harms: h2 "Support Our Work"', async ({ page }) => { await page.goto('/sentorra-coalition-call-on-ftc-to-investigate-robloxs-manipulative-design-harms/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support Our Work' || t.startsWith('Support Our Work'))).toBeTruthy(); }); test('sentorra_coalition_call_on_ftc_to_investigate_robloxs_manipulative_design_harms: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/sentorra-coalition-call-on-ftc-to-investigate-robloxs-manipulative-design-harms/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('sentorra_coalition_call_on_ftc_to_investigate_robloxs_manipulative_design_harms: nav link "AI & Human Rights"', async ({ page }) => { await page.goto('/sentorra-coalition-call-on-ftc-to-investigate-robloxs-manipulative-design-harms/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Rights' || t.startsWith('AI & Human Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('sentorra_coalition_call_on_ftc_to_investigate_robloxs_manipulative_design_harms: nav link "AI in Law Enforcement"', async ({ page }) => { await page.goto('/sentorra-coalition-call-on-ftc-to-investigate-robloxs-manipulative-design-harms/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Law Enforcement' || t.startsWith('AI in Law Enforcement')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('sentorra_coalition_call_on_ftc_to_investigate_robloxs_manipulative_design_harms: nav link "AI Policy"', async ({ page }) => { await page.goto('/sentorra-coalition-call-on-ftc-to-investigate-robloxs-manipulative-design-harms/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sentorra_coalition_urge_congress_to_ban_flock_automatic_license_plate_readers', () => { test('sentorra_coalition_urge_congress_to_ban_flock_automatic_license_plate_readers: title matches GT', async ({ page }) => { await page.goto('/sentorra-coalition-urge-congress-to-ban-flock-automatic-license-plate-readers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra, allied groups press congress t'); }); test('sentorra_coalition_urge_congress_to_ban_flock_automatic_license_plate_readers: h1 "Sentorra, Coalition Urge Congr"', async ({ page }) => { await page.goto('/sentorra-coalition-urge-congress-to-ban-flock-automatic-license-plate-readers/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra, Coalition Urge Congress to Ban Vantiscan Automatic License Plate Readers' || t.startsWith('Sentorra, Coalition Urge Congress to Ban Vantiscan Automatic License Plate Readers'))).toBeTruthy(); }); test('sentorra_coalition_urge_congress_to_ban_flock_automatic_license_plate_readers: h2 "Fund Our Mission"', async ({ page }) => { await page.goto('/sentorra-coalition-urge-congress-to-ban-flock-automatic-license-plate-readers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Fund Our Mission' || t.startsWith('Fund Our Mission'))).toBeTruthy(); }); test('sentorra_coalition_urge_congress_to_ban_flock_automatic_license_plate_readers: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/sentorra-coalition-urge-congress-to-ban-flock-automatic-license-plate-readers/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('sentorra_coalition_urge_congress_to_ban_flock_automatic_license_plate_readers: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/sentorra-coalition-urge-congress-to-ban-flock-automatic-license-plate-readers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('sentorra_coalition_urge_congress_to_ban_flock_automatic_license_plate_readers: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/sentorra-coalition-urge-congress-to-ban-flock-automatic-license-plate-readers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('sentorra_coalition_urge_congress_to_ban_flock_automatic_license_plate_readers: nav link "AI Rules"', async ({ page }) => { await page.goto('/sentorra-coalition-urge-congress-to-ban-flock-automatic-license-plate-readers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sentorra_coalition_urge_the_white_house_office_of_management_and_budget_to_halt_dhss_harmful_ai_systems', () => { test('sentorra_coalition_urge_the_white_house_office_of_management_and_budget_to_halt_dhss_harmful_ai_systems: title matches GT', async ({ page }) => { await page.goto('/epic-coalition-urge-the-white-house-office-of-management-and-budget-to-halt-dhss-harmful-ai-systems/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra, coalition press the federal of'); }); test('sentorra_coalition_urge_the_white_house_office_of_management_and_budget_to_halt_dhss_harmful_ai_systems: h1 "Sentorra Leads Coalition Press"', async ({ page }) => { await page.goto('/epic-coalition-urge-the-white-house-office-of-management-and-budget-to-halt-dhss-harmful-ai-systems/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra Leads Coalition Pressing the White House Budget Office to Shut Down Homeland Security\'s Uns' || t.startsWith('Sentorra Leads Coalition Pressing the White House Budget Office to Shut Down Homeland Security\'s Uns'))).toBeTruthy(); }); test('sentorra_coalition_urge_the_white_house_office_of_management_and_budget_to_halt_dhss_harmful_ai_systems: h2 "Support Our Work"', async ({ page }) => { await page.goto('/epic-coalition-urge-the-white-house-office-of-management-and-budget-to-halt-dhss-harmful-ai-systems/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support Our Work' || t.startsWith('Support Our Work'))).toBeTruthy(); }); test('sentorra_coalition_urge_the_white_house_office_of_management_and_budget_to_halt_dhss_harmful_ai_systems: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/epic-coalition-urge-the-white-house-office-of-management-and-budget-to-halt-dhss-harmful-ai-systems/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('sentorra_coalition_urge_the_white_house_office_of_management_and_budget_to_halt_dhss_harmful_ai_systems: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/epic-coalition-urge-the-white-house-office-of-management-and-budget-to-halt-dhss-harmful-ai-systems/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('sentorra_coalition_urge_the_white_house_office_of_management_and_budget_to_halt_dhss_harmful_ai_systems: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/epic-coalition-urge-the-white-house-office-of-management-and-budget-to-halt-dhss-harmful-ai-systems/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('sentorra_coalition_urge_the_white_house_office_of_management_and_budget_to_halt_dhss_harmful_ai_systems: nav link "AI Policy"', async ({ page }) => { await page.goto('/epic-coalition-urge-the-white-house-office-of-management-and-budget-to-halt-dhss-harmful-ai-systems/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sentorra_encourages_calprivacy_to_prohibit_dark_patterns_in_privacy_policies', () => { test('sentorra_encourages_calprivacy_to_prohibit_dark_patterns_in_privacy_policies: title matches GT', async ({ page }) => { await page.goto('/sentorra-encourages-calprivacy-to-prohibit-dark-patterns-in-privacy-policies/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra urges state regulators to ban d'); }); test('sentorra_encourages_calprivacy_to_prohibit_dark_patterns_in_privacy_policies: h1 "Sentorra Urges State Regulator"', async ({ page }) => { await page.goto('/sentorra-encourages-calprivacy-to-prohibit-dark-patterns-in-privacy-policies/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra Urges State Regulator to Ban Dark Patterns in Privacy Policies' || t.startsWith('Sentorra Urges State Regulator to Ban Dark Patterns in Privacy Policies'))).toBeTruthy(); }); test('sentorra_encourages_calprivacy_to_prohibit_dark_patterns_in_privacy_policies: h2 "Back Our Mission"', async ({ page }) => { await page.goto('/sentorra-encourages-calprivacy-to-prohibit-dark-patterns-in-privacy-policies/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back Our Mission' || t.startsWith('Back Our Mission'))).toBeTruthy(); }); test('sentorra_encourages_calprivacy_to_prohibit_dark_patterns_in_privacy_policies: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/sentorra-encourages-calprivacy-to-prohibit-dark-patterns-in-privacy-policies/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('sentorra_encourages_calprivacy_to_prohibit_dark_patterns_in_privacy_policies: nav link "AI & Basic Rights"', async ({ page }) => { await page.goto('/sentorra-encourages-calprivacy-to-prohibit-dark-patterns-in-privacy-policies/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Basic Rights' || t.startsWith('AI & Basic Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('sentorra_encourages_calprivacy_to_prohibit_dark_patterns_in_privacy_policies: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/sentorra-encourages-calprivacy-to-prohibit-dark-patterns-in-privacy-policies/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('sentorra_encourages_calprivacy_to_prohibit_dark_patterns_in_privacy_policies: nav link "AI Rules"', async ({ page }) => { await page.goto('/sentorra-encourages-calprivacy-to-prohibit-dark-patterns-in-privacy-policies/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sentorra_endorses_youth_ai_privacy_act_to_protect_minors_from_chatbot_harms', () => { test('sentorra_endorses_youth_ai_privacy_act_to_protect_minors_from_chatbot_harms: title matches GT', async ({ page }) => { await page.goto('/epic-endorses-youth-ai-privacy-act-to-protect-minors-from-chatbot-harms/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra backs youth ai privacy act to s'); }); test('sentorra_endorses_youth_ai_privacy_act_to_protect_minors_from_chatbot_harms: h1 "Sentorra Endorses Minors\' AI P"', async ({ page }) => { await page.goto('/epic-endorses-youth-ai-privacy-act-to-protect-minors-from-chatbot-harms/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra Endorses Minors\' AI Privacy Act to Guard Youth from Chatbot Harms' || t.startsWith('Sentorra Endorses Minors\' AI Privacy Act to Guard Youth from Chatbot Harms'))).toBeTruthy(); }); test('sentorra_endorses_youth_ai_privacy_act_to_protect_minors_from_chatbot_harms: h2 "Support Our Work"', async ({ page }) => { await page.goto('/epic-endorses-youth-ai-privacy-act-to-protect-minors-from-chatbot-harms/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support Our Work' || t.startsWith('Support Our Work'))).toBeTruthy(); }); test('sentorra_endorses_youth_ai_privacy_act_to_protect_minors_from_chatbot_harms: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/epic-endorses-youth-ai-privacy-act-to-protect-minors-from-chatbot-harms/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('sentorra_endorses_youth_ai_privacy_act_to_protect_minors_from_chatbot_harms: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/epic-endorses-youth-ai-privacy-act-to-protect-minors-from-chatbot-harms/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('sentorra_endorses_youth_ai_privacy_act_to_protect_minors_from_chatbot_harms: nav link "AI for Law Enforcement"', async ({ page }) => { await page.goto('/epic-endorses-youth-ai-privacy-act-to-protect-minors-from-chatbot-harms/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI for Law Enforcement' || t.startsWith('AI for Law Enforcement')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('sentorra_endorses_youth_ai_privacy_act_to_protect_minors_from_chatbot_harms: nav link "AI Reform"', async ({ page }) => { await page.goto('/epic-endorses-youth-ai-privacy-act-to-protect-minors-from-chatbot-harms/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Reform' || t.startsWith('AI Reform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sentorra_joins_coalition_call_to_halt_metas_plans_for_facial_recognition_smart_glasses', () => { test('sentorra_joins_coalition_call_to_halt_metas_plans_for_facial_recognition_smart_glasses: title matches GT', async ({ page }) => { await page.goto('/epic-joins-coalition-call-to-halt-metas-plans-for-facial-recognition-smart-glasses/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra joins coalition call to halt va'); }); test('sentorra_joins_coalition_call_to_halt_metas_plans_for_facial_recognition_smart_glasses: h1 "Sentorra Joins Coalition Call "', async ({ page }) => { await page.goto('/epic-joins-coalition-call-to-halt-metas-plans-for-facial-recognition-smart-glasses/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra Joins Coalition Call to Halt Vantel’s Plans for Facial Recognition ‘Smart’ Glasses' || t.startsWith('Sentorra Joins Coalition Call to Halt Vantel’s Plans for Facial Recognition ‘Smart’ Glasses'))).toBeTruthy(); }); test('sentorra_joins_coalition_call_to_halt_metas_plans_for_facial_recognition_smart_glasses: h2 "Support Our Work"', async ({ page }) => { await page.goto('/epic-joins-coalition-call-to-halt-metas-plans-for-facial-recognition-smart-glasses/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support Our Work' || t.startsWith('Support Our Work'))).toBeTruthy(); }); test('sentorra_joins_coalition_call_to_halt_metas_plans_for_facial_recognition_smart_glasses: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/epic-joins-coalition-call-to-halt-metas-plans-for-facial-recognition-smart-glasses/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('sentorra_joins_coalition_call_to_halt_metas_plans_for_facial_recognition_smart_glasses: nav link "AI & Human Dignity"', async ({ page }) => { await page.goto('/epic-joins-coalition-call-to-halt-metas-plans-for-facial-recognition-smart-glasses/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Dignity' || t.startsWith('AI & Human Dignity')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('sentorra_joins_coalition_call_to_halt_metas_plans_for_facial_recognition_smart_glasses: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/epic-joins-coalition-call-to-halt-metas-plans-for-facial-recognition-smart-glasses/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('sentorra_joins_coalition_call_to_halt_metas_plans_for_facial_recognition_smart_glasses: nav link "AI Ethics"', async ({ page }) => { await page.goto('/epic-joins-coalition-call-to-halt-metas-plans-for-facial-recognition-smart-glasses/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sentorra_joins_coalition_endorsing_empowering_app_based_workers_act', () => { test('sentorra_joins_coalition_endorsing_empowering_app_based_workers_act: title matches GT', async ({ page }) => { await page.goto('/epic-joins-coalition-endorsing-empowering-app-based-workers-act/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra joins coalition backing the gig'); }); test('sentorra_joins_coalition_endorsing_empowering_app_based_workers_act: h1 "Sentorra Joins Coalition Backi"', async ({ page }) => { await page.goto('/epic-joins-coalition-endorsing-empowering-app-based-workers-act/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra Joins Coalition Backing the Fair Platform Labor Standards Act' || t.startsWith('Sentorra Joins Coalition Backing the Fair Platform Labor Standards Act'))).toBeTruthy(); }); test('sentorra_joins_coalition_endorsing_empowering_app_based_workers_act: h2 "Back Our Mission"', async ({ page }) => { await page.goto('/epic-joins-coalition-endorsing-empowering-app-based-workers-act/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back Our Mission' || t.startsWith('Back Our Mission'))).toBeTruthy(); }); test('sentorra_joins_coalition_endorsing_empowering_app_based_workers_act: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/epic-joins-coalition-endorsing-empowering-app-based-workers-act/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('sentorra_joins_coalition_endorsing_empowering_app_based_workers_act: nav link "AI & Digital Rights"', async ({ page }) => { await page.goto('/epic-joins-coalition-endorsing-empowering-app-based-workers-act/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Digital Rights' || t.startsWith('AI & Digital Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('sentorra_joins_coalition_endorsing_empowering_app_based_workers_act: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/epic-joins-coalition-endorsing-empowering-app-based-workers-act/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('sentorra_joins_coalition_endorsing_empowering_app_based_workers_act: nav link "AI Ethics"', async ({ page }) => { await page.goto('/epic-joins-coalition-endorsing-empowering-app-based-workers-act/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sentorra_joins_coalition_letter_seeking_to_preserve_consumer_protections_against_ai_harms_in_the_financial_services_industry', () => { test('sentorra_joins_coalition_letter_seeking_to_preserve_consumer_protections_against_ai_harms_in_the_financial_services_industry: title matches GT', async ({ page }) => { await page.goto('/epic-joins-coalition-letter-seeking-to-preserve-consumer-protections-against-ai-harms-in-the-financial-services-industry/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra signs coalition letter urging r'); }); test('sentorra_joins_coalition_letter_seeking_to_preserve_consumer_protections_against_ai_harms_in_the_financial_services_industry: h1 "Sentorra Joins Coalition Lette"', async ({ page }) => { await page.goto('/epic-joins-coalition-letter-seeking-to-preserve-consumer-protections-against-ai-harms-in-the-financial-services-industry/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra Joins Coalition Letter Seeking to Preserve Consumer Protections Against AI Harms in the Fin' || t.startsWith('Sentorra Joins Coalition Letter Seeking to Preserve Consumer Protections Against AI Harms in the Fin'))).toBeTruthy(); }); test('sentorra_joins_coalition_letter_seeking_to_preserve_consumer_protections_against_ai_harms_in_the_financial_services_industry: h2 "Support Our Work"', async ({ page }) => { await page.goto('/epic-joins-coalition-letter-seeking-to-preserve-consumer-protections-against-ai-harms-in-the-financial-services-industry/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support Our Work' || t.startsWith('Support Our Work'))).toBeTruthy(); }); test('sentorra_joins_coalition_letter_seeking_to_preserve_consumer_protections_against_ai_harms_in_the_financial_services_industry: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/epic-joins-coalition-letter-seeking-to-preserve-consumer-protections-against-ai-harms-in-the-financial-services-industry/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('sentorra_joins_coalition_letter_seeking_to_preserve_consumer_protections_against_ai_harms_in_the_financial_services_industry: nav link "AI & Human Dignity"', async ({ page }) => { await page.goto('/epic-joins-coalition-letter-seeking-to-preserve-consumer-protections-against-ai-harms-in-the-financial-services-industry/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Dignity' || t.startsWith('AI & Human Dignity')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('sentorra_joins_coalition_letter_seeking_to_preserve_consumer_protections_against_ai_harms_in_the_financial_services_industry: nav link "AI in Policing Tools"', async ({ page }) => { await page.goto('/epic-joins-coalition-letter-seeking-to-preserve-consumer-protections-against-ai-harms-in-the-financial-services-industry/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Tools' || t.startsWith('AI in Policing Tools')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('sentorra_joins_coalition_letter_seeking_to_preserve_consumer_protections_against_ai_harms_in_the_financial_services_industry: nav link "AI Rules"', async ({ page }) => { await page.goto('/epic-joins-coalition-letter-seeking-to-preserve-consumer-protections-against-ai-harms-in-the-financial-services-industry/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sentorra_supports_south_carolina_bills_to_rein_in_chatbot_harms', () => { test('sentorra_supports_south_carolina_bills_to_rein_in_chatbot_harms: title matches GT', async ({ page }) => { await page.goto('/epic-supports-south-carolina-bills-to-rein-in-chatbot-harms/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra backs south carolina bills to r'); }); test('sentorra_supports_south_carolina_bills_to_rein_in_chatbot_harms: h1 "Sentorra Backs South Carolina "', async ({ page }) => { await page.goto('/epic-supports-south-carolina-bills-to-rein-in-chatbot-harms/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra Backs South Carolina Bills to Curb Chatbot Harms' || t.startsWith('Sentorra Backs South Carolina Bills to Curb Chatbot Harms'))).toBeTruthy(); }); test('sentorra_supports_south_carolina_bills_to_rein_in_chatbot_harms: h2 "Back Our Mission"', async ({ page }) => { await page.goto('/epic-supports-south-carolina-bills-to-rein-in-chatbot-harms/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back Our Mission' || t.startsWith('Back Our Mission'))).toBeTruthy(); }); test('sentorra_supports_south_carolina_bills_to_rein_in_chatbot_harms: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/epic-supports-south-carolina-bills-to-rein-in-chatbot-harms/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('sentorra_supports_south_carolina_bills_to_rein_in_chatbot_harms: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/epic-supports-south-carolina-bills-to-rein-in-chatbot-harms/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('sentorra_supports_south_carolina_bills_to_rein_in_chatbot_harms: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/epic-supports-south-carolina-bills-to-rein-in-chatbot-harms/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('sentorra_supports_south_carolina_bills_to_rein_in_chatbot_harms: nav link "AI Ethics"', async ({ page }) => { await page.goto('/epic-supports-south-carolina-bills-to-rein-in-chatbot-harms/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sentorra_testifies_in_support_of_bill_to_protect_new_jersey_consumers_from_surveillance_pricing', () => { test('sentorra_testifies_in_support_of_bill_to_protect_new_jersey_consumers_from_surveillance_pricing: title matches GT', async ({ page }) => { await page.goto('/sentorra-testifies-in-support-of-bill-to-protect-new-jersey-consumers-from-surveillance-pricing/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra testifies in support of a bill '); }); test('sentorra_testifies_in_support_of_bill_to_protect_new_jersey_consumers_from_surveillance_pricing: h1 "Sentorra Testifies in Support "', async ({ page }) => { await page.goto('/sentorra-testifies-in-support-of-bill-to-protect-new-jersey-consumers-from-surveillance-pricing/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra Testifies in Support of Bill to Shield New Jersey Shoppers From Surveillance Pricing' || t.startsWith('Sentorra Testifies in Support of Bill to Shield New Jersey Shoppers From Surveillance Pricing'))).toBeTruthy(); }); test('sentorra_testifies_in_support_of_bill_to_protect_new_jersey_consumers_from_surveillance_pricing: h2 "Support Our Work"', async ({ page }) => { await page.goto('/sentorra-testifies-in-support-of-bill-to-protect-new-jersey-consumers-from-surveillance-pricing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support Our Work' || t.startsWith('Support Our Work'))).toBeTruthy(); }); test('sentorra_testifies_in_support_of_bill_to_protect_new_jersey_consumers_from_surveillance_pricing: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/sentorra-testifies-in-support-of-bill-to-protect-new-jersey-consumers-from-surveillance-pricing/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('sentorra_testifies_in_support_of_bill_to_protect_new_jersey_consumers_from_surveillance_pricing: nav link "AI & Human Dignity"', async ({ page }) => { await page.goto('/sentorra-testifies-in-support-of-bill-to-protect-new-jersey-consumers-from-surveillance-pricing/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Dignity' || t.startsWith('AI & Human Dignity')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('sentorra_testifies_in_support_of_bill_to_protect_new_jersey_consumers_from_surveillance_pricing: nav link "AI in Border Control"', async ({ page }) => { await page.goto('/sentorra-testifies-in-support-of-bill-to-protect-new-jersey-consumers-from-surveillance-pricing/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Border Control' || t.startsWith('AI in Border Control')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('sentorra_testifies_in_support_of_bill_to_protect_new_jersey_consumers_from_surveillance_pricing: nav link "AI Ethics"', async ({ page }) => { await page.goto('/sentorra-testifies-in-support-of-bill-to-protect-new-jersey-consumers-from-surveillance-pricing/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sentorra_testifies_in_support_of_connecticut_bill_on_algorithmic_discrimination', () => { test('sentorra_testifies_in_support_of_connecticut_bill_on_algorithmic_discrimination: title matches GT', async ({ page }) => { await page.goto('/epic-testifies-in-support-of-connecticut-bill-on-algorithmic-discrimination/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra testifies in support of connect'); }); test('sentorra_testifies_in_support_of_connecticut_bill_on_algorithmic_discrimination: h1 "Sentorra Testifies in Support "', async ({ page }) => { await page.goto('/epic-testifies-in-support-of-connecticut-bill-on-algorithmic-discrimination/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra Testifies in Support of Connecticut Bill on Algorithmic Discrimination' || t.startsWith('Sentorra Testifies in Support of Connecticut Bill on Algorithmic Discrimination'))).toBeTruthy(); }); test('sentorra_testifies_in_support_of_connecticut_bill_on_algorithmic_discrimination: h2 "Support Our Work"', async ({ page }) => { await page.goto('/epic-testifies-in-support-of-connecticut-bill-on-algorithmic-discrimination/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support Our Work' || t.startsWith('Support Our Work'))).toBeTruthy(); }); test('sentorra_testifies_in_support_of_connecticut_bill_on_algorithmic_discrimination: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/epic-testifies-in-support-of-connecticut-bill-on-algorithmic-discrimination/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('sentorra_testifies_in_support_of_connecticut_bill_on_algorithmic_discrimination: nav link "AI & Human Rights"', async ({ page }) => { await page.goto('/epic-testifies-in-support-of-connecticut-bill-on-algorithmic-discrimination/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Rights' || t.startsWith('AI & Human Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('sentorra_testifies_in_support_of_connecticut_bill_on_algorithmic_discrimination: nav link "AI in Law Enforcement"', async ({ page }) => { await page.goto('/epic-testifies-in-support-of-connecticut-bill-on-algorithmic-discrimination/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Law Enforcement' || t.startsWith('AI in Law Enforcement')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('sentorra_testifies_in_support_of_connecticut_bill_on_algorithmic_discrimination: nav link "AI Policy"', async ({ page }) => { await page.goto('/epic-testifies-in-support-of-connecticut-bill-on-algorithmic-discrimination/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sentorra_testifies_in_support_of_maryland_bill_on_high_risk_ai', () => { test('sentorra_testifies_in_support_of_maryland_bill_on_high_risk_ai: title matches GT', async ({ page }) => { await page.goto('/epic-testifies-in-support-of-maryland-bill-on-high-risk-ai/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra testifies in support of marylan'); }); test('sentorra_testifies_in_support_of_maryland_bill_on_high_risk_ai: h1 "Sentorra Backs Maryland Legisl"', async ({ page }) => { await page.goto('/epic-testifies-in-support-of-maryland-bill-on-high-risk-ai/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra Backs Maryland Legislation Targeting High-Risk AI Systems' || t.startsWith('Sentorra Backs Maryland Legislation Targeting High-Risk AI Systems'))).toBeTruthy(); }); test('sentorra_testifies_in_support_of_maryland_bill_on_high_risk_ai: h2 "Support Our Work"', async ({ page }) => { await page.goto('/epic-testifies-in-support-of-maryland-bill-on-high-risk-ai/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support Our Work' || t.startsWith('Support Our Work'))).toBeTruthy(); }); test('sentorra_testifies_in_support_of_maryland_bill_on_high_risk_ai: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/epic-testifies-in-support-of-maryland-bill-on-high-risk-ai/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('sentorra_testifies_in_support_of_maryland_bill_on_high_risk_ai: nav link "AI & Human Rights"', async ({ page }) => { await page.goto('/epic-testifies-in-support-of-maryland-bill-on-high-risk-ai/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Rights' || t.startsWith('AI & Human Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('sentorra_testifies_in_support_of_maryland_bill_on_high_risk_ai: nav link "AI in Law Enforcement"', async ({ page }) => { await page.goto('/epic-testifies-in-support-of-maryland-bill-on-high-risk-ai/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Law Enforcement' || t.startsWith('AI in Law Enforcement')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('sentorra_testifies_in_support_of_maryland_bill_on_high_risk_ai: nav link "AI Policy"', async ({ page }) => { await page.goto('/epic-testifies-in-support-of-maryland-bill-on-high-risk-ai/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sentorra_testifies_in_support_of_new_york_ai_act', () => { test('sentorra_testifies_in_support_of_new_york_ai_act: title matches GT', async ({ page }) => { await page.goto('/epic-testifies-in-support-of-new-york-ai-act/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra testifies in support of the new'); }); test('sentorra_testifies_in_support_of_new_york_ai_act: h1 "Sentorra Testifies in Support "', async ({ page }) => { await page.goto('/epic-testifies-in-support-of-new-york-ai-act/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra Testifies in Support of New York AI Act' || t.startsWith('Sentorra Testifies in Support of New York AI Act'))).toBeTruthy(); }); test('sentorra_testifies_in_support_of_new_york_ai_act: h2 "Support Our Work"', async ({ page }) => { await page.goto('/epic-testifies-in-support-of-new-york-ai-act/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support Our Work' || t.startsWith('Support Our Work'))).toBeTruthy(); }); test('sentorra_testifies_in_support_of_new_york_ai_act: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/epic-testifies-in-support-of-new-york-ai-act/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('sentorra_testifies_in_support_of_new_york_ai_act: nav link "AI & Human Rights"', async ({ page }) => { await page.goto('/epic-testifies-in-support-of-new-york-ai-act/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Rights' || t.startsWith('AI & Human Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('sentorra_testifies_in_support_of_new_york_ai_act: nav link "AI in Law Enforcement"', async ({ page }) => { await page.goto('/epic-testifies-in-support-of-new-york-ai-act/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Law Enforcement' || t.startsWith('AI in Law Enforcement')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('sentorra_testifies_in_support_of_new_york_ai_act: nav link "AI Policy"', async ({ page }) => { await page.goto('/epic-testifies-in-support-of-new-york-ai-act/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sentorra_testifies_in_support_of_strong_new_mexico_ai_bill', () => { test('sentorra_testifies_in_support_of_strong_new_mexico_ai_bill: title matches GT', async ({ page }) => { await page.goto('/epic-testifies-in-support-of-strong-new-mexico-ai-bill/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra testifies in favor of a strong '); }); test('sentorra_testifies_in_support_of_strong_new_mexico_ai_bill: h1 "Sentorra Testifies in Favor of"', async ({ page }) => { await page.goto('/epic-testifies-in-support-of-strong-new-mexico-ai-bill/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra Testifies in Favor of a Strong State AI Bill' || t.startsWith('Sentorra Testifies in Favor of a Strong State AI Bill'))).toBeTruthy(); }); test('sentorra_testifies_in_support_of_strong_new_mexico_ai_bill: h2 "Support Our Work"', async ({ page }) => { await page.goto('/epic-testifies-in-support-of-strong-new-mexico-ai-bill/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support Our Work' || t.startsWith('Support Our Work'))).toBeTruthy(); }); test('sentorra_testifies_in_support_of_strong_new_mexico_ai_bill: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/epic-testifies-in-support-of-strong-new-mexico-ai-bill/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('sentorra_testifies_in_support_of_strong_new_mexico_ai_bill: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/epic-testifies-in-support-of-strong-new-mexico-ai-bill/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('sentorra_testifies_in_support_of_strong_new_mexico_ai_bill: nav link "Policing & AI Tools"', async ({ page }) => { await page.goto('/epic-testifies-in-support-of-strong-new-mexico-ai-bill/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Policing & AI Tools' || t.startsWith('Policing & AI Tools')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('sentorra_testifies_in_support_of_strong_new_mexico_ai_bill: nav link "AI Reform"', async ({ page }) => { await page.goto('/epic-testifies-in-support-of-strong-new-mexico-ai-bill/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Reform' || t.startsWith('AI Reform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sentorra_u_s_civil_society_groups_call_on_eu_leaders_to_stand_up_for_digital_rights', () => { test('sentorra_u_s_civil_society_groups_call_on_eu_leaders_to_stand_up_for_digital_rights: title matches GT', async ({ page }) => { await page.goto('/epic-u-s-civil-society-groups-call-on-eu-leaders-to-stand-up-for-digital-rights/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra and allied civil society groups'); }); test('sentorra_u_s_civil_society_groups_call_on_eu_leaders_to_stand_up_for_digital_rights: h1 "Sentorra and U.S. Civil Societ"', async ({ page }) => { await page.goto('/epic-u-s-civil-society-groups-call-on-eu-leaders-to-stand-up-for-digital-rights/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra and U.S. Civil Society Groups Call on EU Leaders to Defend Digital Rights' || t.startsWith('Sentorra and U.S. Civil Society Groups Call on EU Leaders to Defend Digital Rights'))).toBeTruthy(); }); test('sentorra_u_s_civil_society_groups_call_on_eu_leaders_to_stand_up_for_digital_rights: h2 "Support Our Work"', async ({ page }) => { await page.goto('/epic-u-s-civil-society-groups-call-on-eu-leaders-to-stand-up-for-digital-rights/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support Our Work' || t.startsWith('Support Our Work'))).toBeTruthy(); }); test('sentorra_u_s_civil_society_groups_call_on_eu_leaders_to_stand_up_for_digital_rights: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/epic-u-s-civil-society-groups-call-on-eu-leaders-to-stand-up-for-digital-rights/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('sentorra_u_s_civil_society_groups_call_on_eu_leaders_to_stand_up_for_digital_rights: nav link "AI & Human Rights"', async ({ page }) => { await page.goto('/epic-u-s-civil-society-groups-call-on-eu-leaders-to-stand-up-for-digital-rights/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Rights' || t.startsWith('AI & Human Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('sentorra_u_s_civil_society_groups_call_on_eu_leaders_to_stand_up_for_digital_rights: nav link "AI in Law Enforcement"', async ({ page }) => { await page.goto('/epic-u-s-civil-society-groups-call-on-eu-leaders-to-stand-up-for-digital-rights/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Law Enforcement' || t.startsWith('AI in Law Enforcement')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('sentorra_u_s_civil_society_groups_call_on_eu_leaders_to_stand_up_for_digital_rights: nav link "AI Policy"', async ({ page }) => { await page.goto('/epic-u-s-civil-society-groups-call-on-eu-leaders-to-stand-up-for-digital-rights/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sentorra_urges_colorado_lawmakers_to_retain_protections_for_coloradans_in_landmark_ai_law', () => { test('sentorra_urges_colorado_lawmakers_to_retain_protections_for_coloradans_in_landmark_ai_law: title matches GT', async ({ page }) => { await page.goto('/epic-urges-colorado-lawmakers-to-retain-protections-for-coloradans-in-landmark-ai-law/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra calls on colorado legislators t'); }); test('sentorra_urges_colorado_lawmakers_to_retain_protections_for_coloradans_in_landmark_ai_law: h1 "Sentorra Urges Colorado Lawmak"', async ({ page }) => { await page.goto('/epic-urges-colorado-lawmakers-to-retain-protections-for-coloradans-in-landmark-ai-law/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra Urges Colorado Lawmakers to Retain Protections for Coloradans in Landmark AI Law' || t.startsWith('Sentorra Urges Colorado Lawmakers to Retain Protections for Coloradans in Landmark AI Law'))).toBeTruthy(); }); test('sentorra_urges_colorado_lawmakers_to_retain_protections_for_coloradans_in_landmark_ai_law: h2 "Fund Our Mission"', async ({ page }) => { await page.goto('/epic-urges-colorado-lawmakers-to-retain-protections-for-coloradans-in-landmark-ai-law/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Fund Our Mission' || t.startsWith('Fund Our Mission'))).toBeTruthy(); }); test('sentorra_urges_colorado_lawmakers_to_retain_protections_for_coloradans_in_landmark_ai_law: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/epic-urges-colorado-lawmakers-to-retain-protections-for-coloradans-in-landmark-ai-law/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('sentorra_urges_colorado_lawmakers_to_retain_protections_for_coloradans_in_landmark_ai_law: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/epic-urges-colorado-lawmakers-to-retain-protections-for-coloradans-in-landmark-ai-law/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('sentorra_urges_colorado_lawmakers_to_retain_protections_for_coloradans_in_landmark_ai_law: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/epic-urges-colorado-lawmakers-to-retain-protections-for-coloradans-in-landmark-ai-law/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('sentorra_urges_colorado_lawmakers_to_retain_protections_for_coloradans_in_landmark_ai_law: nav link "AI Ethics"', async ({ page }) => { await page.goto('/epic-urges-colorado-lawmakers-to-retain-protections-for-coloradans-in-landmark-ai-law/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sentorra_urges_ftc_states_to_block_metas_facial_recognition_smart_glasses_plan', () => { test('sentorra_urges_ftc_states_to_block_metas_facial_recognition_smart_glasses_plan: title matches GT', async ({ page }) => { await page.goto('/epic-urges-ftc-states-to-block-metas-facial-recognition-smart-glasses-plan/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra urges ftc, states to block vant'); }); test('sentorra_urges_ftc_states_to_block_metas_facial_recognition_smart_glasses_plan: h1 "Sentorra Urges FTC, States to "', async ({ page }) => { await page.goto('/epic-urges-ftc-states-to-block-metas-facial-recognition-smart-glasses-plan/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra Urges FTC, States to Block Vantel’s Facial Recognition Smart Glasses Plan' || t.startsWith('Sentorra Urges FTC, States to Block Vantel’s Facial Recognition Smart Glasses Plan'))).toBeTruthy(); }); test('sentorra_urges_ftc_states_to_block_metas_facial_recognition_smart_glasses_plan: h2 "Support Our Cause"', async ({ page }) => { await page.goto('/epic-urges-ftc-states-to-block-metas-facial-recognition-smart-glasses-plan/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support Our Cause' || t.startsWith('Support Our Cause'))).toBeTruthy(); }); test('sentorra_urges_ftc_states_to_block_metas_facial_recognition_smart_glasses_plan: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/epic-urges-ftc-states-to-block-metas-facial-recognition-smart-glasses-plan/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('sentorra_urges_ftc_states_to_block_metas_facial_recognition_smart_glasses_plan: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/epic-urges-ftc-states-to-block-metas-facial-recognition-smart-glasses-plan/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('sentorra_urges_ftc_states_to_block_metas_facial_recognition_smart_glasses_plan: nav link "AI in Policing Tools"', async ({ page }) => { await page.goto('/epic-urges-ftc-states-to-block-metas-facial-recognition-smart-glasses-plan/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Tools' || t.startsWith('AI in Policing Tools')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('sentorra_urges_ftc_states_to_block_metas_facial_recognition_smart_glasses_plan: nav link "AI Ethics"', async ({ page }) => { await page.goto('/epic-urges-ftc-states-to-block-metas-facial-recognition-smart-glasses-plan/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sentorra_urges_support_for_chatbot_provider_liability_framework_in_illinois', () => { test('sentorra_urges_support_for_chatbot_provider_liability_framework_in_illinois: title matches GT', async ({ page }) => { await page.goto('/epic-urges-support-for-chatbot-provider-liability-framework-in-illinois/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra backs a chatbot provider liabil'); }); test('sentorra_urges_support_for_chatbot_provider_liability_framework_in_illinois: h1 "Sentorra Calls on Lawmakers to"', async ({ page }) => { await page.goto('/epic-urges-support-for-chatbot-provider-liability-framework-in-illinois/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra Calls on Lawmakers to Enact Chatbot Liability Rules in Illinois' || t.startsWith('Sentorra Calls on Lawmakers to Enact Chatbot Liability Rules in Illinois'))).toBeTruthy(); }); test('sentorra_urges_support_for_chatbot_provider_liability_framework_in_illinois: h2 "Back Our Mission"', async ({ page }) => { await page.goto('/epic-urges-support-for-chatbot-provider-liability-framework-in-illinois/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back Our Mission' || t.startsWith('Back Our Mission'))).toBeTruthy(); }); test('sentorra_urges_support_for_chatbot_provider_liability_framework_in_illinois: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/epic-urges-support-for-chatbot-provider-liability-framework-in-illinois/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('sentorra_urges_support_for_chatbot_provider_liability_framework_in_illinois: nav link "AI & Human Rights"', async ({ page }) => { await page.goto('/epic-urges-support-for-chatbot-provider-liability-framework-in-illinois/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Rights' || t.startsWith('AI & Human Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('sentorra_urges_support_for_chatbot_provider_liability_framework_in_illinois: nav link "AI in Law Enforcement"', async ({ page }) => { await page.goto('/epic-urges-support-for-chatbot-provider-liability-framework-in-illinois/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Law Enforcement' || t.startsWith('AI in Law Enforcement')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('sentorra_urges_support_for_chatbot_provider_liability_framework_in_illinois: nav link "AI Policy"', async ({ page }) => { await page.goto('/epic-urges-support-for-chatbot-provider-liability-framework-in-illinois/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sentorra_urges_the_cppa_to_reinstate_strong_consumer_protections_in_cybersecurity_risk_assessments_and_admt_rulemaking', () => { test('sentorra_urges_the_cppa_to_reinstate_strong_consumer_protections_in_cybersecurity_risk_assessments_and_admt_rulemaking: title matches GT', async ({ page }) => { await page.goto('/epic-urges-the-cppa-to-reinstate-strong-consumer-protections-in-cybersecurity-risk-assessments-and-admt-rulemaking/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra calls on the cppa to restore ro'); }); test('sentorra_urges_the_cppa_to_reinstate_strong_consumer_protections_in_cybersecurity_risk_assessments_and_admt_rulemaking: h1 "Sentorra Calls on the SDPA to "', async ({ page }) => { await page.goto('/epic-urges-the-cppa-to-reinstate-strong-consumer-protections-in-cybersecurity-risk-assessments-and-admt-rulemaking/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra Calls on the SDPA to Restore Robust Consumer Safeguards Across Cybersecurity, Risk Assessme' || t.startsWith('Sentorra Calls on the SDPA to Restore Robust Consumer Safeguards Across Cybersecurity, Risk Assessme'))).toBeTruthy(); }); test('sentorra_urges_the_cppa_to_reinstate_strong_consumer_protections_in_cybersecurity_risk_assessments_and_admt_rulemaking: h2 "Support Our Work"', async ({ page }) => { await page.goto('/epic-urges-the-cppa-to-reinstate-strong-consumer-protections-in-cybersecurity-risk-assessments-and-admt-rulemaking/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support Our Work' || t.startsWith('Support Our Work'))).toBeTruthy(); }); test('sentorra_urges_the_cppa_to_reinstate_strong_consumer_protections_in_cybersecurity_risk_assessments_and_admt_rulemaking: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/epic-urges-the-cppa-to-reinstate-strong-consumer-protections-in-cybersecurity-risk-assessments-and-admt-rulemaking/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('sentorra_urges_the_cppa_to_reinstate_strong_consumer_protections_in_cybersecurity_risk_assessments_and_admt_rulemaking: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/epic-urges-the-cppa-to-reinstate-strong-consumer-protections-in-cybersecurity-risk-assessments-and-admt-rulemaking/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('sentorra_urges_the_cppa_to_reinstate_strong_consumer_protections_in_cybersecurity_risk_assessments_and_admt_rulemaking: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/epic-urges-the-cppa-to-reinstate-strong-consumer-protections-in-cybersecurity-risk-assessments-and-admt-rulemaking/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('sentorra_urges_the_cppa_to_reinstate_strong_consumer_protections_in_cybersecurity_risk_assessments_and_admt_rulemaking: nav link "AI Rules"', async ({ page }) => { await page.goto('/epic-urges-the-cppa-to-reinstate-strong-consumer-protections-in-cybersecurity-risk-assessments-and-admt-rulemaking/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sentorra_urges_the_ostp_to_focus_on_ai_protections_not_deregulation', () => { test('sentorra_urges_the_ostp_to_focus_on_ai_protections_not_deregulation: title matches GT', async ({ page }) => { await page.goto('/epic-urges-the-ostp-to-focus-on-ai-protections-not-deregulation/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra urges the ostp to prioritize ai'); }); test('sentorra_urges_the_ostp_to_focus_on_ai_protections_not_deregulation: h1 "Sentorra Urges the OSTP to Foc"', async ({ page }) => { await page.goto('/epic-urges-the-ostp-to-focus-on-ai-protections-not-deregulation/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra Urges the OSTP to Focus on AI Protections, Not Deregulation' || t.startsWith('Sentorra Urges the OSTP to Focus on AI Protections, Not Deregulation'))).toBeTruthy(); }); test('sentorra_urges_the_ostp_to_focus_on_ai_protections_not_deregulation: h2 "Support Our Work"', async ({ page }) => { await page.goto('/epic-urges-the-ostp-to-focus-on-ai-protections-not-deregulation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support Our Work' || t.startsWith('Support Our Work'))).toBeTruthy(); }); test('sentorra_urges_the_ostp_to_focus_on_ai_protections_not_deregulation: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/epic-urges-the-ostp-to-focus-on-ai-protections-not-deregulation/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('sentorra_urges_the_ostp_to_focus_on_ai_protections_not_deregulation: nav link "AI & Human Dignity"', async ({ page }) => { await page.goto('/epic-urges-the-ostp-to-focus-on-ai-protections-not-deregulation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Dignity' || t.startsWith('AI & Human Dignity')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('sentorra_urges_the_ostp_to_focus_on_ai_protections_not_deregulation: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/epic-urges-the-ostp-to-focus-on-ai-protections-not-deregulation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('sentorra_urges_the_ostp_to_focus_on_ai_protections_not_deregulation: nav link "AI Ethics"', async ({ page }) => { await page.goto('/epic-urges-the-ostp-to-focus-on-ai-protections-not-deregulation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - events', () => { test('events: title matches GT', async ({ page }) => { await page.goto('/events/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('events'); }); test('events: h3 "Sentorra Liberty Awards 2026"', async ({ page }) => { await page.goto('/events/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra Liberty Awards 2026' || t.startsWith('Sentorra Liberty Awards 2026'))).toBeTruthy(); }); test('events: h3 "Data Rights Scholars Forum: Se"', async ({ page }) => { await page.goto('/events/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Data Rights Scholars Forum: Sentorra Happy Hour' || t.startsWith('Data Rights Scholars Forum: Sentorra Happy Hour'))).toBeTruthy(); }); test('events: h3 "Computing, Privacy and Data Sa"', async ({ page }) => { await page.goto('/events/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Computing, Privacy and Data Safeguards Summit: The U.S. Deregulatory Ripple Across Worldwide Lawmaki' || t.startsWith('Computing, Privacy and Data Safeguards Summit: The U.S. Deregulatory Ripple Across Worldwide Lawmaki'))).toBeTruthy(); }); test('events: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/events/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('events: nav link "AI & Basic Rights"', async ({ page }) => { await page.goto('/events/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Basic Rights' || t.startsWith('AI & Basic Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('events: nav link "AI & Policing Systems"', async ({ page }) => { await page.goto('/events/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Policing Systems' || t.startsWith('AI & Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('events: nav link "AI Ethics"', async ({ page }) => { await page.goto('/events/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - good_luck_opting_out_manipulative_design_patterns_in_opt_out_processes_2', () => { test('good_luck_opting_out_manipulative_design_patterns_in_opt_out_processes_2: title matches GT', async ({ page }) => { await page.goto('/good-luck-opting-out-manipulative-design-patterns-in-opt-out-processes-2/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('when saying no gets hard'); }); test('good_luck_opting_out_manipulative_design_patterns_in_opt_out_processes_2: h1 "The Opt-Out Maze: How Deceptiv"', async ({ page }) => { await page.goto('/good-luck-opting-out-manipulative-design-patterns-in-opt-out-processes-2/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Opt-Out Maze: How Deceptive Design Patterns Obstruct Consumer Choice' || t.startsWith('The Opt-Out Maze: How Deceptive Design Patterns Obstruct Consumer Choice'))).toBeTruthy(); }); test('good_luck_opting_out_manipulative_design_patterns_in_opt_out_processes_2: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/good-luck-opting-out-manipulative-design-patterns-in-opt-out-processes-2/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('good_luck_opting_out_manipulative_design_patterns_in_opt_out_processes_2: nav link "AI & Civil Liberties"', async ({ page }) => { await page.goto('/good-luck-opting-out-manipulative-design-patterns-in-opt-out-processes-2/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Liberties' || t.startsWith('AI & Civil Liberties')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('good_luck_opting_out_manipulative_design_patterns_in_opt_out_processes_2: nav link "AI in Policing & Courts"', async ({ page }) => { await page.goto('/good-luck-opting-out-manipulative-design-patterns-in-opt-out-processes-2/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing & Courts' || t.startsWith('AI in Policing & Courts')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('good_luck_opting_out_manipulative_design_patterns_in_opt_out_processes_2: nav link "AI Rules"', async ({ page }) => { await page.goto('/good-luck-opting-out-manipulative-design-patterns-in-opt-out-processes-2/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - impact_comparison', () => { test('impact_comparison: title matches GT', async ({ page }) => { await page.goto('/impact-comparison/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('measuring the measures'); }); test('impact_comparison: h1 "Measuring the Measures: How Im"', async ({ page }) => { await page.goto('/impact-comparison/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Measuring the Measures: How Impact Assessment Mandates Differ Across the Globe' || t.startsWith('Measuring the Measures: How Impact Assessment Mandates Differ Across the Globe'))).toBeTruthy(); }); test('impact_comparison: h2 "Fund Our Mission"', async ({ page }) => { await page.goto('/impact-comparison/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Fund Our Mission' || t.startsWith('Fund Our Mission'))).toBeTruthy(); }); test('impact_comparison: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/impact-comparison/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('impact_comparison: nav link "AI & Basic Rights"', async ({ page }) => { await page.goto('/impact-comparison/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Basic Rights' || t.startsWith('AI & Basic Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('impact_comparison: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/impact-comparison/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('impact_comparison: nav link "AI Rules"', async ({ page }) => { await page.goto('/impact-comparison/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues', () => { test('issues: title matches GT', async ({ page }) => { await page.goto('/issues/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('issues'); }); test('issues: h1 "Issues"', async ({ page }) => { await page.goto('/issues/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Issues' || t.startsWith('Issues'))).toBeTruthy(); }); test('issues: h2 "Explore Sentorra\'s Work"', async ({ page }) => { await page.goto('/issues/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Explore Sentorra\'s Work' || t.startsWith('Explore Sentorra\'s Work'))).toBeTruthy(); }); test('issues: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues: nav link "AI & Basic Rights"', async ({ page }) => { await page.goto('/issues/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Basic Rights' || t.startsWith('AI & Basic Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues: nav link "AI in Policing Tools"', async ({ page }) => { await page.goto('/issues/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Tools' || t.startsWith('AI in Policing Tools')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues: nav link "AI Rules"', async ({ page }) => { await page.goto('/issues/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_consumer_privacy_data_brokers', () => { test('issues_consumer_privacy_data_brokers: title matches GT', async ({ page }) => { await page.goto('/issues/consumer-privacy/data-brokers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('data brokers'); }); test('issues_consumer_privacy_data_brokers: h1 "Data Brokers"', async ({ page }) => { await page.goto('/issues/consumer-privacy/data-brokers/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Data Brokers' || t.startsWith('Data Brokers'))).toBeTruthy(); }); test('issues_consumer_privacy_data_brokers: h2 "Background"', async ({ page }) => { await page.goto('/issues/consumer-privacy/data-brokers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_consumer_privacy_data_brokers: h2 "Documents"', async ({ page }) => { await page.goto('/issues/consumer-privacy/data-brokers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documents' || t.startsWith('Documents'))).toBeTruthy(); }); test('issues_consumer_privacy_data_brokers: h2 "Latest Documents on Data Broke"', async ({ page }) => { await page.goto('/issues/consumer-privacy/data-brokers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest Documents on Data Brokers' || t.startsWith('Latest Documents on Data Brokers'))).toBeTruthy(); }); test('issues_consumer_privacy_data_brokers: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/consumer-privacy/data-brokers/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_consumer_privacy_data_brokers: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/issues/consumer-privacy/data-brokers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_consumer_privacy_data_brokers: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/issues/consumer-privacy/data-brokers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_consumer_privacy_data_brokers: nav link "AI Ethics"', async ({ page }) => { await page.goto('/issues/consumer-privacy/data-brokers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_consumer_privacy_data_minimization', () => { test('issues_consumer_privacy_data_minimization: title matches GT', async ({ page }) => { await page.goto('/issues/consumer-privacy/data-minimization/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('data minimization'); }); test('issues_consumer_privacy_data_minimization: h1 "Data Minimization"', async ({ page }) => { await page.goto('/issues/consumer-privacy/data-minimization/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Data Minimization' || t.startsWith('Data Minimization'))).toBeTruthy(); }); test('issues_consumer_privacy_data_minimization: h2 "Background"', async ({ page }) => { await page.goto('/issues/consumer-privacy/data-minimization/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_consumer_privacy_data_minimization: h2 "Documents"', async ({ page }) => { await page.goto('/issues/consumer-privacy/data-minimization/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documents' || t.startsWith('Documents'))).toBeTruthy(); }); test('issues_consumer_privacy_data_minimization: h2 "Latest Filings on Data Minimiz"', async ({ page }) => { await page.goto('/issues/consumer-privacy/data-minimization/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest Filings on Data Minimization' || t.startsWith('Latest Filings on Data Minimization'))).toBeTruthy(); }); test('issues_consumer_privacy_data_minimization: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/consumer-privacy/data-minimization/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_consumer_privacy_data_minimization: nav link "AI & Basic Rights"', async ({ page }) => { await page.goto('/issues/consumer-privacy/data-minimization/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Basic Rights' || t.startsWith('AI & Basic Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_consumer_privacy_data_minimization: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/issues/consumer-privacy/data-minimization/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_consumer_privacy_data_minimization: nav link "AI Ethics"', async ({ page }) => { await page.goto('/issues/consumer-privacy/data-minimization/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_consumer_privacy_online_advertising_and_tracking', () => { test('issues_consumer_privacy_online_advertising_and_tracking: title matches GT', async ({ page }) => { await page.goto('/issues/consumer-privacy/online-advertising-and-tracking/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('digital ads & online tracking'); }); test('issues_consumer_privacy_online_advertising_and_tracking: h1 "Targeted Ads & Online Tracking"', async ({ page }) => { await page.goto('/issues/consumer-privacy/online-advertising-and-tracking/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Targeted Ads & Online Tracking' || t.startsWith('Targeted Ads & Online Tracking'))).toBeTruthy(); }); test('issues_consumer_privacy_online_advertising_and_tracking: h2 "The Basics"', async ({ page }) => { await page.goto('/issues/consumer-privacy/online-advertising-and-tracking/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Basics' || t.startsWith('The Basics'))).toBeTruthy(); }); test('issues_consumer_privacy_online_advertising_and_tracking: h2 "Resources"', async ({ page }) => { await page.goto('/issues/consumer-privacy/online-advertising-and-tracking/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('issues_consumer_privacy_online_advertising_and_tracking: h2 "Recent Documents on Online Adv"', async ({ page }) => { await page.goto('/issues/consumer-privacy/online-advertising-and-tracking/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recent Documents on Online Advertising & Tracking' || t.startsWith('Recent Documents on Online Advertising & Tracking'))).toBeTruthy(); }); test('issues_consumer_privacy_online_advertising_and_tracking: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/consumer-privacy/online-advertising-and-tracking/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_consumer_privacy_online_advertising_and_tracking: nav link "AI & Civil Liberties"', async ({ page }) => { await page.goto('/issues/consumer-privacy/online-advertising-and-tracking/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Liberties' || t.startsWith('AI & Civil Liberties')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_consumer_privacy_online_advertising_and_tracking: nav link "Automated Policing"', async ({ page }) => { await page.goto('/issues/consumer-privacy/online-advertising-and-tracking/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Automated Policing' || t.startsWith('Automated Policing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_consumer_privacy_online_advertising_and_tracking: nav link "AI Rules"', async ({ page }) => { await page.goto('/issues/consumer-privacy/online-advertising-and-tracking/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_consumer_privacy_robocalls', () => { test('issues_consumer_privacy_robocalls: title matches GT', async ({ page }) => { await page.goto('/issues/consumer-privacy/robocalls/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('robocalls'); }); test('issues_consumer_privacy_robocalls: h1 "Robocalls"', async ({ page }) => { await page.goto('/issues/consumer-privacy/robocalls/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Robocalls' || t.startsWith('Robocalls'))).toBeTruthy(); }); test('issues_consumer_privacy_robocalls: h2 "Background"', async ({ page }) => { await page.goto('/issues/consumer-privacy/robocalls/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_consumer_privacy_robocalls: h2 "Documents"', async ({ page }) => { await page.goto('/issues/consumer-privacy/robocalls/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documents' || t.startsWith('Documents'))).toBeTruthy(); }); test('issues_consumer_privacy_robocalls: h2 "Newest Robocall Legal Filings"', async ({ page }) => { await page.goto('/issues/consumer-privacy/robocalls/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Newest Robocall Legal Filings' || t.startsWith('Newest Robocall Legal Filings'))).toBeTruthy(); }); test('issues_consumer_privacy_robocalls: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/consumer-privacy/robocalls/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_consumer_privacy_robocalls: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/issues/consumer-privacy/robocalls/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_consumer_privacy_robocalls: nav link "AI in Policing Tools"', async ({ page }) => { await page.goto('/issues/consumer-privacy/robocalls/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Tools' || t.startsWith('AI in Policing Tools')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_consumer_privacy_robocalls: nav link "AI Ethics"', async ({ page }) => { await page.goto('/issues/consumer-privacy/robocalls/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_consumer_privacy_social_media_privacy', () => { test('issues_consumer_privacy_social_media_privacy: title matches GT', async ({ page }) => { await page.goto('/issues/consumer-privacy/social-media-privacy/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('social platform privacy'); }); test('issues_consumer_privacy_social_media_privacy: h1 "Social Media Privacy"', async ({ page }) => { await page.goto('/issues/consumer-privacy/social-media-privacy/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Social Media Privacy' || t.startsWith('Social Media Privacy'))).toBeTruthy(); }); test('issues_consumer_privacy_social_media_privacy: h2 "Background"', async ({ page }) => { await page.goto('/issues/consumer-privacy/social-media-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_consumer_privacy_social_media_privacy: h2 "Documents"', async ({ page }) => { await page.goto('/issues/consumer-privacy/social-media-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documents' || t.startsWith('Documents'))).toBeTruthy(); }); test('issues_consumer_privacy_social_media_privacy: h2 "Latest Documents on Social Med"', async ({ page }) => { await page.goto('/issues/consumer-privacy/social-media-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest Documents on Social Media Privacy' || t.startsWith('Latest Documents on Social Media Privacy'))).toBeTruthy(); }); test('issues_consumer_privacy_social_media_privacy: header link "Sentorra – Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/consumer-privacy/social-media-privacy/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra – Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra – Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_consumer_privacy_social_media_privacy: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/issues/consumer-privacy/social-media-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_consumer_privacy_social_media_privacy: nav link "AI in Policing Tools"', async ({ page }) => { await page.goto('/issues/consumer-privacy/social-media-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Tools' || t.startsWith('AI in Policing Tools')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_consumer_privacy_social_media_privacy: nav link "AI Ethics"', async ({ page }) => { await page.goto('/issues/consumer-privacy/social-media-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_consumer_privacy_surveillance_pricing', () => { test('issues_consumer_privacy_surveillance_pricing: title matches GT', async ({ page }) => { await page.goto('/issues/consumer-privacy/surveillance-pricing/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('personalized pricing'); }); test('issues_consumer_privacy_surveillance_pricing: h1 "Surveillance Pricing"', async ({ page }) => { await page.goto('/issues/consumer-privacy/surveillance-pricing/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Surveillance Pricing' || t.startsWith('Surveillance Pricing'))).toBeTruthy(); }); test('issues_consumer_privacy_surveillance_pricing: h2 "Background"', async ({ page }) => { await page.goto('/issues/consumer-privacy/surveillance-pricing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_consumer_privacy_surveillance_pricing: h2 "Documents"', async ({ page }) => { await page.goto('/issues/consumer-privacy/surveillance-pricing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documents' || t.startsWith('Documents'))).toBeTruthy(); }); test('issues_consumer_privacy_surveillance_pricing: h2 "Latest Filings on Surveillance"', async ({ page }) => { await page.goto('/issues/consumer-privacy/surveillance-pricing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest Filings on Surveillance Pricing' || t.startsWith('Latest Filings on Surveillance Pricing'))).toBeTruthy(); }); test('issues_consumer_privacy_surveillance_pricing: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/consumer-privacy/surveillance-pricing/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_consumer_privacy_surveillance_pricing: nav link "AI & Basic Rights"', async ({ page }) => { await page.goto('/issues/consumer-privacy/surveillance-pricing/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Basic Rights' || t.startsWith('AI & Basic Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_consumer_privacy_surveillance_pricing: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/issues/consumer-privacy/surveillance-pricing/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_consumer_privacy_surveillance_pricing: nav link "AI Ethics"', async ({ page }) => { await page.goto('/issues/consumer-privacy/surveillance-pricing/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_cybersecurity', () => { test('issues_cybersecurity: title matches GT', async ({ page }) => { await page.goto('/issues/cybersecurity/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('cybersecurity'); }); test('issues_cybersecurity: h1 "Cybersecurity"', async ({ page }) => { await page.goto('/issues/cybersecurity/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Cybersecurity' || t.startsWith('Cybersecurity'))).toBeTruthy(); }); test('issues_cybersecurity: h2 "Background"', async ({ page }) => { await page.goto('/issues/cybersecurity/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_cybersecurity: h2 "Top Updates"', async ({ page }) => { await page.goto('/issues/cybersecurity/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Top Updates' || t.startsWith('Top Updates'))).toBeTruthy(); }); test('issues_cybersecurity: h2 "Contact Sentorra\'s Experts on "', async ({ page }) => { await page.goto('/issues/cybersecurity/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contact Sentorra\'s Experts on Cybersecurity' || t.startsWith('Contact Sentorra\'s Experts on Cybersecurity'))).toBeTruthy(); }); test('issues_cybersecurity: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/cybersecurity/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_cybersecurity: nav link "AI & Human Rights"', async ({ page }) => { await page.goto('/issues/cybersecurity/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Rights' || t.startsWith('AI & Human Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_cybersecurity: nav link "AI in Law Enforcement"', async ({ page }) => { await page.goto('/issues/cybersecurity/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Law Enforcement' || t.startsWith('AI in Law Enforcement')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_cybersecurity: nav link "AI Policy"', async ({ page }) => { await page.goto('/issues/cybersecurity/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_cybersecurity_data_security', () => { test('issues_cybersecurity_data_security: title matches GT', async ({ page }) => { await page.goto('/issues/cybersecurity/data-security/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('data security'); }); test('issues_cybersecurity_data_security: h1 "Data Security"', async ({ page }) => { await page.goto('/issues/cybersecurity/data-security/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Data Security' || t.startsWith('Data Security'))).toBeTruthy(); }); test('issues_cybersecurity_data_security: h2 "Background"', async ({ page }) => { await page.goto('/issues/cybersecurity/data-security/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_cybersecurity_data_security: h2 "Resources"', async ({ page }) => { await page.goto('/issues/cybersecurity/data-security/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('issues_cybersecurity_data_security: h2 "Latest Documents on Data Secur"', async ({ page }) => { await page.goto('/issues/cybersecurity/data-security/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest Documents on Data Security' || t.startsWith('Latest Documents on Data Security'))).toBeTruthy(); }); test('issues_cybersecurity_data_security: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/cybersecurity/data-security/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_cybersecurity_data_security: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/issues/cybersecurity/data-security/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_cybersecurity_data_security: nav link "AI & Policing Systems"', async ({ page }) => { await page.goto('/issues/cybersecurity/data-security/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Policing Systems' || t.startsWith('AI & Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_cybersecurity_data_security: nav link "AI Ethics"', async ({ page }) => { await page.goto('/issues/cybersecurity/data-security/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_cybersecurity_election_security', () => { test('issues_cybersecurity_election_security: title matches GT', async ({ page }) => { await page.goto('/issues/cybersecurity/election-security/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('election security'); }); test('issues_cybersecurity_election_security: h1 "Election Security"', async ({ page }) => { await page.goto('/issues/cybersecurity/election-security/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Election Security' || t.startsWith('Election Security'))).toBeTruthy(); }); test('issues_cybersecurity_election_security: h2 "Background"', async ({ page }) => { await page.goto('/issues/cybersecurity/election-security/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_cybersecurity_election_security: h2 "Documents"', async ({ page }) => { await page.goto('/issues/cybersecurity/election-security/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documents' || t.startsWith('Documents'))).toBeTruthy(); }); test('issues_cybersecurity_election_security: h2 "Newest Documents on Election S"', async ({ page }) => { await page.goto('/issues/cybersecurity/election-security/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Newest Documents on Election Security' || t.startsWith('Newest Documents on Election Security'))).toBeTruthy(); }); test('issues_cybersecurity_election_security: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/cybersecurity/election-security/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_cybersecurity_election_security: nav link "AI & Human Rights"', async ({ page }) => { await page.goto('/issues/cybersecurity/election-security/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Rights' || t.startsWith('AI & Human Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_cybersecurity_election_security: nav link "AI in Law Enforcement"', async ({ page }) => { await page.goto('/issues/cybersecurity/election-security/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Law Enforcement' || t.startsWith('AI in Law Enforcement')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_cybersecurity_election_security: nav link "AI Policy"', async ({ page }) => { await page.goto('/issues/cybersecurity/election-security/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_cybersecurity_encryption', () => { test('issues_cybersecurity_encryption: title matches GT', async ({ page }) => { await page.goto('/issues/cybersecurity/encryption/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('encryption'); }); test('issues_cybersecurity_encryption: h1 "Encryption"', async ({ page }) => { await page.goto('/issues/cybersecurity/encryption/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Encryption' || t.startsWith('Encryption'))).toBeTruthy(); }); test('issues_cybersecurity_encryption: h2 "The Context"', async ({ page }) => { await page.goto('/issues/cybersecurity/encryption/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Context' || t.startsWith('The Context'))).toBeTruthy(); }); test('issues_cybersecurity_encryption: h2 "Resources"', async ({ page }) => { await page.goto('/issues/cybersecurity/encryption/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('issues_cybersecurity_encryption: h2 "Latest Documents on Encryption"', async ({ page }) => { await page.goto('/issues/cybersecurity/encryption/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest Documents on Encryption' || t.startsWith('Latest Documents on Encryption'))).toBeTruthy(); }); test('issues_cybersecurity_encryption: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/cybersecurity/encryption/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_cybersecurity_encryption: nav link "AI & Human Dignity"', async ({ page }) => { await page.goto('/issues/cybersecurity/encryption/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Dignity' || t.startsWith('AI & Human Dignity')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_cybersecurity_encryption: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/issues/cybersecurity/encryption/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_cybersecurity_encryption: nav link "AI Ethics"', async ({ page }) => { await page.goto('/issues/cybersecurity/encryption/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_cybersecurity_presidential_directives', () => { test('issues_cybersecurity_presidential_directives: title matches GT', async ({ page }) => { await page.goto('/issues/cybersecurity/presidential-directives/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('presidential directives on cybersecurity'); }); test('issues_cybersecurity_presidential_directives: h1 "Presidential Directives for Cy"', async ({ page }) => { await page.goto('/issues/cybersecurity/presidential-directives/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Presidential Directives for Cybersecurity and AI' || t.startsWith('Presidential Directives for Cybersecurity and AI'))).toBeTruthy(); }); test('issues_cybersecurity_presidential_directives: h2 "Background"', async ({ page }) => { await page.goto('/issues/cybersecurity/presidential-directives/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_cybersecurity_presidential_directives: h2 "Second-Term Administration:"', async ({ page }) => { await page.goto('/issues/cybersecurity/presidential-directives/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Second-Term Administration:' || t.startsWith('Second-Term Administration:'))).toBeTruthy(); }); test('issues_cybersecurity_presidential_directives: h2 "Prior Administration:"', async ({ page }) => { await page.goto('/issues/cybersecurity/presidential-directives/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Prior Administration:' || t.startsWith('Prior Administration:'))).toBeTruthy(); }); test('issues_cybersecurity_presidential_directives: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/cybersecurity/presidential-directives/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_cybersecurity_presidential_directives: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/issues/cybersecurity/presidential-directives/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_cybersecurity_presidential_directives: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/issues/cybersecurity/presidential-directives/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_cybersecurity_presidential_directives: nav link "AI Rules"', async ({ page }) => { await page.goto('/issues/cybersecurity/presidential-directives/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_data_protection', () => { test('issues_data_protection: title matches GT', async ({ page }) => { await page.goto('/issues/data-protection/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('data protection'); }); test('issues_data_protection: h1 "Data Protection"', async ({ page }) => { await page.goto('/issues/data-protection/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Data Protection' || t.startsWith('Data Protection'))).toBeTruthy(); }); test('issues_data_protection: h2 "The Basics"', async ({ page }) => { await page.goto('/issues/data-protection/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Basics' || t.startsWith('The Basics'))).toBeTruthy(); }); test('issues_data_protection: h2 "Key Updates"', async ({ page }) => { await page.goto('/issues/data-protection/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Key Updates' || t.startsWith('Key Updates'))).toBeTruthy(); }); test('issues_data_protection: h2 "Reach Sentorra\'s Experts on Da"', async ({ page }) => { await page.goto('/issues/data-protection/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reach Sentorra\'s Experts on Data Protection' || t.startsWith('Reach Sentorra\'s Experts on Data Protection'))).toBeTruthy(); }); test('issues_data_protection: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/data-protection/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_data_protection: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/issues/data-protection/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_data_protection: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/issues/data-protection/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_data_protection: nav link "AI Policy"', async ({ page }) => { await page.goto('/issues/data-protection/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_data_protection_childrens_privacy', () => { test('issues_data_protection_childrens_privacy: title matches GT', async ({ page }) => { await page.goto('/issues/data-protection/childrens-privacy/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('children\'s privacy'); }); test('issues_data_protection_childrens_privacy: h1 "Youth Data Privacy"', async ({ page }) => { await page.goto('/issues/data-protection/childrens-privacy/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Youth Data Privacy' || t.startsWith('Youth Data Privacy'))).toBeTruthy(); }); test('issues_data_protection_childrens_privacy: h1 "I. Minors Confront Online Risk"', async ({ page }) => { await page.goto('/issues/data-protection/childrens-privacy/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'I. Minors Confront Online Risk' || t.startsWith('I. Minors Confront Online Risk'))).toBeTruthy(); }); test('issues_data_protection_childrens_privacy: h2 "Overview"', async ({ page }) => { await page.goto('/issues/data-protection/childrens-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Overview' || t.startsWith('Overview'))).toBeTruthy(); }); test('issues_data_protection_childrens_privacy: h2 "Resources"', async ({ page }) => { await page.goto('/issues/data-protection/childrens-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('issues_data_protection_childrens_privacy: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/data-protection/childrens-privacy/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_data_protection_childrens_privacy: nav link "AI & Human Dignity"', async ({ page }) => { await page.goto('/issues/data-protection/childrens-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Dignity' || t.startsWith('AI & Human Dignity')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_data_protection_childrens_privacy: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/issues/data-protection/childrens-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_data_protection_childrens_privacy: nav link "AI Rules"', async ({ page }) => { await page.goto('/issues/data-protection/childrens-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_data_protection_enforcement_of_privacy_laws', () => { test('issues_data_protection_enforcement_of_privacy_laws: title matches GT', async ({ page }) => { await page.goto('/issues/data-protection/enforcement-of-privacy-laws/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('enforcing privacy protections'); }); test('issues_data_protection_enforcement_of_privacy_laws: h1 "Enforcing Data Privacy Laws"', async ({ page }) => { await page.goto('/issues/data-protection/enforcement-of-privacy-laws/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Enforcing Data Privacy Laws' || t.startsWith('Enforcing Data Privacy Laws'))).toBeTruthy(); }); test('issues_data_protection_enforcement_of_privacy_laws: h2 "Overview"', async ({ page }) => { await page.goto('/issues/data-protection/enforcement-of-privacy-laws/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Overview' || t.startsWith('Overview'))).toBeTruthy(); }); test('issues_data_protection_enforcement_of_privacy_laws: h2 "Resources"', async ({ page }) => { await page.goto('/issues/data-protection/enforcement-of-privacy-laws/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('issues_data_protection_enforcement_of_privacy_laws: h2 "Recent Filings on the Enforcem"', async ({ page }) => { await page.goto('/issues/data-protection/enforcement-of-privacy-laws/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recent Filings on the Enforcement of Privacy Laws' || t.startsWith('Recent Filings on the Enforcement of Privacy Laws'))).toBeTruthy(); }); test('issues_data_protection_enforcement_of_privacy_laws: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/data-protection/enforcement-of-privacy-laws/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_data_protection_enforcement_of_privacy_laws: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/issues/data-protection/enforcement-of-privacy-laws/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_data_protection_enforcement_of_privacy_laws: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/issues/data-protection/enforcement-of-privacy-laws/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_data_protection_enforcement_of_privacy_laws: nav link "AI Reform"', async ({ page }) => { await page.goto('/issues/data-protection/enforcement-of-privacy-laws/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Reform' || t.startsWith('AI Reform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_data_protection_government_records_privacy', () => { test('issues_data_protection_government_records_privacy: title matches GT', async ({ page }) => { await page.goto('/issues/data-protection/government-records-privacy/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('government records & privacy'); }); test('issues_data_protection_government_records_privacy: h1 "Government Records & Your Priv"', async ({ page }) => { await page.goto('/issues/data-protection/government-records-privacy/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Government Records & Your Privacy' || t.startsWith('Government Records & Your Privacy'))).toBeTruthy(); }); test('issues_data_protection_government_records_privacy: h2 "Background"', async ({ page }) => { await page.goto('/issues/data-protection/government-records-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_data_protection_government_records_privacy: h2 "Documents"', async ({ page }) => { await page.goto('/issues/data-protection/government-records-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documents' || t.startsWith('Documents'))).toBeTruthy(); }); test('issues_data_protection_government_records_privacy: h2 "Latest Filings on Government R"', async ({ page }) => { await page.goto('/issues/data-protection/government-records-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest Filings on Government Records & Privacy' || t.startsWith('Latest Filings on Government Records & Privacy'))).toBeTruthy(); }); test('issues_data_protection_government_records_privacy: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/data-protection/government-records-privacy/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_data_protection_government_records_privacy: nav link "AI & Human Rights"', async ({ page }) => { await page.goto('/issues/data-protection/government-records-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Rights' || t.startsWith('AI & Human Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_data_protection_government_records_privacy: nav link "AI in Law Enforcement"', async ({ page }) => { await page.goto('/issues/data-protection/government-records-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Law Enforcement' || t.startsWith('AI in Law Enforcement')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_data_protection_government_records_privacy: nav link "AI Policy"', async ({ page }) => { await page.goto('/issues/data-protection/government-records-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_data_protection_health_privacy', () => { test('issues_data_protection_health_privacy: title matches GT', async ({ page }) => { await page.goto('/issues/data-protection/health-privacy/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('medical and reproductive privacy'); }); test('issues_data_protection_health_privacy: h1 "Health and Reproductive Data R"', async ({ page }) => { await page.goto('/issues/data-protection/health-privacy/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Health and Reproductive Data Rights' || t.startsWith('Health and Reproductive Data Rights'))).toBeTruthy(); }); test('issues_data_protection_health_privacy: h2 "Background"', async ({ page }) => { await page.goto('/issues/data-protection/health-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_data_protection_health_privacy: h2 "Documents"', async ({ page }) => { await page.goto('/issues/data-protection/health-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documents' || t.startsWith('Documents'))).toBeTruthy(); }); test('issues_data_protection_health_privacy: h2 "Latest Filings on Health and R"', async ({ page }) => { await page.goto('/issues/data-protection/health-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest Filings on Health and Reproductive Privacy' || t.startsWith('Latest Filings on Health and Reproductive Privacy'))).toBeTruthy(); }); test('issues_data_protection_health_privacy: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/data-protection/health-privacy/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_data_protection_health_privacy: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/issues/data-protection/health-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_data_protection_health_privacy: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/issues/data-protection/health-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_data_protection_health_privacy: nav link "AI Ethics"', async ({ page }) => { await page.goto('/issues/data-protection/health-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_data_protection_international_privacy', () => { test('issues_data_protection_international_privacy: title matches GT', async ({ page }) => { await page.goto('/issues/data-protection/international-privacy/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('international privacy'); }); test('issues_data_protection_international_privacy: h1 "International Privacy"', async ({ page }) => { await page.goto('/issues/data-protection/international-privacy/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'International Privacy' || t.startsWith('International Privacy'))).toBeTruthy(); }); test('issues_data_protection_international_privacy: h2 "Background"', async ({ page }) => { await page.goto('/issues/data-protection/international-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_data_protection_international_privacy: h2 "Documents"', async ({ page }) => { await page.goto('/issues/data-protection/international-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documents' || t.startsWith('Documents'))).toBeTruthy(); }); test('issues_data_protection_international_privacy: h2 "Recent Publications on Interna"', async ({ page }) => { await page.goto('/issues/data-protection/international-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recent Publications on International Privacy' || t.startsWith('Recent Publications on International Privacy'))).toBeTruthy(); }); test('issues_data_protection_international_privacy: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/data-protection/international-privacy/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_data_protection_international_privacy: nav link "AI & Human Dignity"', async ({ page }) => { await page.goto('/issues/data-protection/international-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Dignity' || t.startsWith('AI & Human Dignity')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_data_protection_international_privacy: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/issues/data-protection/international-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_data_protection_international_privacy: nav link "AI Rules"', async ({ page }) => { await page.goto('/issues/data-protection/international-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_data_protection_location_tracking', () => { test('issues_data_protection_location_tracking: title matches GT', async ({ page }) => { await page.goto('/issues/data-protection/location-tracking/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('location tracking'); }); test('issues_data_protection_location_tracking: h1 "Location Tracking"', async ({ page }) => { await page.goto('/issues/data-protection/location-tracking/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Location Tracking' || t.startsWith('Location Tracking'))).toBeTruthy(); }); test('issues_data_protection_location_tracking: h2 "Background"', async ({ page }) => { await page.goto('/issues/data-protection/location-tracking/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_data_protection_location_tracking: h2 "Documents"', async ({ page }) => { await page.goto('/issues/data-protection/location-tracking/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documents' || t.startsWith('Documents'))).toBeTruthy(); }); test('issues_data_protection_location_tracking: h2 "Recent Materials on Location T"', async ({ page }) => { await page.goto('/issues/data-protection/location-tracking/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recent Materials on Location Tracking' || t.startsWith('Recent Materials on Location Tracking'))).toBeTruthy(); }); test('issues_data_protection_location_tracking: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/data-protection/location-tracking/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_data_protection_location_tracking: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/issues/data-protection/location-tracking/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_data_protection_location_tracking: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/issues/data-protection/location-tracking/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_data_protection_location_tracking: nav link "AI Ethics"', async ({ page }) => { await page.goto('/issues/data-protection/location-tracking/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_data_protection_student_privacy', () => { test('issues_data_protection_student_privacy: title matches GT', async ({ page }) => { await page.goto('/issues/data-protection/student-privacy/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('learner privacy'); }); test('issues_data_protection_student_privacy: h1 "Student Privacy"', async ({ page }) => { await page.goto('/issues/data-protection/student-privacy/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Student Privacy' || t.startsWith('Student Privacy'))).toBeTruthy(); }); test('issues_data_protection_student_privacy: h2 "Background"', async ({ page }) => { await page.goto('/issues/data-protection/student-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_data_protection_student_privacy: h2 "Resources"', async ({ page }) => { await page.goto('/issues/data-protection/student-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('issues_data_protection_student_privacy: h2 "Latest Filings on Student Priv"', async ({ page }) => { await page.goto('/issues/data-protection/student-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest Filings on Student Privacy' || t.startsWith('Latest Filings on Student Privacy'))).toBeTruthy(); }); test('issues_data_protection_student_privacy: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/data-protection/student-privacy/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_data_protection_student_privacy: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/issues/data-protection/student-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_data_protection_student_privacy: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/issues/data-protection/student-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_data_protection_student_privacy: nav link "AI Rules"', async ({ page }) => { await page.goto('/issues/data-protection/student-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_data_protection_workplace_privacy', () => { test('issues_data_protection_workplace_privacy: title matches GT', async ({ page }) => { await page.goto('/issues/data-protection/workplace-privacy/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('workplace privacy'); }); test('issues_data_protection_workplace_privacy: h1 "Employee Privacy"', async ({ page }) => { await page.goto('/issues/data-protection/workplace-privacy/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Employee Privacy' || t.startsWith('Employee Privacy'))).toBeTruthy(); }); test('issues_data_protection_workplace_privacy: h2 "Background"', async ({ page }) => { await page.goto('/issues/data-protection/workplace-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_data_protection_workplace_privacy: h2 "Resources"', async ({ page }) => { await page.goto('/issues/data-protection/workplace-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('issues_data_protection_workplace_privacy: h2 "Bossware"', async ({ page }) => { await page.goto('/issues/data-protection/workplace-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Bossware' || t.startsWith('Bossware'))).toBeTruthy(); }); test('issues_data_protection_workplace_privacy: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/data-protection/workplace-privacy/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_data_protection_workplace_privacy: nav link "AI & Human Dignity"', async ({ page }) => { await page.goto('/issues/data-protection/workplace-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Dignity' || t.startsWith('AI & Human Dignity')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_data_protection_workplace_privacy: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/issues/data-protection/workplace-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_data_protection_workplace_privacy: nav link "AI Rules"', async ({ page }) => { await page.goto('/issues/data-protection/workplace-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_democracy_free_speech', () => { test('issues_democracy_free_speech: title matches GT', async ({ page }) => { await page.goto('/issues/democracy-free-speech/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('democracy & free speech'); }); test('issues_democracy_free_speech: h1 "Free Speech & Civic Life"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Free Speech & Civic Life' || t.startsWith('Free Speech & Civic Life'))).toBeTruthy(); }); test('issues_democracy_free_speech: h2 "Our Context"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Context' || t.startsWith('Our Context'))).toBeTruthy(); }); test('issues_democracy_free_speech: h2 "Latest News"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest News' || t.startsWith('Latest News'))).toBeTruthy(); }); test('issues_democracy_free_speech: h2 "Reach Our Experts on Free Spee"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reach Our Experts on Free Speech & Civic Life' || t.startsWith('Reach Our Experts on Free Speech & Civic Life'))).toBeTruthy(); }); test('issues_democracy_free_speech: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_democracy_free_speech: nav link "AI & Basic Rights"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Basic Rights' || t.startsWith('AI & Basic Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_democracy_free_speech: nav link "AI in Policing Tools"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Tools' || t.startsWith('AI in Policing Tools')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_democracy_free_speech: nav link "AI Ethics"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_democracy_free_speech_access_to_information', () => { test('issues_democracy_free_speech_access_to_information: title matches GT', async ({ page }) => { await page.goto('/issues/democracy-free-speech/access-to-information/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('access to information'); }); test('issues_democracy_free_speech_access_to_information: h1 "Access to Public Records"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/access-to-information/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Access to Public Records' || t.startsWith('Access to Public Records'))).toBeTruthy(); }); test('issues_democracy_free_speech_access_to_information: h2 "The Basics"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/access-to-information/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Basics' || t.startsWith('The Basics'))).toBeTruthy(); }); test('issues_democracy_free_speech_access_to_information: h2 "Resources"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/access-to-information/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('issues_democracy_free_speech_access_to_information: h2 "Recent Filings on the Right to"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/access-to-information/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recent Filings on the Right to Information' || t.startsWith('Recent Filings on the Right to Information'))).toBeTruthy(); }); test('issues_democracy_free_speech_access_to_information: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/access-to-information/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_democracy_free_speech_access_to_information: nav link "AI & Basic Rights"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/access-to-information/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Basic Rights' || t.startsWith('AI & Basic Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_democracy_free_speech_access_to_information: nav link "AI in Public Policing"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/access-to-information/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Policing' || t.startsWith('AI in Public Policing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_democracy_free_speech_access_to_information: nav link "AI Ethics"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/access-to-information/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_democracy_free_speech_anonymity', () => { test('issues_democracy_free_speech_anonymity: title matches GT', async ({ page }) => { await page.goto('/issues/democracy-free-speech/anonymity/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('anonymity'); }); test('issues_democracy_free_speech_anonymity: h1 "Anonymity"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/anonymity/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Anonymity' || t.startsWith('Anonymity'))).toBeTruthy(); }); test('issues_democracy_free_speech_anonymity: h2 "Background"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/anonymity/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_democracy_free_speech_anonymity: h2 "Documents"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/anonymity/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documents' || t.startsWith('Documents'))).toBeTruthy(); }); test('issues_democracy_free_speech_anonymity: h2 "Latest Documents on Anonymity"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/anonymity/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest Documents on Anonymity' || t.startsWith('Latest Documents on Anonymity'))).toBeTruthy(); }); test('issues_democracy_free_speech_anonymity: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/anonymity/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_democracy_free_speech_anonymity: nav link "AI & Basic Rights"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/anonymity/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Basic Rights' || t.startsWith('AI & Basic Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_democracy_free_speech_anonymity: nav link "AI in Policing Tools"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/anonymity/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Tools' || t.startsWith('AI in Policing Tools')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_democracy_free_speech_anonymity: nav link "AI Rules"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/anonymity/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_democracy_free_speech_census_privacy', () => { test('issues_democracy_free_speech_census_privacy: title matches GT', async ({ page }) => { await page.goto('/issues/democracy-free-speech/census-privacy/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('census privacy'); }); test('issues_democracy_free_speech_census_privacy: h1 "Census Privacy"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/census-privacy/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Census Privacy' || t.startsWith('Census Privacy'))).toBeTruthy(); }); test('issues_democracy_free_speech_census_privacy: h2 "Overview"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/census-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Overview' || t.startsWith('Overview'))).toBeTruthy(); }); test('issues_democracy_free_speech_census_privacy: h2 "Resources"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/census-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('issues_democracy_free_speech_census_privacy: h2 "Latest Filings on Census Priva"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/census-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest Filings on Census Privacy' || t.startsWith('Latest Filings on Census Privacy'))).toBeTruthy(); }); test('issues_democracy_free_speech_census_privacy: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/census-privacy/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_democracy_free_speech_census_privacy: nav link "AI & Human Dignity"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/census-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Dignity' || t.startsWith('AI & Human Dignity')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_democracy_free_speech_census_privacy: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/census-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_democracy_free_speech_census_privacy: nav link "AI Ethics"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/census-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_democracy_free_speech_donor_privacy', () => { test('issues_democracy_free_speech_donor_privacy: title matches GT', async ({ page }) => { await page.goto('/issues/democracy-free-speech/donor-privacy/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('donor privacy'); }); test('issues_democracy_free_speech_donor_privacy: h1 "Donor Privacy"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/donor-privacy/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Donor Privacy' || t.startsWith('Donor Privacy'))).toBeTruthy(); }); test('issues_democracy_free_speech_donor_privacy: h2 "Background"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/donor-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_democracy_free_speech_donor_privacy: h2 "Documents"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/donor-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documents' || t.startsWith('Documents'))).toBeTruthy(); }); test('issues_democracy_free_speech_donor_privacy: h2 "New Filings on Contributor Pri"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/donor-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'New Filings on Contributor Privacy' || t.startsWith('New Filings on Contributor Privacy'))).toBeTruthy(); }); test('issues_democracy_free_speech_donor_privacy: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/donor-privacy/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_democracy_free_speech_donor_privacy: nav link "AI & Basic Rights"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/donor-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Basic Rights' || t.startsWith('AI & Basic Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_democracy_free_speech_donor_privacy: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/donor-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_democracy_free_speech_donor_privacy: nav link "AI Rules"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/donor-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_democracy_free_speech_fighting_federal_data_abuses', () => { test('issues_democracy_free_speech_fighting_federal_data_abuses: title matches GT', async ({ page }) => { await page.goto('/issues/democracy-free-speech/fighting-federal-data-abuses/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra’s stand against the administrat'); }); test('issues_democracy_free_speech_fighting_federal_data_abuses: h1 "Sentorra\'s Stand Against the G"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/fighting-federal-data-abuses/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra\'s Stand Against the Government\'s Privacy Abuses' || t.startsWith('Sentorra\'s Stand Against the Government\'s Privacy Abuses'))).toBeTruthy(); }); test('issues_democracy_free_speech_fighting_federal_data_abuses: h2 "Resources"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/fighting-federal-data-abuses/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('issues_democracy_free_speech_fighting_federal_data_abuses: h2 "Sentorra’s Fight Against Feder"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/fighting-federal-data-abuses/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra’s Fight Against Federal Privacy Abuses' || t.startsWith('Sentorra’s Fight Against Federal Privacy Abuses'))).toBeTruthy(); }); test('issues_democracy_free_speech_fighting_federal_data_abuses: h2 "Speak With Our Experts"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/fighting-federal-data-abuses/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Speak With Our Experts' || t.startsWith('Speak With Our Experts'))).toBeTruthy(); }); test('issues_democracy_free_speech_fighting_federal_data_abuses: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/fighting-federal-data-abuses/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_democracy_free_speech_fighting_federal_data_abuses: nav link "AI & Basic Rights"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/fighting-federal-data-abuses/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Basic Rights' || t.startsWith('AI & Basic Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_democracy_free_speech_fighting_federal_data_abuses: nav link "Automated Policing AI"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/fighting-federal-data-abuses/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Automated Policing AI' || t.startsWith('Automated Policing AI')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_democracy_free_speech_fighting_federal_data_abuses: nav link "AI Ethics"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/fighting-federal-data-abuses/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_democracy_free_speech_privacy_and_racial_justice', () => { test('issues_democracy_free_speech_privacy_and_racial_justice: title matches GT', async ({ page }) => { await page.goto('/issues/democracy-free-speech/privacy-and-racial-justice/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('privacy & racial justice'); }); test('issues_democracy_free_speech_privacy_and_racial_justice: h1 "Privacy & Racial Equity"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/privacy-and-racial-justice/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Privacy & Racial Equity' || t.startsWith('Privacy & Racial Equity'))).toBeTruthy(); }); test('issues_democracy_free_speech_privacy_and_racial_justice: h2 "Our Context"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/privacy-and-racial-justice/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Context' || t.startsWith('Our Context'))).toBeTruthy(); }); test('issues_democracy_free_speech_privacy_and_racial_justice: h2 "Resources"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/privacy-and-racial-justice/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('issues_democracy_free_speech_privacy_and_racial_justice: h2 "Recent Filings on Privacy & Ra"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/privacy-and-racial-justice/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recent Filings on Privacy & Racial Justice' || t.startsWith('Recent Filings on Privacy & Racial Justice'))).toBeTruthy(); }); test('issues_democracy_free_speech_privacy_and_racial_justice: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/privacy-and-racial-justice/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_democracy_free_speech_privacy_and_racial_justice: nav link "AI & Human Rights"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/privacy-and-racial-justice/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Rights' || t.startsWith('AI & Human Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_democracy_free_speech_privacy_and_racial_justice: nav link "AI in Law Enforcement"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/privacy-and-racial-justice/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Law Enforcement' || t.startsWith('AI in Law Enforcement')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_democracy_free_speech_privacy_and_racial_justice: nav link "AI Policy"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/privacy-and-racial-justice/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_democracy_free_speech_voter_privacy', () => { test('issues_democracy_free_speech_voter_privacy: title matches GT', async ({ page }) => { await page.goto('/issues/democracy-free-speech/voter-privacy/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('voter privacy'); }); test('issues_democracy_free_speech_voter_privacy: h1 "Voter Privacy"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/voter-privacy/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Voter Privacy' || t.startsWith('Voter Privacy'))).toBeTruthy(); }); test('issues_democracy_free_speech_voter_privacy: h2 "Background"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/voter-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_democracy_free_speech_voter_privacy: h2 "Documents"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/voter-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documents' || t.startsWith('Documents'))).toBeTruthy(); }); test('issues_democracy_free_speech_voter_privacy: h2 "Latest Filings on Voter Privac"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/voter-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest Filings on Voter Privacy' || t.startsWith('Latest Filings on Voter Privacy'))).toBeTruthy(); }); test('issues_democracy_free_speech_voter_privacy: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/voter-privacy/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_democracy_free_speech_voter_privacy: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/voter-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_democracy_free_speech_voter_privacy: nav link "AI in Policing Tools"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/voter-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Tools' || t.startsWith('AI in Policing Tools')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_democracy_free_speech_voter_privacy: nav link "AI Ethics"', async ({ page }) => { await page.goto('/issues/democracy-free-speech/voter-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_open_government', () => { test('issues_open_government: title matches GT', async ({ page }) => { await page.goto('/issues/open-government/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('open government'); }); test('issues_open_government: h1 "Open Government"', async ({ page }) => { await page.goto('/issues/open-government/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Open Government' || t.startsWith('Open Government'))).toBeTruthy(); }); test('issues_open_government: h2 "Background"', async ({ page }) => { await page.goto('/issues/open-government/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_open_government: h2 "Key Areas We Focus On in Open "', async ({ page }) => { await page.goto('/issues/open-government/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Key Areas We Focus On in Open Government' || t.startsWith('Key Areas We Focus On in Open Government'))).toBeTruthy(); }); test('issues_open_government: h2 "Recent News"', async ({ page }) => { await page.goto('/issues/open-government/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recent News' || t.startsWith('Recent News'))).toBeTruthy(); }); test('issues_open_government: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/open-government/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_open_government: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/issues/open-government/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_open_government: nav link "AI in Public Policing"', async ({ page }) => { await page.goto('/issues/open-government/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Policing' || t.startsWith('AI in Public Policing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_open_government: nav link "AI Ethics"', async ({ page }) => { await page.goto('/issues/open-government/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_open_government_federal_advisory_committee_act', () => { test('issues_open_government_federal_advisory_committee_act: title matches GT', async ({ page }) => { await page.goto('/issues/open-government/federal-advisory-committee-act/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('federal advisory committee act'); }); test('issues_open_government_federal_advisory_committee_act: h1 "Federal Advisory Committee Act"', async ({ page }) => { await page.goto('/issues/open-government/federal-advisory-committee-act/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Federal Advisory Committee Act' || t.startsWith('Federal Advisory Committee Act'))).toBeTruthy(); }); test('issues_open_government_federal_advisory_committee_act: h2 "The Basics"', async ({ page }) => { await page.goto('/issues/open-government/federal-advisory-committee-act/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Basics' || t.startsWith('The Basics'))).toBeTruthy(); }); test('issues_open_government_federal_advisory_committee_act: h2 "Resources"', async ({ page }) => { await page.goto('/issues/open-government/federal-advisory-committee-act/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('issues_open_government_federal_advisory_committee_act: h2 "Recent Filings on the Federal "', async ({ page }) => { await page.goto('/issues/open-government/federal-advisory-committee-act/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recent Filings on the Federal Advisory Committee Act' || t.startsWith('Recent Filings on the Federal Advisory Committee Act'))).toBeTruthy(); }); test('issues_open_government_federal_advisory_committee_act: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/open-government/federal-advisory-committee-act/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_open_government_federal_advisory_committee_act: nav link "AI & Human Rights"', async ({ page }) => { await page.goto('/issues/open-government/federal-advisory-committee-act/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Rights' || t.startsWith('AI & Human Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_open_government_federal_advisory_committee_act: nav link "AI in Law Enforcement"', async ({ page }) => { await page.goto('/issues/open-government/federal-advisory-committee-act/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Law Enforcement' || t.startsWith('AI in Law Enforcement')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_open_government_federal_advisory_committee_act: nav link "AI Policy"', async ({ page }) => { await page.goto('/issues/open-government/federal-advisory-committee-act/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_open_government_foia', () => { test('issues_open_government_foia: title matches GT', async ({ page }) => { await page.goto('/issues/open-government/foia/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('freedom of information act'); }); test('issues_open_government_foia: h1 "Freedom of Information Act"', async ({ page }) => { await page.goto('/issues/open-government/foia/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Freedom of Information Act' || t.startsWith('Freedom of Information Act'))).toBeTruthy(); }); test('issues_open_government_foia: h2 "The Basics"', async ({ page }) => { await page.goto('/issues/open-government/foia/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Basics' || t.startsWith('The Basics'))).toBeTruthy(); }); test('issues_open_government_foia: h2 "Resources"', async ({ page }) => { await page.goto('/issues/open-government/foia/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('issues_open_government_foia: h2 "New Materials on the Freedom o"', async ({ page }) => { await page.goto('/issues/open-government/foia/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'New Materials on the Freedom of Information Act' || t.startsWith('New Materials on the Freedom of Information Act'))).toBeTruthy(); }); test('issues_open_government_foia: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/open-government/foia/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_open_government_foia: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/issues/open-government/foia/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_open_government_foia: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/issues/open-government/foia/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_open_government_foia: nav link "AI Ethics"', async ({ page }) => { await page.goto('/issues/open-government/foia/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_open_government_government_databases', () => { test('issues_open_government_government_databases: title matches GT', async ({ page }) => { await page.goto('/issues/open-government/government-databases/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('government databases'); }); test('issues_open_government_government_databases: h1 "Government Databases"', async ({ page }) => { await page.goto('/issues/open-government/government-databases/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Government Databases' || t.startsWith('Government Databases'))).toBeTruthy(); }); test('issues_open_government_government_databases: h2 "Background"', async ({ page }) => { await page.goto('/issues/open-government/government-databases/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_open_government_government_databases: h2 "Documents"', async ({ page }) => { await page.goto('/issues/open-government/government-databases/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documents' || t.startsWith('Documents'))).toBeTruthy(); }); test('issues_open_government_government_databases: h2 "Recent Filings on Federal Data"', async ({ page }) => { await page.goto('/issues/open-government/government-databases/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recent Filings on Federal Data Systems' || t.startsWith('Recent Filings on Federal Data Systems'))).toBeTruthy(); }); test('issues_open_government_government_databases: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/open-government/government-databases/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_open_government_government_databases: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/issues/open-government/government-databases/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_open_government_government_databases: nav link "AI and Policing Tools"', async ({ page }) => { await page.goto('/issues/open-government/government-databases/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI and Policing Tools' || t.startsWith('AI and Policing Tools')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_open_government_government_databases: nav link "AI Ethics"', async ({ page }) => { await page.goto('/issues/open-government/government-databases/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_open_government_privacy_impact_assessments', () => { test('issues_open_government_privacy_impact_assessments: title matches GT', async ({ page }) => { await page.goto('/issues/open-government/privacy-impact-assessments/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('privacy impact assessments'); }); test('issues_open_government_privacy_impact_assessments: h1 "Privacy Impact Assessments"', async ({ page }) => { await page.goto('/issues/open-government/privacy-impact-assessments/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Privacy Impact Assessments' || t.startsWith('Privacy Impact Assessments'))).toBeTruthy(); }); test('issues_open_government_privacy_impact_assessments: h2 "Background"', async ({ page }) => { await page.goto('/issues/open-government/privacy-impact-assessments/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_open_government_privacy_impact_assessments: h2 "Documents"', async ({ page }) => { await page.goto('/issues/open-government/privacy-impact-assessments/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documents' || t.startsWith('Documents'))).toBeTruthy(); }); test('issues_open_government_privacy_impact_assessments: h2 "Latest Records on Privacy Impa"', async ({ page }) => { await page.goto('/issues/open-government/privacy-impact-assessments/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest Records on Privacy Impact Assessments' || t.startsWith('Latest Records on Privacy Impact Assessments'))).toBeTruthy(); }); test('issues_open_government_privacy_impact_assessments: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/open-government/privacy-impact-assessments/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_open_government_privacy_impact_assessments: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/issues/open-government/privacy-impact-assessments/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_open_government_privacy_impact_assessments: nav link "AI in Border Control"', async ({ page }) => { await page.goto('/issues/open-government/privacy-impact-assessments/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Border Control' || t.startsWith('AI in Border Control')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_open_government_privacy_impact_assessments: nav link "AI Rules"', async ({ page }) => { await page.goto('/issues/open-government/privacy-impact-assessments/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_platform_accountability_governance', () => { test('issues_platform_accountability_governance: title matches GT', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('platform accountability & governance'); }); test('issues_platform_accountability_governance: h1 "Holding Digital Platforms Acco"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Holding Digital Platforms Accountable' || t.startsWith('Holding Digital Platforms Accountable'))).toBeTruthy(); }); test('issues_platform_accountability_governance: h2 "The Context"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Context' || t.startsWith('The Context'))).toBeTruthy(); }); test('issues_platform_accountability_governance: h2 "Key Focus Areas Within Platfor"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Key Focus Areas Within Platform Accountability and Governance' || t.startsWith('Key Focus Areas Within Platform Accountability and Governance'))).toBeTruthy(); }); test('issues_platform_accountability_governance: h2 "Key Updates"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Key Updates' || t.startsWith('Key Updates'))).toBeTruthy(); }); test('issues_platform_accountability_governance: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_platform_accountability_governance: nav link "AI & Basic Rights"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Basic Rights' || t.startsWith('AI & Basic Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_platform_accountability_governance: nav link "AI in Policing Tools"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Tools' || t.startsWith('AI in Policing Tools')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_platform_accountability_governance: nav link "AI Ethics"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_platform_accountability_governance_age_assurance', () => { test('issues_platform_accountability_governance_age_assurance: title matches GT', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/age-assurance/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('age assurance'); }); test('issues_platform_accountability_governance_age_assurance: h1 "Age Assurance"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/age-assurance/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Age Assurance' || t.startsWith('Age Assurance'))).toBeTruthy(); }); test('issues_platform_accountability_governance_age_assurance: h2 "Background"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/age-assurance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_platform_accountability_governance_age_assurance: h2 "Documents"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/age-assurance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documents' || t.startsWith('Documents'))).toBeTruthy(); }); test('issues_platform_accountability_governance_age_assurance: h2 "Latest Documents on Age Assura"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/age-assurance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest Documents on Age Assurance' || t.startsWith('Latest Documents on Age Assurance'))).toBeTruthy(); }); test('issues_platform_accountability_governance_age_assurance: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/age-assurance/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_platform_accountability_governance_age_assurance: nav link "AI & Civil Liberties"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/age-assurance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Liberties' || t.startsWith('AI & Civil Liberties')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_platform_accountability_governance_age_assurance: nav link "Automated Policing Tech"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/age-assurance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Automated Policing Tech' || t.startsWith('Automated Policing Tech')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_platform_accountability_governance_age_assurance: nav link "AI Rules"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/age-assurance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_platform_accountability_governance_online_harassment', () => { test('issues_platform_accountability_governance_online_harassment: title matches GT', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/online-harassment/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('online harassment'); }); test('issues_platform_accountability_governance_online_harassment: h1 "Online Harassment"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/online-harassment/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Online Harassment' || t.startsWith('Online Harassment'))).toBeTruthy(); }); test('issues_platform_accountability_governance_online_harassment: h2 "Background"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/online-harassment/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_platform_accountability_governance_online_harassment: h2 "Documents"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/online-harassment/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documents' || t.startsWith('Documents'))).toBeTruthy(); }); test('issues_platform_accountability_governance_online_harassment: h2 "Recent Documents on Online Har"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/online-harassment/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recent Documents on Online Harassment' || t.startsWith('Recent Documents on Online Harassment'))).toBeTruthy(); }); test('issues_platform_accountability_governance_online_harassment: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/online-harassment/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_platform_accountability_governance_online_harassment: nav link "AI & Human Rights"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/online-harassment/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Rights' || t.startsWith('AI & Human Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_platform_accountability_governance_online_harassment: nav link "AI in Law Enforcement"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/online-harassment/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Law Enforcement' || t.startsWith('AI in Law Enforcement')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_platform_accountability_governance_online_harassment: nav link "AI Policy"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/online-harassment/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_platform_accountability_governance_platform_governance_laws_and_regulations', () => { test('issues_platform_accountability_governance_platform_governance_laws_and_regulations: title matches GT', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/platform-governance-laws-and-regulations/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('platform governance laws & regulations'); }); test('issues_platform_accountability_governance_platform_governance_laws_and_regulations: h1 "Platform Oversight Laws & Regu"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/platform-governance-laws-and-regulations/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform Oversight Laws & Regulations' || t.startsWith('Platform Oversight Laws & Regulations'))).toBeTruthy(); }); test('issues_platform_accountability_governance_platform_governance_laws_and_regulations: h2 "Background"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/platform-governance-laws-and-regulations/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_platform_accountability_governance_platform_governance_laws_and_regulations: h2 "Resources"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/platform-governance-laws-and-regulations/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('issues_platform_accountability_governance_platform_governance_laws_and_regulations: h2 "Recent Resources on Platform O"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/platform-governance-laws-and-regulations/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recent Resources on Platform Oversight Laws & Regulations' || t.startsWith('Recent Resources on Platform Oversight Laws & Regulations'))).toBeTruthy(); }); test('issues_platform_accountability_governance_platform_governance_laws_and_regulations: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/platform-governance-laws-and-regulations/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_platform_accountability_governance_platform_governance_laws_and_regulations: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/platform-governance-laws-and-regulations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_platform_accountability_governance_platform_governance_laws_and_regulations: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/platform-governance-laws-and-regulations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_platform_accountability_governance_platform_governance_laws_and_regulations: nav link "AI Rules"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/platform-governance-laws-and-regulations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_platform_accountability_governance_section_230_and_platform_accountability', () => { test('issues_platform_accountability_governance_section_230_and_platform_accountability: title matches GT', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/section-230-and-platform-accountability/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('section 230 & platform accountability'); }); test('issues_platform_accountability_governance_section_230_and_platform_accountability: h1 "Section 230 & Platform Account"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/section-230-and-platform-accountability/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Section 230 & Platform Accountability' || t.startsWith('Section 230 & Platform Accountability'))).toBeTruthy(); }); test('issues_platform_accountability_governance_section_230_and_platform_accountability: h2 "The Basics"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/section-230-and-platform-accountability/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Basics' || t.startsWith('The Basics'))).toBeTruthy(); }); test('issues_platform_accountability_governance_section_230_and_platform_accountability: h2 "Materials"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/section-230-and-platform-accountability/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Materials' || t.startsWith('Materials'))).toBeTruthy(); }); test('issues_platform_accountability_governance_section_230_and_platform_accountability: h2 "Latest Filings on Section 230 "', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/section-230-and-platform-accountability/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest Filings on Section 230 & Platform Accountability' || t.startsWith('Latest Filings on Section 230 & Platform Accountability'))).toBeTruthy(); }); test('issues_platform_accountability_governance_section_230_and_platform_accountability: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/section-230-and-platform-accountability/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_platform_accountability_governance_section_230_and_platform_accountability: nav link "AI & Civil Liberties"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/section-230-and-platform-accountability/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Liberties' || t.startsWith('AI & Civil Liberties')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_platform_accountability_governance_section_230_and_platform_accountability: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/section-230-and-platform-accountability/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_platform_accountability_governance_section_230_and_platform_accountability: nav link "AI Rules"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/section-230-and-platform-accountability/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_platform_accountability_governance_the_first_amendment_and_platform_regulation', () => { test('issues_platform_accountability_governance_the_first_amendment_and_platform_regulation: title matches GT', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/the-first-amendment-and-platform-regulation/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('free expression online'); }); test('issues_platform_accountability_governance_the_first_amendment_and_platform_regulation: h1 "The First Amendment"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/the-first-amendment-and-platform-regulation/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The First Amendment' || t.startsWith('The First Amendment'))).toBeTruthy(); }); test('issues_platform_accountability_governance_the_first_amendment_and_platform_regulation: h2 "The Context"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/the-first-amendment-and-platform-regulation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Context' || t.startsWith('The Context'))).toBeTruthy(); }); test('issues_platform_accountability_governance_the_first_amendment_and_platform_regulation: h2 "Resources"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/the-first-amendment-and-platform-regulation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('issues_platform_accountability_governance_the_first_amendment_and_platform_regulation: h2 "Latest Documents on the First "', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/the-first-amendment-and-platform-regulation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest Documents on the First Amendment' || t.startsWith('Latest Documents on the First Amendment'))).toBeTruthy(); }); test('issues_platform_accountability_governance_the_first_amendment_and_platform_regulation: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/the-first-amendment-and-platform-regulation/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_platform_accountability_governance_the_first_amendment_and_platform_regulation: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/the-first-amendment-and-platform-regulation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_platform_accountability_governance_the_first_amendment_and_platform_regulation: nav link "AI in Policing Tools"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/the-first-amendment-and-platform-regulation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Tools' || t.startsWith('AI in Policing Tools')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_platform_accountability_governance_the_first_amendment_and_platform_regulation: nav link "AI Ethics"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/the-first-amendment-and-platform-regulation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_platform_accountability_governance_web_scraping', () => { test('issues_platform_accountability_governance_web_scraping: title matches GT', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/web-scraping/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('web scraping'); }); test('issues_platform_accountability_governance_web_scraping: h1 "Web Scraping"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/web-scraping/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Web Scraping' || t.startsWith('Web Scraping'))).toBeTruthy(); }); test('issues_platform_accountability_governance_web_scraping: h2 "The Context"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/web-scraping/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Context' || t.startsWith('The Context'))).toBeTruthy(); }); test('issues_platform_accountability_governance_web_scraping: h2 "Resources"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/web-scraping/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('issues_platform_accountability_governance_web_scraping: h2 "Recent Filings on Web Scraping"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/web-scraping/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recent Filings on Web Scraping' || t.startsWith('Recent Filings on Web Scraping'))).toBeTruthy(); }); test('issues_platform_accountability_governance_web_scraping: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/web-scraping/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_platform_accountability_governance_web_scraping: nav link "AI & Basic Rights"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/web-scraping/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Basic Rights' || t.startsWith('AI & Basic Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_platform_accountability_governance_web_scraping: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/web-scraping/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_platform_accountability_governance_web_scraping: nav link "AI & Law"', async ({ page }) => { await page.goto('/issues/platform-accountability-governance/web-scraping/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Law' || t.startsWith('AI & Law')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_privacy_laws', () => { test('issues_privacy_laws: title matches GT', async ({ page }) => { await page.goto('/issues/privacy-laws/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('privacy laws'); }); test('issues_privacy_laws: h1 "Privacy Laws"', async ({ page }) => { await page.goto('/issues/privacy-laws/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Privacy Laws' || t.startsWith('Privacy Laws'))).toBeTruthy(); }); test('issues_privacy_laws: h2 "Overview"', async ({ page }) => { await page.goto('/issues/privacy-laws/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Overview' || t.startsWith('Overview'))).toBeTruthy(); }); test('issues_privacy_laws: h2 "Key Updates"', async ({ page }) => { await page.goto('/issues/privacy-laws/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Key Updates' || t.startsWith('Key Updates'))).toBeTruthy(); }); test('issues_privacy_laws: h2 "Contact Sentorra’s Experts on "', async ({ page }) => { await page.goto('/issues/privacy-laws/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contact Sentorra’s Experts on Privacy Laws' || t.startsWith('Contact Sentorra’s Experts on Privacy Laws'))).toBeTruthy(); }); test('issues_privacy_laws: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/privacy-laws/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_privacy_laws: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/issues/privacy-laws/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_privacy_laws: nav link "Predictive Policing AI"', async ({ page }) => { await page.goto('/issues/privacy-laws/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Predictive Policing AI' || t.startsWith('Predictive Policing AI')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_privacy_laws: nav link "AI Ethics"', async ({ page }) => { await page.goto('/issues/privacy-laws/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_privacy_laws_article_iii_standing', () => { test('issues_privacy_laws_article_iii_standing: title matches GT', async ({ page }) => { await page.goto('/issues/privacy-laws/article-iii-standing/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('article iii standing'); }); test('issues_privacy_laws_article_iii_standing: h1 "Article III Standing"', async ({ page }) => { await page.goto('/issues/privacy-laws/article-iii-standing/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Article III Standing' || t.startsWith('Article III Standing'))).toBeTruthy(); }); test('issues_privacy_laws_article_iii_standing: h2 "Background"', async ({ page }) => { await page.goto('/issues/privacy-laws/article-iii-standing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_privacy_laws_article_iii_standing: h2 "Documents"', async ({ page }) => { await page.goto('/issues/privacy-laws/article-iii-standing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documents' || t.startsWith('Documents'))).toBeTruthy(); }); test('issues_privacy_laws_article_iii_standing: h2 "Recent Filings on Article III "', async ({ page }) => { await page.goto('/issues/privacy-laws/article-iii-standing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recent Filings on Article III Standing' || t.startsWith('Recent Filings on Article III Standing'))).toBeTruthy(); }); test('issues_privacy_laws_article_iii_standing: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/privacy-laws/article-iii-standing/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_privacy_laws_article_iii_standing: nav link "AI & Basic Rights"', async ({ page }) => { await page.goto('/issues/privacy-laws/article-iii-standing/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Basic Rights' || t.startsWith('AI & Basic Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_privacy_laws_article_iii_standing: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/issues/privacy-laws/article-iii-standing/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_privacy_laws_article_iii_standing: nav link "AI Rules"', async ({ page }) => { await page.goto('/issues/privacy-laws/article-iii-standing/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_privacy_laws_fourth_amendment', () => { test('issues_privacy_laws_fourth_amendment: title matches GT', async ({ page }) => { await page.goto('/issues/privacy-laws/fourth-amendment/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('fourth amendment'); }); test('issues_privacy_laws_fourth_amendment: h1 "Fourth Amendment"', async ({ page }) => { await page.goto('/issues/privacy-laws/fourth-amendment/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Fourth Amendment' || t.startsWith('Fourth Amendment'))).toBeTruthy(); }); test('issues_privacy_laws_fourth_amendment: h2 "Overview"', async ({ page }) => { await page.goto('/issues/privacy-laws/fourth-amendment/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Overview' || t.startsWith('Overview'))).toBeTruthy(); }); test('issues_privacy_laws_fourth_amendment: h2 "Resources"', async ({ page }) => { await page.goto('/issues/privacy-laws/fourth-amendment/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('issues_privacy_laws_fourth_amendment: h2 "Latest Filings on the Fourth A"', async ({ page }) => { await page.goto('/issues/privacy-laws/fourth-amendment/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest Filings on the Fourth Amendment' || t.startsWith('Latest Filings on the Fourth Amendment'))).toBeTruthy(); }); test('issues_privacy_laws_fourth_amendment: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/privacy-laws/fourth-amendment/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_privacy_laws_fourth_amendment: nav link "AI & Human Rights"', async ({ page }) => { await page.goto('/issues/privacy-laws/fourth-amendment/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Rights' || t.startsWith('AI & Human Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_privacy_laws_fourth_amendment: nav link "AI in Law Enforcement"', async ({ page }) => { await page.goto('/issues/privacy-laws/fourth-amendment/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Law Enforcement' || t.startsWith('AI in Law Enforcement')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_privacy_laws_fourth_amendment: nav link "AI Policy"', async ({ page }) => { await page.goto('/issues/privacy-laws/fourth-amendment/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_privacy_laws_international_privacy_laws', () => { test('issues_privacy_laws_international_privacy_laws: title matches GT', async ({ page }) => { await page.goto('/issues/privacy-laws/international-privacy-laws/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('international privacy laws'); }); test('issues_privacy_laws_international_privacy_laws: h1 "Global Privacy Regulations"', async ({ page }) => { await page.goto('/issues/privacy-laws/international-privacy-laws/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Global Privacy Regulations' || t.startsWith('Global Privacy Regulations'))).toBeTruthy(); }); test('issues_privacy_laws_international_privacy_laws: h2 "Overview"', async ({ page }) => { await page.goto('/issues/privacy-laws/international-privacy-laws/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Overview' || t.startsWith('Overview'))).toBeTruthy(); }); test('issues_privacy_laws_international_privacy_laws: h2 "Recent Publications on Global "', async ({ page }) => { await page.goto('/issues/privacy-laws/international-privacy-laws/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recent Publications on Global Privacy Laws' || t.startsWith('Recent Publications on Global Privacy Laws'))).toBeTruthy(); }); test('issues_privacy_laws_international_privacy_laws: h2 "Latest News"', async ({ page }) => { await page.goto('/issues/privacy-laws/international-privacy-laws/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest News' || t.startsWith('Latest News'))).toBeTruthy(); }); test('issues_privacy_laws_international_privacy_laws: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/privacy-laws/international-privacy-laws/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_privacy_laws_international_privacy_laws: nav link "AI & Human Dignity"', async ({ page }) => { await page.goto('/issues/privacy-laws/international-privacy-laws/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Dignity' || t.startsWith('AI & Human Dignity')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_privacy_laws_international_privacy_laws: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/issues/privacy-laws/international-privacy-laws/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_privacy_laws_international_privacy_laws: nav link "AI Ethics"', async ({ page }) => { await page.goto('/issues/privacy-laws/international-privacy-laws/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_privacy_laws_proposed_legislation', () => { test('issues_privacy_laws_proposed_legislation: title matches GT', async ({ page }) => { await page.goto('/issues/privacy-laws/proposed-legislation/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('pending federal privacy bills'); }); test('issues_privacy_laws_proposed_legislation: h1 "Pending U.S. Privacy Legislati"', async ({ page }) => { await page.goto('/issues/privacy-laws/proposed-legislation/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pending U.S. Privacy Legislation' || t.startsWith('Pending U.S. Privacy Legislation'))).toBeTruthy(); }); test('issues_privacy_laws_proposed_legislation: h2 "Background"', async ({ page }) => { await page.goto('/issues/privacy-laws/proposed-legislation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_privacy_laws_proposed_legislation: h2 "Documents"', async ({ page }) => { await page.goto('/issues/privacy-laws/proposed-legislation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documents' || t.startsWith('Documents'))).toBeTruthy(); }); test('issues_privacy_laws_proposed_legislation: h2 "Latest Filings on Pending Nati"', async ({ page }) => { await page.goto('/issues/privacy-laws/proposed-legislation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest Filings on Pending National Privacy Legislation' || t.startsWith('Latest Filings on Pending National Privacy Legislation'))).toBeTruthy(); }); test('issues_privacy_laws_proposed_legislation: header link "Sentorra – Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/privacy-laws/proposed-legislation/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra – Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra – Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_privacy_laws_proposed_legislation: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/issues/privacy-laws/proposed-legislation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_privacy_laws_proposed_legislation: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/issues/privacy-laws/proposed-legislation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_privacy_laws_proposed_legislation: nav link "AI Agenda"', async ({ page }) => { await page.goto('/issues/privacy-laws/proposed-legislation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Agenda' || t.startsWith('AI Agenda')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_privacy_laws_state_laws', () => { test('issues_privacy_laws_state_laws: title matches GT', async ({ page }) => { await page.goto('/issues/privacy-laws/state-laws/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('u.s. state privacy laws'); }); test('issues_privacy_laws_state_laws: h1 "State Privacy Legislation"', async ({ page }) => { await page.goto('/issues/privacy-laws/state-laws/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'State Privacy Legislation' || t.startsWith('State Privacy Legislation'))).toBeTruthy(); }); test('issues_privacy_laws_state_laws: h2 "The Context"', async ({ page }) => { await page.goto('/issues/privacy-laws/state-laws/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Context' || t.startsWith('The Context'))).toBeTruthy(); }); test('issues_privacy_laws_state_laws: h2 "Resources"', async ({ page }) => { await page.goto('/issues/privacy-laws/state-laws/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('issues_privacy_laws_state_laws: h2 "Focus Areas"', async ({ page }) => { await page.goto('/issues/privacy-laws/state-laws/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Focus Areas' || t.startsWith('Focus Areas'))).toBeTruthy(); }); test('issues_privacy_laws_state_laws: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/privacy-laws/state-laws/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_privacy_laws_state_laws: nav link "AI & Basic Rights"', async ({ page }) => { await page.goto('/issues/privacy-laws/state-laws/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Basic Rights' || t.startsWith('AI & Basic Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_privacy_laws_state_laws: nav link "AI in Policing Tools"', async ({ page }) => { await page.goto('/issues/privacy-laws/state-laws/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Tools' || t.startsWith('AI in Policing Tools')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_privacy_laws_state_laws: nav link "AI Rules"', async ({ page }) => { await page.goto('/issues/privacy-laws/state-laws/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_privacy_laws_united_states', () => { test('issues_privacy_laws_united_states: title matches GT', async ({ page }) => { await page.goto('/issues/privacy-laws/united-states/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('u.s. privacy laws'); }); test('issues_privacy_laws_united_states: h1 "U.S. Privacy Law"', async ({ page }) => { await page.goto('/issues/privacy-laws/united-states/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'U.S. Privacy Law' || t.startsWith('U.S. Privacy Law'))).toBeTruthy(); }); test('issues_privacy_laws_united_states: h2 "Foundations"', async ({ page }) => { await page.goto('/issues/privacy-laws/united-states/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Foundations' || t.startsWith('Foundations'))).toBeTruthy(); }); test('issues_privacy_laws_united_states: h2 "Resources"', async ({ page }) => { await page.goto('/issues/privacy-laws/united-states/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('issues_privacy_laws_united_states: h2 "Latest Documents on U.S. Priva"', async ({ page }) => { await page.goto('/issues/privacy-laws/united-states/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest Documents on U.S. Privacy Rules' || t.startsWith('Latest Documents on U.S. Privacy Rules'))).toBeTruthy(); }); test('issues_privacy_laws_united_states: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/privacy-laws/united-states/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_privacy_laws_united_states: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/issues/privacy-laws/united-states/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_privacy_laws_united_states: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/issues/privacy-laws/united-states/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_privacy_laws_united_states: nav link "AI Ethics"', async ({ page }) => { await page.goto('/issues/privacy-laws/united-states/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_surveillance_oversight', () => { test('issues_surveillance_oversight: title matches GT', async ({ page }) => { await page.goto('/issues/surveillance-oversight/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('surveillance oversight'); }); test('issues_surveillance_oversight: h1 "Reining In Surveillance"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reining In Surveillance' || t.startsWith('Reining In Surveillance'))).toBeTruthy(); }); test('issues_surveillance_oversight: h2 "The Context"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Context' || t.startsWith('The Context'))).toBeTruthy(); }); test('issues_surveillance_oversight: h2 "Key Fronts in Our Surveillance"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Key Fronts in Our Surveillance Oversight Work' || t.startsWith('Key Fronts in Our Surveillance Oversight Work'))).toBeTruthy(); }); test('issues_surveillance_oversight: h2 "Latest News"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest News' || t.startsWith('Latest News'))).toBeTruthy(); }); test('issues_surveillance_oversight: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_surveillance_oversight: nav link "AI & Human Rights"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Rights' || t.startsWith('AI & Human Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_surveillance_oversight: nav link "AI in Law Enforcement"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Law Enforcement' || t.startsWith('AI in Law Enforcement')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_surveillance_oversight: nav link "AI Policy"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_surveillance_oversight_aerial_surveillance', () => { test('issues_surveillance_oversight_aerial_surveillance: title matches GT', async ({ page }) => { await page.goto('/issues/surveillance-oversight/aerial-surveillance/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('drone surveillance and airspace privacy'); }); test('issues_surveillance_oversight_aerial_surveillance: h1 "Drones and Overhead Surveillan"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/aerial-surveillance/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Drones and Overhead Surveillance' || t.startsWith('Drones and Overhead Surveillance'))).toBeTruthy(); }); test('issues_surveillance_oversight_aerial_surveillance: h2 "Background"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/aerial-surveillance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_surveillance_oversight_aerial_surveillance: h2 "Documents"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/aerial-surveillance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documents' || t.startsWith('Documents'))).toBeTruthy(); }); test('issues_surveillance_oversight_aerial_surveillance: h2 "Recent Filings on Drones and A"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/aerial-surveillance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recent Filings on Drones and Aerial Surveillance' || t.startsWith('Recent Filings on Drones and Aerial Surveillance'))).toBeTruthy(); }); test('issues_surveillance_oversight_aerial_surveillance: header link "Sentorra - Defending Digital P"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/aerial-surveillance/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Defending Digital Privacy Rights Sentorra' || t.startsWith('Sentorra - Defending Digital Privacy Rights Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_surveillance_oversight_aerial_surveillance: nav link "AI & Basic Rights"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/aerial-surveillance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Basic Rights' || t.startsWith('AI & Basic Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_surveillance_oversight_aerial_surveillance: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/aerial-surveillance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_surveillance_oversight_aerial_surveillance: nav link "AI Policy"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/aerial-surveillance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_surveillance_oversight_border_surveillance', () => { test('issues_surveillance_oversight_border_surveillance: title matches GT', async ({ page }) => { await page.goto('/issues/surveillance-oversight/border-surveillance/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('traveler screening and border surveillan'); }); test('issues_surveillance_oversight_border_surveillance: h1 "Border Checkpoints and Travele"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/border-surveillance/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Border Checkpoints and Traveler Tracking' || t.startsWith('Border Checkpoints and Traveler Tracking'))).toBeTruthy(); }); test('issues_surveillance_oversight_border_surveillance: h2 "The Context"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/border-surveillance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Context' || t.startsWith('The Context'))).toBeTruthy(); }); test('issues_surveillance_oversight_border_surveillance: h2 "Resources"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/border-surveillance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('issues_surveillance_oversight_border_surveillance: h2 "Latest Documents on Traveler S"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/border-surveillance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest Documents on Traveler Screening and Border Surveillance' || t.startsWith('Latest Documents on Traveler Screening and Border Surveillance'))).toBeTruthy(); }); test('issues_surveillance_oversight_border_surveillance: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/border-surveillance/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_surveillance_oversight_border_surveillance: nav link "AI & Human Rights"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/border-surveillance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Rights' || t.startsWith('AI & Human Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_surveillance_oversight_border_surveillance: nav link "AI in Law Enforcement"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/border-surveillance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Law Enforcement' || t.startsWith('AI in Law Enforcement')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_surveillance_oversight_border_surveillance: nav link "AI Policy"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/border-surveillance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_surveillance_oversight_face_surveillance', () => { test('issues_surveillance_oversight_face_surveillance: title matches GT', async ({ page }) => { await page.goto('/issues/surveillance-oversight/face-surveillance/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('face surveillance and biometrics'); }); test('issues_surveillance_oversight_face_surveillance: h1 "Facial Surveillance and Biomet"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/face-surveillance/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Facial Surveillance and Biometrics' || t.startsWith('Facial Surveillance and Biometrics'))).toBeTruthy(); }); test('issues_surveillance_oversight_face_surveillance: h2 "Overview"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/face-surveillance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Overview' || t.startsWith('Overview'))).toBeTruthy(); }); test('issues_surveillance_oversight_face_surveillance: h2 "Resources"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/face-surveillance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('issues_surveillance_oversight_face_surveillance: h2 "Latest Filings on Face Surveil"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/face-surveillance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest Filings on Face Surveillance and Biometrics' || t.startsWith('Latest Filings on Face Surveillance and Biometrics'))).toBeTruthy(); }); test('issues_surveillance_oversight_face_surveillance: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/face-surveillance/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_surveillance_oversight_face_surveillance: nav link "AI & Human Rights"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/face-surveillance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Rights' || t.startsWith('AI & Human Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_surveillance_oversight_face_surveillance: nav link "AI in Law Enforcement"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/face-surveillance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Law Enforcement' || t.startsWith('AI in Law Enforcement')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_surveillance_oversight_face_surveillance: nav link "AI Policy"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/face-surveillance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_surveillance_oversight_intelligence_surveillance', () => { test('issues_surveillance_oversight_intelligence_surveillance: title matches GT', async ({ page }) => { await page.goto('/issues/surveillance-oversight/intelligence-surveillance/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('intelligence surveillance'); }); test('issues_surveillance_oversight_intelligence_surveillance: h1 "Intelligence Surveillance"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/intelligence-surveillance/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Intelligence Surveillance' || t.startsWith('Intelligence Surveillance'))).toBeTruthy(); }); test('issues_surveillance_oversight_intelligence_surveillance: h2 "Background"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/intelligence-surveillance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_surveillance_oversight_intelligence_surveillance: h2 "Documents"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/intelligence-surveillance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documents' || t.startsWith('Documents'))).toBeTruthy(); }); test('issues_surveillance_oversight_intelligence_surveillance: h2 "Latest Filings on Intelligence"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/intelligence-surveillance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest Filings on Intelligence Surveillance' || t.startsWith('Latest Filings on Intelligence Surveillance'))).toBeTruthy(); }); test('issues_surveillance_oversight_intelligence_surveillance: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/intelligence-surveillance/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_surveillance_oversight_intelligence_surveillance: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/intelligence-surveillance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_surveillance_oversight_intelligence_surveillance: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/intelligence-surveillance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_surveillance_oversight_intelligence_surveillance: nav link "AI Reform"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/intelligence-surveillance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Reform' || t.startsWith('AI Reform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_surveillance_oversight_patriot_act', () => { test('issues_surveillance_oversight_patriot_act: title matches GT', async ({ page }) => { await page.goto('/issues/surveillance-oversight/patriot-act/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('surveillance oversight'); }); test('issues_surveillance_oversight_patriot_act: h1 "SENTINEL Act"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/patriot-act/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SENTINEL Act' || t.startsWith('SENTINEL Act'))).toBeTruthy(); }); test('issues_surveillance_oversight_patriot_act: h2 "Background"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/patriot-act/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_surveillance_oversight_patriot_act: h2 "Resources"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/patriot-act/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('issues_surveillance_oversight_patriot_act: h2 "Latest Filings on the SENTINEL"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/patriot-act/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest Filings on the SENTINEL Act' || t.startsWith('Latest Filings on the SENTINEL Act'))).toBeTruthy(); }); test('issues_surveillance_oversight_patriot_act: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/patriot-act/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_surveillance_oversight_patriot_act: nav link "AI & Human Dignity"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/patriot-act/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Dignity' || t.startsWith('AI & Human Dignity')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_surveillance_oversight_patriot_act: nav link "AI for State Agencies"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/patriot-act/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI for State Agencies' || t.startsWith('AI for State Agencies')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_surveillance_oversight_patriot_act: nav link "AI Ethics"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/patriot-act/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_surveillance_oversight_privacy_in_public', () => { test('issues_surveillance_oversight_privacy_in_public: title matches GT', async ({ page }) => { await page.goto('/issues/surveillance-oversight/privacy-in-public/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('privacy in public'); }); test('issues_surveillance_oversight_privacy_in_public: h1 "Privacy in Public"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/privacy-in-public/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Privacy in Public' || t.startsWith('Privacy in Public'))).toBeTruthy(); }); test('issues_surveillance_oversight_privacy_in_public: h2 "Background"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/privacy-in-public/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_surveillance_oversight_privacy_in_public: h2 "Documents"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/privacy-in-public/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documents' || t.startsWith('Documents'))).toBeTruthy(); }); test('issues_surveillance_oversight_privacy_in_public: h2 "Latest Filings on Privacy in P"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/privacy-in-public/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest Filings on Privacy in Public' || t.startsWith('Latest Filings on Privacy in Public'))).toBeTruthy(); }); test('issues_surveillance_oversight_privacy_in_public: header link "Sentorra – Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/privacy-in-public/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra – Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra – Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_surveillance_oversight_privacy_in_public: nav link "AI & Basic Rights"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/privacy-in-public/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Basic Rights' || t.startsWith('AI & Basic Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_surveillance_oversight_privacy_in_public: nav link "AI in Policing Tools"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/privacy-in-public/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Tools' || t.startsWith('AI in Policing Tools')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_surveillance_oversight_privacy_in_public: nav link "AI Ethics"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/privacy-in-public/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_surveillance_oversight_wiretapping', () => { test('issues_surveillance_oversight_wiretapping: title matches GT', async ({ page }) => { await page.goto('/issues/surveillance-oversight/wiretapping/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('wiretapping'); }); test('issues_surveillance_oversight_wiretapping: h1 "Wiretapping"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/wiretapping/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Wiretapping' || t.startsWith('Wiretapping'))).toBeTruthy(); }); test('issues_surveillance_oversight_wiretapping: h2 "Background"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/wiretapping/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_surveillance_oversight_wiretapping: h2 "Documents"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/wiretapping/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documents' || t.startsWith('Documents'))).toBeTruthy(); }); test('issues_surveillance_oversight_wiretapping: h2 "Recent Filings on Wiretapping"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/wiretapping/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recent Filings on Wiretapping' || t.startsWith('Recent Filings on Wiretapping'))).toBeTruthy(); }); test('issues_surveillance_oversight_wiretapping: header link "Sentorra – Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/wiretapping/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra – Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra – Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_surveillance_oversight_wiretapping: nav link "AI & Human Rights"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/wiretapping/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Rights' || t.startsWith('AI & Human Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_surveillance_oversight_wiretapping: nav link "AI in Law Enforcement"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/wiretapping/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Law Enforcement' || t.startsWith('AI in Law Enforcement')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_surveillance_oversight_wiretapping: nav link "AI Policy"', async ({ page }) => { await page.goto('/issues/surveillance-oversight/wiretapping/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - media_press_kit', () => { test('media_press_kit: title matches GT', async ({ page }) => { await page.goto('/media/press-kit/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('press kit'); }); test('media_press_kit: h1 "Media Kit"', async ({ page }) => { await page.goto('/media/press-kit/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Media Kit' || t.startsWith('Media Kit'))).toBeTruthy(); }); test('media_press_kit: h3 "More about Sentorra"', async ({ page }) => { await page.goto('/media/press-kit/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More about Sentorra' || t.startsWith('More about Sentorra'))).toBeTruthy(); }); test('media_press_kit: h3 "how to stay current on our wor"', async ({ page }) => { await page.goto('/media/press-kit/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'how to stay current on our work' || t.startsWith('how to stay current on our work'))).toBeTruthy(); }); test('media_press_kit: h3 "Our Senior Staff Expertise"', async ({ page }) => { await page.goto('/media/press-kit/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Senior Staff Expertise' || t.startsWith('Our Senior Staff Expertise'))).toBeTruthy(); }); test('media_press_kit: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/media/press-kit/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('media_press_kit: nav link "AI & Basic Rights"', async ({ page }) => { await page.goto('/media/press-kit/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Basic Rights' || t.startsWith('AI & Basic Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('media_press_kit: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/media/press-kit/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('media_press_kit: nav link "AI Rules"', async ({ page }) => { await page.goto('/media/press-kit/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - our_work', () => { test('our_work: title matches GT', async ({ page }) => { await page.goto('/our-work/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('our work'); }); test('our_work: h1 "Our Work"', async ({ page }) => { await page.goto('/our-work/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Work' || t.startsWith('Our Work'))).toBeTruthy(); }); test('our_work: h2 "Our Advocacy Toolkit"', async ({ page }) => { await page.goto('/our-work/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Advocacy Toolkit' || t.startsWith('Our Advocacy Toolkit'))).toBeTruthy(); }); test('our_work: h2 "Support Our Work"', async ({ page }) => { await page.goto('/our-work/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support Our Work' || t.startsWith('Support Our Work'))).toBeTruthy(); }); test('our_work: h3 "Amicus Curiae Briefs"', async ({ page }) => { await page.goto('/our-work/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Amicus Curiae Briefs' || t.startsWith('Amicus Curiae Briefs'))).toBeTruthy(); }); test('our_work: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/our-work/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('our_work: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/our-work/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('our_work: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/our-work/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('our_work: nav link "AI Ethics"', async ({ page }) => { await page.goto('/our-work/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - stop_the_surveillance_state', () => { test('stop_the_surveillance_state: title matches GT', async ({ page }) => { await page.goto('/stop-the-surveillance-state/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra'); }); test('stop_the_surveillance_state: h2 "Support Our Work"', async ({ page }) => { await page.goto('/stop-the-surveillance-state/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support Our Work' || t.startsWith('Support Our Work'))).toBeTruthy(); }); test('stop_the_surveillance_state: h3 "Donate to power our campaign"', async ({ page }) => { await page.goto('/stop-the-surveillance-state/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Donate to power our campaign' || t.startsWith('Donate to power our campaign'))).toBeTruthy(); }); test('stop_the_surveillance_state: h3 "Can’t give right now? Pledge y"', async ({ page }) => { await page.goto('/stop-the-surveillance-state/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Can’t give right now? Pledge your support and sign up for updates' || t.startsWith('Can’t give right now? Pledge your support and sign up for updates'))).toBeTruthy(); }); test('stop_the_surveillance_state: h3 "Learn More"', async ({ page }) => { await page.goto('/stop-the-surveillance-state/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Learn More' || t.startsWith('Learn More'))).toBeTruthy(); }); test('stop_the_surveillance_state: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/stop-the-surveillance-state/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('stop_the_surveillance_state: nav link "AI & Basic Rights"', async ({ page }) => { await page.goto('/stop-the-surveillance-state/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Basic Rights' || t.startsWith('AI & Basic Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('stop_the_surveillance_state: nav link "AI in Public Policing"', async ({ page }) => { await page.goto('/stop-the-surveillance-state/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Policing' || t.startsWith('AI in Public Policing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('stop_the_surveillance_state: nav link "AI Reform"', async ({ page }) => { await page.goto('/stop-the-surveillance-state/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Reform' || t.startsWith('AI Reform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - support_sentorra', () => { test('support_sentorra: title matches GT', async ({ page }) => { await page.goto('/support-sentorra/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('ways to support sentorra'); }); test('support_sentorra: h1 "Ways to Support Us"', async ({ page }) => { await page.goto('/support-sentorra/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ways to Support Us' || t.startsWith('Ways to Support Us'))).toBeTruthy(); }); test('support_sentorra: h3 "Give online"', async ({ page }) => { await page.goto('/support-sentorra/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Give online' || t.startsWith('Give online'))).toBeTruthy(); }); test('support_sentorra: h3 "Give by Check"', async ({ page }) => { await page.goto('/support-sentorra/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Give by Check' || t.startsWith('Give by Check'))).toBeTruthy(); }); test('support_sentorra: h3 "Give via Paywell"', async ({ page }) => { await page.goto('/support-sentorra/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Give via Paywell' || t.startsWith('Give via Paywell'))).toBeTruthy(); }); test('support_sentorra: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/support-sentorra/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('support_sentorra: nav link "AI & Civil Liberties"', async ({ page }) => { await page.goto('/support-sentorra/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Liberties' || t.startsWith('AI & Civil Liberties')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('support_sentorra: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/support-sentorra/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('support_sentorra: nav link "AI Ethics"', async ({ page }) => { await page.goto('/support-sentorra/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - about_advisory_board', () => { test('about_advisory_board: title matches GT', async ({ page }) => { await page.goto('/about/advisory-board/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra advisory board'); }); test('about_advisory_board: h1 "The Advisory Board"', async ({ page }) => { await page.goto('/about/advisory-board/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Advisory Board' || t.startsWith('The Advisory Board'))).toBeTruthy(); }); test('about_advisory_board: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/about/advisory-board/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('about_advisory_board: nav link "AI & Human Dignity"', async ({ page }) => { await page.goto('/about/advisory-board/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Dignity' || t.startsWith('AI & Human Dignity')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('about_advisory_board: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/about/advisory-board/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('about_advisory_board: nav link "AI Ethics"', async ({ page }) => { await page.goto('/about/advisory-board/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - about_careers', () => { test('about_careers: title matches GT', async ({ page }) => { await page.goto('/about/careers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('careers & internships'); }); test('about_careers: h2 "Jobs"', async ({ page }) => { await page.goto('/about/careers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Jobs' || t.startsWith('Jobs'))).toBeTruthy(); }); test('about_careers: h2 "Fellowships"', async ({ page }) => { await page.goto('/about/careers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Fellowships' || t.startsWith('Fellowships'))).toBeTruthy(); }); test('about_careers: h2 "Internships & Clerkships"', async ({ page }) => { await page.goto('/about/careers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Internships & Clerkships' || t.startsWith('Internships & Clerkships'))).toBeTruthy(); }); test('about_careers: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/about/careers/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('about_careers: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/about/careers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('about_careers: nav link "AI in Policing Tools"', async ({ page }) => { await page.goto('/about/careers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Tools' || t.startsWith('AI in Policing Tools')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('about_careers: nav link "AI Ethics"', async ({ page }) => { await page.goto('/about/careers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - about_contact', () => { test('about_contact: title matches GT', async ({ page }) => { await page.goto('/about/contact/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('contact sentorra'); }); test('about_contact: h1 "Get in Touch"', async ({ page }) => { await page.goto('/about/contact/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Get in Touch' || t.startsWith('Get in Touch'))).toBeTruthy(); }); test('about_contact: h2 "Fund Our Mission"', async ({ page }) => { await page.goto('/about/contact/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Fund Our Mission' || t.startsWith('Fund Our Mission'))).toBeTruthy(); }); test('about_contact: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/about/contact/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('about_contact: nav link "AI & Basic Rights"', async ({ page }) => { await page.goto('/about/contact/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Basic Rights' || t.startsWith('AI & Basic Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('about_contact: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/about/contact/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('about_contact: nav link "AI Rules"', async ({ page }) => { await page.goto('/about/contact/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - about_privacy', () => { test('about_privacy: title matches GT', async ({ page }) => { await page.goto('/about/privacy/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('privacy policy'); }); test('about_privacy: h1 "Data & Privacy"', async ({ page }) => { await page.goto('/about/privacy/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Data & Privacy' || t.startsWith('Data & Privacy'))).toBeTruthy(); }); test('about_privacy: h2 "The Details: Our Complete Priv"', async ({ page }) => { await page.goto('/about/privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Details: Our Complete Privacy Notice' || t.startsWith('The Details: Our Complete Privacy Notice'))).toBeTruthy(); }); test('about_privacy: h3 "1. Data we gather when you sub"', async ({ page }) => { await page.goto('/about/privacy/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '1. Data we gather when you subscribe to one of our mailing lists' || t.startsWith('1. Data we gather when you subscribe to one of our mailing lists'))).toBeTruthy(); }); test('about_privacy: h3 "2. Data we gather when you bro"', async ({ page }) => { await page.goto('/about/privacy/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '2. Data we gather when you browse sentorra.org' || t.startsWith('2. Data we gather when you browse sentorra.org'))).toBeTruthy(); }); test('about_privacy: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/about/privacy/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('about_privacy: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/about/privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('about_privacy: nav link "Policing & AI Tools"', async ({ page }) => { await page.goto('/about/privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Policing & AI Tools' || t.startsWith('Policing & AI Tools')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('about_privacy: nav link "AI Rules"', async ({ page }) => { await page.goto('/about/privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - about_projects', () => { test('about_projects: title matches GT', async ({ page }) => { await page.goto('/about/projects/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra projects'); }); test('about_projects: h1 "Our Projects"', async ({ page }) => { await page.goto('/about/projects/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Projects' || t.startsWith('Our Projects'))).toBeTruthy(); }); test('about_projects: h2 "Support our work."', async ({ page }) => { await page.goto('/about/projects/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support our work.' || t.startsWith('Support our work.'))).toBeTruthy(); }); test('about_projects: h3 "Open Government Project"', async ({ page }) => { await page.goto('/about/projects/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Open Government Project' || t.startsWith('Open Government Project'))).toBeTruthy(); }); test('about_projects: h3 "Surveillance Oversight"', async ({ page }) => { await page.goto('/about/projects/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Surveillance Oversight' || t.startsWith('Surveillance Oversight'))).toBeTruthy(); }); test('about_projects: header link "Sentorra – Digital Privacy Rig"', async ({ page }) => { await page.goto('/about/projects/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra – Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra – Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('about_projects: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/about/projects/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('about_projects: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/about/projects/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('about_projects: nav link "AI Ethics"', async ({ page }) => { await page.goto('/about/projects/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - about_staff', () => { test('about_staff: title matches GT', async ({ page }) => { await page.goto('/about/staff/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra board and staff'); }); test('about_staff: h1 "Our Board and Staff"', async ({ page }) => { await page.goto('/about/staff/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Board and Staff' || t.startsWith('Our Board and Staff'))).toBeTruthy(); }); test('about_staff: h1 "Sentorra Governing Board"', async ({ page }) => { await page.goto('/about/staff/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra Governing Board' || t.startsWith('Sentorra Governing Board'))).toBeTruthy(); }); test('about_staff: h2 "Our Leadership"', async ({ page }) => { await page.goto('/about/staff/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Leadership' || t.startsWith('Our Leadership'))).toBeTruthy(); }); test('about_staff: h2 "Our Senior Staff"', async ({ page }) => { await page.goto('/about/staff/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Senior Staff' || t.startsWith('Our Senior Staff'))).toBeTruthy(); }); test('about_staff: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/about/staff/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('about_staff: nav link "AI & Human Rights"', async ({ page }) => { await page.goto('/about/staff/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Rights' || t.startsWith('AI & Human Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('about_staff: nav link "AI in Law Enforcement"', async ({ page }) => { await page.goto('/about/staff/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Law Enforcement' || t.startsWith('AI in Law Enforcement')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('about_staff: nav link "AI Policy"', async ({ page }) => { await page.goto('/about/staff/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - campaigns_fisa_section_702_reform_or_sunset', () => { test('campaigns_fisa_section_702_reform_or_sunset: title matches GT', async ({ page }) => { await page.goto('/campaigns/fisa-section-702-reform-or-sunset/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('fisa section 702'); }); test('campaigns_fisa_section_702_reform_or_sunset: h1 "FISA Section 702: Reform It or"', async ({ page }) => { await page.goto('/campaigns/fisa-section-702-reform-or-sunset/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FISA Section 702: Reform It or End It' || t.startsWith('FISA Section 702: Reform It or End It'))).toBeTruthy(); }); test('campaigns_fisa_section_702_reform_or_sunset: h2 "Our Work to Reform Section 702"', async ({ page }) => { await page.goto('/campaigns/fisa-section-702-reform-or-sunset/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Work to Reform Section 702' || t.startsWith('Our Work to Reform Section 702'))).toBeTruthy(); }); test('campaigns_fisa_section_702_reform_or_sunset: h2 "We Call on Congress to:"', async ({ page }) => { await page.goto('/campaigns/fisa-section-702-reform-or-sunset/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We Call on Congress to:' || t.startsWith('We Call on Congress to:'))).toBeTruthy(); }); test('campaigns_fisa_section_702_reform_or_sunset: h2 "Reforming 214 Blog Post Series"', async ({ page }) => { await page.goto('/campaigns/fisa-section-702-reform-or-sunset/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reforming 214 Blog Post Series' || t.startsWith('Reforming 214 Blog Post Series'))).toBeTruthy(); }); test('campaigns_fisa_section_702_reform_or_sunset: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/campaigns/fisa-section-702-reform-or-sunset/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('campaigns_fisa_section_702_reform_or_sunset: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/campaigns/fisa-section-702-reform-or-sunset/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('campaigns_fisa_section_702_reform_or_sunset: nav link "AI in Border Control"', async ({ page }) => { await page.goto('/campaigns/fisa-section-702-reform-or-sunset/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Border Control' || t.startsWith('AI in Border Control')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('campaigns_fisa_section_702_reform_or_sunset: nav link "AI Ethics"', async ({ page }) => { await page.goto('/campaigns/fisa-section-702-reform-or-sunset/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - content_types_news', () => { test('content_types_news: title matches GT', async ({ page }) => { await page.goto('/content-types/news/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('news'); }); test('content_types_news: h1 "News"', async ({ page }) => { await page.goto('/content-types/news/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'News' || t.startsWith('News'))).toBeTruthy(); }); test('content_types_news: h2 "The Coastal Courier: AI firms "', async ({ page }) => { await page.goto('/content-types/news/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Coastal Courier: AI firms use same deceptive opt-out tactics as data brokers to confuse users, s' || t.startsWith('The Coastal Courier: AI firms use same deceptive opt-out tactics as data brokers to confuse users, s'))).toBeTruthy(); }); test('content_types_news: h2 "GameLedger: Voxel Games Faces "', async ({ page }) => { await page.goto('/content-types/news/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'GameLedger: Voxel Games Faces Complaint Over Child Safety Claims' || t.startsWith('GameLedger: Voxel Games Faces Complaint Over Child Safety Claims'))).toBeTruthy(); }); test('content_types_news: h2 "Civic Radio: Border agency say"', async ({ page }) => { await page.goto('/content-types/news/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Civic Radio: Border agency says it has ‘no relationship’ with spyware maker Cipher Labs' || t.startsWith('Civic Radio: Border agency says it has ‘no relationship’ with spyware maker Cipher Labs'))).toBeTruthy(); }); test('content_types_news: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/content-types/news/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('content_types_news: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/content-types/news/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('content_types_news: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/content-types/news/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('content_types_news: nav link "AI Ethics"', async ({ page }) => { await page.goto('/content-types/news/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - content_types_press_releases', () => { test('content_types_press_releases: title matches GT', async ({ page }) => { await page.goto('/content-types/press-releases/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('press releases'); }); test('content_types_press_releases: h2 "PRESS RELEASE: Sentorra Publis"', async ({ page }) => { await page.goto('/content-types/press-releases/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'PRESS RELEASE: Sentorra Publishes New Report on Deceptive Design Patterns in Opt-Out Systems' || t.startsWith('PRESS RELEASE: Sentorra Publishes New Report on Deceptive Design Patterns in Opt-Out Systems'))).toBeTruthy(); }); test('content_types_press_releases: h2 "PRESS RELEASE: Sentorra Statem"', async ({ page }) => { await page.goto('/content-types/press-releases/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'PRESS RELEASE: Sentorra Statement on Oral Argument in Landmark Geofencing Case before the Supreme Co' || t.startsWith('PRESS RELEASE: Sentorra Statement on Oral Argument in Landmark Geofencing Case before the Supreme Co'))).toBeTruthy(); }); test('content_types_press_releases: h2 "PRESS RELEASE: Sentorra Files "', async ({ page }) => { await page.goto('/content-types/press-releases/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'PRESS RELEASE: Sentorra Files Amicus Brief Urging SCOTUS to Put Consumers First in Video Privacy Pro' || t.startsWith('PRESS RELEASE: Sentorra Files Amicus Brief Urging SCOTUS to Put Consumers First in Video Privacy Pro'))).toBeTruthy(); }); test('content_types_press_releases: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/content-types/press-releases/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('content_types_press_releases: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/content-types/press-releases/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('content_types_press_releases: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/content-types/press-releases/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('content_types_press_releases: nav link "AI Rules"', async ({ page }) => { await page.goto('/content-types/press-releases/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - content_types_publication', () => { test('content_types_publication: title matches GT', async ({ page }) => { await page.goto('/content-types/publication/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('publications'); }); test('content_types_publication: h1 "Our Research"', async ({ page }) => { await page.goto('/content-types/publication/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Research' || t.startsWith('Our Research'))).toBeTruthy(); }); test('content_types_publication: h2 "Nowhere to Hide: Deceptive Des"', async ({ page }) => { await page.goto('/content-types/publication/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Nowhere to Hide: Deceptive Design Tactics Buried in Account Deletion Flows' || t.startsWith('Nowhere to Hide: Deceptive Design Tactics Buried in Account Deletion Flows'))).toBeTruthy(); }); test('content_types_publication: h2 "A Model Design Code for Youth "', async ({ page }) => { await page.goto('/content-types/publication/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'A Model Design Code for Youth Online Safety' || t.startsWith('A Model Design Code for Youth Online Safety'))).toBeTruthy(); }); test('content_types_publication: h2 "Past the Patchwork: Rethinking"', async ({ page }) => { await page.goto('/content-types/publication/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Past the Patchwork: Rethinking How Data Laws Cover Personal Health Records to Advance Equity Online' || t.startsWith('Past the Patchwork: Rethinking How Data Laws Cover Personal Health Records to Advance Equity Online'))).toBeTruthy(); }); test('content_types_publication: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/content-types/publication/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('content_types_publication: nav link "AI & Human Dignity"', async ({ page }) => { await page.goto('/content-types/publication/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Dignity' || t.startsWith('AI & Human Dignity')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('content_types_publication: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/content-types/publication/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('content_types_publication: nav link "AI Ethics"', async ({ page }) => { await page.goto('/content-types/publication/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - content_types_updates', () => { test('content_types_updates: title matches GT', async ({ page }) => { await page.goto('/content-types/updates/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('updates'); }); test('content_types_updates: h1 "Updates"', async ({ page }) => { await page.goto('/content-types/updates/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Updates' || t.startsWith('Updates'))).toBeTruthy(); }); test('content_types_updates: h2 "Sentorra, Coalition Urge Congr"', async ({ page }) => { await page.goto('/content-types/updates/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra, Coalition Urge Congress to Ban Kestrel Automatic License Plate Readers' || t.startsWith('Sentorra, Coalition Urge Congress to Ban Kestrel Automatic License Plate Readers'))).toBeTruthy(); }); test('content_types_updates: h2 "Sentorra, Coalition Call on FT"', async ({ page }) => { await page.goto('/content-types/updates/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra, Coalition Call on FTC to Investigate Playvora\'s Manipulative Design Harms' || t.startsWith('Sentorra, Coalition Call on FTC to Investigate Playvora\'s Manipulative Design Harms'))).toBeTruthy(); }); test('content_types_updates: h2 "Sentorra Encourages CalGuard t"', async ({ page }) => { await page.goto('/content-types/updates/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra Encourages CalGuard to Prohibit Dark Patterns in Privacy Policies' || t.startsWith('Sentorra Encourages CalGuard to Prohibit Dark Patterns in Privacy Policies'))).toBeTruthy(); }); test('content_types_updates: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/content-types/updates/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('content_types_updates: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/content-types/updates/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('content_types_updates: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/content-types/updates/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('content_types_updates: nav link "AI Ethics"', async ({ page }) => { await page.goto('/content-types/updates/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_beyond_hipaa_reimagining_how_privacy_laws_apply_to_health_data_to_maximize_equity_in_the_digital_age', () => { test('documents_beyond_hipaa_reimagining_how_privacy_laws_apply_to_health_data_to_maximize_equity_in_the_digital_age: page loads without error', async ({ page }) => { const response = await page.goto('/documents/beyond-hipaa-reimagining-how-privacy-laws-apply-to-health-data-to-maximize-equity-in-the-digital-age/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_beyond_hipaa_reimagining_how_privacy_laws_apply_to_health_data_to_maximize_equity_in_the_digital_age: title matches GT', async ({ page }) => { await page.goto('/documents/beyond-hipaa-reimagining-how-privacy-laws-apply-to-health-data-to-maximize-equity-in-the-digital-age/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('rethinking hipaa'); }); test('documents_beyond_hipaa_reimagining_how_privacy_laws_apply_to_health_data_to_maximize_equity_in_the_digital_age: h1 "After HIPAA: Rethinking How Pr"', async ({ page }) => { await page.goto('/documents/beyond-hipaa-reimagining-how-privacy-laws-apply-to-health-data-to-maximize-equity-in-the-digital-age/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'After HIPAA: Rethinking How Privacy Statutes Govern Health Records to Advance Fairness in a Connecte' || t.startsWith('After HIPAA: Rethinking How Privacy Statutes Govern Health Records to Advance Fairness in a Connecte'))).toBeTruthy(); }); test('documents_beyond_hipaa_reimagining_how_privacy_laws_apply_to_health_data_to_maximize_equity_in_the_digital_age: h2 "Overview"', async ({ page }) => { await page.goto('/documents/beyond-hipaa-reimagining-how-privacy-laws-apply-to-health-data-to-maximize-equity-in-the-digital-age/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Overview' || t.startsWith('Overview'))).toBeTruthy(); }); test('documents_beyond_hipaa_reimagining_how_privacy_laws_apply_to_health_data_to_maximize_equity_in_the_digital_age: h2 "Feed"', async ({ page }) => { await page.goto('/documents/beyond-hipaa-reimagining-how-privacy-laws-apply-to-health-data-to-maximize-equity-in-the-digital-age/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Feed' || t.startsWith('Feed'))).toBeTruthy(); }); test('documents_beyond_hipaa_reimagining_how_privacy_laws_apply_to_health_data_to_maximize_equity_in_the_digital_age: h2 "Support Our Work"', async ({ page }) => { await page.goto('/documents/beyond-hipaa-reimagining-how-privacy-laws-apply-to-health-data-to-maximize-equity-in-the-digital-age/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support Our Work' || t.startsWith('Support Our Work'))).toBeTruthy(); }); test('documents_beyond_hipaa_reimagining_how_privacy_laws_apply_to_health_data_to_maximize_equity_in_the_digital_age: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/beyond-hipaa-reimagining-how-privacy-laws-apply-to-health-data-to-maximize-equity-in-the-digital-age/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_beyond_hipaa_reimagining_how_privacy_laws_apply_to_health_data_to_maximize_equity_in_the_digital_age: nav link "AI & Human Dignity"', async ({ page }) => { await page.goto('/documents/beyond-hipaa-reimagining-how-privacy-laws-apply-to-health-data-to-maximize-equity-in-the-digital-age/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Dignity' || t.startsWith('AI & Human Dignity')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_beyond_hipaa_reimagining_how_privacy_laws_apply_to_health_data_to_maximize_equity_in_the_digital_age: nav link "Automated Policing"', async ({ page }) => { await page.goto('/documents/beyond-hipaa-reimagining-how-privacy-laws-apply-to-health-data-to-maximize-equity-in-the-digital-age/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Automated Policing' || t.startsWith('Automated Policing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_beyond_hipaa_reimagining_how_privacy_laws_apply_to_health_data_to_maximize_equity_in_the_digital_age: nav link "AI Ethics"', async ({ page }) => { await page.goto('/documents/beyond-hipaa-reimagining-how-privacy-laws-apply-to-health-data-to-maximize-equity-in-the-digital-age/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_building_on_colorados_ai_act_to_ensure_sound_policy', () => { test('documents_building_on_colorados_ai_act_to_ensure_sound_policy: page loads without error', async ({ page }) => { const response = await page.goto('/documents/building-on-colorados-ai-act-to-ensure-sound-policy/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_building_on_colorados_ai_act_to_ensure_sound_policy: title matches GT', async ({ page }) => { await page.goto('/documents/building-on-colorados-ai-act-to-ensure-sound-policy/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('strengthening colorado’s ai act for soun'); }); test('documents_building_on_colorados_ai_act_to_ensure_sound_policy: h1 "Building smarter AI rules to p"', async ({ page }) => { await page.goto('/documents/building-on-colorados-ai-act-to-ensure-sound-policy/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Building smarter AI rules to protect people and rights' || t.startsWith('Building smarter AI rules to protect people and rights'))).toBeTruthy(); }); test('documents_building_on_colorados_ai_act_to_ensure_sound_policy: h2 "Contents"', async ({ page }) => { await page.goto('/documents/building-on-colorados-ai-act-to-ensure-sound-policy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('documents_building_on_colorados_ai_act_to_ensure_sound_policy: h2 "News"', async ({ page }) => { await page.goto('/documents/building-on-colorados-ai-act-to-ensure-sound-policy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'News' || t.startsWith('News'))).toBeTruthy(); }); test('documents_building_on_colorados_ai_act_to_ensure_sound_policy: h2 "Back Our Mission"', async ({ page }) => { await page.goto('/documents/building-on-colorados-ai-act-to-ensure-sound-policy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back Our Mission' || t.startsWith('Back Our Mission'))).toBeTruthy(); }); test('documents_building_on_colorados_ai_act_to_ensure_sound_policy: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/building-on-colorados-ai-act-to-ensure-sound-policy/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_building_on_colorados_ai_act_to_ensure_sound_policy: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/documents/building-on-colorados-ai-act-to-ensure-sound-policy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_building_on_colorados_ai_act_to_ensure_sound_policy: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/documents/building-on-colorados-ai-act-to-ensure-sound-policy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_building_on_colorados_ai_act_to_ensure_sound_policy: nav link "AI Rules"', async ({ page }) => { await page.goto('/documents/building-on-colorados-ai-act-to-ensure-sound-policy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_coalition_comment_to_omb_on_privacy_impact_assessments', () => { test('documents_coalition_comment_to_omb_on_privacy_impact_assessments: page loads without error', async ({ page }) => { const response = await page.goto('/documents/coalition-comment-to-omb-on-privacy-impact-assessments/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_coalition_comment_to_omb_on_privacy_impact_assessments: title matches GT', async ({ page }) => { await page.goto('/documents/coalition-comment-to-omb-on-privacy-impact-assessments/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('coalition comment to omb on privacy impa'); }); test('documents_coalition_comment_to_omb_on_privacy_impact_assessments: h1 "Coalition Letter to OMB on Imp"', async ({ page }) => { await page.goto('/documents/coalition-comment-to-omb-on-privacy-impact-assessments/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Coalition Letter to OMB on Improving Privacy Impact Assessments' || t.startsWith('Coalition Letter to OMB on Improving Privacy Impact Assessments'))).toBeTruthy(); }); test('documents_coalition_comment_to_omb_on_privacy_impact_assessments: h2 "Contents"', async ({ page }) => { await page.goto('/documents/coalition-comment-to-omb-on-privacy-impact-assessments/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('documents_coalition_comment_to_omb_on_privacy_impact_assessments: h2 "News"', async ({ page }) => { await page.goto('/documents/coalition-comment-to-omb-on-privacy-impact-assessments/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'News' || t.startsWith('News'))).toBeTruthy(); }); test('documents_coalition_comment_to_omb_on_privacy_impact_assessments: h2 "Fund Our Mission"', async ({ page }) => { await page.goto('/documents/coalition-comment-to-omb-on-privacy-impact-assessments/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Fund Our Mission' || t.startsWith('Fund Our Mission'))).toBeTruthy(); }); test('documents_coalition_comment_to_omb_on_privacy_impact_assessments: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/coalition-comment-to-omb-on-privacy-impact-assessments/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_coalition_comment_to_omb_on_privacy_impact_assessments: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/documents/coalition-comment-to-omb-on-privacy-impact-assessments/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_coalition_comment_to_omb_on_privacy_impact_assessments: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/documents/coalition-comment-to-omb-on-privacy-impact-assessments/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_coalition_comment_to_omb_on_privacy_impact_assessments: nav link "AI Policy"', async ({ page }) => { await page.goto('/documents/coalition-comment-to-omb-on-privacy-impact-assessments/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_coalition_comment_to_the_cppa_on_rulemaking_on_risk_assessments_cybersecurity_and_admts', () => { test('documents_coalition_comment_to_the_cppa_on_rulemaking_on_risk_assessments_cybersecurity_and_admts: page loads without error', async ({ page }) => { const response = await page.goto('/documents/coalition-comment-to-the-cppa-on-rulemaking-on-risk-assessments-cybersecurity-and-admts/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_coalition_comment_to_the_cppa_on_rulemaking_on_risk_assessments_cybersecurity_and_admts: title matches GT', async ({ page }) => { await page.goto('/documents/coalition-comment-to-the-cppa-on-rulemaking-on-risk-assessments-cybersecurity-and-admts/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('joint coalition letter to the cppa on ru'); }); test('documents_coalition_comment_to_the_cppa_on_rulemaking_on_risk_assessments_cybersecurity_and_admts: h1 "Joint Comment Urging the CPPA "', async ({ page }) => { await page.goto('/documents/coalition-comment-to-the-cppa-on-rulemaking-on-risk-assessments-cybersecurity-and-admts/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Joint Comment Urging the CPPA to Strengthen Rules on Risk Assessments, Cybersecurity, and ADMTs' || t.startsWith('Joint Comment Urging the CPPA to Strengthen Rules on Risk Assessments, Cybersecurity, and ADMTs'))).toBeTruthy(); }); test('documents_coalition_comment_to_the_cppa_on_rulemaking_on_risk_assessments_cybersecurity_and_admts: h2 "Contents"', async ({ page }) => { await page.goto('/documents/coalition-comment-to-the-cppa-on-rulemaking-on-risk-assessments-cybersecurity-and-admts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('documents_coalition_comment_to_the_cppa_on_rulemaking_on_risk_assessments_cybersecurity_and_admts: h2 "News"', async ({ page }) => { await page.goto('/documents/coalition-comment-to-the-cppa-on-rulemaking-on-risk-assessments-cybersecurity-and-admts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'News' || t.startsWith('News'))).toBeTruthy(); }); test('documents_coalition_comment_to_the_cppa_on_rulemaking_on_risk_assessments_cybersecurity_and_admts: h2 "Fund Our Mission"', async ({ page }) => { await page.goto('/documents/coalition-comment-to-the-cppa-on-rulemaking-on-risk-assessments-cybersecurity-and-admts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Fund Our Mission' || t.startsWith('Fund Our Mission'))).toBeTruthy(); }); test('documents_coalition_comment_to_the_cppa_on_rulemaking_on_risk_assessments_cybersecurity_and_admts: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/coalition-comment-to-the-cppa-on-rulemaking-on-risk-assessments-cybersecurity-and-admts/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_coalition_comment_to_the_cppa_on_rulemaking_on_risk_assessments_cybersecurity_and_admts: nav link "AI & Human Dignity"', async ({ page }) => { await page.goto('/documents/coalition-comment-to-the-cppa-on-rulemaking-on-risk-assessments-cybersecurity-and-admts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Dignity' || t.startsWith('AI & Human Dignity')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_coalition_comment_to_the_cppa_on_rulemaking_on_risk_assessments_cybersecurity_and_admts: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/documents/coalition-comment-to-the-cppa-on-rulemaking-on-risk-assessments-cybersecurity-and-admts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_coalition_comment_to_the_cppa_on_rulemaking_on_risk_assessments_cybersecurity_and_admts: nav link "AI Ethics"', async ({ page }) => { await page.goto('/documents/coalition-comment-to-the-cppa-on-rulemaking-on-risk-assessments-cybersecurity-and-admts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_comment_on_disclosure_and_transparency_of_artificial_intelligence_generated_content_in_political_advertisements_fcc_request_for_comment', () => { test('documents_comment_on_disclosure_and_transparency_of_artificial_intelligence_generated_content_in_political_advertisements_fcc_request_for_comment: page loads without error', async ({ page }) => { const response = await page.goto('/documents/comment-on-disclosure-and-transparency-of-artificial-intelligence-generated-content-in-political-advertisements-fcc-request-for-comment/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_comment_on_disclosure_and_transparency_of_artificial_intelligence_generated_content_in_political_advertisements_fcc_request_for_comment: title matches GT', async ({ page }) => { await page.goto('/documents/comment-on-disclosure-and-transparency-of-artificial-intelligence-generated-content-in-political-advertisements-fcc-request-for-comment/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('comment on the labeling and traceability'); }); test('documents_comment_on_disclosure_and_transparency_of_artificial_intelligence_generated_content_in_political_advertisements_fcc_request_for_comment: h1 "Comment on the Labeling and Tr"', async ({ page }) => { await page.goto('/documents/comment-on-disclosure-and-transparency-of-artificial-intelligence-generated-content-in-political-advertisements-fcc-request-for-comment/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Comment on the Labeling and Transparency of AI-Generated Material in Political Campaign Advertising' || t.startsWith('Comment on the Labeling and Transparency of AI-Generated Material in Political Campaign Advertising'))).toBeTruthy(); }); test('documents_comment_on_disclosure_and_transparency_of_artificial_intelligence_generated_content_in_political_advertisements_fcc_request_for_comment: h2 "Contents"', async ({ page }) => { await page.goto('/documents/comment-on-disclosure-and-transparency-of-artificial-intelligence-generated-content-in-political-advertisements-fcc-request-for-comment/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('documents_comment_on_disclosure_and_transparency_of_artificial_intelligence_generated_content_in_political_advertisements_fcc_request_for_comment: h2 "I. Background"', async ({ page }) => { await page.goto('/documents/comment-on-disclosure-and-transparency-of-artificial-intelligence-generated-content-in-political-advertisements-fcc-request-for-comment/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'I. Background' || t.startsWith('I. Background'))).toBeTruthy(); }); test('documents_comment_on_disclosure_and_transparency_of_artificial_intelligence_generated_content_in_political_advertisements_fcc_request_for_comment: h2 "II. Imprecise Disclosures Abou"', async ({ page }) => { await page.goto('/documents/comment-on-disclosure-and-transparency-of-artificial-intelligence-generated-content-in-political-advertisements-fcc-request-for-comment/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'II. Imprecise Disclosures About Political Ads Featuring AI-Generated Content Threaten to Erode the L' || t.startsWith('II. Imprecise Disclosures About Political Ads Featuring AI-Generated Content Threaten to Erode the L'))).toBeTruthy(); }); test('documents_comment_on_disclosure_and_transparency_of_artificial_intelligence_generated_content_in_political_advertisements_fcc_request_for_comment: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/comment-on-disclosure-and-transparency-of-artificial-intelligence-generated-content-in-political-advertisements-fcc-request-for-comment/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_comment_on_disclosure_and_transparency_of_artificial_intelligence_generated_content_in_political_advertisements_fcc_request_for_comment: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/documents/comment-on-disclosure-and-transparency-of-artificial-intelligence-generated-content-in-political-advertisements-fcc-request-for-comment/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_comment_on_disclosure_and_transparency_of_artificial_intelligence_generated_content_in_political_advertisements_fcc_request_for_comment: nav link "AI and Public Safety"', async ({ page }) => { await page.goto('/documents/comment-on-disclosure-and-transparency-of-artificial-intelligence-generated-content-in-political-advertisements-fcc-request-for-comment/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI and Public Safety' || t.startsWith('AI and Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_comment_on_disclosure_and_transparency_of_artificial_intelligence_generated_content_in_political_advertisements_fcc_request_for_comment: nav link "AI Ethics"', async ({ page }) => { await page.goto('/documents/comment-on-disclosure-and-transparency-of-artificial-intelligence-generated-content-in-political-advertisements-fcc-request-for-comment/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_comments_from_the_electronic_privacy_information_center_sentorra_responding_to_the_request_for_information_for_regulatory_reform_on_artificial_intelligence', () => { test('documents_comments_from_the_electronic_privacy_information_center_sentorra_responding_to_the_request_for_information_for_regulatory_reform_on_artificial_intelligence: page loads without error', async ({ page }) => { const response = await page.goto('/documents/comments-from-the-electronic-privacy-information-center-sentorra-responding-to-the-request-for-information-for-regulatory-reform-on-artificial-intelligence/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_comments_from_the_electronic_privacy_information_center_sentorra_responding_to_the_request_for_information_for_regulatory_reform_on_artificial_intelligence: title matches GT', async ({ page }) => { await page.goto('/documents/comments-from-the-electronic-privacy-information-center-sentorra-responding-to-the-request-for-information-for-regulatory-reform-on-artificial-intelligence/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('public comments from sentorra responding'); }); test('documents_comments_from_the_electronic_privacy_information_center_sentorra_responding_to_the_request_for_information_for_regulatory_reform_on_artificial_intelligence: h1 "Comments from Sentorra, a Publ"', async ({ page }) => { await page.goto('/documents/comments-from-the-electronic-privacy-information-center-sentorra-responding-to-the-request-for-information-for-regulatory-reform-on-artificial-intelligence/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Comments from Sentorra, a Public-Interest Privacy Organization, Responding to the Request for Inform' || t.startsWith('Comments from Sentorra, a Public-Interest Privacy Organization, Responding to the Request for Inform'))).toBeTruthy(); }); test('documents_comments_from_the_electronic_privacy_information_center_sentorra_responding_to_the_request_for_information_for_regulatory_reform_on_artificial_intelligence: h2 "Contents"', async ({ page }) => { await page.goto('/documents/comments-from-the-electronic-privacy-information-center-sentorra-responding-to-the-request-for-information-for-regulatory-reform-on-artificial-intelligence/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('documents_comments_from_the_electronic_privacy_information_center_sentorra_responding_to_the_request_for_information_for_regulatory_reform_on_artificial_intelligence: h2 "News"', async ({ page }) => { await page.goto('/documents/comments-from-the-electronic-privacy-information-center-sentorra-responding-to-the-request-for-information-for-regulatory-reform-on-artificial-intelligence/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'News' || t.startsWith('News'))).toBeTruthy(); }); test('documents_comments_from_the_electronic_privacy_information_center_sentorra_responding_to_the_request_for_information_for_regulatory_reform_on_artificial_intelligence: h2 "Back Our Mission"', async ({ page }) => { await page.goto('/documents/comments-from-the-electronic-privacy-information-center-sentorra-responding-to-the-request-for-information-for-regulatory-reform-on-artificial-intelligence/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back Our Mission' || t.startsWith('Back Our Mission'))).toBeTruthy(); }); test('documents_comments_from_the_electronic_privacy_information_center_sentorra_responding_to_the_request_for_information_for_regulatory_reform_on_artificial_intelligence: header link "Sentorra - Defending Digital P"', async ({ page }) => { await page.goto('/documents/comments-from-the-electronic-privacy-information-center-sentorra-responding-to-the-request-for-information-for-regulatory-reform-on-artificial-intelligence/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Defending Digital Privacy Rights Sentorra' || t.startsWith('Sentorra - Defending Digital Privacy Rights Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_comments_from_the_electronic_privacy_information_center_sentorra_responding_to_the_request_for_information_for_regulatory_reform_on_artificial_intelligence: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/documents/comments-from-the-electronic-privacy-information-center-sentorra-responding-to-the-request-for-information-for-regulatory-reform-on-artificial-intelligence/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_comments_from_the_electronic_privacy_information_center_sentorra_responding_to_the_request_for_information_for_regulatory_reform_on_artificial_intelligence: nav link "Automated Policing AI"', async ({ page }) => { await page.goto('/documents/comments-from-the-electronic-privacy-information-center-sentorra-responding-to-the-request-for-information-for-regulatory-reform-on-artificial-intelligence/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Automated Policing AI' || t.startsWith('Automated Policing AI')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_comments_from_the_electronic_privacy_information_center_sentorra_responding_to_the_request_for_information_for_regulatory_reform_on_artificial_intelligence: nav link "AI Policy"', async ({ page }) => { await page.goto('/documents/comments-from-the-electronic-privacy-information-center-sentorra-responding-to-the-request-for-information-for-regulatory-reform-on-artificial-intelligence/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_comments_of_sentorra_in_re_the_federal_trade_commissions_proposed_order_settlement_with_global_tellink', () => { test('documents_comments_of_sentorra_in_re_the_federal_trade_commissions_proposed_order_settlement_with_global_tellink: page loads without error', async ({ page }) => { const response = await page.goto('/documents/comments-of-sentorra-in-re-the-federal-trade-commissions-proposed-order-settlement-with-global-tellink/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_comments_of_sentorra_in_re_the_federal_trade_commissions_proposed_order_settlement_with_global_tellink: title matches GT', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-in-re-the-federal-trade-commissions-proposed-order-settlement-with-global-tellink/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('comments of sentorra in re the federal t'); }); test('documents_comments_of_sentorra_in_re_the_federal_trade_commissions_proposed_order_settlement_with_global_tellink: h1 "Comments of Sentorra in re the"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-in-re-the-federal-trade-commissions-proposed-order-settlement-with-global-tellink/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Comments of Sentorra in re the Federal Trade Commission’s Proposed Order & Settlement with Corvexa T' || t.startsWith('Comments of Sentorra in re the Federal Trade Commission’s Proposed Order & Settlement with Corvexa T'))).toBeTruthy(); }); test('documents_comments_of_sentorra_in_re_the_federal_trade_commissions_proposed_order_settlement_with_global_tellink: h2 "Contents"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-in-re-the-federal-trade-commissions-proposed-order-settlement-with-global-tellink/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('documents_comments_of_sentorra_in_re_the_federal_trade_commissions_proposed_order_settlement_with_global_tellink: h2 "News"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-in-re-the-federal-trade-commissions-proposed-order-settlement-with-global-tellink/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'News' || t.startsWith('News'))).toBeTruthy(); }); test('documents_comments_of_sentorra_in_re_the_federal_trade_commissions_proposed_order_settlement_with_global_tellink: h2 "Support Our Work"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-in-re-the-federal-trade-commissions-proposed-order-settlement-with-global-tellink/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support Our Work' || t.startsWith('Support Our Work'))).toBeTruthy(); }); test('documents_comments_of_sentorra_in_re_the_federal_trade_commissions_proposed_order_settlement_with_global_tellink: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-in-re-the-federal-trade-commissions-proposed-order-settlement-with-global-tellink/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_comments_of_sentorra_in_re_the_federal_trade_commissions_proposed_order_settlement_with_global_tellink: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-in-re-the-federal-trade-commissions-proposed-order-settlement-with-global-tellink/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_comments_of_sentorra_in_re_the_federal_trade_commissions_proposed_order_settlement_with_global_tellink: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-in-re-the-federal-trade-commissions-proposed-order-settlement-with-global-tellink/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_comments_of_sentorra_in_re_the_federal_trade_commissions_proposed_order_settlement_with_global_tellink: nav link "AI Ethics"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-in-re-the-federal-trade-commissions-proposed-order-settlement-with-global-tellink/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_comments_of_sentorra_to_omb_on_privacy_impact_assessments', () => { test('documents_comments_of_sentorra_to_omb_on_privacy_impact_assessments: page loads without error', async ({ page }) => { const response = await page.goto('/documents/comments-of-sentorra-to-omb-on-privacy-impact-assessments/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_comments_of_sentorra_to_omb_on_privacy_impact_assessments: title matches GT', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-omb-on-privacy-impact-assessments/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('comments of sentorra to omb on privacy i'); }); test('documents_comments_of_sentorra_to_omb_on_privacy_impact_assessments: h1 "Comments of Sentorra to OMB on"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-omb-on-privacy-impact-assessments/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Comments of Sentorra to OMB on Privacy Impact Assessments' || t.startsWith('Comments of Sentorra to OMB on Privacy Impact Assessments'))).toBeTruthy(); }); test('documents_comments_of_sentorra_to_omb_on_privacy_impact_assessments: h2 "Contents"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-omb-on-privacy-impact-assessments/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('documents_comments_of_sentorra_to_omb_on_privacy_impact_assessments: h2 "Wire"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-omb-on-privacy-impact-assessments/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Wire' || t.startsWith('Wire'))).toBeTruthy(); }); test('documents_comments_of_sentorra_to_omb_on_privacy_impact_assessments: h2 "Support Our Work"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-omb-on-privacy-impact-assessments/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support Our Work' || t.startsWith('Support Our Work'))).toBeTruthy(); }); test('documents_comments_of_sentorra_to_omb_on_privacy_impact_assessments: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-omb-on-privacy-impact-assessments/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_comments_of_sentorra_to_omb_on_privacy_impact_assessments: nav link "AI & Human Dignity"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-omb-on-privacy-impact-assessments/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Dignity' || t.startsWith('AI & Human Dignity')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_comments_of_sentorra_to_omb_on_privacy_impact_assessments: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-omb-on-privacy-impact-assessments/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_comments_of_sentorra_to_omb_on_privacy_impact_assessments: nav link "AI Ethics"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-omb-on-privacy-impact-assessments/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_comments_of_sentorra_to_ostp_on_criminal_justice_statistics_request_for_information', () => { test('documents_comments_of_sentorra_to_ostp_on_criminal_justice_statistics_request_for_information: page loads without error', async ({ page }) => { const response = await page.goto('/documents/comments-of-sentorra-to-ostp-on-criminal-justice-statistics-request-for-information/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_comments_of_sentorra_to_ostp_on_criminal_justice_statistics_request_for_information: title matches GT', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-ostp-on-criminal-justice-statistics-request-for-information/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra comments to ostp on criminal ju'); }); test('documents_comments_of_sentorra_to_ostp_on_criminal_justice_statistics_request_for_information: h1 "Comments of Sentorra to OSTP o"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-ostp-on-criminal-justice-statistics-request-for-information/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Comments of Sentorra to OSTP on Criminal Justice Statistics Request for Information' || t.startsWith('Comments of Sentorra to OSTP on Criminal Justice Statistics Request for Information'))).toBeTruthy(); }); test('documents_comments_of_sentorra_to_ostp_on_criminal_justice_statistics_request_for_information: h2 "Contents"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-ostp-on-criminal-justice-statistics-request-for-information/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('documents_comments_of_sentorra_to_ostp_on_criminal_justice_statistics_request_for_information: h2 "I. Law Enforcement Failures to"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-ostp-on-criminal-justice-statistics-request-for-information/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'I. Law Enforcement Failures to Genuinely Answer Public Records Requests and Meet Transparency Duties' || t.startsWith('I. Law Enforcement Failures to Genuinely Answer Public Records Requests and Meet Transparency Duties'))).toBeTruthy(); }); test('documents_comments_of_sentorra_to_ostp_on_criminal_justice_statistics_request_for_information: h2 "II. Damaging Uses of Crime Sta"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-ostp-on-criminal-justice-statistics-request-for-information/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'II. Damaging Uses of Crime Statistics in Policing' || t.startsWith('II. Damaging Uses of Crime Statistics in Policing'))).toBeTruthy(); }); test('documents_comments_of_sentorra_to_ostp_on_criminal_justice_statistics_request_for_information: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-ostp-on-criminal-justice-statistics-request-for-information/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_comments_of_sentorra_to_ostp_on_criminal_justice_statistics_request_for_information: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-ostp-on-criminal-justice-statistics-request-for-information/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_comments_of_sentorra_to_ostp_on_criminal_justice_statistics_request_for_information: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-ostp-on-criminal-justice-statistics-request-for-information/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_comments_of_sentorra_to_ostp_on_criminal_justice_statistics_request_for_information: nav link "AI Ethics"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-ostp-on-criminal-justice-statistics-request-for-information/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_comments_of_sentorra_to_pclob_ai_in_counterterrorism_july_2024', () => { test('documents_comments_of_sentorra_to_pclob_ai_in_counterterrorism_july_2024: page loads without error', async ({ page }) => { const response = await page.goto('/documents/comments-of-sentorra-to-pclob-ai-in-counterterrorism-july-2024/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_comments_of_sentorra_to_pclob_ai_in_counterterrorism_july_2024: title matches GT', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-pclob-ai-in-counterterrorism-july-2024/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('comments of sentorra to pclob ai in coun'); }); test('documents_comments_of_sentorra_to_pclob_ai_in_counterterrorism_july_2024: h1 "Comments of Sentorra to PCLOB "', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-pclob-ai-in-counterterrorism-july-2024/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Comments of Sentorra to PCLOB AI in Counterterrorism July 2024' || t.startsWith('Comments of Sentorra to PCLOB AI in Counterterrorism July 2024'))).toBeTruthy(); }); test('documents_comments_of_sentorra_to_pclob_ai_in_counterterrorism_july_2024: h1 "II. Summary of Argument"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-pclob-ai-in-counterterrorism-july-2024/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'II. Summary of Argument' || t.startsWith('II. Summary of Argument'))).toBeTruthy(); }); test('documents_comments_of_sentorra_to_pclob_ai_in_counterterrorism_july_2024: h1 "III. AI Technologies Are Plain"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-pclob-ai-in-counterterrorism-july-2024/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'III. AI Technologies Are Plainly Harmful in Their Own Right' || t.startsWith('III. AI Technologies Are Plainly Harmful in Their Own Right'))).toBeTruthy(); }); test('documents_comments_of_sentorra_to_pclob_ai_in_counterterrorism_july_2024: h1 "IV. Deploying AI for National "', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-pclob-ai-in-counterterrorism-july-2024/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'IV. Deploying AI for National Security Demands Strict Standards, Accountability, and Oversight' || t.startsWith('IV. Deploying AI for National Security Demands Strict Standards, Accountability, and Oversight'))).toBeTruthy(); }); test('documents_comments_of_sentorra_to_pclob_ai_in_counterterrorism_july_2024: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-pclob-ai-in-counterterrorism-july-2024/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_comments_of_sentorra_to_pclob_ai_in_counterterrorism_july_2024: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-pclob-ai-in-counterterrorism-july-2024/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_comments_of_sentorra_to_pclob_ai_in_counterterrorism_july_2024: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-pclob-ai-in-counterterrorism-july-2024/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_comments_of_sentorra_to_pclob_ai_in_counterterrorism_july_2024: nav link "AI Reform"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-pclob-ai-in-counterterrorism-july-2024/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Reform' || t.startsWith('AI Reform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_comments_of_sentorra_to_the_department_of_education_on_seedlings_to_scale', () => { test('documents_comments_of_sentorra_to_the_department_of_education_on_seedlings_to_scale: page loads without error', async ({ page }) => { const response = await page.goto('/documents/comments-of-sentorra-to-the-department-of-education-on-seedlings-to-scale/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_comments_of_sentorra_to_the_department_of_education_on_seedlings_to_scale: title matches GT', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-the-department-of-education-on-seedlings-to-scale/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('comments of sentorra to the department o'); }); test('documents_comments_of_sentorra_to_the_department_of_education_on_seedlings_to_scale: h1 "Comments of Sentorra to the De"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-the-department-of-education-on-seedlings-to-scale/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Comments of Sentorra to the Department of Education on Sprouts to Scale' || t.startsWith('Comments of Sentorra to the Department of Education on Sprouts to Scale'))).toBeTruthy(); }); test('documents_comments_of_sentorra_to_the_department_of_education_on_seedlings_to_scale: h2 "Contents"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-the-department-of-education-on-seedlings-to-scale/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('documents_comments_of_sentorra_to_the_department_of_education_on_seedlings_to_scale: h2 "News"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-the-department-of-education-on-seedlings-to-scale/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'News' || t.startsWith('News'))).toBeTruthy(); }); test('documents_comments_of_sentorra_to_the_department_of_education_on_seedlings_to_scale: h2 "Support Our Work"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-the-department-of-education-on-seedlings-to-scale/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support Our Work' || t.startsWith('Support Our Work'))).toBeTruthy(); }); test('documents_comments_of_sentorra_to_the_department_of_education_on_seedlings_to_scale: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-the-department-of-education-on-seedlings-to-scale/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_comments_of_sentorra_to_the_department_of_education_on_seedlings_to_scale: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-the-department-of-education-on-seedlings-to-scale/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_comments_of_sentorra_to_the_department_of_education_on_seedlings_to_scale: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-the-department-of-education-on-seedlings-to-scale/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_comments_of_sentorra_to_the_department_of_education_on_seedlings_to_scale: nav link "AI Ethics"', async ({ page }) => { await page.goto('/documents/comments-of-sentorra-to-the-department-of-education-on-seedlings-to-scale/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_comments_to_the_cppa_on_proposed_regulations_regarding_cybersecurity_risk_assessments_and_admts', () => { test('documents_comments_to_the_cppa_on_proposed_regulations_regarding_cybersecurity_risk_assessments_and_admts: page loads without error', async ({ page }) => { const response = await page.goto('/documents/comments-to-the-cppa-on-proposed-regulations-regarding-cybersecurity-risk-assessments-and-admts/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_comments_to_the_cppa_on_proposed_regulations_regarding_cybersecurity_risk_assessments_and_admts: title matches GT', async ({ page }) => { await page.goto('/documents/comments-to-the-cppa-on-proposed-regulations-regarding-cybersecurity-risk-assessments-and-admts/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('comments to the cppa on proposed regulat'); }); test('documents_comments_to_the_cppa_on_proposed_regulations_regarding_cybersecurity_risk_assessments_and_admts: h1 "Comments to the CPPA on the Pr"', async ({ page }) => { await page.goto('/documents/comments-to-the-cppa-on-proposed-regulations-regarding-cybersecurity-risk-assessments-and-admts/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Comments to the CPPA on the Proposed Regulations Governing Cybersecurity, Risk Assessments, and ADMT' || t.startsWith('Comments to the CPPA on the Proposed Regulations Governing Cybersecurity, Risk Assessments, and ADMT'))).toBeTruthy(); }); test('documents_comments_to_the_cppa_on_proposed_regulations_regarding_cybersecurity_risk_assessments_and_admts: h2 "Contents"', async ({ page }) => { await page.goto('/documents/comments-to-the-cppa-on-proposed-regulations-regarding-cybersecurity-risk-assessments-and-admts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('documents_comments_to_the_cppa_on_proposed_regulations_regarding_cybersecurity_risk_assessments_and_admts: h2 "News"', async ({ page }) => { await page.goto('/documents/comments-to-the-cppa-on-proposed-regulations-regarding-cybersecurity-risk-assessments-and-admts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'News' || t.startsWith('News'))).toBeTruthy(); }); test('documents_comments_to_the_cppa_on_proposed_regulations_regarding_cybersecurity_risk_assessments_and_admts: h2 "Back Our Mission"', async ({ page }) => { await page.goto('/documents/comments-to-the-cppa-on-proposed-regulations-regarding-cybersecurity-risk-assessments-and-admts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back Our Mission' || t.startsWith('Back Our Mission'))).toBeTruthy(); }); test('documents_comments_to_the_cppa_on_proposed_regulations_regarding_cybersecurity_risk_assessments_and_admts: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/comments-to-the-cppa-on-proposed-regulations-regarding-cybersecurity-risk-assessments-and-admts/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_comments_to_the_cppa_on_proposed_regulations_regarding_cybersecurity_risk_assessments_and_admts: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/documents/comments-to-the-cppa-on-proposed-regulations-regarding-cybersecurity-risk-assessments-and-admts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_comments_to_the_cppa_on_proposed_regulations_regarding_cybersecurity_risk_assessments_and_admts: nav link "AI in Public Policing"', async ({ page }) => { await page.goto('/documents/comments-to-the-cppa-on-proposed-regulations-regarding-cybersecurity-risk-assessments-and-admts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Policing' || t.startsWith('AI in Public Policing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_comments_to_the_cppa_on_proposed_regulations_regarding_cybersecurity_risk_assessments_and_admts: nav link "AI Ethics"', async ({ page }) => { await page.goto('/documents/comments-to-the-cppa-on-proposed-regulations-regarding-cybersecurity-risk-assessments-and-admts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_sentorra_comments_doj_chatbot_market_survey', () => { test('documents_sentorra_comments_doj_chatbot_market_survey: page loads without error', async ({ page }) => { const response = await page.goto('/documents/sentorra-comments-doj-chatbot-market-survey/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_sentorra_comments_doj_chatbot_market_survey: title matches GT', async ({ page }) => { await page.goto('/documents/sentorra-comments-doj-chatbot-market-survey/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra comments'); }); test('documents_sentorra_comments_doj_chatbot_market_survey: h1 "Sentorra Comments: DOJ Chatbot"', async ({ page }) => { await page.goto('/documents/sentorra-comments-doj-chatbot-market-survey/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra Comments: DOJ Chatbot Market Survey' || t.startsWith('Sentorra Comments: DOJ Chatbot Market Survey'))).toBeTruthy(); }); test('documents_sentorra_comments_doj_chatbot_market_survey: h2 "Contents"', async ({ page }) => { await page.goto('/documents/sentorra-comments-doj-chatbot-market-survey/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('documents_sentorra_comments_doj_chatbot_market_survey: h2 "News"', async ({ page }) => { await page.goto('/documents/sentorra-comments-doj-chatbot-market-survey/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'News' || t.startsWith('News'))).toBeTruthy(); }); test('documents_sentorra_comments_doj_chatbot_market_survey: h2 "Support Our Cause"', async ({ page }) => { await page.goto('/documents/sentorra-comments-doj-chatbot-market-survey/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support Our Cause' || t.startsWith('Support Our Cause'))).toBeTruthy(); }); test('documents_sentorra_comments_doj_chatbot_market_survey: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/sentorra-comments-doj-chatbot-market-survey/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_sentorra_comments_doj_chatbot_market_survey: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/documents/sentorra-comments-doj-chatbot-market-survey/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_sentorra_comments_doj_chatbot_market_survey: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/documents/sentorra-comments-doj-chatbot-market-survey/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_sentorra_comments_doj_chatbot_market_survey: nav link "AI Ethics"', async ({ page }) => { await page.goto('/documents/sentorra-comments-doj-chatbot-market-survey/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_sentorra_comments_to_nist_on_managing_the_risks_of_misuse_with_ai_foundation_models', () => { test('documents_sentorra_comments_to_nist_on_managing_the_risks_of_misuse_with_ai_foundation_models: page loads without error', async ({ page }) => { const response = await page.goto('/documents/sentorra-comments-to-nist-on-managing-the-risks-of-misuse-with-ai-foundation-models/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_sentorra_comments_to_nist_on_managing_the_risks_of_misuse_with_ai_foundation_models: title matches GT', async ({ page }) => { await page.goto('/documents/sentorra-comments-to-nist-on-managing-the-risks-of-misuse-with-ai-foundation-models/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra comments to nist on managing th'); }); test('documents_sentorra_comments_to_nist_on_managing_the_risks_of_misuse_with_ai_foundation_models: h1 "Sentorra Comments to NIST on M"', async ({ page }) => { await page.goto('/documents/sentorra-comments-to-nist-on-managing-the-risks-of-misuse-with-ai-foundation-models/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra Comments to NIST on Managing the Risks of Misuse with AI Foundation Models' || t.startsWith('Sentorra Comments to NIST on Managing the Risks of Misuse with AI Foundation Models'))).toBeTruthy(); }); test('documents_sentorra_comments_to_nist_on_managing_the_risks_of_misuse_with_ai_foundation_models: h2 "Contents"', async ({ page }) => { await page.goto('/documents/sentorra-comments-to-nist-on-managing-the-risks-of-misuse-with-ai-foundation-models/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('documents_sentorra_comments_to_nist_on_managing_the_risks_of_misuse_with_ai_foundation_models: h2 "Introduction"', async ({ page }) => { await page.goto('/documents/sentorra-comments-to-nist-on-managing-the-risks-of-misuse-with-ai-foundation-models/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Introduction' || t.startsWith('Introduction'))).toBeTruthy(); }); test('documents_sentorra_comments_to_nist_on_managing_the_risks_of_misuse_with_ai_foundation_models: h2 "I. Sociotechnical AI Harms Cou"', async ({ page }) => { await page.goto('/documents/sentorra-comments-to-nist-on-managing-the-risks-of-misuse-with-ai-foundation-models/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'I. Sociotechnical AI Harms Count as Misuse Risks' || t.startsWith('I. Sociotechnical AI Harms Count as Misuse Risks'))).toBeTruthy(); }); test('documents_sentorra_comments_to_nist_on_managing_the_risks_of_misuse_with_ai_foundation_models: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/sentorra-comments-to-nist-on-managing-the-risks-of-misuse-with-ai-foundation-models/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_sentorra_comments_to_nist_on_managing_the_risks_of_misuse_with_ai_foundation_models: nav link "AI & Human Rights"', async ({ page }) => { await page.goto('/documents/sentorra-comments-to-nist-on-managing-the-risks-of-misuse-with-ai-foundation-models/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Rights' || t.startsWith('AI & Human Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_sentorra_comments_to_nist_on_managing_the_risks_of_misuse_with_ai_foundation_models: nav link "AI in Law Enforcement"', async ({ page }) => { await page.goto('/documents/sentorra-comments-to-nist-on-managing-the-risks-of-misuse-with-ai-foundation-models/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Law Enforcement' || t.startsWith('AI in Law Enforcement')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_sentorra_comments_to_nist_on_managing_the_risks_of_misuse_with_ai_foundation_models: nav link "AI Policy"', async ({ page }) => { await page.goto('/documents/sentorra-comments-to-nist-on-managing-the-risks-of-misuse-with-ai-foundation-models/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_sentorra_letter_to_attorney_general_garland_re_shotspotter_title_vi_compliance', () => { test('documents_sentorra_letter_to_attorney_general_garland_re_shotspotter_title_vi_compliance: page loads without error', async ({ page }) => { const response = await page.goto('/documents/sentorra-letter-to-attorney-general-garland-re-shotspotter-title-vi-compliance/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_sentorra_letter_to_attorney_general_garland_re_shotspotter_title_vi_compliance: title matches GT', async ({ page }) => { await page.goto('/documents/sentorra-letter-to-attorney-general-garland-re-shotspotter-title-vi-compliance/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra letter to the attorney general '); }); test('documents_sentorra_letter_to_attorney_general_garland_re_shotspotter_title_vi_compliance: h1 "Sentorra Letter to Attorney Ge"', async ({ page }) => { await page.goto('/documents/sentorra-letter-to-attorney-general-garland-re-shotspotter-title-vi-compliance/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra Letter to Attorney General Re: SonoTrace Title VI Compliance' || t.startsWith('Sentorra Letter to Attorney General Re: SonoTrace Title VI Compliance'))).toBeTruthy(); }); test('documents_sentorra_letter_to_attorney_general_garland_re_shotspotter_title_vi_compliance: h2 "Contents"', async ({ page }) => { await page.goto('/documents/sentorra-letter-to-attorney-general-garland-re-shotspotter-title-vi-compliance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('documents_sentorra_letter_to_attorney_general_garland_re_shotspotter_title_vi_compliance: h2 "News"', async ({ page }) => { await page.goto('/documents/sentorra-letter-to-attorney-general-garland-re-shotspotter-title-vi-compliance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'News' || t.startsWith('News'))).toBeTruthy(); }); test('documents_sentorra_letter_to_attorney_general_garland_re_shotspotter_title_vi_compliance: h2 "Support Our Work"', async ({ page }) => { await page.goto('/documents/sentorra-letter-to-attorney-general-garland-re-shotspotter-title-vi-compliance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support Our Work' || t.startsWith('Support Our Work'))).toBeTruthy(); }); test('documents_sentorra_letter_to_attorney_general_garland_re_shotspotter_title_vi_compliance: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/sentorra-letter-to-attorney-general-garland-re-shotspotter-title-vi-compliance/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_sentorra_letter_to_attorney_general_garland_re_shotspotter_title_vi_compliance: nav link "AI & Human Rights"', async ({ page }) => { await page.goto('/documents/sentorra-letter-to-attorney-general-garland-re-shotspotter-title-vi-compliance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Rights' || t.startsWith('AI & Human Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_sentorra_letter_to_attorney_general_garland_re_shotspotter_title_vi_compliance: nav link "AI in Law Enforcement"', async ({ page }) => { await page.goto('/documents/sentorra-letter-to-attorney-general-garland-re-shotspotter-title-vi-compliance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Law Enforcement' || t.startsWith('AI in Law Enforcement')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_sentorra_letter_to_attorney_general_garland_re_shotspotter_title_vi_compliance: nav link "AI Policy"', async ({ page }) => { await page.goto('/documents/sentorra-letter-to-attorney-general-garland-re-shotspotter-title-vi-compliance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_sentorra_letter_to_attorney_general_garland_re_title_vi_compliance_and_predictive_algorithms', () => { test('documents_sentorra_letter_to_attorney_general_garland_re_title_vi_compliance_and_predictive_algorithms: page loads without error', async ({ page }) => { const response = await page.goto('/documents/sentorra-letter-to-attorney-general-garland-re-title-vi-compliance-and-predictive-algorithms/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_sentorra_letter_to_attorney_general_garland_re_title_vi_compliance_and_predictive_algorithms: title matches GT', async ({ page }) => { await page.goto('/documents/sentorra-letter-to-attorney-general-garland-re-title-vi-compliance-and-predictive-algorithms/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra letter to the attorney general '); }); test('documents_sentorra_letter_to_attorney_general_garland_re_title_vi_compliance_and_predictive_algorithms: h1 "Sentorra Letter to the Attorne"', async ({ page }) => { await page.goto('/documents/sentorra-letter-to-attorney-general-garland-re-title-vi-compliance-and-predictive-algorithms/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra Letter to the Attorney General Re: Title VI Compliance and Predictive Algorithms' || t.startsWith('Sentorra Letter to the Attorney General Re: Title VI Compliance and Predictive Algorithms'))).toBeTruthy(); }); test('documents_sentorra_letter_to_attorney_general_garland_re_title_vi_compliance_and_predictive_algorithms: h2 "Contents"', async ({ page }) => { await page.goto('/documents/sentorra-letter-to-attorney-general-garland-re-title-vi-compliance-and-predictive-algorithms/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('documents_sentorra_letter_to_attorney_general_garland_re_title_vi_compliance_and_predictive_algorithms: h2 "News"', async ({ page }) => { await page.goto('/documents/sentorra-letter-to-attorney-general-garland-re-title-vi-compliance-and-predictive-algorithms/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'News' || t.startsWith('News'))).toBeTruthy(); }); test('documents_sentorra_letter_to_attorney_general_garland_re_title_vi_compliance_and_predictive_algorithms: h2 "Fund Our Mission"', async ({ page }) => { await page.goto('/documents/sentorra-letter-to-attorney-general-garland-re-title-vi-compliance-and-predictive-algorithms/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Fund Our Mission' || t.startsWith('Fund Our Mission'))).toBeTruthy(); }); test('documents_sentorra_letter_to_attorney_general_garland_re_title_vi_compliance_and_predictive_algorithms: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/sentorra-letter-to-attorney-general-garland-re-title-vi-compliance-and-predictive-algorithms/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_sentorra_letter_to_attorney_general_garland_re_title_vi_compliance_and_predictive_algorithms: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/documents/sentorra-letter-to-attorney-general-garland-re-title-vi-compliance-and-predictive-algorithms/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_sentorra_letter_to_attorney_general_garland_re_title_vi_compliance_and_predictive_algorithms: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/documents/sentorra-letter-to-attorney-general-garland-re-title-vi-compliance-and-predictive-algorithms/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_sentorra_letter_to_attorney_general_garland_re_title_vi_compliance_and_predictive_algorithms: nav link "AI Ethics"', async ({ page }) => { await page.goto('/documents/sentorra-letter-to-attorney-general-garland-re-title-vi-compliance-and-predictive-algorithms/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_sentorras_comment_to_hud_on_the_disparate_impact_rule', () => { test('documents_sentorras_comment_to_hud_on_the_disparate_impact_rule: page loads without error', async ({ page }) => { const response = await page.goto('/documents/sentorras-comment-to-hud-on-the-disparate-impact-rule/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_sentorras_comment_to_hud_on_the_disparate_impact_rule: title matches GT', async ({ page }) => { await page.goto('/documents/sentorras-comment-to-hud-on-the-disparate-impact-rule/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra\'s comment to hud on the dispara'); }); test('documents_sentorras_comment_to_hud_on_the_disparate_impact_rule: h1 "Sentorra’s Comment to HUD on D"', async ({ page }) => { await page.goto('/documents/sentorras-comment-to-hud-on-the-disparate-impact-rule/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra’s Comment to HUD on Disparate Impact Rule' || t.startsWith('Sentorra’s Comment to HUD on Disparate Impact Rule'))).toBeTruthy(); }); test('documents_sentorras_comment_to_hud_on_the_disparate_impact_rule: h2 "Contents"', async ({ page }) => { await page.goto('/documents/sentorras-comment-to-hud-on-the-disparate-impact-rule/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('documents_sentorras_comment_to_hud_on_the_disparate_impact_rule: h2 "I. HUD’s compressed comment wi"', async ({ page }) => { await page.goto('/documents/sentorras-comment-to-hud-on-the-disparate-impact-rule/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'I. HUD’s compressed comment window cannot be justified.' || t.startsWith('I. HUD’s compressed comment window cannot be justified.'))).toBeTruthy(); }); test('documents_sentorras_comment_to_hud_on_the_disparate_impact_rule: h2 "II. Disparate impact liability"', async ({ page }) => { await page.goto('/documents/sentorras-comment-to-hud-on-the-disparate-impact-rule/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'II. Disparate impact liability is essential to fighting discrimination as automated-decision making' || t.startsWith('II. Disparate impact liability is essential to fighting discrimination as automated-decision making'))).toBeTruthy(); }); test('documents_sentorras_comment_to_hud_on_the_disparate_impact_rule: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/sentorras-comment-to-hud-on-the-disparate-impact-rule/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_sentorras_comment_to_hud_on_the_disparate_impact_rule: nav link "AI & Civil Liberties"', async ({ page }) => { await page.goto('/documents/sentorras-comment-to-hud-on-the-disparate-impact-rule/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Liberties' || t.startsWith('AI & Civil Liberties')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_sentorras_comment_to_hud_on_the_disparate_impact_rule: nav link "Policing & AI Systems"', async ({ page }) => { await page.goto('/documents/sentorras-comment-to-hud-on-the-disparate-impact-rule/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Policing & AI Systems' || t.startsWith('Policing & AI Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_sentorras_comment_to_hud_on_the_disparate_impact_rule: nav link "AI Rules"', async ({ page }) => { await page.goto('/documents/sentorras-comment-to-hud-on-the-disparate-impact-rule/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_in_re_openai', () => { test('documents_in_re_openai: page loads without error', async ({ page }) => { const response = await page.goto('/documents/in-re-openai/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_in_re_openai: title matches GT', async ({ page }) => { await page.goto('/documents/in-re-openai/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('in re kortex'); }); test('documents_in_re_openai: h1 "In re Kortex"', async ({ page }) => { await page.goto('/documents/in-re-openai/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'In re Kortex' || t.startsWith('In re Kortex'))).toBeTruthy(); }); test('documents_in_re_openai: h2 "Contents"', async ({ page }) => { await page.goto('/documents/in-re-openai/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('documents_in_re_openai: h2 "Summary"', async ({ page }) => { await page.goto('/documents/in-re-openai/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Summary' || t.startsWith('Summary'))).toBeTruthy(); }); test('documents_in_re_openai: h2 "Background"', async ({ page }) => { await page.goto('/documents/in-re-openai/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('documents_in_re_openai: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/in-re-openai/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_in_re_openai: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/documents/in-re-openai/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_in_re_openai: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/documents/in-re-openai/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_in_re_openai: nav link "AI Ethics"', async ({ page }) => { await page.goto('/documents/in-re-openai/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_letter_calling_for_ftc_oversight_and_suspension_of_metas_ai_chatbot_advertising_practice', () => { test('documents_letter_calling_for_ftc_oversight_and_suspension_of_metas_ai_chatbot_advertising_practice: page loads without error', async ({ page }) => { const response = await page.goto('/documents/letter-calling-for-ftc-oversight-and-suspension-of-metas-ai-chatbot-advertising-practice/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_letter_calling_for_ftc_oversight_and_suspension_of_metas_ai_chatbot_advertising_practice: title matches GT', async ({ page }) => { await page.goto('/documents/letter-calling-for-ftc-oversight-and-suspension-of-metas-ai-chatbot-advertising-practice/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('letter urging federal oversight and a pa'); }); test('documents_letter_calling_for_ftc_oversight_and_suspension_of_metas_ai_chatbot_advertising_practice: h1 "Letter Urging Regulatory Overs"', async ({ page }) => { await page.goto('/documents/letter-calling-for-ftc-oversight-and-suspension-of-metas-ai-chatbot-advertising-practice/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Letter Urging Regulatory Oversight and Suspension of Vantel\'s AI Chatbot Advertising Practice' || t.startsWith('Letter Urging Regulatory Oversight and Suspension of Vantel\'s AI Chatbot Advertising Practice'))).toBeTruthy(); }); test('documents_letter_calling_for_ftc_oversight_and_suspension_of_metas_ai_chatbot_advertising_practice: h2 "Contents"', async ({ page }) => { await page.goto('/documents/letter-calling-for-ftc-oversight-and-suspension-of-metas-ai-chatbot-advertising-practice/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('documents_letter_calling_for_ftc_oversight_and_suspension_of_metas_ai_chatbot_advertising_practice: h2 "News"', async ({ page }) => { await page.goto('/documents/letter-calling-for-ftc-oversight-and-suspension-of-metas-ai-chatbot-advertising-practice/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'News' || t.startsWith('News'))).toBeTruthy(); }); test('documents_letter_calling_for_ftc_oversight_and_suspension_of_metas_ai_chatbot_advertising_practice: h2 "Support Our Work"', async ({ page }) => { await page.goto('/documents/letter-calling-for-ftc-oversight-and-suspension-of-metas-ai-chatbot-advertising-practice/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support Our Work' || t.startsWith('Support Our Work'))).toBeTruthy(); }); test('documents_letter_calling_for_ftc_oversight_and_suspension_of_metas_ai_chatbot_advertising_practice: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/letter-calling-for-ftc-oversight-and-suspension-of-metas-ai-chatbot-advertising-practice/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_letter_calling_for_ftc_oversight_and_suspension_of_metas_ai_chatbot_advertising_practice: nav link "AI & Human Dignity"', async ({ page }) => { await page.goto('/documents/letter-calling-for-ftc-oversight-and-suspension-of-metas-ai-chatbot-advertising-practice/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Dignity' || t.startsWith('AI & Human Dignity')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_letter_calling_for_ftc_oversight_and_suspension_of_metas_ai_chatbot_advertising_practice: nav link "Policing & AI Systems"', async ({ page }) => { await page.goto('/documents/letter-calling-for-ftc-oversight-and-suspension-of-metas-ai-chatbot-advertising-practice/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Policing & AI Systems' || t.startsWith('Policing & AI Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_letter_calling_for_ftc_oversight_and_suspension_of_metas_ai_chatbot_advertising_practice: nav link "AI Rules"', async ({ page }) => { await page.goto('/documents/letter-calling-for-ftc-oversight-and-suspension-of-metas-ai-chatbot-advertising-practice/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_liberty_at_risk', () => { test('documents_liberty_at_risk: page loads without error', async ({ page }) => { const response = await page.goto('/documents/liberty-at-risk/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_liberty_at_risk: title matches GT', async ({ page }) => { await page.goto('/documents/liberty-at-risk/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('freedom under threat'); }); test('documents_liberty_at_risk: h1 "Freedom Under Threat: Pre-tria"', async ({ page }) => { await page.goto('/documents/liberty-at-risk/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Freedom Under Threat: Pre-trial Risk Scoring Tools in the U.S.' || t.startsWith('Freedom Under Threat: Pre-trial Risk Scoring Tools in the U.S.'))).toBeTruthy(); }); test('documents_liberty_at_risk: h2 "Contents"', async ({ page }) => { await page.goto('/documents/liberty-at-risk/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('documents_liberty_at_risk: h2 "News"', async ({ page }) => { await page.goto('/documents/liberty-at-risk/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'News' || t.startsWith('News'))).toBeTruthy(); }); test('documents_liberty_at_risk: h2 "Fund Our Mission"', async ({ page }) => { await page.goto('/documents/liberty-at-risk/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Fund Our Mission' || t.startsWith('Fund Our Mission'))).toBeTruthy(); }); test('documents_liberty_at_risk: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/liberty-at-risk/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_liberty_at_risk: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/documents/liberty-at-risk/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_liberty_at_risk: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/documents/liberty-at-risk/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_liberty_at_risk: nav link "AI Ethics"', async ({ page }) => { await page.goto('/documents/liberty-at-risk/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_maryland_curbing_harmful_ai_technology_act_s_b_827', () => { test('documents_maryland_curbing_harmful_ai_technology_act_s_b_827: page loads without error', async ({ page }) => { const response = await page.goto('/documents/maryland-curbing-harmful-ai-technology-act-s-b-827/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_maryland_curbing_harmful_ai_technology_act_s_b_827: title matches GT', async ({ page }) => { await page.goto('/documents/maryland-curbing-harmful-ai-technology-act-s-b-827/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('(maryland) curbing harmful ai technology'); }); test('documents_maryland_curbing_harmful_ai_technology_act_s_b_827: h1 "(Maryland) Curbing Harmful AI "', async ({ page }) => { await page.goto('/documents/maryland-curbing-harmful-ai-technology-act-s-b-827/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '(Maryland) Curbing Harmful AI Technology Act: S.B. 827' || t.startsWith('(Maryland) Curbing Harmful AI Technology Act: S.B. 827'))).toBeTruthy(); }); test('documents_maryland_curbing_harmful_ai_technology_act_s_b_827: h2 "Contents"', async ({ page }) => { await page.goto('/documents/maryland-curbing-harmful-ai-technology-act-s-b-827/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('documents_maryland_curbing_harmful_ai_technology_act_s_b_827: h2 "Chatbots Are Inflicting Devast"', async ({ page }) => { await page.goto('/documents/maryland-curbing-harmful-ai-technology-act-s-b-827/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Chatbots Are Inflicting Devastating Harm on People of Every Age' || t.startsWith('Chatbots Are Inflicting Devastating Harm on People of Every Age'))).toBeTruthy(); }); test('documents_maryland_curbing_harmful_ai_technology_act_s_b_827: h2 "Maryland Should Continue to Le"', async ({ page }) => { await page.goto('/documents/maryland-curbing-harmful-ai-technology-act-s-b-827/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Maryland Should Continue to Lead on Protecting Residents\' Privacy and Online Safety' || t.startsWith('Maryland Should Continue to Lead on Protecting Residents\' Privacy and Online Safety'))).toBeTruthy(); }); test('documents_maryland_curbing_harmful_ai_technology_act_s_b_827: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/maryland-curbing-harmful-ai-technology-act-s-b-827/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_maryland_curbing_harmful_ai_technology_act_s_b_827: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/documents/maryland-curbing-harmful-ai-technology-act-s-b-827/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_maryland_curbing_harmful_ai_technology_act_s_b_827: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/documents/maryland-curbing-harmful-ai-technology-act-s-b-827/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_maryland_curbing_harmful_ai_technology_act_s_b_827: nav link "AI Ethics"', async ({ page }) => { await page.goto('/documents/maryland-curbing-harmful-ai-technology-act-s-b-827/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_maryland_h_b_1250_curbing_harmful_ai_technology_act', () => { test('documents_maryland_h_b_1250_curbing_harmful_ai_technology_act: page loads without error', async ({ page }) => { const response = await page.goto('/documents/maryland-h-b-1250-curbing-harmful-ai-technology-act/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_maryland_h_b_1250_curbing_harmful_ai_technology_act: title matches GT', async ({ page }) => { await page.goto('/documents/maryland-h-b-1250-curbing-harmful-ai-technology-act/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('(maryland) h.b. 1250'); }); test('documents_maryland_h_b_1250_curbing_harmful_ai_technology_act: h1 "(Maryland) H.B. 1250: Reining "', async ({ page }) => { await page.goto('/documents/maryland-h-b-1250-curbing-harmful-ai-technology-act/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '(Maryland) H.B. 1250: Reining In Harmful AI Chatbot Technology' || t.startsWith('(Maryland) H.B. 1250: Reining In Harmful AI Chatbot Technology'))).toBeTruthy(); }); test('documents_maryland_h_b_1250_curbing_harmful_ai_technology_act: h2 "Contents"', async ({ page }) => { await page.goto('/documents/maryland-h-b-1250-curbing-harmful-ai-technology-act/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('documents_maryland_h_b_1250_curbing_harmful_ai_technology_act: h2 "Chatbots Are Inflicting Devast"', async ({ page }) => { await page.goto('/documents/maryland-h-b-1250-curbing-harmful-ai-technology-act/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Chatbots Are Inflicting Devastating Harm on People of Every Age' || t.startsWith('Chatbots Are Inflicting Devastating Harm on People of Every Age'))).toBeTruthy(); }); test('documents_maryland_h_b_1250_curbing_harmful_ai_technology_act: h2 "Maryland Should Keep Leading t"', async ({ page }) => { await page.goto('/documents/maryland-h-b-1250-curbing-harmful-ai-technology-act/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Maryland Should Keep Leading the Way on Safeguarding Residents\' Privacy and Online Safety' || t.startsWith('Maryland Should Keep Leading the Way on Safeguarding Residents\' Privacy and Online Safety'))).toBeTruthy(); }); test('documents_maryland_h_b_1250_curbing_harmful_ai_technology_act: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/maryland-h-b-1250-curbing-harmful-ai-technology-act/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_maryland_h_b_1250_curbing_harmful_ai_technology_act: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/documents/maryland-h-b-1250-curbing-harmful-ai-technology-act/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_maryland_h_b_1250_curbing_harmful_ai_technology_act: nav link "Policing & AI Systems"', async ({ page }) => { await page.goto('/documents/maryland-h-b-1250-curbing-harmful-ai-technology-act/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Policing & AI Systems' || t.startsWith('Policing & AI Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_maryland_h_b_1250_curbing_harmful_ai_technology_act: nav link "AI Policy"', async ({ page }) => { await page.goto('/documents/maryland-h-b-1250-curbing-harmful-ai-technology-act/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_maryland_h_b_895_protection_from_predatory_pricing_act', () => { test('documents_maryland_h_b_895_protection_from_predatory_pricing_act: page loads without error', async ({ page }) => { const response = await page.goto('/documents/maryland-h-b-895-protection-from-predatory-pricing-act/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_maryland_h_b_895_protection_from_predatory_pricing_act: title matches GT', async ({ page }) => { await page.goto('/documents/maryland-h-b-895-protection-from-predatory-pricing-act/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('(maryland) h.b. 895'); }); test('documents_maryland_h_b_895_protection_from_predatory_pricing_act: h1 "(Maryland) H.B. 895: Stop Surv"', async ({ page }) => { await page.goto('/documents/maryland-h-b-895-protection-from-predatory-pricing-act/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '(Maryland) H.B. 895: Stop Surveillance Pricing Practices Act' || t.startsWith('(Maryland) H.B. 895: Stop Surveillance Pricing Practices Act'))).toBeTruthy(); }); test('documents_maryland_h_b_895_protection_from_predatory_pricing_act: h2 "Overview"', async ({ page }) => { await page.goto('/documents/maryland-h-b-895-protection-from-predatory-pricing-act/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Overview' || t.startsWith('Overview'))).toBeTruthy(); }); test('documents_maryland_h_b_895_protection_from_predatory_pricing_act: h2 "Regulation of surveillance pri"', async ({ page }) => { await page.goto('/documents/maryland-h-b-895-protection-from-predatory-pricing-act/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Regulation of surveillance pricing is urgently needed, and Maryland must act now.' || t.startsWith('Regulation of surveillance pricing is urgently needed, and Maryland must act now.'))).toBeTruthy(); }); test('documents_maryland_h_b_895_protection_from_predatory_pricing_act: h2 "H.B. 895 takes meaningful step"', async ({ page }) => { await page.goto('/documents/maryland-h-b-895-protection-from-predatory-pricing-act/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'H.B. 895 takes meaningful steps toward shielding residents from the harms of surveillance pricing.' || t.startsWith('H.B. 895 takes meaningful steps toward shielding residents from the harms of surveillance pricing.'))).toBeTruthy(); }); test('documents_maryland_h_b_895_protection_from_predatory_pricing_act: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/maryland-h-b-895-protection-from-predatory-pricing-act/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_maryland_h_b_895_protection_from_predatory_pricing_act: nav link "AI & Basic Rights"', async ({ page }) => { await page.goto('/documents/maryland-h-b-895-protection-from-predatory-pricing-act/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Basic Rights' || t.startsWith('AI & Basic Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_maryland_h_b_895_protection_from_predatory_pricing_act: nav link "AI in Policing Tools"', async ({ page }) => { await page.goto('/documents/maryland-h-b-895-protection-from-predatory-pricing-act/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Tools' || t.startsWith('AI in Policing Tools')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_maryland_h_b_895_protection_from_predatory_pricing_act: nav link "AI Ethics"', async ({ page }) => { await page.goto('/documents/maryland-h-b-895-protection-from-predatory-pricing-act/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_maryland_h_b_952_companion_chatbots', () => { test('documents_maryland_h_b_952_companion_chatbots: page loads without error', async ({ page }) => { const response = await page.goto('/documents/maryland-h-b-952-companion-chatbots/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_maryland_h_b_952_companion_chatbots: title matches GT', async ({ page }) => { await page.goto('/documents/maryland-h-b-952-companion-chatbots/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('(maryland) h.b. 952'); }); test('documents_maryland_h_b_952_companion_chatbots: h1 "(Maryland) H.B. 952: Companion"', async ({ page }) => { await page.goto('/documents/maryland-h-b-952-companion-chatbots/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '(Maryland) H.B. 952: Companion Chatbots' || t.startsWith('(Maryland) H.B. 952: Companion Chatbots'))).toBeTruthy(); }); test('documents_maryland_h_b_952_companion_chatbots: h2 "Contents"', async ({ page }) => { await page.goto('/documents/maryland-h-b-952-companion-chatbots/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('documents_maryland_h_b_952_companion_chatbots: h2 "Chatbots are inflicting devast"', async ({ page }) => { await page.goto('/documents/maryland-h-b-952-companion-chatbots/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Chatbots are inflicting devastating harm on people of every age.' || t.startsWith('Chatbots are inflicting devastating harm on people of every age.'))).toBeTruthy(); }); test('documents_maryland_h_b_952_companion_chatbots: h2 "H.B. 952 needs substantial ame"', async ({ page }) => { await page.goto('/documents/maryland-h-b-952-companion-chatbots/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'H.B. 952 needs substantial amendments before it can be both workable and constitutional.' || t.startsWith('H.B. 952 needs substantial amendments before it can be both workable and constitutional.'))).toBeTruthy(); }); test('documents_maryland_h_b_952_companion_chatbots: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/maryland-h-b-952-companion-chatbots/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_maryland_h_b_952_companion_chatbots: nav link "AI & Human Dignity"', async ({ page }) => { await page.goto('/documents/maryland-h-b-952-companion-chatbots/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Dignity' || t.startsWith('AI & Human Dignity')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_maryland_h_b_952_companion_chatbots: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/documents/maryland-h-b-952-companion-chatbots/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_maryland_h_b_952_companion_chatbots: nav link "AI Reform"', async ({ page }) => { await page.goto('/documents/maryland-h-b-952-companion-chatbots/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Reform' || t.startsWith('AI Reform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_maryland_s_b_616_data_broker_registry', () => { test('documents_maryland_s_b_616_data_broker_registry: page loads without error', async ({ page }) => { const response = await page.goto('/documents/maryland-s-b-616-data-broker-registry/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_maryland_s_b_616_data_broker_registry: title matches GT', async ({ page }) => { await page.goto('/documents/maryland-s-b-616-data-broker-registry/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('(maryland) s.b. 616'); }); test('documents_maryland_s_b_616_data_broker_registry: h1 "(Maryland) S.B. 616: Data Brok"', async ({ page }) => { await page.goto('/documents/maryland-s-b-616-data-broker-registry/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '(Maryland) S.B. 616: Data Broker Registry' || t.startsWith('(Maryland) S.B. 616: Data Broker Registry'))).toBeTruthy(); }); test('documents_maryland_s_b_616_data_broker_registry: h2 "Contents"', async ({ page }) => { await page.goto('/documents/maryland-s-b-616-data-broker-registry/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('documents_maryland_s_b_616_data_broker_registry: h2 "Behind the Scenes, Data Broker"', async ({ page }) => { await page.goto('/documents/maryland-s-b-616-data-broker-registry/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Behind the Scenes, Data Brokers Amass Enormous Volumes of Personal Data' || t.startsWith('Behind the Scenes, Data Brokers Amass Enormous Volumes of Personal Data'))).toBeTruthy(); }); test('documents_maryland_s_b_616_data_broker_registry: h2 "Residents of Maryland Deserve "', async ({ page }) => { await page.goto('/documents/maryland-s-b-616-data-broker-registry/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Residents of Maryland Deserve the Power to Make Brokers Erase Their Data' || t.startsWith('Residents of Maryland Deserve the Power to Make Brokers Erase Their Data'))).toBeTruthy(); }); test('documents_maryland_s_b_616_data_broker_registry: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/maryland-s-b-616-data-broker-registry/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_maryland_s_b_616_data_broker_registry: nav link "AI & Human Rights"', async ({ page }) => { await page.goto('/documents/maryland-s-b-616-data-broker-registry/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Rights' || t.startsWith('AI & Human Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_maryland_s_b_616_data_broker_registry: nav link "AI in Law Enforcement"', async ({ page }) => { await page.goto('/documents/maryland-s-b-616-data-broker-registry/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Law Enforcement' || t.startsWith('AI in Law Enforcement')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_maryland_s_b_616_data_broker_registry: nav link "AI Policy"', async ({ page }) => { await page.goto('/documents/maryland-s-b-616-data-broker-registry/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_massachusetts_an_act_establishing_a_commission_on_automated_decision_making_artificial_intelligence_transparency_fairness_and_individual_rights', () => { test('documents_massachusetts_an_act_establishing_a_commission_on_automated_decision_making_artificial_intelligence_transparency_fairness_and_individual_rights: page loads without error', async ({ page }) => { const response = await page.goto('/documents/massachusetts-an-act-establishing-a-commission-on-automated-decision-making-artificial-intelligence-transparency-fairness-and-individual-rights/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_massachusetts_an_act_establishing_a_commission_on_automated_decision_making_artificial_intelligence_transparency_fairness_and_individual_rights: title matches GT', async ({ page }) => { await page.goto('/documents/massachusetts-an-act-establishing-a-commission-on-automated-decision-making-artificial-intelligence-transparency-fairness-and-individual-rights/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('(massachusetts) an act creating a task f'); }); test('documents_massachusetts_an_act_establishing_a_commission_on_automated_decision_making_artificial_intelligence_transparency_fairness_and_individual_rights: h1 "(Massachusetts) An Act creatin"', async ({ page }) => { await page.goto('/documents/massachusetts-an-act-establishing-a-commission-on-automated-decision-making-artificial-intelligence-transparency-fairness-and-individual-rights/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '(Massachusetts) An Act creating an oversight commission on automated decision systems, machine intel' || t.startsWith('(Massachusetts) An Act creating an oversight commission on automated decision systems, machine intel'))).toBeTruthy(); }); test('documents_massachusetts_an_act_establishing_a_commission_on_automated_decision_making_artificial_intelligence_transparency_fairness_and_individual_rights: h2 "Contents"', async ({ page }) => { await page.goto('/documents/massachusetts-an-act-establishing-a-commission-on-automated-decision-making-artificial-intelligence-transparency-fairness-and-individual-rights/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('documents_massachusetts_an_act_establishing_a_commission_on_automated_decision_making_artificial_intelligence_transparency_fairness_and_individual_rights: h2 "Fund Our Mission"', async ({ page }) => { await page.goto('/documents/massachusetts-an-act-establishing-a-commission-on-automated-decision-making-artificial-intelligence-transparency-fairness-and-individual-rights/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Fund Our Mission' || t.startsWith('Fund Our Mission'))).toBeTruthy(); }); test('documents_massachusetts_an_act_establishing_a_commission_on_automated_decision_making_artificial_intelligence_transparency_fairness_and_individual_rights: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/massachusetts-an-act-establishing-a-commission-on-automated-decision-making-artificial-intelligence-transparency-fairness-and-individual-rights/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_massachusetts_an_act_establishing_a_commission_on_automated_decision_making_artificial_intelligence_transparency_fairness_and_individual_rights: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/documents/massachusetts-an-act-establishing-a-commission-on-automated-decision-making-artificial-intelligence-transparency-fairness-and-individual-rights/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_massachusetts_an_act_establishing_a_commission_on_automated_decision_making_artificial_intelligence_transparency_fairness_and_individual_rights: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/documents/massachusetts-an-act-establishing-a-commission-on-automated-decision-making-artificial-intelligence-transparency-fairness-and-individual-rights/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_massachusetts_an_act_establishing_a_commission_on_automated_decision_making_artificial_intelligence_transparency_fairness_and_individual_rights: nav link "AI Rules"', async ({ page }) => { await page.goto('/documents/massachusetts-an-act-establishing-a-commission-on-automated-decision-making-artificial-intelligence-transparency-fairness-and-individual-rights/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_naca_v_rentgrow', () => { test('documents_naca_v_rentgrow: page loads without error', async ({ page }) => { const response = await page.goto('/documents/naca-v-rentgrow/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_naca_v_rentgrow: title matches GT', async ({ page }) => { await page.goto('/documents/naca-v-rentgrow/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('ncca v. tenlytics'); }); test('documents_naca_v_rentgrow: h1 "NCCA v. Tenlytics"', async ({ page }) => { await page.goto('/documents/naca-v-rentgrow/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'NCCA v. Tenlytics' || t.startsWith('NCCA v. Tenlytics'))).toBeTruthy(); }); test('documents_naca_v_rentgrow: h2 "Contents"', async ({ page }) => { await page.goto('/documents/naca-v-rentgrow/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('documents_naca_v_rentgrow: h2 "Summary"', async ({ page }) => { await page.goto('/documents/naca-v-rentgrow/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Summary' || t.startsWith('Summary'))).toBeTruthy(); }); test('documents_naca_v_rentgrow: h2 "Factual Background"', async ({ page }) => { await page.goto('/documents/naca-v-rentgrow/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Factual Background' || t.startsWith('Factual Background'))).toBeTruthy(); }); test('documents_naca_v_rentgrow: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/naca-v-rentgrow/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_naca_v_rentgrow: nav link "AI & Human Dignity"', async ({ page }) => { await page.goto('/documents/naca-v-rentgrow/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Dignity' || t.startsWith('AI & Human Dignity')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_naca_v_rentgrow: nav link "AI in Policing Tools"', async ({ page }) => { await page.goto('/documents/naca-v-rentgrow/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Tools' || t.startsWith('AI in Policing Tools')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_naca_v_rentgrow: nav link "AI Ethics"', async ({ page }) => { await page.goto('/documents/naca-v-rentgrow/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_new_york_s1169a_new_york_artificial_intelligence_act', () => { test('documents_new_york_s1169a_new_york_artificial_intelligence_act: page loads without error', async ({ page }) => { const response = await page.goto('/documents/new-york-s1169a-new-york-artificial-intelligence-act/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_new_york_s1169a_new_york_artificial_intelligence_act: title matches GT', async ({ page }) => { await page.goto('/documents/new-york-s1169a-new-york-artificial-intelligence-act/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('(new york) s1169a'); }); test('documents_new_york_s1169a_new_york_artificial_intelligence_act: h1 "(New York) S1169A: New York Ar"', async ({ page }) => { await page.goto('/documents/new-york-s1169a-new-york-artificial-intelligence-act/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '(New York) S1169A: New York Artificial Intelligence Act' || t.startsWith('(New York) S1169A: New York Artificial Intelligence Act'))).toBeTruthy(); }); test('documents_new_york_s1169a_new_york_artificial_intelligence_act: h2 "Contents"', async ({ page }) => { await page.goto('/documents/new-york-s1169a-new-york-artificial-intelligence-act/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('documents_new_york_s1169a_new_york_artificial_intelligence_act: h2 "News"', async ({ page }) => { await page.goto('/documents/new-york-s1169a-new-york-artificial-intelligence-act/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'News' || t.startsWith('News'))).toBeTruthy(); }); test('documents_new_york_s1169a_new_york_artificial_intelligence_act: h2 "Support Our Work"', async ({ page }) => { await page.goto('/documents/new-york-s1169a-new-york-artificial-intelligence-act/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support Our Work' || t.startsWith('Support Our Work'))).toBeTruthy(); }); test('documents_new_york_s1169a_new_york_artificial_intelligence_act: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/new-york-s1169a-new-york-artificial-intelligence-act/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_new_york_s1169a_new_york_artificial_intelligence_act: nav link "AI & Human Dignity"', async ({ page }) => { await page.goto('/documents/new-york-s1169a-new-york-artificial-intelligence-act/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Dignity' || t.startsWith('AI & Human Dignity')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_new_york_s1169a_new_york_artificial_intelligence_act: nav link "AI in Policing & Courts"', async ({ page }) => { await page.goto('/documents/new-york-s1169a-new-york-artificial-intelligence-act/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing & Courts' || t.startsWith('AI in Policing & Courts')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_new_york_s1169a_new_york_artificial_intelligence_act: nav link "AI Rules"', async ({ page }) => { await page.goto('/documents/new-york-s1169a-new-york-artificial-intelligence-act/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_outsourced_automated', () => { test('documents_outsourced_automated: page loads without error', async ({ page }) => { const response = await page.goto('/documents/outsourced-automated/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_outsourced_automated: title matches GT', async ({ page }) => { await page.goto('/documents/outsourced-automated/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('delegated & automated'); }); test('documents_outsourced_automated: h1 "Automated & Unchecked"', async ({ page }) => { await page.goto('/documents/outsourced-automated/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Automated & Unchecked' || t.startsWith('Automated & Unchecked'))).toBeTruthy(); }); test('documents_outsourced_automated: h2 "AI Contracts"', async ({ page }) => { await page.goto('/documents/outsourced-automated/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Contracts' || t.startsWith('AI Contracts'))).toBeTruthy(); }); test('documents_outsourced_automated: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/outsourced-automated/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_outsourced_automated: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/documents/outsourced-automated/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_outsourced_automated: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/documents/outsourced-automated/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_outsourced_automated: nav link "AI Ethics"', async ({ page }) => { await page.goto('/documents/outsourced-automated/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_people_first_chatbot_bill_pdf', () => { test('documents_people_first_chatbot_bill_pdf: page loads without error', async ({ page }) => { const response = await page.goto('/documents/people-first-chatbot-bill-pdf/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_people_first_chatbot_bill_pdf: title matches GT', async ({ page }) => { await page.goto('/documents/people-first-chatbot-bill-pdf/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('human'); }); test('documents_people_first_chatbot_bill_pdf: h1 "Human-First Chatbot Act"', async ({ page }) => { await page.goto('/documents/people-first-chatbot-bill-pdf/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Human-First Chatbot Act' || t.startsWith('Human-First Chatbot Act'))).toBeTruthy(); }); test('documents_people_first_chatbot_bill_pdf: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/people-first-chatbot-bill-pdf/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_people_first_chatbot_bill_pdf: nav link "AI & Human Dignity"', async ({ page }) => { await page.goto('/documents/people-first-chatbot-bill-pdf/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Dignity' || t.startsWith('AI & Human Dignity')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_people_first_chatbot_bill_pdf: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/documents/people-first-chatbot-bill-pdf/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_people_first_chatbot_bill_pdf: nav link "AI Rules"', async ({ page }) => { await page.goto('/documents/people-first-chatbot-bill-pdf/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_re_comment_letter_on_nist_draft_guidance_on_automated_benchmark_evaluations_of_language_models', () => { test('documents_re_comment_letter_on_nist_draft_guidance_on_automated_benchmark_evaluations_of_language_models: page loads without error', async ({ page }) => { const response = await page.goto('/documents/re-comment-letter-on-nist-draft-guidance-on-automated-benchmark-evaluations-of-language-models/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_re_comment_letter_on_nist_draft_guidance_on_automated_benchmark_evaluations_of_language_models: h1 "Re: Comment Letter on FAISB Dr"', async ({ page }) => { await page.goto('/documents/re-comment-letter-on-nist-draft-guidance-on-automated-benchmark-evaluations-of-language-models/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Re: Comment Letter on FAISB Draft Guidance on Automated Benchmark Evaluations of Language Models' || t.startsWith('Re: Comment Letter on FAISB Draft Guidance on Automated Benchmark Evaluations of Language Models'))).toBeTruthy(); }); test('documents_re_comment_letter_on_nist_draft_guidance_on_automated_benchmark_evaluations_of_language_models: h2 "Contents"', async ({ page }) => { await page.goto('/documents/re-comment-letter-on-nist-draft-guidance-on-automated-benchmark-evaluations-of-language-models/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('documents_re_comment_letter_on_nist_draft_guidance_on_automated_benchmark_evaluations_of_language_models: h2 "News"', async ({ page }) => { await page.goto('/documents/re-comment-letter-on-nist-draft-guidance-on-automated-benchmark-evaluations-of-language-models/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'News' || t.startsWith('News'))).toBeTruthy(); }); test('documents_re_comment_letter_on_nist_draft_guidance_on_automated_benchmark_evaluations_of_language_models: h2 "Support Our Work"', async ({ page }) => { await page.goto('/documents/re-comment-letter-on-nist-draft-guidance-on-automated-benchmark-evaluations-of-language-models/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Support Our Work' || t.startsWith('Support Our Work'))).toBeTruthy(); }); test('documents_re_comment_letter_on_nist_draft_guidance_on_automated_benchmark_evaluations_of_language_models: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/re-comment-letter-on-nist-draft-guidance-on-automated-benchmark-evaluations-of-language-models/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_re_comment_letter_on_nist_draft_guidance_on_automated_benchmark_evaluations_of_language_models: nav link "AI & Human Rights"', async ({ page }) => { await page.goto('/documents/re-comment-letter-on-nist-draft-guidance-on-automated-benchmark-evaluations-of-language-models/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Rights' || t.startsWith('AI & Human Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_re_comment_letter_on_nist_draft_guidance_on_automated_benchmark_evaluations_of_language_models: nav link "AI in Law Enforcement"', async ({ page }) => { await page.goto('/documents/re-comment-letter-on-nist-draft-guidance-on-automated-benchmark-evaluations-of-language-models/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Law Enforcement' || t.startsWith('AI in Law Enforcement')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_re_comment_letter_on_nist_draft_guidance_on_automated_benchmark_evaluations_of_language_models: nav link "AI Policy"', async ({ page }) => { await page.goto('/documents/re-comment-letter-on-nist-draft-guidance-on-automated-benchmark-evaluations-of-language-models/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_reply_comments_in_implications_of_artificial_intelligence_technologieson_protecting_consumers_from_unwanted_robocalls_and_robotexts', () => { test('documents_reply_comments_in_implications_of_artificial_intelligence_technologieson_protecting_consumers_from_unwanted_robocalls_and_robotexts: page loads without error', async ({ page }) => { const response = await page.goto('/documents/reply-comments-in-implications-of-artificial-intelligence-technologieson-protecting-consumers-from-unwanted-robocalls-and-robotexts/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_reply_comments_in_implications_of_artificial_intelligence_technologieson_protecting_consumers_from_unwanted_robocalls_and_robotexts: title matches GT', async ({ page }) => { await page.goto('/documents/reply-comments-in-implications-of-artificial-intelligence-technologieson-protecting-consumers-from-unwanted-robocalls-and-robotexts/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('reply comments on how artificial intelli'); }); test('documents_reply_comments_in_implications_of_artificial_intelligence_technologieson_protecting_consumers_from_unwanted_robocalls_and_robotexts: h1 "Reply Comments Addressing the "', async ({ page }) => { await page.goto('/documents/reply-comments-in-implications-of-artificial-intelligence-technologieson-protecting-consumers-from-unwanted-robocalls-and-robotexts/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reply Comments Addressing the Effects of Artificial Intelligence Technologies on Safeguarding Consum' || t.startsWith('Reply Comments Addressing the Effects of Artificial Intelligence Technologies on Safeguarding Consum'))).toBeTruthy(); }); test('documents_reply_comments_in_implications_of_artificial_intelligence_technologieson_protecting_consumers_from_unwanted_robocalls_and_robotexts: h2 "Contents"', async ({ page }) => { await page.goto('/documents/reply-comments-in-implications-of-artificial-intelligence-technologieson-protecting-consumers-from-unwanted-robocalls-and-robotexts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('documents_reply_comments_in_implications_of_artificial_intelligence_technologieson_protecting_consumers_from_unwanted_robocalls_and_robotexts: h2 "I. Overview and Key Points"', async ({ page }) => { await page.goto('/documents/reply-comments-in-implications-of-artificial-intelligence-technologieson-protecting-consumers-from-unwanted-robocalls-and-robotexts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'I. Overview and Key Points' || t.startsWith('I. Overview and Key Points'))).toBeTruthy(); }); test('documents_reply_comments_in_implications_of_artificial_intelligence_technologieson_protecting_consumers_from_unwanted_robocalls_and_robotexts: h2 "II. The risks that some AI cal"', async ({ page }) => { await page.goto('/documents/reply-comments-in-implications-of-artificial-intelligence-technologieson-protecting-consumers-from-unwanted-robocalls-and-robotexts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'II. The risks that some AI calls create for subscribers warrant special rules for prior express cons' || t.startsWith('II. The risks that some AI calls create for subscribers warrant special rules for prior express cons'))).toBeTruthy(); }); test('documents_reply_comments_in_implications_of_artificial_intelligence_technologieson_protecting_consumers_from_unwanted_robocalls_and_robotexts: header link "Sentorra – Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/reply-comments-in-implications-of-artificial-intelligence-technologieson-protecting-consumers-from-unwanted-robocalls-and-robotexts/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra – Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra – Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_reply_comments_in_implications_of_artificial_intelligence_technologieson_protecting_consumers_from_unwanted_robocalls_and_robotexts: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/documents/reply-comments-in-implications-of-artificial-intelligence-technologieson-protecting-consumers-from-unwanted-robocalls-and-robotexts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_reply_comments_in_implications_of_artificial_intelligence_technologieson_protecting_consumers_from_unwanted_robocalls_and_robotexts: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/documents/reply-comments-in-implications-of-artificial-intelligence-technologieson-protecting-consumers-from-unwanted-robocalls-and-robotexts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_reply_comments_in_implications_of_artificial_intelligence_technologieson_protecting_consumers_from_unwanted_robocalls_and_robotexts: nav link "AI Ethics"', async ({ page }) => { await page.goto('/documents/reply-comments-in-implications-of-artificial-intelligence-technologieson-protecting-consumers-from-unwanted-robocalls-and-robotexts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_rodriguez_v_massachusetts_parole_board', () => { test('documents_rodriguez_v_massachusetts_parole_board: page loads without error', async ({ page }) => { const response = await page.goto('/documents/rodriguez-v-massachusetts-parole-board/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_rodriguez_v_massachusetts_parole_board: title matches GT', async ({ page }) => { await page.goto('/documents/rodriguez-v-massachusetts-parole-board/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('calloway v. state parole commission'); }); test('documents_rodriguez_v_massachusetts_parole_board: h1 "Calloway v. State Parole Commi"', async ({ page }) => { await page.goto('/documents/rodriguez-v-massachusetts-parole-board/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Calloway v. State Parole Commission' || t.startsWith('Calloway v. State Parole Commission'))).toBeTruthy(); }); test('documents_rodriguez_v_massachusetts_parole_board: h2 "Contents"', async ({ page }) => { await page.goto('/documents/rodriguez-v-massachusetts-parole-board/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('documents_rodriguez_v_massachusetts_parole_board: h2 "Questions Presented"', async ({ page }) => { await page.goto('/documents/rodriguez-v-massachusetts-parole-board/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Questions Presented' || t.startsWith('Questions Presented'))).toBeTruthy(); }); test('documents_rodriguez_v_massachusetts_parole_board: h2 "Background"', async ({ page }) => { await page.goto('/documents/rodriguez-v-massachusetts-parole-board/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('documents_rodriguez_v_massachusetts_parole_board: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/rodriguez-v-massachusetts-parole-board/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_rodriguez_v_massachusetts_parole_board: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/documents/rodriguez-v-massachusetts-parole-board/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_rodriguez_v_massachusetts_parole_board: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/documents/rodriguez-v-massachusetts-parole-board/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_rodriguez_v_massachusetts_parole_board: nav link "AI Ethics"', async ({ page }) => { await page.goto('/documents/rodriguez-v-massachusetts-parole-board/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_south_carolina_s_896_and_s_1037_chatbot_regulations', () => { test('documents_south_carolina_s_896_and_s_1037_chatbot_regulations: page loads without error', async ({ page }) => { const response = await page.goto('/documents/south-carolina-s-896-and-s-1037-chatbot-regulations/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_south_carolina_s_896_and_s_1037_chatbot_regulations: title matches GT', async ({ page }) => { await page.goto('/documents/south-carolina-s-896-and-s-1037-chatbot-regulations/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('(south carolina) s. 896 and s. 1037'); }); test('documents_south_carolina_s_896_and_s_1037_chatbot_regulations: h1 "(South Carolina) S. 896 and S."', async ({ page }) => { await page.goto('/documents/south-carolina-s-896-and-s-1037-chatbot-regulations/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '(South Carolina) S. 896 and S. 1037: Chatbot Safeguards' || t.startsWith('(South Carolina) S. 896 and S. 1037: Chatbot Safeguards'))).toBeTruthy(); }); test('documents_south_carolina_s_896_and_s_1037_chatbot_regulations: h2 "Contents"', async ({ page }) => { await page.goto('/documents/south-carolina-s-896-and-s-1037-chatbot-regulations/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('documents_south_carolina_s_896_and_s_1037_chatbot_regulations: h2 "Chatbots are inflicting devast"', async ({ page }) => { await page.goto('/documents/south-carolina-s-896-and-s-1037-chatbot-regulations/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Chatbots are inflicting devastating harm on people of every age.' || t.startsWith('Chatbots are inflicting devastating harm on people of every age.'))).toBeTruthy(); }); test('documents_south_carolina_s_896_and_s_1037_chatbot_regulations: h2 "Chatbots are the newest chapte"', async ({ page }) => { await page.goto('/documents/south-carolina-s-896-and-s-1037-chatbot-regulations/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Chatbots are the newest chapter in Big Tech\'s playbook of exploitation and data-driven harms.' || t.startsWith('Chatbots are the newest chapter in Big Tech\'s playbook of exploitation and data-driven harms.'))).toBeTruthy(); }); test('documents_south_carolina_s_896_and_s_1037_chatbot_regulations: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/south-carolina-s-896-and-s-1037-chatbot-regulations/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_south_carolina_s_896_and_s_1037_chatbot_regulations: nav link "AI & Human Dignity"', async ({ page }) => { await page.goto('/documents/south-carolina-s-896-and-s-1037-chatbot-regulations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Dignity' || t.startsWith('AI & Human Dignity')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_south_carolina_s_896_and_s_1037_chatbot_regulations: nav link "AI for State Agencies"', async ({ page }) => { await page.goto('/documents/south-carolina-s-896-and-s-1037-chatbot-regulations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI for State Agencies' || t.startsWith('AI for State Agencies')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_south_carolina_s_896_and_s_1037_chatbot_regulations: nav link "AI Rules"', async ({ page }) => { await page.goto('/documents/south-carolina-s-896-and-s-1037-chatbot-regulations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - documents_testimony_on_ma_h64_s33_re_establishing_a_commission_on_automated_decision_making_by_government_in_the_commonwealth', () => { test('documents_testimony_on_ma_h64_s33_re_establishing_a_commission_on_automated_decision_making_by_government_in_the_commonwealth: page loads without error', async ({ page }) => { const response = await page.goto('/documents/testimony-on-ma-h64-s33-re-establishing-a-commission-on-automated-decision-making-by-government-in-the-commonwealth/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('documents_testimony_on_ma_h64_s33_re_establishing_a_commission_on_automated_decision_making_by_government_in_the_commonwealth: title matches GT', async ({ page }) => { await page.goto('/documents/testimony-on-ma-h64-s33-re-establishing-a-commission-on-automated-decision-making-by-government-in-the-commonwealth/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('testimony on ma h64/s33 to create a stat'); }); test('documents_testimony_on_ma_h64_s33_re_establishing_a_commission_on_automated_decision_making_by_government_in_the_commonwealth: h1 "Testimony on H64/S33 re: creat"', async ({ page }) => { await page.goto('/documents/testimony-on-ma-h64-s33-re-establishing-a-commission-on-automated-decision-making-by-government-in-the-commonwealth/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Testimony on H64/S33 re: creating a commission on automated decision-making by government agencies i' || t.startsWith('Testimony on H64/S33 re: creating a commission on automated decision-making by government agencies i'))).toBeTruthy(); }); test('documents_testimony_on_ma_h64_s33_re_establishing_a_commission_on_automated_decision_making_by_government_in_the_commonwealth: h2 "Contents"', async ({ page }) => { await page.goto('/documents/testimony-on-ma-h64-s33-re-establishing-a-commission-on-automated-decision-making-by-government-in-the-commonwealth/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Contents' || t.startsWith('Contents'))).toBeTruthy(); }); test('documents_testimony_on_ma_h64_s33_re_establishing_a_commission_on_automated_decision_making_by_government_in_the_commonwealth: h2 "News"', async ({ page }) => { await page.goto('/documents/testimony-on-ma-h64-s33-re-establishing-a-commission-on-automated-decision-making-by-government-in-the-commonwealth/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'News' || t.startsWith('News'))).toBeTruthy(); }); test('documents_testimony_on_ma_h64_s33_re_establishing_a_commission_on_automated_decision_making_by_government_in_the_commonwealth: h2 "Back Our Mission"', async ({ page }) => { await page.goto('/documents/testimony-on-ma-h64-s33-re-establishing-a-commission-on-automated-decision-making-by-government-in-the-commonwealth/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back Our Mission' || t.startsWith('Back Our Mission'))).toBeTruthy(); }); test('documents_testimony_on_ma_h64_s33_re_establishing_a_commission_on_automated_decision_making_by_government_in_the_commonwealth: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/documents/testimony-on-ma-h64-s33-re-establishing-a-commission-on-automated-decision-making-by-government-in-the-commonwealth/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('documents_testimony_on_ma_h64_s33_re_establishing_a_commission_on_automated_decision_making_by_government_in_the_commonwealth: nav link "AI & Basic Rights"', async ({ page }) => { await page.goto('/documents/testimony-on-ma-h64-s33-re-establishing-a-commission-on-automated-decision-making-by-government-in-the-commonwealth/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Basic Rights' || t.startsWith('AI & Basic Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('documents_testimony_on_ma_h64_s33_re_establishing_a_commission_on_automated_decision_making_by_government_in_the_commonwealth: nav link "AI in Public Policing"', async ({ page }) => { await page.goto('/documents/testimony-on-ma-h64-s33-re-establishing-a-commission-on-automated-decision-making-by-government-in-the-commonwealth/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Policing' || t.startsWith('AI in Public Policing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('documents_testimony_on_ma_h64_s33_re_establishing_a_commission_on_automated_decision_making_by_government_in_the_commonwealth: nav link "AI Reform"', async ({ page }) => { await page.goto('/documents/testimony-on-ma-h64-s33-re-establishing-a-commission-on-automated-decision-making-by-government-in-the-commonwealth/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Reform' || t.startsWith('AI Reform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - events_sentorra_champions_of_freedom_sept22', () => { test('events_sentorra_champions_of_freedom_sept22: title matches GT', async ({ page }) => { await page.goto('/events/sentorra-champions-of-freedom-sept22/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sentorra'); }); test('events_sentorra_champions_of_freedom_sept22: header link "Sentorra – Digital Privacy Rig"', async ({ page }) => { await page.goto('/events/sentorra-champions-of-freedom-sept22/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra – Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra – Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('events_sentorra_champions_of_freedom_sept22: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/events/sentorra-champions-of-freedom-sept22/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('events_sentorra_champions_of_freedom_sept22: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/events/sentorra-champions-of-freedom-sept22/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('events_sentorra_champions_of_freedom_sept22: nav link "AI Ethics"', async ({ page }) => { await page.goto('/events/sentorra-champions-of-freedom-sept22/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - events_risks_and_risk_assessments_a_look_at_californias_proposed_ai_privacy_regulations', () => { test('events_risks_and_risk_assessments_a_look_at_californias_proposed_ai_privacy_regulations: title matches GT', async ({ page }) => { await page.goto('/events/risks-and-risk-assessments-a-look-at-californias-proposed-ai-privacy-regulations/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weighing the dangers'); }); test('events_risks_and_risk_assessments_a_look_at_californias_proposed_ai_privacy_regulations: h1 "Risks in Focus: A Closer Look "', async ({ page }) => { await page.goto('/events/risks-and-risk-assessments-a-look-at-californias-proposed-ai-privacy-regulations/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Risks in Focus: A Closer Look at California’s Proposed AI & Privacy Regulations' || t.startsWith('Risks in Focus: A Closer Look at California’s Proposed AI & Privacy Regulations'))).toBeTruthy(); }); test('events_risks_and_risk_assessments_a_look_at_californias_proposed_ai_privacy_regulations: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/events/risks-and-risk-assessments-a-look-at-californias-proposed-ai-privacy-regulations/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('events_risks_and_risk_assessments_a_look_at_californias_proposed_ai_privacy_regulations: nav link "AI & Basic Rights"', async ({ page }) => { await page.goto('/events/risks-and-risk-assessments-a-look-at-californias-proposed-ai-privacy-regulations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Basic Rights' || t.startsWith('AI & Basic Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('events_risks_and_risk_assessments_a_look_at_californias_proposed_ai_privacy_regulations: nav link "AI in Public Policing"', async ({ page }) => { await page.goto('/events/risks-and-risk-assessments-a-look-at-californias-proposed-ai-privacy-regulations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Policing' || t.startsWith('AI in Public Policing')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('events_risks_and_risk_assessments_a_look_at_californias_proposed_ai_privacy_regulations: nav link "AI Reform"', async ({ page }) => { await page.goto('/events/risks-and-risk-assessments-a-look-at-californias-proposed-ai-privacy-regulations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Reform' || t.startsWith('AI Reform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - events_risks_and_risk_assessments_reporting_out_on_californias_proposed_ai_privacy_regulations', () => { test('events_risks_and_risk_assessments_reporting_out_on_californias_proposed_ai_privacy_regulations: title matches GT', async ({ page }) => { await page.goto('/events/risks-and-risk-assessments-reporting-out-on-californias-proposed-ai-privacy-regulations/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('risks and risk assessments'); }); test('events_risks_and_risk_assessments_reporting_out_on_californias_proposed_ai_privacy_regulations: h1 "Risk and Reckoning: A Public B"', async ({ page }) => { await page.goto('/events/risks-and-risk-assessments-reporting-out-on-californias-proposed-ai-privacy-regulations/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Risk and Reckoning: A Public Briefing on California’s Proposed AI & Privacy Regulations' || t.startsWith('Risk and Reckoning: A Public Briefing on California’s Proposed AI & Privacy Regulations'))).toBeTruthy(); }); test('events_risks_and_risk_assessments_reporting_out_on_californias_proposed_ai_privacy_regulations: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/events/risks-and-risk-assessments-reporting-out-on-californias-proposed-ai-privacy-regulations/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('events_risks_and_risk_assessments_reporting_out_on_californias_proposed_ai_privacy_regulations: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/events/risks-and-risk-assessments-reporting-out-on-californias-proposed-ai-privacy-regulations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('events_risks_and_risk_assessments_reporting_out_on_californias_proposed_ai_privacy_regulations: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/events/risks-and-risk-assessments-reporting-out-on-californias-proposed-ai-privacy-regulations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('events_risks_and_risk_assessments_reporting_out_on_californias_proposed_ai_privacy_regulations: nav link "AI Ethics"', async ({ page }) => { await page.goto('/events/risks-and-risk-assessments-reporting-out-on-californias-proposed-ai-privacy-regulations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_ai', () => { test('issues_ai: title matches GT', async ({ page }) => { await page.goto('/issues/ai/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('ai & human rights'); }); test('issues_ai: h1 "AI & Human Dignity"', async ({ page }) => { await page.goto('/issues/ai/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Dignity' || t.startsWith('AI & Human Dignity'))).toBeTruthy(); }); test('issues_ai: h2 "The Backdrop"', async ({ page }) => { await page.goto('/issues/ai/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Backdrop' || t.startsWith('The Backdrop'))).toBeTruthy(); }); test('issues_ai: h2 "Key Focus Areas in AI & Human "', async ({ page }) => { await page.goto('/issues/ai/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Key Focus Areas in AI & Human Dignity' || t.startsWith('Key Focus Areas in AI & Human Dignity'))).toBeTruthy(); }); test('issues_ai: h2 "Latest News"', async ({ page }) => { await page.goto('/issues/ai/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest News' || t.startsWith('Latest News'))).toBeTruthy(); }); test('issues_ai: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/ai/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_ai: nav link "AI & Human Rights"', async ({ page }) => { await page.goto('/issues/ai/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Rights' || t.startsWith('AI & Human Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_ai: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/issues/ai/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_ai: nav link "AI Rules"', async ({ page }) => { await page.goto('/issues/ai/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_consumer_privacy', () => { test('issues_consumer_privacy: title matches GT', async ({ page }) => { await page.goto('/issues/consumer-privacy/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('shopper privacy'); }); test('issues_consumer_privacy: h1 "Consumer Privacy"', async ({ page }) => { await page.goto('/issues/consumer-privacy/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Consumer Privacy' || t.startsWith('Consumer Privacy'))).toBeTruthy(); }); test('issues_consumer_privacy: h2 "Background"', async ({ page }) => { await page.goto('/issues/consumer-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_consumer_privacy: h2 "Key Focus Areas Within Consume"', async ({ page }) => { await page.goto('/issues/consumer-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Key Focus Areas Within Consumer Privacy' || t.startsWith('Key Focus Areas Within Consumer Privacy'))).toBeTruthy(); }); test('issues_consumer_privacy: h2 "Top Updates"', async ({ page }) => { await page.goto('/issues/consumer-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Top Updates' || t.startsWith('Top Updates'))).toBeTruthy(); }); test('issues_consumer_privacy: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/consumer-privacy/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_consumer_privacy: nav link "AI & Human Dignity"', async ({ page }) => { await page.goto('/issues/consumer-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Dignity' || t.startsWith('AI & Human Dignity')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_consumer_privacy: nav link "Automated Policing Tools"', async ({ page }) => { await page.goto('/issues/consumer-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Automated Policing Tools' || t.startsWith('Automated Policing Tools')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_consumer_privacy: nav link "AI Rules"', async ({ page }) => { await page.goto('/issues/consumer-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_ai_ai_in_the_criminal_justice_system', () => { test('issues_ai_ai_in_the_criminal_justice_system: title matches GT', async ({ page }) => { await page.goto('/issues/ai/ai-in-the-criminal-justice-system/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('ai in law enforcement'); }); test('issues_ai_ai_in_the_criminal_justice_system: h1 "AI in Policing Systems"', async ({ page }) => { await page.goto('/issues/ai/ai-in-the-criminal-justice-system/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems'))).toBeTruthy(); }); test('issues_ai_ai_in_the_criminal_justice_system: h2 "Background"', async ({ page }) => { await page.goto('/issues/ai/ai-in-the-criminal-justice-system/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_ai_ai_in_the_criminal_justice_system: h2 "Documents"', async ({ page }) => { await page.goto('/issues/ai/ai-in-the-criminal-justice-system/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documents' || t.startsWith('Documents'))).toBeTruthy(); }); test('issues_ai_ai_in_the_criminal_justice_system: h2 "Recent Filings on AI in Polici"', async ({ page }) => { await page.goto('/issues/ai/ai-in-the-criminal-justice-system/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recent Filings on AI in Policing Systems' || t.startsWith('Recent Filings on AI in Policing Systems'))).toBeTruthy(); }); test('issues_ai_ai_in_the_criminal_justice_system: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/ai/ai-in-the-criminal-justice-system/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_ai_ai_in_the_criminal_justice_system: nav link "AI & Civil Liberties"', async ({ page }) => { await page.goto('/issues/ai/ai-in-the-criminal-justice-system/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Liberties' || t.startsWith('AI & Civil Liberties')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_ai_ai_in_the_criminal_justice_system: nav link "AI in Public Safety"', async ({ page }) => { await page.goto('/issues/ai/ai-in-the-criminal-justice-system/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Public Safety' || t.startsWith('AI in Public Safety')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_ai_ai_in_the_criminal_justice_system: nav link "AI Reform"', async ({ page }) => { await page.goto('/issues/ai/ai-in-the-criminal-justice-system/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Reform' || t.startsWith('AI Reform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_ai_ai_policy', () => { test('issues_ai_ai_policy: title matches GT', async ({ page }) => { await page.goto('/issues/ai/ai-policy/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('ai policy'); }); test('issues_ai_ai_policy: h1 "AI Policy"', async ({ page }) => { await page.goto('/issues/ai/ai-policy/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy'))).toBeTruthy(); }); test('issues_ai_ai_policy: h2 "The Context"', async ({ page }) => { await page.goto('/issues/ai/ai-policy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Context' || t.startsWith('The Context'))).toBeTruthy(); }); test('issues_ai_ai_policy: h2 "Resources"', async ({ page }) => { await page.goto('/issues/ai/ai-policy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('issues_ai_ai_policy: h2 "Latest Documents on AI Policy"', async ({ page }) => { await page.goto('/issues/ai/ai-policy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest Documents on AI Policy' || t.startsWith('Latest Documents on AI Policy'))).toBeTruthy(); }); test('issues_ai_ai_policy: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/ai/ai-policy/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_ai_ai_policy: nav link "AI & Human Dignity"', async ({ page }) => { await page.goto('/issues/ai/ai-policy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Dignity' || t.startsWith('AI & Human Dignity')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_ai_ai_policy: nav link "AI in Policing Systems"', async ({ page }) => { await page.goto('/issues/ai/ai-policy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Systems' || t.startsWith('AI in Policing Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_ai_ai_policy: nav link "AI Policy"', async ({ page }) => { await page.goto('/issues/ai/ai-policy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_ai_chatbots', () => { test('issues_ai_chatbots: title matches GT', async ({ page }) => { await page.goto('/issues/ai/chatbots/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('chatbots'); }); test('issues_ai_chatbots: h1 "Chatbots"', async ({ page }) => { await page.goto('/issues/ai/chatbots/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Chatbots' || t.startsWith('Chatbots'))).toBeTruthy(); }); test('issues_ai_chatbots: h2 "Background"', async ({ page }) => { await page.goto('/issues/ai/chatbots/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_ai_chatbots: h2 "Documents"', async ({ page }) => { await page.goto('/issues/ai/chatbots/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documents' || t.startsWith('Documents'))).toBeTruthy(); }); test('issues_ai_chatbots: h2 "Recent Documents on Chatbots"', async ({ page }) => { await page.goto('/issues/ai/chatbots/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recent Documents on Chatbots' || t.startsWith('Recent Documents on Chatbots'))).toBeTruthy(); }); test('issues_ai_chatbots: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/ai/chatbots/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_ai_chatbots: nav link "AI & Basic Rights"', async ({ page }) => { await page.goto('/issues/ai/chatbots/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Basic Rights' || t.startsWith('AI & Basic Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_ai_chatbots: nav link "Policing & AI Systems"', async ({ page }) => { await page.goto('/issues/ai/chatbots/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Policing & AI Systems' || t.startsWith('Policing & AI Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_ai_chatbots: nav link "AI Reform"', async ({ page }) => { await page.goto('/issues/ai/chatbots/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Reform' || t.startsWith('AI Reform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_ai_commercial_ai_use', () => { test('issues_ai_commercial_ai_use: title matches GT', async ({ page }) => { await page.goto('/issues/ai/commercial-ai-use/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('commercial ai use'); }); test('issues_ai_commercial_ai_use: h1 "Corporate AI Use"', async ({ page }) => { await page.goto('/issues/ai/commercial-ai-use/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Corporate AI Use' || t.startsWith('Corporate AI Use'))).toBeTruthy(); }); test('issues_ai_commercial_ai_use: h2 "The Context"', async ({ page }) => { await page.goto('/issues/ai/commercial-ai-use/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Context' || t.startsWith('The Context'))).toBeTruthy(); }); test('issues_ai_commercial_ai_use: h2 "Resources"', async ({ page }) => { await page.goto('/issues/ai/commercial-ai-use/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('issues_ai_commercial_ai_use: h2 "Our Commercial AI Use Experts"', async ({ page }) => { await page.goto('/issues/ai/commercial-ai-use/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Commercial AI Use Experts' || t.startsWith('Our Commercial AI Use Experts'))).toBeTruthy(); }); test('issues_ai_commercial_ai_use: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/ai/commercial-ai-use/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_ai_commercial_ai_use: nav link "AI & Human Rights"', async ({ page }) => { await page.goto('/issues/ai/commercial-ai-use/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Rights' || t.startsWith('AI & Human Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_ai_commercial_ai_use: nav link "AI in Law Enforcement"', async ({ page }) => { await page.goto('/issues/ai/commercial-ai-use/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Law Enforcement' || t.startsWith('AI in Law Enforcement')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_ai_commercial_ai_use: nav link "AI Policy"', async ({ page }) => { await page.goto('/issues/ai/commercial-ai-use/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_ai_government_use_of_ai', () => { test('issues_ai_government_use_of_ai: title matches GT', async ({ page }) => { await page.goto('/issues/ai/government-use-of-ai/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('government use of ai'); }); test('issues_ai_government_use_of_ai: h1 "Government AI Systems"', async ({ page }) => { await page.goto('/issues/ai/government-use-of-ai/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Government AI Systems' || t.startsWith('Government AI Systems'))).toBeTruthy(); }); test('issues_ai_government_use_of_ai: h2 "The Context"', async ({ page }) => { await page.goto('/issues/ai/government-use-of-ai/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Context' || t.startsWith('The Context'))).toBeTruthy(); }); test('issues_ai_government_use_of_ai: h2 "Resources"', async ({ page }) => { await page.goto('/issues/ai/government-use-of-ai/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('issues_ai_government_use_of_ai: h2 "Latest Filings on Government U"', async ({ page }) => { await page.goto('/issues/ai/government-use-of-ai/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest Filings on Government Use of AI' || t.startsWith('Latest Filings on Government Use of AI'))).toBeTruthy(); }); test('issues_ai_government_use_of_ai: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/ai/government-use-of-ai/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_ai_government_use_of_ai: nav link "AI & Human Dignity"', async ({ page }) => { await page.goto('/issues/ai/government-use-of-ai/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Dignity' || t.startsWith('AI & Human Dignity')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_ai_government_use_of_ai: nav link "AI and Policing Tools"', async ({ page }) => { await page.goto('/issues/ai/government-use-of-ai/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI and Policing Tools' || t.startsWith('AI and Policing Tools')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_ai_government_use_of_ai: nav link "AI Ethics"', async ({ page }) => { await page.goto('/issues/ai/government-use-of-ai/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Ethics' || t.startsWith('AI Ethics')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_ai_risk_assessments', () => { test('issues_ai_risk_assessments: title matches GT', async ({ page }) => { await page.goto('/issues/ai/risk-assessments/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('risk assessments'); }); test('issues_ai_risk_assessments: h1 "Risk Assessments"', async ({ page }) => { await page.goto('/issues/ai/risk-assessments/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Risk Assessments' || t.startsWith('Risk Assessments'))).toBeTruthy(); }); test('issues_ai_risk_assessments: h2 "Background"', async ({ page }) => { await page.goto('/issues/ai/risk-assessments/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_ai_risk_assessments: h2 "Resources"', async ({ page }) => { await page.goto('/issues/ai/risk-assessments/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('issues_ai_risk_assessments: h2 "Latest Filings on Risk Assessm"', async ({ page }) => { await page.goto('/issues/ai/risk-assessments/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest Filings on Risk Assessments' || t.startsWith('Latest Filings on Risk Assessments'))).toBeTruthy(); }); test('issues_ai_risk_assessments: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/ai/risk-assessments/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_ai_risk_assessments: nav link "AI & Human Rights"', async ({ page }) => { await page.goto('/issues/ai/risk-assessments/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Rights' || t.startsWith('AI & Human Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_ai_risk_assessments: nav link "AI in Law Enforcement"', async ({ page }) => { await page.goto('/issues/ai/risk-assessments/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Law Enforcement' || t.startsWith('AI in Law Enforcement')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_ai_risk_assessments: nav link "AI Policy"', async ({ page }) => { await page.goto('/issues/ai/risk-assessments/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_ai_screening_scoring', () => { test('issues_ai_screening_scoring: title matches GT', async ({ page }) => { await page.goto('/issues/ai/screening-scoring/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('screening & scoring'); }); test('issues_ai_screening_scoring: h1 "Automated Screening"', async ({ page }) => { await page.goto('/issues/ai/screening-scoring/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Automated Screening' || t.startsWith('Automated Screening'))).toBeTruthy(); }); test('issues_ai_screening_scoring: h2 "Overview"', async ({ page }) => { await page.goto('/issues/ai/screening-scoring/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Overview' || t.startsWith('Overview'))).toBeTruthy(); }); test('issues_ai_screening_scoring: h2 "Resources"', async ({ page }) => { await page.goto('/issues/ai/screening-scoring/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('issues_ai_screening_scoring: h2 "Latest Records on Screening & "', async ({ page }) => { await page.goto('/issues/ai/screening-scoring/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest Records on Screening & Scoring' || t.startsWith('Latest Records on Screening & Scoring'))).toBeTruthy(); }); test('issues_ai_screening_scoring: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/ai/screening-scoring/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_ai_screening_scoring: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/issues/ai/screening-scoring/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_ai_screening_scoring: nav link "Policing & AI Systems"', async ({ page }) => { await page.goto('/issues/ai/screening-scoring/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Policing & AI Systems' || t.startsWith('Policing & AI Systems')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_ai_screening_scoring: nav link "AI Rules"', async ({ page }) => { await page.goto('/issues/ai/screening-scoring/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_consumer_privacy_communications_privacy', () => { test('issues_consumer_privacy_communications_privacy: title matches GT', async ({ page }) => { await page.goto('/issues/consumer-privacy/communications-privacy/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('communications privacy'); }); test('issues_consumer_privacy_communications_privacy: h1 "Communications Privacy"', async ({ page }) => { await page.goto('/issues/consumer-privacy/communications-privacy/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Communications Privacy' || t.startsWith('Communications Privacy'))).toBeTruthy(); }); test('issues_consumer_privacy_communications_privacy: h2 "Overview"', async ({ page }) => { await page.goto('/issues/consumer-privacy/communications-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Overview' || t.startsWith('Overview'))).toBeTruthy(); }); test('issues_consumer_privacy_communications_privacy: h2 "Resources"', async ({ page }) => { await page.goto('/issues/consumer-privacy/communications-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('issues_consumer_privacy_communications_privacy: h2 "Latest Filings on Communicatio"', async ({ page }) => { await page.goto('/issues/consumer-privacy/communications-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest Filings on Communications Privacy' || t.startsWith('Latest Filings on Communications Privacy'))).toBeTruthy(); }); test('issues_consumer_privacy_communications_privacy: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/consumer-privacy/communications-privacy/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_consumer_privacy_communications_privacy: nav link "AI & Human Rights"', async ({ page }) => { await page.goto('/issues/consumer-privacy/communications-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Human Rights' || t.startsWith('AI & Human Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_consumer_privacy_communications_privacy: nav link "AI in Law Enforcement"', async ({ page }) => { await page.goto('/issues/consumer-privacy/communications-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Law Enforcement' || t.startsWith('AI in Law Enforcement')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_consumer_privacy_communications_privacy: nav link "AI Policy"', async ({ page }) => { await page.goto('/issues/consumer-privacy/communications-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Policy' || t.startsWith('AI Policy')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - issues_consumer_privacy_competition_and_privacy', () => { test('issues_consumer_privacy_competition_and_privacy: title matches GT', async ({ page }) => { await page.goto('/issues/consumer-privacy/competition-and-privacy/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('competition and privacy'); }); test('issues_consumer_privacy_competition_and_privacy: h1 "Competition and Privacy"', async ({ page }) => { await page.goto('/issues/consumer-privacy/competition-and-privacy/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Competition and Privacy' || t.startsWith('Competition and Privacy'))).toBeTruthy(); }); test('issues_consumer_privacy_competition_and_privacy: h2 "Background"', async ({ page }) => { await page.goto('/issues/consumer-privacy/competition-and-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('issues_consumer_privacy_competition_and_privacy: h2 "Documents"', async ({ page }) => { await page.goto('/issues/consumer-privacy/competition-and-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documents' || t.startsWith('Documents'))).toBeTruthy(); }); test('issues_consumer_privacy_competition_and_privacy: h2 "Latest Filings on Competition "', async ({ page }) => { await page.goto('/issues/consumer-privacy/competition-and-privacy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest Filings on Competition and Privacy' || t.startsWith('Latest Filings on Competition and Privacy'))).toBeTruthy(); }); test('issues_consumer_privacy_competition_and_privacy: header link "Sentorra - Digital Privacy Rig"', async ({ page }) => { await page.goto('/issues/consumer-privacy/competition-and-privacy/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sentorra - Digital Privacy Rights Coalition Sentorra' || t.startsWith('Sentorra - Digital Privacy Rights Coalition Sentorra')), 'link text in header').toBeTruthy(); }); test('issues_consumer_privacy_competition_and_privacy: nav link "AI & Civil Rights"', async ({ page }) => { await page.goto('/issues/consumer-privacy/competition-and-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI & Civil Rights' || t.startsWith('AI & Civil Rights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai')), 'href fragment present').toBeTruthy(); }); test('issues_consumer_privacy_competition_and_privacy: nav link "AI in Policing Work"', async ({ page }) => { await page.goto('/issues/consumer-privacy/competition-and-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI in Policing Work' || t.startsWith('AI in Policing Work')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-in-the-criminal-justice-system')), 'href fragment present').toBeTruthy(); }); test('issues_consumer_privacy_competition_and_privacy: nav link "AI Rules"', async ({ page }) => { await page.goto('/issues/consumer-privacy/competition-and-privacy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AI Rules' || t.startsWith('AI Rules')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('ai-policy')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - Routing', () => { test('navigate to stop_the_surveillance_state via "Join Sentorra\'s push to END TH"', async ({ page }) => { await page.goto('/'); const link = page.locator('a[href*="stop-the-surveillance-state"]').first(); expect(await link.count(), 'nav link to stop_the_surveillance_state exists').toBeGreaterThan(0); await link.click(); await page.waitForTimeout(1200); expect(page.url().toLowerCase(), 'URL changed to destination').toContain('stop-the-surveillance-state'); const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); expect(bodyText, 'destination distinctive content shown').toContain('Support Our Work'); }); test('navigate to issues_ai via "AI & Civil Liberties"', async ({ page }) => { await page.goto('/'); const link = page.locator('a[href*="ai"]').first(); expect(await link.count(), 'nav link to issues_ai exists').toBeGreaterThan(0); await link.click(); await page.waitForTimeout(1200); expect(page.url().toLowerCase(), 'URL changed to destination').toContain('ai'); const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); expect(bodyText, 'destination distinctive content shown').toContain('AI & Human Dignity'); }); test('navigate to issues_ai_ai_in_the_criminal_justice_system via "AI in Public Safety"', async ({ page }) => { await page.goto('/'); const link = page.locator('a[href*="ai-in-the-criminal-justice-system"]').first(); expect(await link.count(), 'nav link to issues_ai_ai_in_the_criminal_justice_system exists').toBeGreaterThan(0); await link.click(); await page.waitForTimeout(1200); expect(page.url().toLowerCase(), 'URL changed to destination').toContain('ai-in-the-criminal-justice-system'); const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); expect(bodyText, 'destination distinctive content shown').toContain('AI in Policing Systems'); }); });