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('streamora'); }); test('homepage: h1 "How It Works"', async ({ page }) => { await page.goto('/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How It Works' || t.startsWith('How It Works'))).toBeTruthy(); }); test('homepage: h2 "CARRY YOUR MEDIA ANYWHERE WITH"', async ({ page }) => { await page.goto('/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'CARRY YOUR MEDIA ANYWHERE WITH STREAMORA' || t.startsWith('CARRY YOUR MEDIA ANYWHERE WITH STREAMORA'))).toBeTruthy(); }); test('homepage: h2 "Your personal media on every d"', async ({ page }) => { await page.goto('/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Your personal media on every device' || t.startsWith('Your personal media on every device'))).toBeTruthy(); }); test('homepage: h2 "MEDIA MADE EFFORTLESS"', async ({ page }) => { await page.goto('/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'MEDIA MADE EFFORTLESS' || t.startsWith('MEDIA MADE EFFORTLESS'))).toBeTruthy(); }); test('homepage: nav link "ABOUT"', 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 === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('homepage: nav link "BLOG"', 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 === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('homepage: nav link "DOWNLOAD"', 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 === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('homepage: nav link "STREAMORA PLUS"', 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 === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - about_html', () => { test('about_html: title matches GT', async ({ page }) => { await page.goto('/about.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('media your way'); }); test('about_html: h1 "Your Media, Your Rules"', async ({ page }) => { await page.goto('/about.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Your Media, Your Rules' || t.startsWith('Your Media, Your Rules'))).toBeTruthy(); }); test('about_html: h3 "Ready to begin grab Streamora "', async ({ page }) => { await page.goto('/about.html'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ready to begin grab Streamora Server or open a demo app.' || t.startsWith('Ready to begin grab Streamora Server or open a demo app.'))).toBeTruthy(); }); test('about_html: h4 "Your Media, Every Device"', async ({ page }) => { await page.goto('/about.html'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Your Media, Every Device' || t.startsWith('Your Media, Every Device'))).toBeTruthy(); }); test('about_html: h4 "Simple Access"', async ({ page }) => { await page.goto('/about.html'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Simple Access' || t.startsWith('Simple Access'))).toBeTruthy(); }); test('about_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/about.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('about_html: nav link "BLOG"', async ({ page }) => { await page.goto('/about.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('about_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/about.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('about_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/about.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - community', () => { test('community: title matches GT', async ({ page }) => { await page.goto('/community/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora community forums'); }); test('community: h1 "Forums"', async ({ page }) => { await page.goto('/community/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Forums' || t.startsWith('Forums'))).toBeTruthy(); }); test('community: h2 "General"', async ({ page }) => { await page.goto('/community/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'General' || t.startsWith('General'))).toBeTruthy(); }); test('community: h2 "Streamora Server"', async ({ page }) => { await page.goto('/community/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Server' || t.startsWith('Streamora Server'))).toBeTruthy(); }); test('community: h2 "Streamora Apps"', async ({ page }) => { await page.goto('/community/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Apps' || t.startsWith('Streamora Apps'))).toBeTruthy(); }); test('community: header link "Already a member? Sign In"', async ({ page }) => { await page.goto('/community/'); 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 === 'Already a member? Sign In' || t.startsWith('Already a member? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community: header link "Reset your password?"', async ({ page }) => { await page.goto('/community/'); 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 === 'Reset your password?' || t.startsWith('Reset your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community: header link "Sign Up"', async ({ page }) => { await page.goto('/community/'); 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 === 'Sign Up' || t.startsWith('Sign Up')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community: nav link "Website"', async ({ page }) => { await page.goto('/community/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Website' || t.startsWith('Website')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - download_html', () => { test('download_html: title matches GT', async ({ page }) => { await page.goto('/download.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('download streamora'); }); test('download_html: h1 "Download Streamora"', async ({ page }) => { await page.goto('/download.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download Streamora' || t.startsWith('Download Streamora'))).toBeTruthy(); }); test('download_html: h2 "Streamora Server"', async ({ page }) => { await page.goto('/download.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Server' || t.startsWith('Streamora Server'))).toBeTruthy(); }); test('download_html: h2 "Streamora Apps & Devices"', async ({ page }) => { await page.goto('/download.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Apps & Devices' || t.startsWith('Streamora Apps & Devices'))).toBeTruthy(); }); test('download_html: h2 "Stable Release"', async ({ page }) => { await page.goto('/download.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stable Release' || t.startsWith('Stable Release'))).toBeTruthy(); }); test('download_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/download.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('download_html: nav link "BLOG"', async ({ page }) => { await page.goto('/download.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('download_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/download.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('download_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/download.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - index_html', () => { test('index_html: title matches GT', async ({ page }) => { await page.goto('/index.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora'); }); test('index_html: h1 "How It Works"', async ({ page }) => { await page.goto('/index.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How It Works' || t.startsWith('How It Works'))).toBeTruthy(); }); test('index_html: h2 "CARRY YOUR MEDIA ANYWHERE WITH"', async ({ page }) => { await page.goto('/index.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'CARRY YOUR MEDIA ANYWHERE WITH STREAMORA' || t.startsWith('CARRY YOUR MEDIA ANYWHERE WITH STREAMORA'))).toBeTruthy(); }); test('index_html: h2 "Your personal media on every d"', async ({ page }) => { await page.goto('/index.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Your personal media on every device' || t.startsWith('Your personal media on every device'))).toBeTruthy(); }); test('index_html: h2 "MEDIA MADE EFFORTLESS"', async ({ page }) => { await page.goto('/index.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'MEDIA MADE EFFORTLESS' || t.startsWith('MEDIA MADE EFFORTLESS'))).toBeTruthy(); }); test('index_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/index.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('index_html: nav link "BLOG"', async ({ page }) => { await page.goto('/index.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('index_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/index.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('index_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/index.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - premiere_html', () => { test('premiere_html: title matches GT', async ({ page }) => { await page.goto('/premiere.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora plus'); }); test('premiere_html: h1 "Streamora Plus"', async ({ page }) => { await page.goto('/premiere.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Plus' || t.startsWith('Streamora Plus'))).toBeTruthy(); }); test('premiere_html: h1 "Choose a License"', async ({ page }) => { await page.goto('/premiere.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Choose a License' || t.startsWith('Choose a License'))).toBeTruthy(); }); test('premiere_html: h1 "Streamora Plus Features"', async ({ page }) => { await page.goto('/premiere.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Plus Features' || t.startsWith('Streamora Plus Features'))).toBeTruthy(); }); test('premiere_html: h1 "License Options"', async ({ page }) => { await page.goto('/premiere.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'License Options' || t.startsWith('License Options'))).toBeTruthy(); }); test('premiere_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/premiere.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('premiere_html: nav link "BLOG"', async ({ page }) => { await page.goto('/premiere.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('premiere_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/premiere.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('premiere_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/premiere.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - privacy_html', () => { test('privacy_html: title matches GT', async ({ page }) => { await page.goto('/privacy.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora privacy policy'); }); test('privacy_html: h1 "Streamora Privacy Policy"', async ({ page }) => { await page.goto('/privacy.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Privacy Policy' || t.startsWith('Streamora Privacy Policy'))).toBeTruthy(); }); test('privacy_html: h3 "What Information the Website G"', async ({ page }) => { await page.goto('/privacy.html'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'What Information the Website Gathers and How Streamora Puts It to Use' || t.startsWith('What Information the Website Gathers and How Streamora Puts It to Use'))).toBeTruthy(); }); test('privacy_html: h3 "How We Share Information"', async ({ page }) => { await page.goto('/privacy.html'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How We Share Information' || t.startsWith('How We Share Information'))).toBeTruthy(); }); test('privacy_html: h3 "Your Options"', async ({ page }) => { await page.goto('/privacy.html'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Your Options' || t.startsWith('Your Options'))).toBeTruthy(); }); test('privacy_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/privacy.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('privacy_html: nav link "BLOG"', async ({ page }) => { await page.goto('/privacy.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('privacy_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/privacy.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('privacy_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/privacy.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - support', () => { test('support: title matches GT', async ({ page }) => { await page.goto('/support/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora support home'); }); test('support: h1 "Streamora Help Home"', async ({ page }) => { await page.goto('/support/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Help Home' || t.startsWith('Streamora Help Home'))).toBeTruthy(); }); test('support: h1 "POPULAR TOPICS"', async ({ page }) => { await page.goto('/support/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'POPULAR TOPICS' || t.startsWith('POPULAR TOPICS'))).toBeTruthy(); }); test('support: h2 "Search the Help Library"', async ({ page }) => { await page.goto('/support/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Search the Help Library' || t.startsWith('Search the Help Library'))).toBeTruthy(); }); test('support: h2 "Server"', async ({ page }) => { await page.goto('/support/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Server' || t.startsWith('Server'))).toBeTruthy(); }); test('support: nav link "About"', async ({ page }) => { await page.goto('/support/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('support: nav link "Blog"', async ({ page }) => { await page.goto('/support/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog.html')), 'href fragment present').toBeTruthy(); }); test('support: nav link "Download"', async ({ page }) => { await page.goto('/support/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download' || t.startsWith('Download')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('support: nav link "Streamora Plus"', async ({ page }) => { await page.goto('/support/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Plus' || t.startsWith('Streamora Plus')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - terms_html', () => { test('terms_html: title matches GT', async ({ page }) => { await page.goto('/terms.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora terms of service'); }); test('terms_html: h1 "Streamora Terms of Service"', async ({ page }) => { await page.goto('/terms.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Terms of Service' || t.startsWith('Streamora Terms of Service'))).toBeTruthy(); }); test('terms_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/terms.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('terms_html: nav link "BLOG"', async ({ page }) => { await page.goto('/terms.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('terms_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/terms.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('terms_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/terms.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - asustor_server_html', () => { test('asustor_server_html: title matches GT', async ({ page }) => { await page.goto('/asustor-server.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora server for astronim nas'); }); test('asustor_server_html: h1 "Streamora Server for Astronim"', async ({ page }) => { await page.goto('/asustor-server.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Server for Astronim' || t.startsWith('Streamora Server for Astronim'))).toBeTruthy(); }); test('asustor_server_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/asustor-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('asustor_server_html: nav link "BLOG"', async ({ page }) => { await page.goto('/asustor-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('asustor_server_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/asustor-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('asustor_server_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/asustor-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - community_blogs', () => { test('community_blogs: title matches GT', async ({ page }) => { await page.goto('/community/blogs/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('blogs'); }); test('community_blogs: h1 "Posts"', async ({ page }) => { await page.goto('/community/blogs/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Posts' || t.startsWith('Posts'))).toBeTruthy(); }); test('community_blogs: h2 "Streamora for Lumio 1.0.50 Liv"', async ({ page }) => { await page.goto('/community/blogs/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora for Lumio 1.0.50 Live' || t.startsWith('Streamora for Lumio 1.0.50 Live'))).toBeTruthy(); }); test('community_blogs: h2 "Streamora Server 4.9.3 Out"', async ({ page }) => { await page.goto('/community/blogs/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Server 4.9.3 Out' || t.startsWith('Streamora Server 4.9.3 Out'))).toBeTruthy(); }); test('community_blogs: h2 "Streamora Linux: The Public Be"', async ({ page }) => { await page.goto('/community/blogs/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Linux: The Public Beta Is Live!' || t.startsWith('Streamora Linux: The Public Beta Is Live!'))).toBeTruthy(); }); test('community_blogs: header link "Already a member? Log In"', async ({ page }) => { await page.goto('/community/blogs/'); 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 === 'Already a member? Log In' || t.startsWith('Already a member? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_blogs: header link "Trouble signing in?"', async ({ page }) => { await page.goto('/community/blogs/'); 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 === 'Trouble signing in?' || t.startsWith('Trouble signing in?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_blogs: header link "Join Now"', async ({ page }) => { await page.goto('/community/blogs/'); 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 === 'Join Now' || t.startsWith('Join Now')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_blogs: nav link "Our Site"', async ({ page }) => { await page.goto('/community/blogs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Site' || t.startsWith('Our Site')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_discover', () => { test('community_discover: title matches GT', async ({ page }) => { await page.goto('/community/discover/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('all updates'); }); test('community_discover: h1 "All Updates"', async ({ page }) => { await page.goto('/community/discover/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'All Updates' || t.startsWith('All Updates'))).toBeTruthy(); }); test('community_discover: h2 "Plugin: MarkerDB – Streamora P"', async ({ page }) => { await page.goto('/community/discover/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plugin: MarkerDB – Streamora Plugin' || t.startsWith('Plugin: MarkerDB – Streamora Plugin'))).toBeTruthy(); }); test('community_discover: h2 "Plugin: ViewerLens - Session c"', async ({ page }) => { await page.goto('/community/discover/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plugin: ViewerLens - Session control' || t.startsWith('Plugin: ViewerLens - Session control'))).toBeTruthy(); }); test('community_discover: h2 "Plugin: GlyphPacks release."', async ({ page }) => { await page.goto('/community/discover/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plugin: GlyphPacks release.' || t.startsWith('Plugin: GlyphPacks release.'))).toBeTruthy(); }); test('community_discover: header link "Returning user? Log In"', async ({ page }) => { await page.goto('/community/discover/'); 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 === 'Returning user? Log In' || t.startsWith('Returning user? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_discover: header link "Reset your password?"', async ({ page }) => { await page.goto('/community/discover/'); 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 === 'Reset your password?' || t.startsWith('Reset your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_discover: header link "Join Us"', async ({ page }) => { await page.goto('/community/discover/'); 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 === 'Join Us' || t.startsWith('Join Us')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_discover: nav link "Our Site"', async ({ page }) => { await page.goto('/community/discover/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Site' || t.startsWith('Our Site')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_staff', () => { test('community_staff: title matches GT', async ({ page }) => { await page.goto('/community/staff/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('staff directory'); }); test('community_staff: h1 "Meet the Team"', async ({ page }) => { await page.goto('/community/staff/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Meet the Team' || t.startsWith('Meet the Team'))).toBeTruthy(); }); test('community_staff: h2 "Administrators"', async ({ page }) => { await page.goto('/community/staff/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Administrators' || t.startsWith('Administrators'))).toBeTruthy(); }); test('community_staff: h2 "Tech Support"', async ({ page }) => { await page.goto('/community/staff/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Tech Support' || t.startsWith('Tech Support'))).toBeTruthy(); }); test('community_staff: h2 "Moderators"', async ({ page }) => { await page.goto('/community/staff/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Moderators' || t.startsWith('Moderators'))).toBeTruthy(); }); test('community_staff: header link "Already a member? Sign In"', async ({ page }) => { await page.goto('/community/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 === 'Already a member? Sign In' || t.startsWith('Already a member? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_staff: header link "Forgot your password?"', async ({ page }) => { await page.goto('/community/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 === 'Forgot your password?' || t.startsWith('Forgot your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_staff: header link "Sign Up"', async ({ page }) => { await page.goto('/community/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 === 'Sign Up' || t.startsWith('Sign Up')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_staff: nav link "Website"', async ({ page }) => { await page.goto('/community/staff/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Website' || t.startsWith('Website')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - connect_html', () => { test('connect_html: title matches GT', async ({ page }) => { await page.goto('/connect.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('connect'); }); test('connect_html: h1 "Streamora Connect"', async ({ page }) => { await page.goto('/connect.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Connect' || t.startsWith('Streamora Connect'))).toBeTruthy(); }); test('connect_html: h2 "Reaching Your Personal Media H"', async ({ page }) => { await page.goto('/connect.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reaching Your Personal Media Has Never Felt This Simple' || t.startsWith('Reaching Your Personal Media Has Never Felt This Simple'))).toBeTruthy(); }); test('connect_html: h3 "Sign Up"', async ({ page }) => { await page.goto('/connect.html'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sign Up' || t.startsWith('Sign Up'))).toBeTruthy(); }); test('connect_html: h3 "Sign In"', async ({ page }) => { await page.goto('/connect.html'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sign In' || t.startsWith('Sign In'))).toBeTruthy(); }); test('connect_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/connect.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('connect_html: nav link "BLOG"', async ({ page }) => { await page.goto('/connect.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('connect_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/connect.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('connect_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/connect.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docker_server_html', () => { test('docker_server_html: title matches GT', async ({ page }) => { await page.goto('/docker-server.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora server for'); }); test('docker_server_html: h1 "Streamora Server for Docker"', async ({ page }) => { await page.goto('/docker-server.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Server for Docker' || t.startsWith('Streamora Server for Docker'))).toBeTruthy(); }); test('docker_server_html: h2 "Installation"', async ({ page }) => { await page.goto('/docker-server.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Installation' || t.startsWith('Installation'))).toBeTruthy(); }); test('docker_server_html: h4 "Resources"', async ({ page }) => { await page.goto('/docker-server.html'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('docker_server_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/docker-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('docker_server_html: nav link "BLOG"', async ({ page }) => { await page.goto('/docker-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('docker_server_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/docker-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('docker_server_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/docker-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - streamora_for_android_html', () => { test('streamora_for_android_html: title matches GT', async ({ page }) => { await page.goto('/streamora-for-android.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora for android'); }); test('streamora_for_android_html: h1 "Streamora Android"', async ({ page }) => { await page.goto('/streamora-for-android.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Android' || t.startsWith('Streamora Android'))).toBeTruthy(); }); test('streamora_for_android_html: h2 "Set Up the App"', async ({ page }) => { await page.goto('/streamora-for-android.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Set Up the App' || t.startsWith('Set Up the App'))).toBeTruthy(); }); test('streamora_for_android_html: h2 "Get the Apk File"', async ({ page }) => { await page.goto('/streamora-for-android.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Get the Apk File' || t.startsWith('Get the Apk File'))).toBeTruthy(); }); test('streamora_for_android_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/streamora-for-android.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('streamora_for_android_html: nav link "NEWS"', async ({ page }) => { await page.goto('/streamora-for-android.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'NEWS' || t.startsWith('NEWS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('streamora_for_android_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/streamora-for-android.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('streamora_for_android_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/streamora-for-android.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - streamora_for_android_tv_html', () => { test('streamora_for_android_tv_html: title matches GT', async ({ page }) => { await page.goto('/streamora-for-android-tv.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora for android tv'); }); test('streamora_for_android_tv_html: h1 "Streamora for Android TV"', async ({ page }) => { await page.goto('/streamora-for-android-tv.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora for Android TV' || t.startsWith('Streamora for Android TV'))).toBeTruthy(); }); test('streamora_for_android_tv_html: h2 "What you want to watch, front "', async ({ page }) => { await page.goto('/streamora-for-android-tv.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'What you want to watch, front and center' || t.startsWith('What you want to watch, front and center'))).toBeTruthy(); }); test('streamora_for_android_tv_html: h2 "Quick, easy browsing"', async ({ page }) => { await page.goto('/streamora-for-android-tv.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Quick, easy browsing' || t.startsWith('Quick, easy browsing'))).toBeTruthy(); }); test('streamora_for_android_tv_html: h2 "Built for the Latest Android F"', async ({ page }) => { await page.goto('/streamora-for-android-tv.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Built for the Latest Android Features' || t.startsWith('Built for the Latest Android Features'))).toBeTruthy(); }); test('streamora_for_android_tv_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/streamora-for-android-tv.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('streamora_for_android_tv_html: nav link "BLOG"', async ({ page }) => { await page.goto('/streamora-for-android-tv.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('streamora_for_android_tv_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/streamora-for-android-tv.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('streamora_for_android_tv_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/streamora-for-android-tv.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - streamora_for_appletv_html', () => { test('streamora_for_appletv_html: title matches GT', async ({ page }) => { await page.goto('/streamora-for-appletv.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora for cortex tv'); }); test('streamora_for_appletv_html: h1 "Streamora for Cortex TV"', async ({ page }) => { await page.goto('/streamora-for-appletv.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora for Cortex TV' || t.startsWith('Streamora for Cortex TV'))).toBeTruthy(); }); test('streamora_for_appletv_html: h2 "Now available on your 4th Gen "', async ({ page }) => { await page.goto('/streamora-for-appletv.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Now available on your 4th Gen Cortex TV' || t.startsWith('Now available on your 4th Gen Cortex TV'))).toBeTruthy(); }); test('streamora_for_appletv_html: h2 "Clever Home Screen"', async ({ page }) => { await page.goto('/streamora-for-appletv.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Clever Home Screen' || t.startsWith('Clever Home Screen'))).toBeTruthy(); }); test('streamora_for_appletv_html: h2 "Browse With Ease"', async ({ page }) => { await page.goto('/streamora-for-appletv.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Browse With Ease' || t.startsWith('Browse With Ease'))).toBeTruthy(); }); test('streamora_for_appletv_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/streamora-for-appletv.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('streamora_for_appletv_html: nav link "BLOG"', async ({ page }) => { await page.goto('/streamora-for-appletv.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('streamora_for_appletv_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/streamora-for-appletv.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('streamora_for_appletv_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/streamora-for-appletv.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - streamora_for_chromecast_html', () => { test('streamora_for_chromecast_html: title matches GT', async ({ page }) => { await page.goto('/streamora-for-chromecast.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora for beamcast'); }); test('streamora_for_chromecast_html: h1 "Streamora for Beamcast"', async ({ page }) => { await page.goto('/streamora-for-chromecast.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora for Beamcast' || t.startsWith('Streamora for Beamcast'))).toBeTruthy(); }); test('streamora_for_chromecast_html: h2 "Remote Control from Streamora"', async ({ page }) => { await page.goto('/streamora-for-chromecast.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Remote Control from Streamora' || t.startsWith('Remote Control from Streamora'))).toBeTruthy(); }); test('streamora_for_chromecast_html: h2 "Works with the Newest Beamcast"', async ({ page }) => { await page.goto('/streamora-for-chromecast.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Works with the Newest Beamcast Features' || t.startsWith('Works with the Newest Beamcast Features'))).toBeTruthy(); }); test('streamora_for_chromecast_html: h2 "How it Works"', async ({ page }) => { await page.goto('/streamora-for-chromecast.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How it Works' || t.startsWith('How it Works'))).toBeTruthy(); }); test('streamora_for_chromecast_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/streamora-for-chromecast.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('streamora_for_chromecast_html: nav link "BLOG"', async ({ page }) => { await page.goto('/streamora-for-chromecast.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('streamora_for_chromecast_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/streamora-for-chromecast.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('streamora_for_chromecast_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/streamora-for-chromecast.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - streamora_for_fire_tv_html', () => { test('streamora_for_fire_tv_html: title matches GT', async ({ page }) => { await page.goto('/streamora-for-fire-tv.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora for ember tv'); }); test('streamora_for_fire_tv_html: h1 "Streamora for Ember TV"', async ({ page }) => { await page.goto('/streamora-for-fire-tv.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora for Ember TV' || t.startsWith('Streamora for Ember TV'))).toBeTruthy(); }); test('streamora_for_fire_tv_html: h2 "Everything worth watching, rig"', async ({ page }) => { await page.goto('/streamora-for-fire-tv.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Everything worth watching, right up front' || t.startsWith('Everything worth watching, right up front'))).toBeTruthy(); }); test('streamora_for_fire_tv_html: h2 "Quick, simple browsing"', async ({ page }) => { await page.goto('/streamora-for-fire-tv.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Quick, simple browsing' || t.startsWith('Quick, simple browsing'))).toBeTruthy(); }); test('streamora_for_fire_tv_html: h2 "Rediscover your collection"', async ({ page }) => { await page.goto('/streamora-for-fire-tv.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Rediscover your collection' || t.startsWith('Rediscover your collection'))).toBeTruthy(); }); test('streamora_for_fire_tv_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/streamora-for-fire-tv.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('streamora_for_fire_tv_html: nav link "BLOG"', async ({ page }) => { await page.goto('/streamora-for-fire-tv.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('streamora_for_fire_tv_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/streamora-for-fire-tv.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('streamora_for_fire_tv_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/streamora-for-fire-tv.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - streamora_for_ios_html', () => { test('streamora_for_ios_html: title matches GT', async ({ page }) => { await page.goto('/streamora-for-ios.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora for ios'); }); test('streamora_for_ios_html: h1 "Streamora for iOS"', async ({ page }) => { await page.goto('/streamora-for-ios.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora for iOS' || t.startsWith('Streamora for iOS'))).toBeTruthy(); }); test('streamora_for_ios_html: h4 "Download"', async ({ page }) => { await page.goto('/streamora-for-ios.html'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download' || t.startsWith('Download'))).toBeTruthy(); }); test('streamora_for_ios_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/streamora-for-ios.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('streamora_for_ios_html: nav link "BLOG"', async ({ page }) => { await page.goto('/streamora-for-ios.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('streamora_for_ios_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/streamora-for-ios.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('streamora_for_ios_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/streamora-for-ios.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - streamora_for_kodi_html', () => { test('streamora_for_kodi_html: title matches GT', async ({ page }) => { await page.goto('/streamora-for-kodi.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora for mythra'); }); test('streamora_for_kodi_html: h1 "Streamora Add-ons for Mythra"', async ({ page }) => { await page.goto('/streamora-for-kodi.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Add-ons for Mythra' || t.startsWith('Streamora Add-ons for Mythra'))).toBeTruthy(); }); test('streamora_for_kodi_html: h2 "Install the StreamCon Add-on"', async ({ page }) => { await page.goto('/streamora-for-kodi.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Install the StreamCon Add-on' || t.startsWith('Install the StreamCon Add-on'))).toBeTruthy(); }); test('streamora_for_kodi_html: h2 "Or Use the Streamora for Mythr"', async ({ page }) => { await page.goto('/streamora-for-kodi.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Or Use the Streamora for Mythra Sync' || t.startsWith('Or Use the Streamora for Mythra Sync'))).toBeTruthy(); }); test('streamora_for_kodi_html: h2 "Gallery"', async ({ page }) => { await page.goto('/streamora-for-kodi.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Gallery' || t.startsWith('Gallery'))).toBeTruthy(); }); test('streamora_for_kodi_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/streamora-for-kodi.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('streamora_for_kodi_html: nav link "BLOG"', async ({ page }) => { await page.goto('/streamora-for-kodi.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('streamora_for_kodi_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/streamora-for-kodi.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('streamora_for_kodi_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/streamora-for-kodi.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - streamora_for_lg_smart_tv_html', () => { test('streamora_for_lg_smart_tv_html: title matches GT', async ({ page }) => { await page.goto('/streamora-for-lg-smart-tv.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora for lumio smart tv'); }); test('streamora_for_lg_smart_tv_html: h1 "Streamora on Lumio Smart TVs"', async ({ page }) => { await page.goto('/streamora-for-lg-smart-tv.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora on Lumio Smart TVs' || t.startsWith('Streamora on Lumio Smart TVs'))).toBeTruthy(); }); test('streamora_for_lg_smart_tv_html: h2 "What matters most - right wher"', async ({ page }) => { await page.goto('/streamora-for-lg-smart-tv.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'What matters most - right where you land' || t.startsWith('What matters most - right where you land'))).toBeTruthy(); }); test('streamora_for_lg_smart_tv_html: h2 "Download"', async ({ page }) => { await page.goto('/streamora-for-lg-smart-tv.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download' || t.startsWith('Download'))).toBeTruthy(); }); test('streamora_for_lg_smart_tv_html: h2 "Fast, simple browsing"', async ({ page }) => { await page.goto('/streamora-for-lg-smart-tv.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Fast, simple browsing' || t.startsWith('Fast, simple browsing'))).toBeTruthy(); }); test('streamora_for_lg_smart_tv_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/streamora-for-lg-smart-tv.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('streamora_for_lg_smart_tv_html: nav link "BLOG"', async ({ page }) => { await page.goto('/streamora-for-lg-smart-tv.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('streamora_for_lg_smart_tv_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/streamora-for-lg-smart-tv.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('streamora_for_lg_smart_tv_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/streamora-for-lg-smart-tv.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - streamora_for_nvidiashield_html', () => { test('streamora_for_nvidiashield_html: title matches GT', async ({ page }) => { await page.goto('/streamora-for-nvidiashield.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vantyr shield app'); }); test('streamora_for_nvidiashield_html: h1 "Vantyr Shield Streaming"', async ({ page }) => { await page.goto('/streamora-for-nvidiashield.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vantyr Shield Streaming' || t.startsWith('Vantyr Shield Streaming'))).toBeTruthy(); }); test('streamora_for_nvidiashield_html: h2 "The shows you love, front and "', async ({ page }) => { await page.goto('/streamora-for-nvidiashield.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The shows you love, front and center' || t.startsWith('The shows you love, front and center'))).toBeTruthy(); }); test('streamora_for_nvidiashield_html: h2 "Browse it in a snap"', async ({ page }) => { await page.goto('/streamora-for-nvidiashield.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Browse it in a snap' || t.startsWith('Browse it in a snap'))).toBeTruthy(); }); test('streamora_for_nvidiashield_html: h2 "Built for the Newest Android F"', async ({ page }) => { await page.goto('/streamora-for-nvidiashield.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Built for the Newest Android Features' || t.startsWith('Built for the Newest Android Features'))).toBeTruthy(); }); test('streamora_for_nvidiashield_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/streamora-for-nvidiashield.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('streamora_for_nvidiashield_html: nav link "BLOG"', async ({ page }) => { await page.goto('/streamora-for-nvidiashield.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('streamora_for_nvidiashield_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/streamora-for-nvidiashield.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('streamora_for_nvidiashield_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/streamora-for-nvidiashield.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - streamora_for_roku_html', () => { test('streamora_for_roku_html: title matches GT', async ({ page }) => { await page.goto('/streamora-for-roku.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora for vireo'); }); test('streamora_for_roku_html: h1 "Streamora for Vireo"', async ({ page }) => { await page.goto('/streamora-for-roku.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora for Vireo' || t.startsWith('Streamora for Vireo'))).toBeTruthy(); }); test('streamora_for_roku_html: h2 "Clever Home Screen"', async ({ page }) => { await page.goto('/streamora-for-roku.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Clever Home Screen' || t.startsWith('Clever Home Screen'))).toBeTruthy(); }); test('streamora_for_roku_html: h2 "Browse with Ease"', async ({ page }) => { await page.goto('/streamora-for-roku.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Browse with Ease' || t.startsWith('Browse with Ease'))).toBeTruthy(); }); test('streamora_for_roku_html: h2 "Get All the Details"', async ({ page }) => { await page.goto('/streamora-for-roku.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Get All the Details' || t.startsWith('Get All the Details'))).toBeTruthy(); }); test('streamora_for_roku_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/streamora-for-roku.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('streamora_for_roku_html: nav link "BLOG"', async ({ page }) => { await page.goto('/streamora-for-roku.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('streamora_for_roku_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/streamora-for-roku.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('streamora_for_roku_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/streamora-for-roku.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - streamora_for_samsung_smart_tv_html', () => { test('streamora_for_samsung_smart_tv_html: title matches GT', async ({ page }) => { await page.goto('/streamora-for-samsung-smart-tv.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora for solstra smart tv'); }); test('streamora_for_samsung_smart_tv_html: h1 "Streamora for Solstra Smart TV"', async ({ page }) => { await page.goto('/streamora-for-samsung-smart-tv.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora for Solstra Smart TV' || t.startsWith('Streamora for Solstra Smart TV'))).toBeTruthy(); }); test('streamora_for_samsung_smart_tv_html: h2 "Your next watch – right there "', async ({ page }) => { await page.goto('/streamora-for-samsung-smart-tv.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Your next watch – right there up front' || t.startsWith('Your next watch – right there up front'))).toBeTruthy(); }); test('streamora_for_samsung_smart_tv_html: h2 "Download"', async ({ page }) => { await page.goto('/streamora-for-samsung-smart-tv.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download' || t.startsWith('Download'))).toBeTruthy(); }); test('streamora_for_samsung_smart_tv_html: h2 "Quick, simple browsing"', async ({ page }) => { await page.goto('/streamora-for-samsung-smart-tv.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Quick, simple browsing' || t.startsWith('Quick, simple browsing'))).toBeTruthy(); }); test('streamora_for_samsung_smart_tv_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/streamora-for-samsung-smart-tv.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('streamora_for_samsung_smart_tv_html: nav link "BLOG"', async ({ page }) => { await page.goto('/streamora-for-samsung-smart-tv.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('streamora_for_samsung_smart_tv_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/streamora-for-samsung-smart-tv.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('streamora_for_samsung_smart_tv_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/streamora-for-samsung-smart-tv.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - streamora_for_windows_html', () => { test('streamora_for_windows_html: title matches GT', async ({ page }) => { await page.goto('/streamora-for-windows.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('windows app'); }); test('streamora_for_windows_html: h1 "Streamora for Windows"', async ({ page }) => { await page.goto('/streamora-for-windows.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora for Windows' || t.startsWith('Streamora for Windows'))).toBeTruthy(); }); test('streamora_for_windows_html: h2 "The Content You Want, Right Up"', async ({ page }) => { await page.goto('/streamora-for-windows.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Content You Want, Right Up Front' || t.startsWith('The Content You Want, Right Up Front'))).toBeTruthy(); }); test('streamora_for_windows_html: h2 "Download"', async ({ page }) => { await page.goto('/streamora-for-windows.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download' || t.startsWith('Download'))).toBeTruthy(); }); test('streamora_for_windows_html: h2 "Fast, Effortless Browsing"', async ({ page }) => { await page.goto('/streamora-for-windows.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Fast, Effortless Browsing' || t.startsWith('Fast, Effortless Browsing'))).toBeTruthy(); }); test('streamora_for_windows_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/streamora-for-windows.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('streamora_for_windows_html: nav link "BLOG"', async ({ page }) => { await page.goto('/streamora-for-windows.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('streamora_for_windows_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/streamora-for-windows.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('streamora_for_windows_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/streamora-for-windows.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - streamora_for_xbox_html', () => { test('streamora_for_xbox_html: title matches GT', async ({ page }) => { await page.goto('/streamora-for-xbox.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora for vertex'); }); test('streamora_for_xbox_html: h1 "Streamora for Vertex"', async ({ page }) => { await page.goto('/streamora-for-xbox.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora for Vertex' || t.startsWith('Streamora for Vertex'))).toBeTruthy(); }); test('streamora_for_xbox_html: h2 "The Shows You Love, Right Up F"', async ({ page }) => { await page.goto('/streamora-for-xbox.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Shows You Love, Right Up Front' || t.startsWith('The Shows You Love, Right Up Front'))).toBeTruthy(); }); test('streamora_for_xbox_html: h2 "Install It Now"', async ({ page }) => { await page.goto('/streamora-for-xbox.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Install It Now' || t.startsWith('Install It Now'))).toBeTruthy(); }); test('streamora_for_xbox_html: h2 "Simple, Speedy Browsing"', async ({ page }) => { await page.goto('/streamora-for-xbox.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Simple, Speedy Browsing' || t.startsWith('Simple, Speedy Browsing'))).toBeTruthy(); }); test('streamora_for_xbox_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/streamora-for-xbox.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('streamora_for_xbox_html: nav link "BLOG"', async ({ page }) => { await page.goto('/streamora-for-xbox.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('streamora_for_xbox_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/streamora-for-xbox.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('streamora_for_xbox_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/streamora-for-xbox.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - streamora_ps3_html', () => { test('streamora_ps3_html: title matches GT', async ({ page }) => { await page.goto('/streamora-ps3.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora for zenova playforge 3'); }); test('streamora_ps3_html: h1 "Streamora on Zenova PlayForge "', async ({ page }) => { await page.goto('/streamora-ps3.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora on Zenova PlayForge 3' || t.startsWith('Streamora on Zenova PlayForge 3'))).toBeTruthy(); }); test('streamora_ps3_html: h2 "Set Up"', async ({ page }) => { await page.goto('/streamora-ps3.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Set Up' || t.startsWith('Set Up'))).toBeTruthy(); }); test('streamora_ps3_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/streamora-ps3.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('streamora_ps3_html: nav link "BLOG"', async ({ page }) => { await page.goto('/streamora-ps3.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('streamora_ps3_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/streamora-ps3.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('streamora_ps3_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/streamora-ps3.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - streamora_ps4_html', () => { test('streamora_ps4_html: title matches GT', async ({ page }) => { await page.goto('/streamora-ps4.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora for zenova playforge 4'); }); test('streamora_ps4_html: h1 "Streamora for Zenova PlayForge"', async ({ page }) => { await page.goto('/streamora-ps4.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora for Zenova PlayForge 4' || t.startsWith('Streamora for Zenova PlayForge 4'))).toBeTruthy(); }); test('streamora_ps4_html: h2 "Whatever you feel like watchin"', async ({ page }) => { await page.goto('/streamora-ps4.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Whatever you feel like watching, up front' || t.startsWith('Whatever you feel like watching, up front'))).toBeTruthy(); }); test('streamora_ps4_html: h2 "Get Started"', async ({ page }) => { await page.goto('/streamora-ps4.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Get Started' || t.startsWith('Get Started'))).toBeTruthy(); }); test('streamora_ps4_html: h2 "Fast, simple browsing"', async ({ page }) => { await page.goto('/streamora-ps4.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Fast, simple browsing' || t.startsWith('Fast, simple browsing'))).toBeTruthy(); }); test('streamora_ps4_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/streamora-ps4.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('streamora_ps4_html: nav link "BLOG"', async ({ page }) => { await page.goto('/streamora-ps4.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('streamora_ps4_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/streamora-ps4.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('streamora_ps4_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/streamora-ps4.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - streamora_theater_linux_html', () => { test('streamora_theater_linux_html: title matches GT', async ({ page }) => { await page.goto('/streamora-theater-linux.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora theater'); }); test('streamora_theater_linux_html: h1 "Streamora Theater for Linux"', async ({ page }) => { await page.goto('/streamora-theater-linux.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Theater for Linux' || t.startsWith('Streamora Theater for Linux'))).toBeTruthy(); }); test('streamora_theater_linux_html: h2 "Your next watch, right where y"', async ({ page }) => { await page.goto('/streamora-theater-linux.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Your next watch, right where you need it' || t.startsWith('Your next watch, right where you need it'))).toBeTruthy(); }); test('streamora_theater_linux_html: h2 "Installation"', async ({ page }) => { await page.goto('/streamora-theater-linux.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Installation' || t.startsWith('Installation'))).toBeTruthy(); }); test('streamora_theater_linux_html: h2 "Debian / Ubuntu / Linux Mint"', async ({ page }) => { await page.goto('/streamora-theater-linux.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Debian / Ubuntu / Linux Mint' || t.startsWith('Debian / Ubuntu / Linux Mint'))).toBeTruthy(); }); test('streamora_theater_linux_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/streamora-theater-linux.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('streamora_theater_linux_html: nav link "BLOG"', async ({ page }) => { await page.goto('/streamora-theater-linux.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('streamora_theater_linux_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/streamora-theater-linux.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('streamora_theater_linux_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/streamora-theater-linux.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - streamora_theater_macos_html', () => { test('streamora_theater_macos_html: title matches GT', async ({ page }) => { await page.goto('/streamora-theater-macos.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora theater for macos'); }); test('streamora_theater_macos_html: h1 "Streamora Theater for macOS"', async ({ page }) => { await page.goto('/streamora-theater-macos.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Theater for macOS' || t.startsWith('Streamora Theater for macOS'))).toBeTruthy(); }); test('streamora_theater_macos_html: h2 "What you\'ll watch next – right"', async ({ page }) => { await page.goto('/streamora-theater-macos.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'What you\'ll watch next – right up front' || t.startsWith('What you\'ll watch next – right up front'))).toBeTruthy(); }); test('streamora_theater_macos_html: h2 "Get It Today"', async ({ page }) => { await page.goto('/streamora-theater-macos.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Get It Today' || t.startsWith('Get It Today'))).toBeTruthy(); }); test('streamora_theater_macos_html: h2 "Effortless browsing"', async ({ page }) => { await page.goto('/streamora-theater-macos.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Effortless browsing' || t.startsWith('Effortless browsing'))).toBeTruthy(); }); test('streamora_theater_macos_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/streamora-theater-macos.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('streamora_theater_macos_html: nav link "BLOG"', async ({ page }) => { await page.goto('/streamora-theater-macos.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('streamora_theater_macos_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/streamora-theater-macos.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('streamora_theater_macos_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/streamora-theater-macos.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - streamora_theater_qnap_html', () => { test('streamora_theater_qnap_html: title matches GT', async ({ page }) => { await page.goto('/streamora-theater-qnap.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora cinema'); }); test('streamora_theater_qnap_html: h1 "Streamora Cinema for Qorenta"', async ({ page }) => { await page.goto('/streamora-theater-qnap.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Cinema for Qorenta' || t.startsWith('Streamora Cinema for Qorenta'))).toBeTruthy(); }); test('streamora_theater_qnap_html: h2 "Everything you love, front and"', async ({ page }) => { await page.goto('/streamora-theater-qnap.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Everything you love, front and center' || t.startsWith('Everything you love, front and center'))).toBeTruthy(); }); test('streamora_theater_qnap_html: h2 "Installation"', async ({ page }) => { await page.goto('/streamora-theater-qnap.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Installation' || t.startsWith('Installation'))).toBeTruthy(); }); test('streamora_theater_qnap_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/streamora-theater-qnap.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('streamora_theater_qnap_html: nav link "BLOG"', async ({ page }) => { await page.goto('/streamora-theater-qnap.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('streamora_theater_qnap_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/streamora-theater-qnap.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('streamora_theater_qnap_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/streamora-theater-qnap.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - streamora_theater_rpi_html', () => { test('streamora_theater_rpi_html: title matches GT', async ({ page }) => { await page.goto('/streamora-theater-rpi.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('theater'); }); test('streamora_theater_rpi_html: h1 "Streamora Theater for Raspberr"', async ({ page }) => { await page.goto('/streamora-theater-rpi.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Theater for Raspberry' || t.startsWith('Streamora Theater for Raspberry'))).toBeTruthy(); }); test('streamora_theater_rpi_html: h2 "Your next favorite, ready righ"', async ({ page }) => { await page.goto('/streamora-theater-rpi.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Your next favorite, ready right up front' || t.startsWith('Your next favorite, ready right up front'))).toBeTruthy(); }); test('streamora_theater_rpi_html: h2 "Installation"', async ({ page }) => { await page.goto('/streamora-theater-rpi.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Installation' || t.startsWith('Installation'))).toBeTruthy(); }); test('streamora_theater_rpi_html: h2 "Raspberry Pi Image"', async ({ page }) => { await page.goto('/streamora-theater-rpi.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Raspberry Pi Image' || t.startsWith('Raspberry Pi Image'))).toBeTruthy(); }); test('streamora_theater_rpi_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/streamora-theater-rpi.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('streamora_theater_rpi_html: nav link "BLOG"', async ({ page }) => { await page.goto('/streamora-theater-rpi.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('streamora_theater_rpi_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/streamora-theater-rpi.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('streamora_theater_rpi_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/streamora-theater-rpi.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - streamora_web_client_html', () => { test('streamora_web_client_html: title matches GT', async ({ page }) => { await page.goto('/streamora-web-client.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora web client'); }); test('streamora_web_client_html: h1 "Streamora Web App"', async ({ page }) => { await page.goto('/streamora-web-client.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Web App' || t.startsWith('Streamora Web App'))).toBeTruthy(); }); test('streamora_web_client_html: h4 "All Your Media on Any Screen"', async ({ page }) => { await page.goto('/streamora-web-client.html'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'All Your Media on Any Screen' || t.startsWith('All Your Media on Any Screen'))).toBeTruthy(); }); test('streamora_web_client_html: h4 "Also Included with Streamora"', async ({ page }) => { await page.goto('/streamora-web-client.html'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Also Included with Streamora' || t.startsWith('Also Included with Streamora'))).toBeTruthy(); }); test('streamora_web_client_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/streamora-web-client.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('streamora_web_client_html: nav link "BLOG"', async ({ page }) => { await page.goto('/streamora-web-client.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('streamora_web_client_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/streamora-web-client.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('streamora_web_client_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/streamora-web-client.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - flatpak_server_html', () => { test('flatpak_server_html: title matches GT', async ({ page }) => { await page.goto('/flatpak-server.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora server for flatpak'); }); test('flatpak_server_html: h1 "Streamora Server for Flatpak"', async ({ page }) => { await page.goto('/flatpak-server.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Server for Flatpak' || t.startsWith('Streamora Server for Flatpak'))).toBeTruthy(); }); test('flatpak_server_html: h2 "Installation"', async ({ page }) => { await page.goto('/flatpak-server.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Installation' || t.startsWith('Installation'))).toBeTruthy(); }); test('flatpak_server_html: h2 "Installation (BETA)"', async ({ page }) => { await page.goto('/flatpak-server.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Installation (BETA)' || t.startsWith('Installation (BETA)'))).toBeTruthy(); }); test('flatpak_server_html: h4 "Resources"', async ({ page }) => { await page.goto('/flatpak-server.html'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('flatpak_server_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/flatpak-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('flatpak_server_html: nav link "BLOG"', async ({ page }) => { await page.goto('/flatpak-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('flatpak_server_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/flatpak-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('flatpak_server_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/flatpak-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - freebsd_server_html', () => { test('freebsd_server_html: title matches GT', async ({ page }) => { await page.goto('/freebsd-server.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora server for freebsd'); }); test('freebsd_server_html: h1 "Streamora Server for FreeBSD"', async ({ page }) => { await page.goto('/freebsd-server.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Server for FreeBSD' || t.startsWith('Streamora Server for FreeBSD'))).toBeTruthy(); }); test('freebsd_server_html: h2 "Installation"', async ({ page }) => { await page.goto('/freebsd-server.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Installation' || t.startsWith('Installation'))).toBeTruthy(); }); test('freebsd_server_html: h2 "Installation - BETA"', async ({ page }) => { await page.goto('/freebsd-server.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Installation - BETA' || t.startsWith('Installation - BETA'))).toBeTruthy(); }); test('freebsd_server_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/freebsd-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('freebsd_server_html: nav link "BLOG"', async ({ page }) => { await page.goto('/freebsd-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('freebsd_server_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/freebsd-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('freebsd_server_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/freebsd-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - freenas_server_html', () => { test('freenas_server_html: title matches GT', async ({ page }) => { await page.goto('/freenas-server.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora server for libernas'); }); test('freenas_server_html: h1 "Streamora Server for Libernas"', async ({ page }) => { await page.goto('/freenas-server.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Server for Libernas' || t.startsWith('Streamora Server for Libernas'))).toBeTruthy(); }); test('freenas_server_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/freenas-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('freenas_server_html: nav link "BLOG"', async ({ page }) => { await page.goto('/freenas-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('freenas_server_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/freenas-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('freenas_server_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/freenas-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - linux_server_html', () => { test('linux_server_html: title matches GT', async ({ page }) => { await page.goto('/linux-server.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora server for linux'); }); test('linux_server_html: h1 "Streamora Server for Linux"', async ({ page }) => { await page.goto('/linux-server.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Server for Linux' || t.startsWith('Streamora Server for Linux'))).toBeTruthy(); }); test('linux_server_html: h3 "Which OS are you on?"', async ({ page }) => { await page.goto('/linux-server.html'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Which OS are you on?' || t.startsWith('Which OS are you on?'))).toBeTruthy(); }); test('linux_server_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/linux-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('linux_server_html: nav link "BLOG"', async ({ page }) => { await page.goto('/linux-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('linux_server_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/linux-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('linux_server_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/linux-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - mac_server_html', () => { test('mac_server_html: title matches GT', async ({ page }) => { await page.goto('/mac-server.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora server for macos'); }); test('mac_server_html: h1 "Streamora Server, macOS"', async ({ page }) => { await page.goto('/mac-server.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Server, macOS' || t.startsWith('Streamora Server, macOS'))).toBeTruthy(); }); test('mac_server_html: h4 "Resources"', async ({ page }) => { await page.goto('/mac-server.html'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('mac_server_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/mac-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('mac_server_html: nav link "BLOG"', async ({ page }) => { await page.goto('/mac-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('mac_server_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/mac-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('mac_server_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/mac-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - netgear_server_html', () => { test('netgear_server_html: title matches GT', async ({ page }) => { await page.goto('/netgear-server.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora server for netvora readyvault'); }); test('netgear_server_html: h1 "Streamora Server for Netvora"', async ({ page }) => { await page.goto('/netgear-server.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Server for Netvora' || t.startsWith('Streamora Server for Netvora'))).toBeTruthy(); }); test('netgear_server_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/netgear-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('netgear_server_html: nav link "BLOG"', async ({ page }) => { await page.goto('/netgear-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('netgear_server_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/netgear-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('netgear_server_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/netgear-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - open_media_vault_server_html', () => { test('open_media_vault_server_html: title matches GT', async ({ page }) => { await page.goto('/open-media-vault-server.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora server for open media forge'); }); test('open_media_vault_server_html: h1 "Streamora Server for Open Medi"', async ({ page }) => { await page.goto('/open-media-vault-server.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Server for Open Media Forge' || t.startsWith('Streamora Server for Open Media Forge'))).toBeTruthy(); }); test('open_media_vault_server_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/open-media-vault-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('open_media_vault_server_html: nav link "BLOG"', async ({ page }) => { await page.goto('/open-media-vault-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('open_media_vault_server_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/open-media-vault-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('open_media_vault_server_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/open-media-vault-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - premiere_ext_html', () => { test('premiere_ext_html: title matches GT', async ({ page }) => { await page.goto('/premiere-ext.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('pro plans'); }); test('premiere_ext_html: h1 "Streamora Plus"', async ({ page }) => { await page.goto('/premiere-ext.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Plus' || t.startsWith('Streamora Plus'))).toBeTruthy(); }); test('premiere_ext_html: h1 "Subscription Plans"', async ({ page }) => { await page.goto('/premiere-ext.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Subscription Plans' || t.startsWith('Subscription Plans'))).toBeTruthy(); }); test('premiere_ext_html: h3 "50 Screens, Monthly"', async ({ page }) => { await page.goto('/premiere-ext.html'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '50 Screens, Monthly' || t.startsWith('50 Screens, Monthly'))).toBeTruthy(); }); test('premiere_ext_html: h3 "80 Screens, Monthly"', async ({ page }) => { await page.goto('/premiere-ext.html'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '80 Screens, Monthly' || t.startsWith('80 Screens, Monthly'))).toBeTruthy(); }); test('premiere_ext_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/premiere-ext.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('premiere_ext_html: nav link "BLOG"', async ({ page }) => { await page.goto('/premiere-ext.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('premiere_ext_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/premiere-ext.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('premiere_ext_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/premiere-ext.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - premiereterms_html', () => { test('premiereterms_html: title matches GT', async ({ page }) => { await page.goto('/premiereterms.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora plus terms of service'); }); test('premiereterms_html: h1 "Streamora Terms of Use"', async ({ page }) => { await page.goto('/premiereterms.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Terms of Use' || t.startsWith('Streamora Terms of Use'))).toBeTruthy(); }); test('premiereterms_html: h3 "Revised: Jan 15, 2025"', async ({ page }) => { await page.goto('/premiereterms.html'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Revised: Jan 15, 2025' || t.startsWith('Revised: Jan 15, 2025'))).toBeTruthy(); }); test('premiereterms_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/premiereterms.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('premiereterms_html: nav link "BLOG"', async ({ page }) => { await page.goto('/premiereterms.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('premiereterms_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/premiereterms.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('premiereterms_html: nav link "STRM PREMIERE"', async ({ page }) => { await page.goto('/premiereterms.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STRM PREMIERE' || t.startsWith('STRM PREMIERE')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - qnap_server_html', () => { test('qnap_server_html: title matches GT', async ({ page }) => { await page.goto('/qnap-server.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora for qorenta nas'); }); test('qnap_server_html: h1 "Streamora Server for Qorenta"', async ({ page }) => { await page.goto('/qnap-server.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Server for Qorenta' || t.startsWith('Streamora Server for Qorenta'))).toBeTruthy(); }); test('qnap_server_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/qnap-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('qnap_server_html: nav link "BLOG"', async ({ page }) => { await page.goto('/qnap-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('qnap_server_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/qnap-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('qnap_server_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/qnap-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - server_android_html', () => { test('server_android_html: title matches GT', async ({ page }) => { await page.goto('/server-android.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora server for'); }); test('server_android_html: h1 "Streamora Server for Android"', async ({ page }) => { await page.goto('/server-android.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Server for Android' || t.startsWith('Streamora Server for Android'))).toBeTruthy(); }); test('server_android_html: h2 "Setting It Up"', async ({ page }) => { await page.goto('/server-android.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Setting It Up' || t.startsWith('Setting It Up'))).toBeTruthy(); }); test('server_android_html: h2 "Setting Up the Beta"', async ({ page }) => { await page.goto('/server-android.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Setting Up the Beta' || t.startsWith('Setting Up the Beta'))).toBeTruthy(); }); test('server_android_html: h4 "Learn More"', async ({ page }) => { await page.goto('/server-android.html'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Learn More' || t.startsWith('Learn More'))).toBeTruthy(); }); test('server_android_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/server-android.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('server_android_html: nav link "BLOG"', async ({ page }) => { await page.goto('/server-android.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('server_android_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/server-android.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('server_android_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/server-android.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - support_articles_Premiere_Feature_Matrix_html', () => { test('support_articles_Premiere_Feature_Matrix_html: title matches GT', async ({ page }) => { await page.goto('/support/articles/Premiere-Feature-Matrix.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora plus feature matrix'); }); test('support_articles_Premiere_Feature_Matrix_html: h1 "Streamora Plus Feature Chart"', async ({ page }) => { await page.goto('/support/articles/Premiere-Feature-Matrix.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Plus Feature Chart' || t.startsWith('Streamora Plus Feature Chart'))).toBeTruthy(); }); test('support_articles_Premiere_Feature_Matrix_html: h2 "Server / Every App"', async ({ page }) => { await page.goto('/support/articles/Premiere-Feature-Matrix.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Server / Every App' || t.startsWith('Server / Every App'))).toBeTruthy(); }); test('support_articles_Premiere_Feature_Matrix_html: h2 "Web or Mobile Browser"', async ({ page }) => { await page.goto('/support/articles/Premiere-Feature-Matrix.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Web or Mobile Browser' || t.startsWith('Web or Mobile Browser'))).toBeTruthy(); }); test('support_articles_Premiere_Feature_Matrix_html: h2 "Streamora Windows"', async ({ page }) => { await page.goto('/support/articles/Premiere-Feature-Matrix.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Windows' || t.startsWith('Streamora Windows'))).toBeTruthy(); }); test('support_articles_Premiere_Feature_Matrix_html: nav link "About"', async ({ page }) => { await page.goto('/support/articles/Premiere-Feature-Matrix.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('support_articles_Premiere_Feature_Matrix_html: nav link "Blog"', async ({ page }) => { await page.goto('/support/articles/Premiere-Feature-Matrix.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog.html')), 'href fragment present').toBeTruthy(); }); test('support_articles_Premiere_Feature_Matrix_html: nav link "Download"', async ({ page }) => { await page.goto('/support/articles/Premiere-Feature-Matrix.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download' || t.startsWith('Download')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('support_articles_Premiere_Feature_Matrix_html: nav link "Streamora Plus"', async ({ page }) => { await page.goto('/support/articles/Premiere-Feature-Matrix.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Plus' || t.startsWith('Streamora Plus')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - support_index_html', () => { test('support_index_html: title matches GT', async ({ page }) => { await page.goto('/support/index.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora support home'); }); test('support_index_html: h1 "Streamora Help Home"', async ({ page }) => { await page.goto('/support/index.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Help Home' || t.startsWith('Streamora Help Home'))).toBeTruthy(); }); test('support_index_html: h1 "POPULAR TOPICS"', async ({ page }) => { await page.goto('/support/index.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'POPULAR TOPICS' || t.startsWith('POPULAR TOPICS'))).toBeTruthy(); }); test('support_index_html: h2 "Search the Help Library"', async ({ page }) => { await page.goto('/support/index.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Search the Help Library' || t.startsWith('Search the Help Library'))).toBeTruthy(); }); test('support_index_html: h2 "Server"', async ({ page }) => { await page.goto('/support/index.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Server' || t.startsWith('Server'))).toBeTruthy(); }); test('support_index_html: nav link "About"', async ({ page }) => { await page.goto('/support/index.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('support_index_html: nav link "Blog"', async ({ page }) => { await page.goto('/support/index.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog.html')), 'href fragment present').toBeTruthy(); }); test('support_index_html: nav link "Download"', async ({ page }) => { await page.goto('/support/index.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download' || t.startsWith('Download')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('support_index_html: nav link "Streamora Plus"', async ({ page }) => { await page.goto('/support/index.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Plus' || t.startsWith('Streamora Plus')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - synology6_server_html', () => { test('synology6_server_html: title matches GT', async ({ page }) => { await page.goto('/synology6-server.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora for novaris nas'); }); test('synology6_server_html: h1 "Streamora Server on Novaris NA"', async ({ page }) => { await page.goto('/synology6-server.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Server on Novaris NAS' || t.startsWith('Streamora Server on Novaris NAS'))).toBeTruthy(); }); test('synology6_server_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/synology6-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('synology6_server_html: nav link "BLOG"', async ({ page }) => { await page.goto('/synology6-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('synology6_server_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/synology6-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('synology6_server_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/synology6-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - synology7_server_html', () => { test('synology7_server_html: title matches GT', async ({ page }) => { await page.goto('/synology7-server.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora server for novaris nas'); }); test('synology7_server_html: h1 "Streamora Server for Novaris"', async ({ page }) => { await page.goto('/synology7-server.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Server for Novaris' || t.startsWith('Streamora Server for Novaris'))).toBeTruthy(); }); test('synology7_server_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/synology7-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('synology7_server_html: nav link "BLOG"', async ({ page }) => { await page.goto('/synology7-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('synology7_server_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/synology7-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('synology7_server_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/synology7-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - synology_server_html', () => { test('synology_server_html: title matches GT', async ({ page }) => { await page.goto('/synology-server.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora server for novaris nas'); }); test('synology_server_html: h1 "Streamora Server for Novaris"', async ({ page }) => { await page.goto('/synology-server.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Server for Novaris' || t.startsWith('Streamora Server for Novaris'))).toBeTruthy(); }); test('synology_server_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/synology-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('synology_server_html: nav link "BLOG"', async ({ page }) => { await page.goto('/synology-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('synology_server_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/synology-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('synology_server_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/synology-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - terramaster_server_html', () => { test('terramaster_server_html: title matches GT', async ({ page }) => { await page.goto('/terramaster-server.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora server for terranix nas'); }); test('terramaster_server_html: h1 "Streamora Server for Terranix"', async ({ page }) => { await page.goto('/terramaster-server.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Server for Terranix' || t.startsWith('Streamora Server for Terranix'))).toBeTruthy(); }); test('terramaster_server_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/terramaster-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('terramaster_server_html: nav link "BLOG"', async ({ page }) => { await page.goto('/terramaster-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('terramaster_server_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/terramaster-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('terramaster_server_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/terramaster-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - thecus_server_html', () => { test('thecus_server_html: title matches GT', async ({ page }) => { await page.goto('/thecus-server.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora server for thelvos nas'); }); test('thecus_server_html: h1 "Streamora for Thelvos NAS"', async ({ page }) => { await page.goto('/thecus-server.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora for Thelvos NAS' || t.startsWith('Streamora for Thelvos NAS'))).toBeTruthy(); }); test('thecus_server_html: h2 "Thelvos OS7 (scroll down for O"', async ({ page }) => { await page.goto('/thecus-server.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Thelvos OS7 (scroll down for OS5/OS6)' || t.startsWith('Thelvos OS7 (scroll down for OS5/OS6)'))).toBeTruthy(); }); test('thecus_server_html: h2 "Thelvos OS5, OS6"', async ({ page }) => { await page.goto('/thecus-server.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Thelvos OS5, OS6' || t.startsWith('Thelvos OS5, OS6'))).toBeTruthy(); }); test('thecus_server_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/thecus-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('thecus_server_html: nav link "BLOG"', async ({ page }) => { await page.goto('/thecus-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('thecus_server_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/thecus-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('thecus_server_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/thecus-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - truenas_scale_server_html', () => { test('truenas_scale_server_html: title matches GT', async ({ page }) => { await page.goto('/truenas-scale-server.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora for veronas scale'); }); test('truenas_scale_server_html: h1 "Streamora for Veronas Scale"', async ({ page }) => { await page.goto('/truenas-scale-server.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora for Veronas Scale' || t.startsWith('Streamora for Veronas Scale'))).toBeTruthy(); }); test('truenas_scale_server_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/truenas-scale-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('truenas_scale_server_html: nav link "BLOG"', async ({ page }) => { await page.goto('/truenas-scale-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('truenas_scale_server_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/truenas-scale-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('truenas_scale_server_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/truenas-scale-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - truenas_server_html', () => { test('truenas_server_html: title matches GT', async ({ page }) => { await page.goto('/truenas-server.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora for veronas'); }); test('truenas_server_html: h1 "Streamora Server for Veronas"', async ({ page }) => { await page.goto('/truenas-server.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Server for Veronas' || t.startsWith('Streamora Server for Veronas'))).toBeTruthy(); }); test('truenas_server_html: h2 "Streamora Server for Veronas S"', async ({ page }) => { await page.goto('/truenas-server.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Server for Veronas Setup' || t.startsWith('Streamora Server for Veronas Setup'))).toBeTruthy(); }); test('truenas_server_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/truenas-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('truenas_server_html: nav link "BLOG"', async ({ page }) => { await page.goto('/truenas-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('truenas_server_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/truenas-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('truenas_server_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/truenas-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - western_digital_server_html', () => { test('western_digital_server_html: title matches GT', async ({ page }) => { await page.goto('/western-digital-server.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora server for vantera digital nas'); }); test('western_digital_server_html: h1 "Streamora Server for Vantera D"', async ({ page }) => { await page.goto('/western-digital-server.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Server for Vantera Digital NAS' || t.startsWith('Streamora Server for Vantera Digital NAS'))).toBeTruthy(); }); test('western_digital_server_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/western-digital-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('western_digital_server_html: nav link "BLOG"', async ({ page }) => { await page.goto('/western-digital-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('western_digital_server_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/western-digital-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('western_digital_server_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/western-digital-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - western_digital_server_os3_html', () => { test('western_digital_server_os3_html: title matches GT', async ({ page }) => { await page.goto('/western-digital-server-os3.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora for vantera digital nas'); }); test('western_digital_server_os3_html: h1 "Streamora Server for Vantera D"', async ({ page }) => { await page.goto('/western-digital-server-os3.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Server for Vantera Digital NAS (OS3)' || t.startsWith('Streamora Server for Vantera Digital NAS (OS3)'))).toBeTruthy(); }); test('western_digital_server_os3_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/western-digital-server-os3.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('western_digital_server_os3_html: nav link "BLOG"', async ({ page }) => { await page.goto('/western-digital-server-os3.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('western_digital_server_os3_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/western-digital-server-os3.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('western_digital_server_os3_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/western-digital-server-os3.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - windows_server_html', () => { test('windows_server_html: title matches GT', async ({ page }) => { await page.goto('/windows-server.html'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora for windows'); }); test('windows_server_html: h1 "Streamora for Windows"', async ({ page }) => { await page.goto('/windows-server.html'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora for Windows' || t.startsWith('Streamora for Windows'))).toBeTruthy(); }); test('windows_server_html: h2 "Download"', async ({ page }) => { await page.goto('/windows-server.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download' || t.startsWith('Download'))).toBeTruthy(); }); test('windows_server_html: h2 "Portable Installation"', async ({ page }) => { await page.goto('/windows-server.html'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Portable Installation' || t.startsWith('Portable Installation'))).toBeTruthy(); }); test('windows_server_html: h4 "Resources"', async ({ page }) => { await page.goto('/windows-server.html'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('windows_server_html: nav link "ABOUT"', async ({ page }) => { await page.goto('/windows-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ABOUT' || t.startsWith('ABOUT')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('about.html')), 'href fragment present').toBeTruthy(); }); test('windows_server_html: nav link "BLOG"', async ({ page }) => { await page.goto('/windows-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BLOG' || t.startsWith('BLOG')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('index.php')), 'href fragment present').toBeTruthy(); }); test('windows_server_html: nav link "DOWNLOAD"', async ({ page }) => { await page.goto('/windows-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DOWNLOAD' || t.startsWith('DOWNLOAD')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('download.html')), 'href fragment present').toBeTruthy(); }); test('windows_server_html: nav link "STREAMORA PLUS"', async ({ page }) => { await page.goto('/windows-server.html'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'STREAMORA PLUS' || t.startsWith('STREAMORA PLUS')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('premiere.html')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - community_forum_100_dlna', () => { test('community_forum_100_dlna: title matches GT', async ({ page }) => { await page.goto('/community/forum/100-dlna/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('dlna'); }); test('community_forum_100_dlna: h1 "DLNA"', async ({ page }) => { await page.goto('/community/forum/100-dlna/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DLNA' || t.startsWith('DLNA'))).toBeTruthy(); }); test('community_forum_100_dlna: h2 "1025 threads in this board"', async ({ page }) => { await page.goto('/community/forum/100-dlna/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '1025 threads in this board' || t.startsWith('1025 threads in this board'))).toBeTruthy(); }); test('community_forum_100_dlna: h4 "Sign In"', async ({ page }) => { await page.goto('/community/forum/100-dlna/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sign In' || t.startsWith('Sign In'))).toBeTruthy(); }); test('community_forum_100_dlna: h4 "Streaming triggered by Android"', async ({ page }) => { await page.goto('/community/forum/100-dlna/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streaming triggered by Android - Profile?' || t.startsWith('Streaming triggered by Android - Profile?'))).toBeTruthy(); }); test('community_forum_100_dlna: header link "Already a member? Sign In"', async ({ page }) => { await page.goto('/community/forum/100-dlna/'); 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 === 'Already a member? Sign In' || t.startsWith('Already a member? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_100_dlna: header link "Reset your password?"', async ({ page }) => { await page.goto('/community/forum/100-dlna/'); 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 === 'Reset your password?' || t.startsWith('Reset your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_100_dlna: header link "Sign Up"', async ({ page }) => { await page.goto('/community/forum/100-dlna/'); 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 === 'Sign Up' || t.startsWith('Sign Up')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_100_dlna: nav link "Homepage"', async ({ page }) => { await page.goto('/community/forum/100-dlna/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Homepage' || t.startsWith('Homepage')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_115_streamora_server', () => { test('community_forum_115_streamora_server: title matches GT', async ({ page }) => { await page.goto('/community/forum/115-streamora-server/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora server'); }); test('community_forum_115_streamora_server: h1 "Media Server"', async ({ page }) => { await page.goto('/community/forum/115-streamora-server/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Media Server' || t.startsWith('Media Server'))).toBeTruthy(); }); test('community_forum_115_streamora_server: h2 "Boards"', async ({ page }) => { await page.goto('/community/forum/115-streamora-server/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Boards' || t.startsWith('Boards'))).toBeTruthy(); }); test('community_forum_115_streamora_server: h4 "Log In"', async ({ page }) => { await page.goto('/community/forum/115-streamora-server/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In'))).toBeTruthy(); }); test('community_forum_115_streamora_server: h4 "General/Desktop"', async ({ page }) => { await page.goto('/community/forum/115-streamora-server/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'General/Desktop' || t.startsWith('General/Desktop'))).toBeTruthy(); }); test('community_forum_115_streamora_server: header link "Already a member? Log In"', async ({ page }) => { await page.goto('/community/forum/115-streamora-server/'); 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 === 'Already a member? Log In' || t.startsWith('Already a member? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_115_streamora_server: header link "Lost your credentials?"', async ({ page }) => { await page.goto('/community/forum/115-streamora-server/'); 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 === 'Lost your credentials?' || t.startsWith('Lost your credentials?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_115_streamora_server: header link "Join Us"', async ({ page }) => { await page.goto('/community/forum/115-streamora-server/'); 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 === 'Join Us' || t.startsWith('Join Us')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_115_streamora_server: nav link "Homepage"', async ({ page }) => { await page.goto('/community/forum/115-streamora-server/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Homepage' || t.startsWith('Homepage')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_116_linux', () => { test('community_forum_116_linux: title matches GT', async ({ page }) => { await page.goto('/community/forum/116-linux/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('linux'); }); test('community_forum_116_linux: h1 "Linux"', async ({ page }) => { await page.goto('/community/forum/116-linux/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Linux' || t.startsWith('Linux'))).toBeTruthy(); }); test('community_forum_116_linux: h2 "7945 threads in this board"', async ({ page }) => { await page.goto('/community/forum/116-linux/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '7945 threads in this board' || t.startsWith('7945 threads in this board'))).toBeTruthy(); }); test('community_forum_116_linux: h4 "Log In"', async ({ page }) => { await page.goto('/community/forum/116-linux/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In'))).toBeTruthy(); }); test('community_forum_116_linux: h4 "Docker 1 2 3 4 88"', async ({ page }) => { await page.goto('/community/forum/116-linux/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Docker 1 2 3 4 88' || t.startsWith('Docker 1 2 3 4 88'))).toBeTruthy(); }); test('community_forum_116_linux: header link "Returning user? Sign In"', async ({ page }) => { await page.goto('/community/forum/116-linux/'); 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 === 'Returning user? Sign In' || t.startsWith('Returning user? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_116_linux: header link "Reset your password?"', async ({ page }) => { await page.goto('/community/forum/116-linux/'); 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 === 'Reset your password?' || t.startsWith('Reset your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_116_linux: header link "Register"', async ({ page }) => { await page.goto('/community/forum/116-linux/'); 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 === 'Register' || t.startsWith('Register')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_116_linux: nav link "Homepage"', async ({ page }) => { await page.goto('/community/forum/116-linux/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Homepage' || t.startsWith('Homepage')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_117_macos', () => { test('community_forum_117_macos: title matches GT', async ({ page }) => { await page.goto('/community/forum/117-macos/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('macos'); }); test('community_forum_117_macos: h1 "MacOS"', async ({ page }) => { await page.goto('/community/forum/117-macos/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'MacOS' || t.startsWith('MacOS'))).toBeTruthy(); }); test('community_forum_117_macos: h2 "1274 threads in this board"', async ({ page }) => { await page.goto('/community/forum/117-macos/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '1274 threads in this board' || t.startsWith('1274 threads in this board'))).toBeTruthy(); }); test('community_forum_117_macos: h4 "Log In"', async ({ page }) => { await page.goto('/community/forum/117-macos/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In'))).toBeTruthy(); }); test('community_forum_117_macos: h4 "MacOS Guide 1 2 3 4 11"', async ({ page }) => { await page.goto('/community/forum/117-macos/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'MacOS Guide 1 2 3 4 11' || t.startsWith('MacOS Guide 1 2 3 4 11'))).toBeTruthy(); }); test('community_forum_117_macos: header link "Returning user? Sign In"', async ({ page }) => { await page.goto('/community/forum/117-macos/'); 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 === 'Returning user? Sign In' || t.startsWith('Returning user? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_117_macos: header link "Lost your password?"', async ({ page }) => { await page.goto('/community/forum/117-macos/'); 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 === 'Lost your password?' || t.startsWith('Lost your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_117_macos: header link "Join Us"', async ({ page }) => { await page.goto('/community/forum/117-macos/'); 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 === 'Join Us' || t.startsWith('Join Us')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_117_macos: nav link "Our Site"', async ({ page }) => { await page.goto('/community/forum/117-macos/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Site' || t.startsWith('Our Site')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_119_samsung_smart_tv', () => { test('community_forum_119_samsung_smart_tv: title matches GT', async ({ page }) => { await page.goto('/community/forum/119-samsung-smart-tv/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('solstra smart tv'); }); test('community_forum_119_samsung_smart_tv: h1 "Solstra Smart TV"', async ({ page }) => { await page.goto('/community/forum/119-samsung-smart-tv/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Solstra Smart TV' || t.startsWith('Solstra Smart TV'))).toBeTruthy(); }); test('community_forum_119_samsung_smart_tv: h2 "1773 threads in this forum"', async ({ page }) => { await page.goto('/community/forum/119-samsung-smart-tv/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '1773 threads in this forum' || t.startsWith('1773 threads in this forum'))).toBeTruthy(); }); test('community_forum_119_samsung_smart_tv: h4 "Sign In"', async ({ page }) => { await page.goto('/community/forum/119-samsung-smart-tv/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sign In' || t.startsWith('Sign In'))).toBeTruthy(); }); test('community_forum_119_samsung_smart_tv: h4 "Solstra SolstraOS SmartTV (201"', async ({ page }) => { await page.goto('/community/forum/119-samsung-smart-tv/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Solstra SolstraOS SmartTV (2015 - Present) Beta app: Install from USB' || t.startsWith('Solstra SolstraOS SmartTV (2015 - Present) Beta app: Install from USB'))).toBeTruthy(); }); test('community_forum_119_samsung_smart_tv: header link "Already a member? Sign In"', async ({ page }) => { await page.goto('/community/forum/119-samsung-smart-tv/'); 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 === 'Already a member? Sign In' || t.startsWith('Already a member? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_119_samsung_smart_tv: header link "Forgot your password?"', async ({ page }) => { await page.goto('/community/forum/119-samsung-smart-tv/'); 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 === 'Forgot your password?' || t.startsWith('Forgot your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_119_samsung_smart_tv: header link "Sign Up"', async ({ page }) => { await page.goto('/community/forum/119-samsung-smart-tv/'); 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 === 'Sign Up' || t.startsWith('Sign Up')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_119_samsung_smart_tv: nav link "Website"', async ({ page }) => { await page.goto('/community/forum/119-samsung-smart-tv/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Website' || t.startsWith('Website')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_122_freebsd', () => { test('community_forum_122_freebsd: title matches GT', async ({ page }) => { await page.goto('/community/forum/122-freebsd/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('freebsd'); }); test('community_forum_122_freebsd: h1 "FreeBSD"', async ({ page }) => { await page.goto('/community/forum/122-freebsd/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FreeBSD' || t.startsWith('FreeBSD'))).toBeTruthy(); }); test('community_forum_122_freebsd: h2 "827 topics in this board"', async ({ page }) => { await page.goto('/community/forum/122-freebsd/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '827 topics in this board' || t.startsWith('827 topics in this board'))).toBeTruthy(); }); test('community_forum_122_freebsd: h4 "Sign In"', async ({ page }) => { await page.goto('/community/forum/122-freebsd/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sign In' || t.startsWith('Sign In'))).toBeTruthy(); }); test('community_forum_122_freebsd: h4 "FreeBSD Package 1 2 3 4 18"', async ({ page }) => { await page.goto('/community/forum/122-freebsd/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FreeBSD Package 1 2 3 4 18' || t.startsWith('FreeBSD Package 1 2 3 4 18'))).toBeTruthy(); }); test('community_forum_122_freebsd: header link "Returning user? Sign In"', async ({ page }) => { await page.goto('/community/forum/122-freebsd/'); 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 === 'Returning user? Sign In' || t.startsWith('Returning user? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_122_freebsd: header link "Forgot your password?"', async ({ page }) => { await page.goto('/community/forum/122-freebsd/'); 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 === 'Forgot your password?' || t.startsWith('Forgot your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_122_freebsd: header link "Sign Up"', async ({ page }) => { await page.goto('/community/forum/122-freebsd/'); 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 === 'Sign Up' || t.startsWith('Sign Up')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_122_freebsd: nav link "Website"', async ({ page }) => { await page.goto('/community/forum/122-freebsd/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Website' || t.startsWith('Website')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_127_mediaportal', () => { test('community_forum_127_mediaportal: title matches GT', async ({ page }) => { await page.goto('/community/forum/127-mediaportal/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('mediaforge'); }); test('community_forum_127_mediaportal: h1 "MediaForge"', async ({ page }) => { await page.goto('/community/forum/127-mediaportal/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'MediaForge' || t.startsWith('MediaForge'))).toBeTruthy(); }); test('community_forum_127_mediaportal: h2 "154 topics in this forum"', async ({ page }) => { await page.goto('/community/forum/127-mediaportal/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '154 topics in this forum' || t.startsWith('154 topics in this forum'))).toBeTruthy(); }); test('community_forum_127_mediaportal: h4 "Sign In"', async ({ page }) => { await page.goto('/community/forum/127-mediaportal/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sign In' || t.startsWith('Sign In'))).toBeTruthy(); }); test('community_forum_127_mediaportal: h4 "CastExtended - new version 0.6"', async ({ page }) => { await page.goto('/community/forum/127-mediaportal/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'CastExtended - new version 0.6.*' || t.startsWith('CastExtended - new version 0.6.*'))).toBeTruthy(); }); test('community_forum_127_mediaportal: header link "Already a member? Sign In"', async ({ page }) => { await page.goto('/community/forum/127-mediaportal/'); 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 === 'Already a member? Sign In' || t.startsWith('Already a member? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_127_mediaportal: header link "Reset your password"', async ({ page }) => { await page.goto('/community/forum/127-mediaportal/'); 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 === 'Reset your password' || t.startsWith('Reset your password')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_127_mediaportal: header link "Create Account"', async ({ page }) => { await page.goto('/community/forum/127-mediaportal/'); 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 === 'Create Account' || t.startsWith('Create Account')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_127_mediaportal: nav link "Website"', async ({ page }) => { await page.goto('/community/forum/127-mediaportal/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Website' || t.startsWith('Website')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_128_nextpvr', () => { test('community_forum_128_nextpvr: title matches GT', async ({ page }) => { await page.goto('/community/forum/128-nextpvr/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('novapvr'); }); test('community_forum_128_nextpvr: h1 "NovaPVR"', async ({ page }) => { await page.goto('/community/forum/128-nextpvr/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'NovaPVR' || t.startsWith('NovaPVR'))).toBeTruthy(); }); test('community_forum_128_nextpvr: h2 "256 topics in this board"', async ({ page }) => { await page.goto('/community/forum/128-nextpvr/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '256 topics in this board' || t.startsWith('256 topics in this board'))).toBeTruthy(); }); test('community_forum_128_nextpvr: h4 "Log In"', async ({ page }) => { await page.goto('/community/forum/128-nextpvr/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In'))).toBeTruthy(); }); test('community_forum_128_nextpvr: h4 "Scheduled recording keeps fail"', async ({ page }) => { await page.goto('/community/forum/128-nextpvr/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Scheduled recording keeps failing on my setup' || t.startsWith('Scheduled recording keeps failing on my setup'))).toBeTruthy(); }); test('community_forum_128_nextpvr: header link "Already a member? Sign In"', async ({ page }) => { await page.goto('/community/forum/128-nextpvr/'); 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 === 'Already a member? Sign In' || t.startsWith('Already a member? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_128_nextpvr: header link "Lost your password?"', async ({ page }) => { await page.goto('/community/forum/128-nextpvr/'); 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 === 'Lost your password?' || t.startsWith('Lost your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_128_nextpvr: header link "Join Now"', async ({ page }) => { await page.goto('/community/forum/128-nextpvr/'); 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 === 'Join Now' || t.startsWith('Join Now')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_128_nextpvr: nav link "Homepage"', async ({ page }) => { await page.goto('/community/forum/128-nextpvr/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Homepage' || t.startsWith('Homepage')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_129_serverwmc', () => { test('community_forum_129_serverwmc: title matches GT', async ({ page }) => { await page.goto('/community/forum/129-serverwmc/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('servermhc'); }); test('community_forum_129_serverwmc: h1 "ServerMHC"', async ({ page }) => { await page.goto('/community/forum/129-serverwmc/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ServerMHC' || t.startsWith('ServerMHC'))).toBeTruthy(); }); test('community_forum_129_serverwmc: h2 "299 threads in this board"', async ({ page }) => { await page.goto('/community/forum/129-serverwmc/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '299 threads in this board' || t.startsWith('299 threads in this board'))).toBeTruthy(); }); test('community_forum_129_serverwmc: h4 "Log In"', async ({ page }) => { await page.goto('/community/forum/129-serverwmc/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In'))).toBeTruthy(); }); test('community_forum_129_serverwmc: h4 "help with live streams cutting"', async ({ page }) => { await page.goto('/community/forum/129-serverwmc/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'help with live streams cutting out too soon' || t.startsWith('help with live streams cutting out too soon'))).toBeTruthy(); }); test('community_forum_129_serverwmc: header link "Returning user? Log In"', async ({ page }) => { await page.goto('/community/forum/129-serverwmc/'); 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 === 'Returning user? Log In' || t.startsWith('Returning user? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_129_serverwmc: header link "Reset a lost password?"', async ({ page }) => { await page.goto('/community/forum/129-serverwmc/'); 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 === 'Reset a lost password?' || t.startsWith('Reset a lost password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_129_serverwmc: header link "Register"', async ({ page }) => { await page.goto('/community/forum/129-serverwmc/'); 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 === 'Register' || t.startsWith('Register')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_129_serverwmc: nav link "Homepage"', async ({ page }) => { await page.goto('/community/forum/129-serverwmc/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Homepage' || t.startsWith('Homepage')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_146_web_app', () => { test('community_forum_146_web_app: title matches GT', async ({ page }) => { await page.goto('/community/forum/146-web-app/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('web app'); }); test('community_forum_146_web_app: h1 "Web App"', async ({ page }) => { await page.goto('/community/forum/146-web-app/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Web App' || t.startsWith('Web App'))).toBeTruthy(); }); test('community_forum_146_web_app: h2 "1805 topics in this board"', async ({ page }) => { await page.goto('/community/forum/146-web-app/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '1805 topics in this board' || t.startsWith('1805 topics in this board'))).toBeTruthy(); }); test('community_forum_146_web_app: h4 "Sign In"', async ({ page }) => { await page.goto('/community/forum/146-web-app/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sign In' || t.startsWith('Sign In'))).toBeTruthy(); }); test('community_forum_146_web_app: h4 "Music: Pressing play on an art"', async ({ page }) => { await page.goto('/community/forum/146-web-app/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Music: Pressing play on an artist starts shuffle mode' || t.startsWith('Music: Pressing play on an artist starts shuffle mode'))).toBeTruthy(); }); test('community_forum_146_web_app: header link "Already a member? Sign In"', async ({ page }) => { await page.goto('/community/forum/146-web-app/'); 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 === 'Already a member? Sign In' || t.startsWith('Already a member? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_146_web_app: header link "Forgot your password?"', async ({ page }) => { await page.goto('/community/forum/146-web-app/'); 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 === 'Forgot your password?' || t.startsWith('Forgot your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_146_web_app: header link "Sign Up"', async ({ page }) => { await page.goto('/community/forum/146-web-app/'); 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 === 'Sign Up' || t.startsWith('Sign Up')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_146_web_app: nav link "Website"', async ({ page }) => { await page.goto('/community/forum/146-web-app/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Website' || t.startsWith('Website')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_147_android_tv_fire_tv', () => { test('community_forum_147_android_tv_fire_tv: title matches GT', async ({ page }) => { await page.goto('/community/forum/147-android-tv-fire-tv/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('android tv / ember tv'); }); test('community_forum_147_android_tv_fire_tv: h1 "Android TV / Ember TV"', async ({ page }) => { await page.goto('/community/forum/147-android-tv-fire-tv/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Android TV / Ember TV' || t.startsWith('Android TV / Ember TV'))).toBeTruthy(); }); test('community_forum_147_android_tv_fire_tv: h2 "5360 discussions in this"', async ({ page }) => { await page.goto('/community/forum/147-android-tv-fire-tv/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '5360 discussions in this' || t.startsWith('5360 discussions in this'))).toBeTruthy(); }); test('community_forum_147_android_tv_fire_tv: h4 "Log In"', async ({ page }) => { await page.goto('/community/forum/147-android-tv-fire-tv/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In'))).toBeTruthy(); }); test('community_forum_147_android_tv_fire_tv: h4 "Playback freeze on 9.2.4"', async ({ page }) => { await page.goto('/community/forum/147-android-tv-fire-tv/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Playback freeze on 9.2.4' || t.startsWith('Playback freeze on 9.2.4'))).toBeTruthy(); }); test('community_forum_147_android_tv_fire_tv: header link "Already a member? Log In"', async ({ page }) => { await page.goto('/community/forum/147-android-tv-fire-tv/'); 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 === 'Already a member? Log In' || t.startsWith('Already a member? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_147_android_tv_fire_tv: header link "Reset your password?"', async ({ page }) => { await page.goto('/community/forum/147-android-tv-fire-tv/'); 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 === 'Reset your password?' || t.startsWith('Reset your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_147_android_tv_fire_tv: header link "Register"', async ({ page }) => { await page.goto('/community/forum/147-android-tv-fire-tv/'); 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 === 'Register' || t.startsWith('Register')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_147_android_tv_fire_tv: nav link "Home Site"', async ({ page }) => { await page.goto('/community/forum/147-android-tv-fire-tv/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Home Site' || t.startsWith('Home Site')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_14_general', () => { test('community_forum_14_general: title matches GT', async ({ page }) => { await page.goto('/community/forum/14-general/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('lounge'); }); test('community_forum_14_general: h1 "Lounge"', async ({ page }) => { await page.goto('/community/forum/14-general/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Lounge' || t.startsWith('Lounge'))).toBeTruthy(); }); test('community_forum_14_general: h2 "Boards"', async ({ page }) => { await page.goto('/community/forum/14-general/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Boards' || t.startsWith('Boards'))).toBeTruthy(); }); test('community_forum_14_general: h4 "Log In"', async ({ page }) => { await page.goto('/community/forum/14-general/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In'))).toBeTruthy(); }); test('community_forum_14_general: h4 "Latest News"', async ({ page }) => { await page.goto('/community/forum/14-general/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Latest News' || t.startsWith('Latest News'))).toBeTruthy(); }); test('community_forum_14_general: header link "Already a member? Log In"', async ({ page }) => { await page.goto('/community/forum/14-general/'); 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 === 'Already a member? Log In' || t.startsWith('Already a member? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_14_general: header link "Lost your password?"', async ({ page }) => { await page.goto('/community/forum/14-general/'); 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 === 'Lost your password?' || t.startsWith('Lost your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_14_general: header link "Register"', async ({ page }) => { await page.goto('/community/forum/14-general/'); 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 === 'Register' || t.startsWith('Register')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_14_general: nav link "Our Site"', async ({ page }) => { await page.goto('/community/forum/14-general/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Site' || t.startsWith('Our Site')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_153_synology', () => { test('community_forum_153_synology: title matches GT', async ({ page }) => { await page.goto('/community/forum/153-synology/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('novaris'); }); test('community_forum_153_synology: h1 "Novaris"', async ({ page }) => { await page.goto('/community/forum/153-synology/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Novaris' || t.startsWith('Novaris'))).toBeTruthy(); }); test('community_forum_153_synology: h2 "3522 topics in this board"', async ({ page }) => { await page.goto('/community/forum/153-synology/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '3522 topics in this board' || t.startsWith('3522 topics in this board'))).toBeTruthy(); }); test('community_forum_153_synology: h4 "Sign In"', async ({ page }) => { await page.goto('/community/forum/153-synology/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sign In' || t.startsWith('Sign In'))).toBeTruthy(); }); test('community_forum_153_synology: h4 "Guide: SSH into a Novaris NAS "', async ({ page }) => { await page.goto('/community/forum/153-synology/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Guide: SSH into a Novaris NAS with Handy Examples 1 2 3' || t.startsWith('Guide: SSH into a Novaris NAS with Handy Examples 1 2 3'))).toBeTruthy(); }); test('community_forum_153_synology: header link "Already a member? Sign In"', async ({ page }) => { await page.goto('/community/forum/153-synology/'); 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 === 'Already a member? Sign In' || t.startsWith('Already a member? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_153_synology: header link "Lost your password?"', async ({ page }) => { await page.goto('/community/forum/153-synology/'); 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 === 'Lost your password?' || t.startsWith('Lost your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_153_synology: header link "Register"', async ({ page }) => { await page.goto('/community/forum/153-synology/'); 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 === 'Register' || t.startsWith('Register')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_153_synology: nav link "Main Site"', async ({ page }) => { await page.goto('/community/forum/153-synology/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Main Site' || t.startsWith('Main Site')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_154_qnap', () => { test('community_forum_154_qnap: title matches GT', async ({ page }) => { await page.goto('/community/forum/154-qnap/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('qorenta'); }); test('community_forum_154_qnap: h1 "Qorenta"', async ({ page }) => { await page.goto('/community/forum/154-qnap/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Qorenta' || t.startsWith('Qorenta'))).toBeTruthy(); }); test('community_forum_154_qnap: h2 "1084 topics in this forum"', async ({ page }) => { await page.goto('/community/forum/154-qnap/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '1084 topics in this forum' || t.startsWith('1084 topics in this forum'))).toBeTruthy(); }); test('community_forum_154_qnap: h4 "Sign In"', async ({ page }) => { await page.goto('/community/forum/154-qnap/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sign In' || t.startsWith('Sign In'))).toBeTruthy(); }); test('community_forum_154_qnap: h4 "Tips to set up Streamora on a "', async ({ page }) => { await page.goto('/community/forum/154-qnap/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Tips to set up Streamora on a Qorenta NAS using Docker with HW Transcoding 1 2 3' || t.startsWith('Tips to set up Streamora on a Qorenta NAS using Docker with HW Transcoding 1 2 3'))).toBeTruthy(); }); test('community_forum_154_qnap: header link "Existing user? Sign In"', async ({ page }) => { await page.goto('/community/forum/154-qnap/'); 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 === 'Existing user? Sign In' || t.startsWith('Existing user? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_154_qnap: header link "Forgot your password?"', async ({ page }) => { await page.goto('/community/forum/154-qnap/'); 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 === 'Forgot your password?' || t.startsWith('Forgot your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_154_qnap: header link "Sign Up"', async ({ page }) => { await page.goto('/community/forum/154-qnap/'); 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 === 'Sign Up' || t.startsWith('Sign Up')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_154_qnap: nav link "Website"', async ({ page }) => { await page.goto('/community/forum/154-qnap/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Website' || t.startsWith('Website')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_156_schedules_direct', () => { test('community_forum_156_schedules_direct: title matches GT', async ({ page }) => { await page.goto('/community/forum/156-schedules-direct/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('guide data setup'); }); test('community_forum_156_schedules_direct: h1 "Guide Data Setup"', async ({ page }) => { await page.goto('/community/forum/156-schedules-direct/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Guide Data Setup' || t.startsWith('Guide Data Setup'))).toBeTruthy(); }); test('community_forum_156_schedules_direct: h2 "134 topics in this board"', async ({ page }) => { await page.goto('/community/forum/156-schedules-direct/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '134 topics in this board' || t.startsWith('134 topics in this board'))).toBeTruthy(); }); test('community_forum_156_schedules_direct: h4 "Log In"', async ({ page }) => { await page.goto('/community/forum/156-schedules-direct/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In'))).toBeTruthy(); }); test('community_forum_156_schedules_direct: h4 "Setting Custom Start and End T"', async ({ page }) => { await page.goto('/community/forum/156-schedules-direct/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Setting Custom Start and End Times for Recordings?' || t.startsWith('Setting Custom Start and End Times for Recordings?'))).toBeTruthy(); }); test('community_forum_156_schedules_direct: header link "Already a member? Log In"', async ({ page }) => { await page.goto('/community/forum/156-schedules-direct/'); 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 === 'Already a member? Log In' || t.startsWith('Already a member? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_156_schedules_direct: header link "Reset your password?"', async ({ page }) => { await page.goto('/community/forum/156-schedules-direct/'); 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 === 'Reset your password?' || t.startsWith('Reset your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_156_schedules_direct: header link "Join Now"', async ({ page }) => { await page.goto('/community/forum/156-schedules-direct/'); 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 === 'Join Now' || t.startsWith('Join Now')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_156_schedules_direct: nav link "Our Site"', async ({ page }) => { await page.goto('/community/forum/156-schedules-direct/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Site' || t.startsWith('Our Site')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_162_apple_tv', () => { test('community_forum_162_apple_tv: title matches GT', async ({ page }) => { await page.goto('/community/forum/162-apple-tv/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('cortex tv'); }); test('community_forum_162_apple_tv: h1 "Cortex TV"', async ({ page }) => { await page.goto('/community/forum/162-apple-tv/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Cortex TV' || t.startsWith('Cortex TV'))).toBeTruthy(); }); test('community_forum_162_apple_tv: h2 "1390 topics in this board"', async ({ page }) => { await page.goto('/community/forum/162-apple-tv/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '1390 topics in this board' || t.startsWith('1390 topics in this board'))).toBeTruthy(); }); test('community_forum_162_apple_tv: h4 "Log In"', async ({ page }) => { await page.goto('/community/forum/162-apple-tv/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In'))).toBeTruthy(); }); test('community_forum_162_apple_tv: h4 "Streamora Cortex TV Wiki"', async ({ page }) => { await page.goto('/community/forum/162-apple-tv/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Cortex TV Wiki' || t.startsWith('Streamora Cortex TV Wiki'))).toBeTruthy(); }); test('community_forum_162_apple_tv: header link "Returning member? Log In"', async ({ page }) => { await page.goto('/community/forum/162-apple-tv/'); 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 === 'Returning member? Log In' || t.startsWith('Returning member? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_162_apple_tv: header link "Reset your password?"', async ({ page }) => { await page.goto('/community/forum/162-apple-tv/'); 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 === 'Reset your password?' || t.startsWith('Reset your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_162_apple_tv: header link "Join Now"', async ({ page }) => { await page.goto('/community/forum/162-apple-tv/'); 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 === 'Join Now' || t.startsWith('Join Now')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_162_apple_tv: nav link "Our Site"', async ({ page }) => { await page.goto('/community/forum/162-apple-tv/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Site' || t.startsWith('Our Site')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_163_asustor', () => { test('community_forum_163_asustor: title matches GT', async ({ page }) => { await page.goto('/community/forum/163-asustor/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('astronim'); }); test('community_forum_163_asustor: h1 "Astronim"', async ({ page }) => { await page.goto('/community/forum/163-asustor/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Astronim' || t.startsWith('Astronim'))).toBeTruthy(); }); test('community_forum_163_asustor: h2 "253 topics in this board"', async ({ page }) => { await page.goto('/community/forum/163-asustor/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '253 topics in this board' || t.startsWith('253 topics in this board'))).toBeTruthy(); }); test('community_forum_163_asustor: h4 "Log In"', async ({ page }) => { await page.goto('/community/forum/163-asustor/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In'))).toBeTruthy(); }); test('community_forum_163_asustor: h4 "Streamora Astronim App 1 2 3 4"', async ({ page }) => { await page.goto('/community/forum/163-asustor/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Astronim App 1 2 3 4 10' || t.startsWith('Streamora Astronim App 1 2 3 4 10'))).toBeTruthy(); }); test('community_forum_163_asustor: header link "Returning user? Sign In"', async ({ page }) => { await page.goto('/community/forum/163-asustor/'); 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 === 'Returning user? Sign In' || t.startsWith('Returning user? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_163_asustor: header link "Reset your password?"', async ({ page }) => { await page.goto('/community/forum/163-asustor/'); 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 === 'Reset your password?' || t.startsWith('Reset your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_163_asustor: header link "Join Now"', async ({ page }) => { await page.goto('/community/forum/163-asustor/'); 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 === 'Join Now' || t.startsWith('Join Now')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_163_asustor: nav link "Homepage"', async ({ page }) => { await page.goto('/community/forum/163-asustor/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Homepage' || t.startsWith('Homepage')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_164_lg_smart_tv', () => { test('community_forum_164_lg_smart_tv: title matches GT', async ({ page }) => { await page.goto('/community/forum/164-lg-smart-tv/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('lumio smart tv'); }); test('community_forum_164_lg_smart_tv: h1 "Lumio Smart TV"', async ({ page }) => { await page.goto('/community/forum/164-lg-smart-tv/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Lumio Smart TV' || t.startsWith('Lumio Smart TV'))).toBeTruthy(); }); test('community_forum_164_lg_smart_tv: h2 "1134 threads in this forum"', async ({ page }) => { await page.goto('/community/forum/164-lg-smart-tv/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '1134 threads in this forum' || t.startsWith('1134 threads in this forum'))).toBeTruthy(); }); test('community_forum_164_lg_smart_tv: h4 "Sign In"', async ({ page }) => { await page.goto('/community/forum/164-lg-smart-tv/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sign In' || t.startsWith('Sign In'))).toBeTruthy(); }); test('community_forum_164_lg_smart_tv: h4 "Status on official Zen app 1 2"', async ({ page }) => { await page.goto('/community/forum/164-lg-smart-tv/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Status on official Zen app 1 2 3 4 38' || t.startsWith('Status on official Zen app 1 2 3 4 38'))).toBeTruthy(); }); test('community_forum_164_lg_smart_tv: header link "Returning user? Sign In"', async ({ page }) => { await page.goto('/community/forum/164-lg-smart-tv/'); 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 === 'Returning user? Sign In' || t.startsWith('Returning user? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_164_lg_smart_tv: header link "Forgot your password?"', async ({ page }) => { await page.goto('/community/forum/164-lg-smart-tv/'); 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 === 'Forgot your password?' || t.startsWith('Forgot your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_164_lg_smart_tv: header link "Sign Up"', async ({ page }) => { await page.goto('/community/forum/164-lg-smart-tv/'); 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 === 'Sign Up' || t.startsWith('Sign Up')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_164_lg_smart_tv: nav link "Website"', async ({ page }) => { await page.goto('/community/forum/164-lg-smart-tv/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Website' || t.startsWith('Website')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_166_sony_playstation', () => { test('community_forum_166_sony_playstation: title matches GT', async ({ page }) => { await page.goto('/community/forum/166-sony-playstation/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('zenova console'); }); test('community_forum_166_sony_playstation: h1 "Zenova Console"', async ({ page }) => { await page.goto('/community/forum/166-sony-playstation/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Zenova Console' || t.startsWith('Zenova Console'))).toBeTruthy(); }); test('community_forum_166_sony_playstation: h2 "80 threads in this board"', async ({ page }) => { await page.goto('/community/forum/166-sony-playstation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '80 threads in this board' || t.startsWith('80 threads in this board'))).toBeTruthy(); }); test('community_forum_166_sony_playstation: h4 "Sign In"', async ({ page }) => { await page.goto('/community/forum/166-sony-playstation/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sign In' || t.startsWith('Sign In'))).toBeTruthy(); }); test('community_forum_166_sony_playstation: h4 "Streamora for Halcyon Notes"', async ({ page }) => { await page.goto('/community/forum/166-sony-playstation/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora for Halcyon Notes' || t.startsWith('Streamora for Halcyon Notes'))).toBeTruthy(); }); test('community_forum_166_sony_playstation: header link "Already a member? Sign In"', async ({ page }) => { await page.goto('/community/forum/166-sony-playstation/'); 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 === 'Already a member? Sign In' || t.startsWith('Already a member? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_166_sony_playstation: header link "Reset your password"', async ({ page }) => { await page.goto('/community/forum/166-sony-playstation/'); 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 === 'Reset your password' || t.startsWith('Reset your password')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_166_sony_playstation: header link "Create Account"', async ({ page }) => { await page.goto('/community/forum/166-sony-playstation/'); 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 === 'Create Account' || t.startsWith('Create Account')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_166_sony_playstation: nav link "Main Site"', async ({ page }) => { await page.goto('/community/forum/166-sony-playstation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Main Site' || t.startsWith('Main Site')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_167_thecus', () => { test('community_forum_167_thecus: title matches GT', async ({ page }) => { await page.goto('/community/forum/167-thecus/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('thelvos'); }); test('community_forum_167_thecus: h1 "Thelvos"', async ({ page }) => { await page.goto('/community/forum/167-thecus/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Thelvos' || t.startsWith('Thelvos'))).toBeTruthy(); }); test('community_forum_167_thecus: h2 "28 threads in this board"', async ({ page }) => { await page.goto('/community/forum/167-thecus/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '28 threads in this board' || t.startsWith('28 threads in this board'))).toBeTruthy(); }); test('community_forum_167_thecus: h4 "Log In"', async ({ page }) => { await page.goto('/community/forum/167-thecus/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In'))).toBeTruthy(); }); test('community_forum_167_thecus: h4 "Thelvos NAS"', async ({ page }) => { await page.goto('/community/forum/167-thecus/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Thelvos NAS' || t.startsWith('Thelvos NAS'))).toBeTruthy(); }); test('community_forum_167_thecus: header link "Already a member? Log In"', async ({ page }) => { await page.goto('/community/forum/167-thecus/'); 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 === 'Already a member? Log In' || t.startsWith('Already a member? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_167_thecus: header link "Forgot your login?"', async ({ page }) => { await page.goto('/community/forum/167-thecus/'); 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 === 'Forgot your login?' || t.startsWith('Forgot your login?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_167_thecus: header link "Join Now"', async ({ page }) => { await page.goto('/community/forum/167-thecus/'); 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 === 'Join Now' || t.startsWith('Join Now')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_167_thecus: nav link "Homepage"', async ({ page }) => { await page.goto('/community/forum/167-thecus/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Homepage' || t.startsWith('Homepage')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_169_linux_raspberry_pi', () => { test('community_forum_169_linux_raspberry_pi: title matches GT', async ({ page }) => { await page.goto('/community/forum/169-linux-raspberry-pi/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('linux & raspberry pi'); }); test('community_forum_169_linux_raspberry_pi: h1 "Linux & Raspberry Pi"', async ({ page }) => { await page.goto('/community/forum/169-linux-raspberry-pi/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Linux & Raspberry Pi' || t.startsWith('Linux & Raspberry Pi'))).toBeTruthy(); }); test('community_forum_169_linux_raspberry_pi: h2 "241 topics in this board"', async ({ page }) => { await page.goto('/community/forum/169-linux-raspberry-pi/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '241 topics in this board' || t.startsWith('241 topics in this board'))).toBeTruthy(); }); test('community_forum_169_linux_raspberry_pi: h4 "Log In"', async ({ page }) => { await page.goto('/community/forum/169-linux-raspberry-pi/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In'))).toBeTruthy(); }); test('community_forum_169_linux_raspberry_pi: h4 "Streamora TV for Linux 1 2 3 4"', async ({ page }) => { await page.goto('/community/forum/169-linux-raspberry-pi/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora TV for Linux 1 2 3 4 52' || t.startsWith('Streamora TV for Linux 1 2 3 4 52'))).toBeTruthy(); }); test('community_forum_169_linux_raspberry_pi: header link "Already a member? Log In"', async ({ page }) => { await page.goto('/community/forum/169-linux-raspberry-pi/'); 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 === 'Already a member? Log In' || t.startsWith('Already a member? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_169_linux_raspberry_pi: header link "Lost your password?"', async ({ page }) => { await page.goto('/community/forum/169-linux-raspberry-pi/'); 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 === 'Lost your password?' || t.startsWith('Lost your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_169_linux_raspberry_pi: header link "Join Now"', async ({ page }) => { await page.goto('/community/forum/169-linux-raspberry-pi/'); 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 === 'Join Now' || t.startsWith('Join Now')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_169_linux_raspberry_pi: nav link "Our Site"', async ({ page }) => { await page.goto('/community/forum/169-linux-raspberry-pi/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Site' || t.startsWith('Our Site')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_174_amazon_alexa', () => { test('community_forum_174_amazon_alexa: title matches GT', async ({ page }) => { await page.goto('/community/forum/174-amazon-alexa/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('aria'); }); test('community_forum_174_amazon_alexa: h1 "Aria"', async ({ page }) => { await page.goto('/community/forum/174-amazon-alexa/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Aria' || t.startsWith('Aria'))).toBeTruthy(); }); test('community_forum_174_amazon_alexa: h2 "166 threads in this board"', async ({ page }) => { await page.goto('/community/forum/174-amazon-alexa/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '166 threads in this board' || t.startsWith('166 threads in this board'))).toBeTruthy(); }); test('community_forum_174_amazon_alexa: h4 "Sign In"', async ({ page }) => { await page.goto('/community/forum/174-amazon-alexa/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sign In' || t.startsWith('Sign In'))).toBeTruthy(); }); test('community_forum_174_amazon_alexa: h4 "[LIVE] Streamora Nimbus skill "', async ({ page }) => { await page.goto('/community/forum/174-amazon-alexa/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '[LIVE] Streamora Nimbus skill 1 2 3 4' || t.startsWith('[LIVE] Streamora Nimbus skill 1 2 3 4'))).toBeTruthy(); }); test('community_forum_174_amazon_alexa: header link "Already a member? Sign In"', async ({ page }) => { await page.goto('/community/forum/174-amazon-alexa/'); 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 === 'Already a member? Sign In' || t.startsWith('Already a member? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_174_amazon_alexa: header link "Reset your password?"', async ({ page }) => { await page.goto('/community/forum/174-amazon-alexa/'); 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 === 'Reset your password?' || t.startsWith('Reset your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_174_amazon_alexa: header link "Register"', async ({ page }) => { await page.goto('/community/forum/174-amazon-alexa/'); 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 === 'Register' || t.startsWith('Register')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_174_amazon_alexa: nav link "Homepage"', async ({ page }) => { await page.goto('/community/forum/174-amazon-alexa/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Homepage' || t.startsWith('Homepage')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_175_netgear_readynas', () => { test('community_forum_175_netgear_readynas: title matches GT', async ({ page }) => { await page.goto('/community/forum/175-netgear-readynas/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('netvora nasbox'); }); test('community_forum_175_netgear_readynas: h1 "Netvora NASBox"', async ({ page }) => { await page.goto('/community/forum/175-netgear-readynas/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Netvora NASBox' || t.startsWith('Netvora NASBox'))).toBeTruthy(); }); test('community_forum_175_netgear_readynas: h2 "59 threads on this board"', async ({ page }) => { await page.goto('/community/forum/175-netgear-readynas/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '59 threads on this board' || t.startsWith('59 threads on this board'))).toBeTruthy(); }); test('community_forum_175_netgear_readynas: h4 "Log In"', async ({ page }) => { await page.goto('/community/forum/175-netgear-readynas/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In'))).toBeTruthy(); }); test('community_forum_175_netgear_readynas: h4 "Streamora on Netvora 1 2 3 4 7"', async ({ page }) => { await page.goto('/community/forum/175-netgear-readynas/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora on Netvora 1 2 3 4 7' || t.startsWith('Streamora on Netvora 1 2 3 4 7'))).toBeTruthy(); }); test('community_forum_175_netgear_readynas: header link "Already a member? Log In"', async ({ page }) => { await page.goto('/community/forum/175-netgear-readynas/'); 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 === 'Already a member? Log In' || t.startsWith('Already a member? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_175_netgear_readynas: header link "Reset your password?"', async ({ page }) => { await page.goto('/community/forum/175-netgear-readynas/'); 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 === 'Reset your password?' || t.startsWith('Reset your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_175_netgear_readynas: header link "Register"', async ({ page }) => { await page.goto('/community/forum/175-netgear-readynas/'); 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 === 'Register' || t.startsWith('Register')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_175_netgear_readynas: nav link "Our Site"', async ({ page }) => { await page.goto('/community/forum/175-netgear-readynas/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Site' || t.startsWith('Our Site')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_176_terramaster_nas', () => { test('community_forum_176_terramaster_nas: title matches GT', async ({ page }) => { await page.goto('/community/forum/176-terramaster-nas/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('terranix nas'); }); test('community_forum_176_terramaster_nas: h1 "Terranix NAS"', async ({ page }) => { await page.goto('/community/forum/176-terramaster-nas/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terranix NAS' || t.startsWith('Terranix NAS'))).toBeTruthy(); }); test('community_forum_176_terramaster_nas: h2 "228 topics started here"', async ({ page }) => { await page.goto('/community/forum/176-terramaster-nas/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '228 topics started here' || t.startsWith('228 topics started here'))).toBeTruthy(); }); test('community_forum_176_terramaster_nas: h4 "Sign In"', async ({ page }) => { await page.goto('/community/forum/176-terramaster-nas/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sign In' || t.startsWith('Sign In'))).toBeTruthy(); }); test('community_forum_176_terramaster_nas: h4 "Streamora for Terranix NAS 1 2"', async ({ page }) => { await page.goto('/community/forum/176-terramaster-nas/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora for Terranix NAS 1 2 3 4 7' || t.startsWith('Streamora for Terranix NAS 1 2 3 4 7'))).toBeTruthy(); }); test('community_forum_176_terramaster_nas: header link "Existing user? Sign In"', async ({ page }) => { await page.goto('/community/forum/176-terramaster-nas/'); 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 === 'Existing user? Sign In' || t.startsWith('Existing user? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_176_terramaster_nas: header link "Forgot your password?"', async ({ page }) => { await page.goto('/community/forum/176-terramaster-nas/'); 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 === 'Forgot your password?' || t.startsWith('Forgot your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_176_terramaster_nas: header link "Sign Up"', async ({ page }) => { await page.goto('/community/forum/176-terramaster-nas/'); 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 === 'Sign Up' || t.startsWith('Sign Up')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_176_terramaster_nas: nav link "Website"', async ({ page }) => { await page.goto('/community/forum/176-terramaster-nas/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Website' || t.startsWith('Website')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_179_android_server', () => { test('community_forum_179_android_server: title matches GT', async ({ page }) => { await page.goto('/community/forum/179-android-server/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('android server'); }); test('community_forum_179_android_server: h1 "Android Server"', async ({ page }) => { await page.goto('/community/forum/179-android-server/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Android Server' || t.startsWith('Android Server'))).toBeTruthy(); }); test('community_forum_179_android_server: h2 "930 topics in this board"', async ({ page }) => { await page.goto('/community/forum/179-android-server/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '930 topics in this board' || t.startsWith('930 topics in this board'))).toBeTruthy(); }); test('community_forum_179_android_server: h4 "Log In"', async ({ page }) => { await page.goto('/community/forum/179-android-server/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In'))).toBeTruthy(); }); test('community_forum_179_android_server: h4 "Streamora Server on my TV box "', async ({ page }) => { await page.goto('/community/forum/179-android-server/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Server on my TV box keeps crashing' || t.startsWith('Streamora Server on my TV box keeps crashing'))).toBeTruthy(); }); test('community_forum_179_android_server: header link "Already a member? Sign In"', async ({ page }) => { await page.goto('/community/forum/179-android-server/'); 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 === 'Already a member? Sign In' || t.startsWith('Already a member? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_179_android_server: header link "Reset your password?"', async ({ page }) => { await page.goto('/community/forum/179-android-server/'); 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 === 'Reset your password?' || t.startsWith('Reset your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_179_android_server: header link "Register"', async ({ page }) => { await page.goto('/community/forum/179-android-server/'); 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 === 'Register' || t.startsWith('Register')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_179_android_server: nav link "Homepage"', async ({ page }) => { await page.goto('/community/forum/179-android-server/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Homepage' || t.startsWith('Homepage')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_17_announcements', () => { test('community_forum_17_announcements: title matches GT', async ({ page }) => { await page.goto('/community/forum/17-announcements/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('announcements'); }); test('community_forum_17_announcements: h1 "News & Updates"', async ({ page }) => { await page.goto('/community/forum/17-announcements/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'News & Updates' || t.startsWith('News & Updates'))).toBeTruthy(); }); test('community_forum_17_announcements: h2 "594 threads in this forum"', async ({ page }) => { await page.goto('/community/forum/17-announcements/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '594 threads in this forum' || t.startsWith('594 threads in this forum'))).toBeTruthy(); }); test('community_forum_17_announcements: h4 "Log In"', async ({ page }) => { await page.goto('/community/forum/17-announcements/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In'))).toBeTruthy(); }); test('community_forum_17_announcements: h4 "Streamora TV 1.0.50 Released"', async ({ page }) => { await page.goto('/community/forum/17-announcements/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora TV 1.0.50 Released' || t.startsWith('Streamora TV 1.0.50 Released'))).toBeTruthy(); }); test('community_forum_17_announcements: header link "Already a member? Log In"', async ({ page }) => { await page.goto('/community/forum/17-announcements/'); 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 === 'Already a member? Log In' || t.startsWith('Already a member? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_17_announcements: header link "Reset your password?"', async ({ page }) => { await page.goto('/community/forum/17-announcements/'); 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 === 'Reset your password?' || t.startsWith('Reset your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_17_announcements: header link "Register"', async ({ page }) => { await page.goto('/community/forum/17-announcements/'); 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 === 'Register' || t.startsWith('Register')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_17_announcements: nav link "Homepage"', async ({ page }) => { await page.goto('/community/forum/17-announcements/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Homepage' || t.startsWith('Homepage')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_180_western_digital', () => { test('community_forum_180_western_digital: title matches GT', async ({ page }) => { await page.goto('/community/forum/180-western-digital/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vantera digital nas'); }); test('community_forum_180_western_digital: h1 "Vantera Digital NAS"', async ({ page }) => { await page.goto('/community/forum/180-western-digital/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vantera Digital NAS' || t.startsWith('Vantera Digital NAS'))).toBeTruthy(); }); test('community_forum_180_western_digital: h2 "179 threads in this forum"', async ({ page }) => { await page.goto('/community/forum/180-western-digital/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '179 threads in this forum' || t.startsWith('179 threads in this forum'))).toBeTruthy(); }); test('community_forum_180_western_digital: h4 "Sign In"', async ({ page }) => { await page.goto('/community/forum/180-western-digital/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sign In' || t.startsWith('Sign In'))).toBeTruthy(); }); test('community_forum_180_western_digital: h4 "Streamora Server on Vantera Di"', async ({ page }) => { await page.goto('/community/forum/180-western-digital/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Server on Vantera Digital NAS units 1 2 3 4 11' || t.startsWith('Streamora Server on Vantera Digital NAS units 1 2 3 4 11'))).toBeTruthy(); }); test('community_forum_180_western_digital: header link "Returning member? Sign In"', async ({ page }) => { await page.goto('/community/forum/180-western-digital/'); 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 === 'Returning member? Sign In' || t.startsWith('Returning member? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_180_western_digital: header link "Trouble signing in?"', async ({ page }) => { await page.goto('/community/forum/180-western-digital/'); 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 === 'Trouble signing in?' || t.startsWith('Trouble signing in?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_180_western_digital: header link "Sign Up"', async ({ page }) => { await page.goto('/community/forum/180-western-digital/'); 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 === 'Sign Up' || t.startsWith('Sign Up')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_180_western_digital: nav link "Website"', async ({ page }) => { await page.goto('/community/forum/180-western-digital/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Website' || t.startsWith('Website')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_182_streamora_provided_guide_data', () => { test('community_forum_182_streamora_provided_guide_data: title matches GT', async ({ page }) => { await page.goto('/community/forum/182-streamora-provided-guide-data/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora guide data'); }); test('community_forum_182_streamora_provided_guide_data: h1 "Streamora Guide Data Feed"', async ({ page }) => { await page.goto('/community/forum/182-streamora-provided-guide-data/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Guide Data Feed' || t.startsWith('Streamora Guide Data Feed'))).toBeTruthy(); }); test('community_forum_182_streamora_provided_guide_data: h2 "430 topics in this board"', async ({ page }) => { await page.goto('/community/forum/182-streamora-provided-guide-data/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '430 topics in this board' || t.startsWith('430 topics in this board'))).toBeTruthy(); }); test('community_forum_182_streamora_provided_guide_data: h4 "Log In"', async ({ page }) => { await page.goto('/community/forum/182-streamora-provided-guide-data/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In'))).toBeTruthy(); }); test('community_forum_182_streamora_provided_guide_data: h4 "Error after typing in postcode"', async ({ page }) => { await page.goto('/community/forum/182-streamora-provided-guide-data/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Error after typing in postcode' || t.startsWith('Error after typing in postcode'))).toBeTruthy(); }); test('community_forum_182_streamora_provided_guide_data: header link "Already a member? Log In"', async ({ page }) => { await page.goto('/community/forum/182-streamora-provided-guide-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 === 'Already a member? Log In' || t.startsWith('Already a member? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_182_streamora_provided_guide_data: header link "Lost your password?"', async ({ page }) => { await page.goto('/community/forum/182-streamora-provided-guide-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 === 'Lost your password?' || t.startsWith('Lost your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_182_streamora_provided_guide_data: header link "Register"', async ({ page }) => { await page.goto('/community/forum/182-streamora-provided-guide-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 === 'Register' || t.startsWith('Register')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_182_streamora_provided_guide_data: nav link "Our Site"', async ({ page }) => { await page.goto('/community/forum/182-streamora-provided-guide-data/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Site' || t.startsWith('Our Site')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_184_streamora_premiere_purchasesubscription_support', () => { test('community_forum_184_streamora_premiere_purchasesubscription_support: title matches GT', async ({ page }) => { await page.goto('/community/forum/184-streamora-premiere-purchasesubscription-support/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora plus purchase/subscription sup'); }); test('community_forum_184_streamora_premiere_purchasesubscription_support: h1 "Streamora Plus Purchase/Subscr"', async ({ page }) => { await page.goto('/community/forum/184-streamora-premiere-purchasesubscription-support/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Plus Purchase/Subscription Support' || t.startsWith('Streamora Plus Purchase/Subscription Support'))).toBeTruthy(); }); test('community_forum_184_streamora_premiere_purchasesubscription_support: h2 "1 thread in this board"', async ({ page }) => { await page.goto('/community/forum/184-streamora-premiere-purchasesubscription-support/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '1 thread in this board' || t.startsWith('1 thread in this board'))).toBeTruthy(); }); test('community_forum_184_streamora_premiere_purchasesubscription_support: h4 "Log In"', async ({ page }) => { await page.goto('/community/forum/184-streamora-premiere-purchasesubscription-support/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In'))).toBeTruthy(); }); test('community_forum_184_streamora_premiere_purchasesubscription_support: h4 "Plus Billing Assistance"', async ({ page }) => { await page.goto('/community/forum/184-streamora-premiere-purchasesubscription-support/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plus Billing Assistance' || t.startsWith('Plus Billing Assistance'))).toBeTruthy(); }); test('community_forum_184_streamora_premiere_purchasesubscription_support: header link "Returning member? Log In"', async ({ page }) => { await page.goto('/community/forum/184-streamora-premiere-purchasesubscription-support/'); 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 === 'Returning member? Log In' || t.startsWith('Returning member? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_184_streamora_premiere_purchasesubscription_support: header link "Misplaced your password?"', async ({ page }) => { await page.goto('/community/forum/184-streamora-premiere-purchasesubscription-support/'); 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 === 'Misplaced your password?' || t.startsWith('Misplaced your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_184_streamora_premiere_purchasesubscription_support: header link "Join Now"', async ({ page }) => { await page.goto('/community/forum/184-streamora-premiere-purchasesubscription-support/'); 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 === 'Join Now' || t.startsWith('Join Now')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_184_streamora_premiere_purchasesubscription_support: nav link "Homepage"', async ({ page }) => { await page.goto('/community/forum/184-streamora-premiere-purchasesubscription-support/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Homepage' || t.startsWith('Homepage')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_185_streamora_for_kodi_next_gen', () => { test('community_forum_185_streamora_for_kodi_next_gen: title matches GT', async ({ page }) => { await page.goto('/community/forum/185-streamora-for-kodi-next-gen/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora for nova next gen'); }); test('community_forum_185_streamora_for_kodi_next_gen: h1 "Streamora For Nova Next"', async ({ page }) => { await page.goto('/community/forum/185-streamora-for-kodi-next-gen/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora For Nova Next' || t.startsWith('Streamora For Nova Next'))).toBeTruthy(); }); test('community_forum_185_streamora_for_kodi_next_gen: h2 "357 threads in this board"', async ({ page }) => { await page.goto('/community/forum/185-streamora-for-kodi-next-gen/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '357 threads in this board' || t.startsWith('357 threads in this board'))).toBeTruthy(); }); test('community_forum_185_streamora_for_kodi_next_gen: h4 "Log In"', async ({ page }) => { await page.goto('/community/forum/185-streamora-for-kodi-next-gen/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In'))).toBeTruthy(); }); test('community_forum_185_streamora_for_kodi_next_gen: h4 "streamorafornova (next-gen) 11"', async ({ page }) => { await page.goto('/community/forum/185-streamora-for-kodi-next-gen/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'streamorafornova (next-gen) 11.X.X support 1 2 3 4 29' || t.startsWith('streamorafornova (next-gen) 11.X.X support 1 2 3 4 29'))).toBeTruthy(); }); test('community_forum_185_streamora_for_kodi_next_gen: header link "Already a member? Log In"', async ({ page }) => { await page.goto('/community/forum/185-streamora-for-kodi-next-gen/'); 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 === 'Already a member? Log In' || t.startsWith('Already a member? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_185_streamora_for_kodi_next_gen: header link "Lost your password?"', async ({ page }) => { await page.goto('/community/forum/185-streamora-for-kodi-next-gen/'); 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 === 'Lost your password?' || t.startsWith('Lost your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_185_streamora_for_kodi_next_gen: header link "Register"', async ({ page }) => { await page.goto('/community/forum/185-streamora-for-kodi-next-gen/'); 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 === 'Register' || t.startsWith('Register')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_185_streamora_for_kodi_next_gen: nav link "Homepage"', async ({ page }) => { await page.goto('/community/forum/185-streamora-for-kodi-next-gen/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Homepage' || t.startsWith('Homepage')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_186_streamoracon', () => { test('community_forum_186_streamoracon: title matches GT', async ({ page }) => { await page.goto('/community/forum/186-streamoracon/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamoracon'); }); test('community_forum_186_streamoracon: h1 "StreamoraCon"', async ({ page }) => { await page.goto('/community/forum/186-streamoracon/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'StreamoraCon' || t.startsWith('StreamoraCon'))).toBeTruthy(); }); test('community_forum_186_streamoracon: h2 "126 threads in this board"', async ({ page }) => { await page.goto('/community/forum/186-streamoracon/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '126 threads in this board' || t.startsWith('126 threads in this board'))).toBeTruthy(); }); test('community_forum_186_streamoracon: h4 "Log In"', async ({ page }) => { await page.goto('/community/forum/186-streamoracon/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In'))).toBeTruthy(); }); test('community_forum_186_streamoracon: h4 "StreamoraCon Cineo add-on 1 2 "', async ({ page }) => { await page.goto('/community/forum/186-streamoracon/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'StreamoraCon Cineo add-on 1 2 3 4' || t.startsWith('StreamoraCon Cineo add-on 1 2 3 4'))).toBeTruthy(); }); test('community_forum_186_streamoracon: header link "Have an account? Log In"', async ({ page }) => { await page.goto('/community/forum/186-streamoracon/'); 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 === 'Have an account? Log In' || t.startsWith('Have an account? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_186_streamoracon: header link "Reset your password?"', async ({ page }) => { await page.goto('/community/forum/186-streamoracon/'); 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 === 'Reset your password?' || t.startsWith('Reset your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_186_streamoracon: header link "Register"', async ({ page }) => { await page.goto('/community/forum/186-streamoracon/'); 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 === 'Register' || t.startsWith('Register')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_186_streamoracon: nav link "Main Site"', async ({ page }) => { await page.goto('/community/forum/186-streamoracon/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Main Site' || t.startsWith('Main Site')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_189_other_smart_tvs', () => { test('community_forum_189_other_smart_tvs: title matches GT', async ({ page }) => { await page.goto('/community/forum/189-other-smart-tvs/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('other smart tvs'); }); test('community_forum_189_other_smart_tvs: h1 "Other Smart TVs"', async ({ page }) => { await page.goto('/community/forum/189-other-smart-tvs/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Other Smart TVs' || t.startsWith('Other Smart TVs'))).toBeTruthy(); }); test('community_forum_189_other_smart_tvs: h2 "12 topics in this board"', async ({ page }) => { await page.goto('/community/forum/189-other-smart-tvs/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '12 topics in this board' || t.startsWith('12 topics in this board'))).toBeTruthy(); }); test('community_forum_189_other_smart_tvs: h4 "Log In"', async ({ page }) => { await page.goto('/community/forum/189-other-smart-tvs/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In'))).toBeTruthy(); }); test('community_forum_189_other_smart_tvs: h4 "Streamora on Vega TV"', async ({ page }) => { await page.goto('/community/forum/189-other-smart-tvs/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora on Vega TV' || t.startsWith('Streamora on Vega TV'))).toBeTruthy(); }); test('community_forum_189_other_smart_tvs: header link "Returning user? Log In"', async ({ page }) => { await page.goto('/community/forum/189-other-smart-tvs/'); 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 === 'Returning user? Log In' || t.startsWith('Returning user? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_189_other_smart_tvs: header link "Lost your login info?"', async ({ page }) => { await page.goto('/community/forum/189-other-smart-tvs/'); 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 === 'Lost your login info?' || t.startsWith('Lost your login info?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_189_other_smart_tvs: header link "Join Now"', async ({ page }) => { await page.goto('/community/forum/189-other-smart-tvs/'); 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 === 'Join Now' || t.startsWith('Join Now')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_189_other_smart_tvs: nav link "Our Site"', async ({ page }) => { await page.goto('/community/forum/189-other-smart-tvs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Site' || t.startsWith('Our Site')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_18_streamora_apps', () => { test('community_forum_18_streamora_apps: title matches GT', async ({ page }) => { await page.goto('/community/forum/18-streamora-apps/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('apps'); }); test('community_forum_18_streamora_apps: h1 "Client Apps"', async ({ page }) => { await page.goto('/community/forum/18-streamora-apps/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Client Apps' || t.startsWith('Client Apps'))).toBeTruthy(); }); test('community_forum_18_streamora_apps: h2 "Forums"', async ({ page }) => { await page.goto('/community/forum/18-streamora-apps/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Forums' || t.startsWith('Forums'))).toBeTruthy(); }); test('community_forum_18_streamora_apps: h4 "Sign In"', async ({ page }) => { await page.goto('/community/forum/18-streamora-apps/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sign In' || t.startsWith('Sign In'))).toBeTruthy(); }); test('community_forum_18_streamora_apps: h4 "Smart Home"', async ({ page }) => { await page.goto('/community/forum/18-streamora-apps/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Smart Home' || t.startsWith('Smart Home'))).toBeTruthy(); }); test('community_forum_18_streamora_apps: header link "Already a member? Sign In"', async ({ page }) => { await page.goto('/community/forum/18-streamora-apps/'); 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 === 'Already a member? Sign In' || t.startsWith('Already a member? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_18_streamora_apps: header link "Forgot your password?"', async ({ page }) => { await page.goto('/community/forum/18-streamora-apps/'); 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 === 'Forgot your password?' || t.startsWith('Forgot your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_18_streamora_apps: header link "Sign Up"', async ({ page }) => { await page.goto('/community/forum/18-streamora-apps/'); 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 === 'Sign Up' || t.startsWith('Sign Up')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_18_streamora_apps: nav link "Website"', async ({ page }) => { await page.goto('/community/forum/18-streamora-apps/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Website' || t.startsWith('Website')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_24_tutorials_and_guides', () => { test('community_forum_24_tutorials_and_guides: title matches GT', async ({ page }) => { await page.goto('/community/forum/24-tutorials-and-guides/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('tutorials and guides'); }); test('community_forum_24_tutorials_and_guides: h1 "Tutorials and Guides"', async ({ page }) => { await page.goto('/community/forum/24-tutorials-and-guides/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Tutorials and Guides' || t.startsWith('Tutorials and Guides'))).toBeTruthy(); }); test('community_forum_24_tutorials_and_guides: h2 "87 topics in this board"', async ({ page }) => { await page.goto('/community/forum/24-tutorials-and-guides/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '87 topics in this board' || t.startsWith('87 topics in this board'))).toBeTruthy(); }); test('community_forum_24_tutorials_and_guides: h4 "Log In"', async ({ page }) => { await page.goto('/community/forum/24-tutorials-and-guides/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In'))).toBeTruthy(); }); test('community_forum_24_tutorials_and_guides: h4 "Steps to upgrade ffmpeg on Arc"', async ({ page }) => { await page.goto('/community/forum/24-tutorials-and-guides/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Steps to upgrade ffmpeg on Arch Linux' || t.startsWith('Steps to upgrade ffmpeg on Arch Linux'))).toBeTruthy(); }); test('community_forum_24_tutorials_and_guides: header link "Returning user? Sign In"', async ({ page }) => { await page.goto('/community/forum/24-tutorials-and-guides/'); 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 === 'Returning user? Sign In' || t.startsWith('Returning user? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_24_tutorials_and_guides: header link "Lost your password?"', async ({ page }) => { await page.goto('/community/forum/24-tutorials-and-guides/'); 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 === 'Lost your password?' || t.startsWith('Lost your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_24_tutorials_and_guides: header link "Join Now"', async ({ page }) => { await page.goto('/community/forum/24-tutorials-and-guides/'); 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 === 'Join Now' || t.startsWith('Join Now')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_24_tutorials_and_guides: nav link "Homepage"', async ({ page }) => { await page.goto('/community/forum/24-tutorials-and-guides/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Homepage' || t.startsWith('Homepage')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_53_generalwindows', () => { test('community_forum_53_generalwindows: title matches GT', async ({ page }) => { await page.goto('/community/forum/53-generalwindows/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('general/windows'); }); test('community_forum_53_generalwindows: h1 "General/Windows"', async ({ page }) => { await page.goto('/community/forum/53-generalwindows/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'General/Windows' || t.startsWith('General/Windows'))).toBeTruthy(); }); test('community_forum_53_generalwindows: h2 "Subforums"', async ({ page }) => { await page.goto('/community/forum/53-generalwindows/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Subforums' || t.startsWith('Subforums'))).toBeTruthy(); }); test('community_forum_53_generalwindows: h2 "29471 topics in this forum"', async ({ page }) => { await page.goto('/community/forum/53-generalwindows/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '29471 topics in this forum' || t.startsWith('29471 topics in this forum'))).toBeTruthy(); }); test('community_forum_53_generalwindows: h4 "Sign In"', async ({ page }) => { await page.goto('/community/forum/53-generalwindows/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sign In' || t.startsWith('Sign In'))).toBeTruthy(); }); test('community_forum_53_generalwindows: header link "Existing user? Sign In"', async ({ page }) => { await page.goto('/community/forum/53-generalwindows/'); 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 === 'Existing user? Sign In' || t.startsWith('Existing user? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_53_generalwindows: header link "Forgot your password?"', async ({ page }) => { await page.goto('/community/forum/53-generalwindows/'); 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 === 'Forgot your password?' || t.startsWith('Forgot your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_53_generalwindows: header link "Sign Up"', async ({ page }) => { await page.goto('/community/forum/53-generalwindows/'); 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 === 'Sign Up' || t.startsWith('Sign Up')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_53_generalwindows: nav link "Website"', async ({ page }) => { await page.goto('/community/forum/53-generalwindows/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Website' || t.startsWith('Website')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_54_windows_xbox', () => { test('community_forum_54_windows_xbox: title matches GT', async ({ page }) => { await page.goto('/community/forum/54-windows-xbox/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('windows & vertex'); }); test('community_forum_54_windows_xbox: h1 "Windows & Vertex"', async ({ page }) => { await page.goto('/community/forum/54-windows-xbox/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Windows & Vertex' || t.startsWith('Windows & Vertex'))).toBeTruthy(); }); test('community_forum_54_windows_xbox: h2 "4985 threads in this forum"', async ({ page }) => { await page.goto('/community/forum/54-windows-xbox/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '4985 threads in this forum' || t.startsWith('4985 threads in this forum'))).toBeTruthy(); }); test('community_forum_54_windows_xbox: h4 "Sign In"', async ({ page }) => { await page.goto('/community/forum/54-windows-xbox/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sign In' || t.startsWith('Sign In'))).toBeTruthy(); }); test('community_forum_54_windows_xbox: h4 "New Windows & Vertex Release: "', async ({ page }) => { await page.goto('/community/forum/54-windows-xbox/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'New Windows & Vertex Release: 2.234.0.0 1 2' || t.startsWith('New Windows & Vertex Release: 2.234.0.0 1 2'))).toBeTruthy(); }); test('community_forum_54_windows_xbox: header link "Already a member? Sign In"', async ({ page }) => { await page.goto('/community/forum/54-windows-xbox/'); 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 === 'Already a member? Sign In' || t.startsWith('Already a member? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_54_windows_xbox: header link "Lost your password?"', async ({ page }) => { await page.goto('/community/forum/54-windows-xbox/'); 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 === 'Lost your password?' || t.startsWith('Lost your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_54_windows_xbox: header link "Sign Up"', async ({ page }) => { await page.goto('/community/forum/54-windows-xbox/'); 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 === 'Sign Up' || t.startsWith('Sign Up')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_54_windows_xbox: nav link "Website"', async ({ page }) => { await page.goto('/community/forum/54-windows-xbox/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Website' || t.startsWith('Website')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_91_roku', () => { test('community_forum_91_roku: title matches GT', async ({ page }) => { await page.goto('/community/forum/91-roku/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vireo'); }); test('community_forum_91_roku: h1 "Vireo"', async ({ page }) => { await page.goto('/community/forum/91-roku/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vireo' || t.startsWith('Vireo'))).toBeTruthy(); }); test('community_forum_91_roku: h2 "2714 threads on this board"', async ({ page }) => { await page.goto('/community/forum/91-roku/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '2714 threads on this board' || t.startsWith('2714 threads on this board'))).toBeTruthy(); }); test('community_forum_91_roku: h4 "Log In"', async ({ page }) => { await page.goto('/community/forum/91-roku/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In'))).toBeTruthy(); }); test('community_forum_91_roku: h4 "Streamora Vireo Release Notes"', async ({ page }) => { await page.goto('/community/forum/91-roku/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Vireo Release Notes' || t.startsWith('Streamora Vireo Release Notes'))).toBeTruthy(); }); test('community_forum_91_roku: header link "Returning user? Sign In"', async ({ page }) => { await page.goto('/community/forum/91-roku/'); 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 === 'Returning user? Sign In' || t.startsWith('Returning user? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_91_roku: header link "Trouble logging in?"', async ({ page }) => { await page.goto('/community/forum/91-roku/'); 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 === 'Trouble logging in?' || t.startsWith('Trouble logging in?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_91_roku: header link "Join Up"', async ({ page }) => { await page.goto('/community/forum/91-roku/'); 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 === 'Join Up' || t.startsWith('Join Up')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_91_roku: nav link "Our Site"', async ({ page }) => { await page.goto('/community/forum/91-roku/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Site' || t.startsWith('Our Site')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_93_android', () => { test('community_forum_93_android: title matches GT', async ({ page }) => { await page.goto('/community/forum/93-android/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('android'); }); test('community_forum_93_android: h1 "Android"', async ({ page }) => { await page.goto('/community/forum/93-android/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Android' || t.startsWith('Android'))).toBeTruthy(); }); test('community_forum_93_android: h2 "3794 topics in this forum"', async ({ page }) => { await page.goto('/community/forum/93-android/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '3794 topics in this forum' || t.startsWith('3794 topics in this forum'))).toBeTruthy(); }); test('community_forum_93_android: h4 "Sign In"', async ({ page }) => { await page.goto('/community/forum/93-android/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sign In' || t.startsWith('Sign In'))).toBeTruthy(); }); test('community_forum_93_android: h4 "Android Mobile 1 2 3 4 54"', async ({ page }) => { await page.goto('/community/forum/93-android/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Android Mobile 1 2 3 4 54' || t.startsWith('Android Mobile 1 2 3 4 54'))).toBeTruthy(); }); test('community_forum_93_android: header link "Already a member? Sign In"', async ({ page }) => { await page.goto('/community/forum/93-android/'); 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 === 'Already a member? Sign In' || t.startsWith('Already a member? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_93_android: header link "Forgot your password?"', async ({ page }) => { await page.goto('/community/forum/93-android/'); 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 === 'Forgot your password?' || t.startsWith('Forgot your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_93_android: header link "Sign Up"', async ({ page }) => { await page.goto('/community/forum/93-android/'); 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 === 'Sign Up' || t.startsWith('Sign Up')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_93_android: nav link "Website"', async ({ page }) => { await page.goto('/community/forum/93-android/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Website' || t.startsWith('Website')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_94_apple_ios_macos', () => { test('community_forum_94_apple_ios_macos: title matches GT', async ({ page }) => { await page.goto('/community/forum/94-apple-ios-macos/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('mobile & desktop'); }); test('community_forum_94_apple_ios_macos: h1 "Mobile & Desktop"', async ({ page }) => { await page.goto('/community/forum/94-apple-ios-macos/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Mobile & Desktop' || t.startsWith('Mobile & Desktop'))).toBeTruthy(); }); test('community_forum_94_apple_ios_macos: h2 "1767 threads in this board"', async ({ page }) => { await page.goto('/community/forum/94-apple-ios-macos/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '1767 threads in this board' || t.startsWith('1767 threads in this board'))).toBeTruthy(); }); test('community_forum_94_apple_ios_macos: h4 "Log In"', async ({ page }) => { await page.goto('/community/forum/94-apple-ios-macos/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In'))).toBeTruthy(); }); test('community_forum_94_apple_ios_macos: h4 "Streamora Mobile Changelog"', async ({ page }) => { await page.goto('/community/forum/94-apple-ios-macos/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Mobile Changelog' || t.startsWith('Streamora Mobile Changelog'))).toBeTruthy(); }); test('community_forum_94_apple_ios_macos: header link "Returning user? Log In"', async ({ page }) => { await page.goto('/community/forum/94-apple-ios-macos/'); 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 === 'Returning user? Log In' || t.startsWith('Returning user? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_94_apple_ios_macos: header link "Reset your password?"', async ({ page }) => { await page.goto('/community/forum/94-apple-ios-macos/'); 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 === 'Reset your password?' || t.startsWith('Reset your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_94_apple_ios_macos: header link "Join Now"', async ({ page }) => { await page.goto('/community/forum/94-apple-ios-macos/'); 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 === 'Join Now' || t.startsWith('Join Now')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_94_apple_ios_macos: nav link "Homepage"', async ({ page }) => { await page.goto('/community/forum/94-apple-ios-macos/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Homepage' || t.startsWith('Homepage')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_97_live_tv', () => { test('community_forum_97_live_tv: title matches GT', async ({ page }) => { await page.goto('/community/forum/97-live-tv/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('live tv'); }); test('community_forum_97_live_tv: h1 "Live TV"', async ({ page }) => { await page.goto('/community/forum/97-live-tv/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Live TV' || t.startsWith('Live TV'))).toBeTruthy(); }); test('community_forum_97_live_tv: h2 "Subforums"', async ({ page }) => { await page.goto('/community/forum/97-live-tv/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Subforums' || t.startsWith('Subforums'))).toBeTruthy(); }); test('community_forum_97_live_tv: h2 "5120 topics in this forum"', async ({ page }) => { await page.goto('/community/forum/97-live-tv/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '5120 topics in this forum' || t.startsWith('5120 topics in this forum'))).toBeTruthy(); }); test('community_forum_97_live_tv: h4 "Log In"', async ({ page }) => { await page.goto('/community/forum/97-live-tv/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In'))).toBeTruthy(); }); test('community_forum_97_live_tv: header link "Returning user? Sign In"', async ({ page }) => { await page.goto('/community/forum/97-live-tv/'); 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 === 'Returning user? Sign In' || t.startsWith('Returning user? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_97_live_tv: header link "Reset your password?"', async ({ page }) => { await page.goto('/community/forum/97-live-tv/'); 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 === 'Reset your password?' || t.startsWith('Reset your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_97_live_tv: header link "Join Us"', async ({ page }) => { await page.goto('/community/forum/97-live-tv/'); 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 === 'Join Us' || t.startsWith('Join Us')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_97_live_tv: nav link "Our Site"', async ({ page }) => { await page.goto('/community/forum/97-live-tv/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Site' || t.startsWith('Our Site')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_98_feature_requests', () => { test('community_forum_98_feature_requests: title matches GT', async ({ page }) => { await page.goto('/community/forum/98-feature-requests/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('feature requests'); }); test('community_forum_98_feature_requests: h1 "Feature Wishlist"', async ({ page }) => { await page.goto('/community/forum/98-feature-requests/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Feature Wishlist' || t.startsWith('Feature Wishlist'))).toBeTruthy(); }); test('community_forum_98_feature_requests: h2 "8247 topics in this board"', async ({ page }) => { await page.goto('/community/forum/98-feature-requests/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '8247 topics in this board' || t.startsWith('8247 topics in this board'))).toBeTruthy(); }); test('community_forum_98_feature_requests: h4 "Log In"', async ({ page }) => { await page.goto('/community/forum/98-feature-requests/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In'))).toBeTruthy(); }); test('community_forum_98_feature_requests: h4 "How to sort feature ideas by h"', async ({ page }) => { await page.goto('/community/forum/98-feature-requests/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to sort feature ideas by highest votes' || t.startsWith('How to sort feature ideas by highest votes'))).toBeTruthy(); }); test('community_forum_98_feature_requests: header link "Already a member? Log In"', async ({ page }) => { await page.goto('/community/forum/98-feature-requests/'); 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 === 'Already a member? Log In' || t.startsWith('Already a member? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_98_feature_requests: header link "Can\'t recall password?"', async ({ page }) => { await page.goto('/community/forum/98-feature-requests/'); 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 === 'Can\'t recall password?' || t.startsWith('Can\'t recall password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_98_feature_requests: header link "Join Now"', async ({ page }) => { await page.goto('/community/forum/98-feature-requests/'); 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 === 'Join Now' || t.startsWith('Join Now')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_98_feature_requests: nav link "Our Site"', async ({ page }) => { await page.goto('/community/forum/98-feature-requests/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Site' || t.startsWith('Our Site')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_forum_99_kodi', () => { test('community_forum_99_kodi: title matches GT', async ({ page }) => { await page.goto('/community/forum/99-kodi/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('mythra'); }); test('community_forum_99_kodi: h1 "Mythra"', async ({ page }) => { await page.goto('/community/forum/99-kodi/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Mythra' || t.startsWith('Mythra'))).toBeTruthy(); }); test('community_forum_99_kodi: h2 "Sub-boards"', async ({ page }) => { await page.goto('/community/forum/99-kodi/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sub-boards' || t.startsWith('Sub-boards'))).toBeTruthy(); }); test('community_forum_99_kodi: h2 "3861 topics in this forum"', async ({ page }) => { await page.goto('/community/forum/99-kodi/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '3861 topics in this forum' || t.startsWith('3861 topics in this forum'))).toBeTruthy(); }); test('community_forum_99_kodi: h4 "Log In"', async ({ page }) => { await page.goto('/community/forum/99-kodi/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Log In' || t.startsWith('Log In'))).toBeTruthy(); }); test('community_forum_99_kodi: header link "Returning user? Log In"', async ({ page }) => { await page.goto('/community/forum/99-kodi/'); 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 === 'Returning user? Log In' || t.startsWith('Returning user? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_forum_99_kodi: header link "Reset your password?"', async ({ page }) => { await page.goto('/community/forum/99-kodi/'); 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 === 'Reset your password?' || t.startsWith('Reset your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_forum_99_kodi: header link "Join Now"', async ({ page }) => { await page.goto('/community/forum/99-kodi/'); 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 === 'Join Now' || t.startsWith('Join Now')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_forum_99_kodi: nav link "Our Site"', async ({ page }) => { await page.goto('/community/forum/99-kodi/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Site' || t.startsWith('Our Site')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_103622_tv_screensaver_starts_when_playing_photos_diaporama', () => { test('community_topic_103622_tv_screensaver_starts_when_playing_photos_diaporama: title matches GT', async ({ page }) => { await page.goto('/community/topic/103622-tv-screensaver-starts-when-playing-photos-diaporama/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('photo diaporama keeps triggering the tv '); }); test('community_topic_103622_tv_screensaver_starts_when_playing_photos_diaporama: h1 "Photo diaporama keeps triggeri"', async ({ page }) => { await page.goto('/community/topic/103622-tv-screensaver-starts-when-playing-photos-diaporama/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Photo diaporama keeps triggering the TV screensaver' || t.startsWith('Photo diaporama keeps triggering the TV screensaver'))).toBeTruthy(); }); test('community_topic_103622_tv_screensaver_starts_when_playing_photos_diaporama: h2 "Suggested Replies"', async ({ page }) => { await page.goto('/community/topic/103622-tv-screensaver-starts-when-playing-photos-diaporama/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Suggested Replies' || t.startsWith('Suggested Replies'))).toBeTruthy(); }); test('community_topic_103622_tv_screensaver_starts_when_playing_photos_diaporama: h2 "Register or sign in to join th"', async ({ page }) => { await page.goto('/community/topic/103622-tv-screensaver-starts-when-playing-photos-diaporama/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Register or sign in to join the discussion' || t.startsWith('Register or sign in to join the discussion'))).toBeTruthy(); }); test('community_topic_103622_tv_screensaver_starts_when_playing_photos_diaporama: h2 "Set up an account"', async ({ page }) => { await page.goto('/community/topic/103622-tv-screensaver-starts-when-playing-photos-diaporama/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Set up an account' || t.startsWith('Set up an account'))).toBeTruthy(); }); test('community_topic_103622_tv_screensaver_starts_when_playing_photos_diaporama: header link "Returning user? Sign In"', async ({ page }) => { await page.goto('/community/topic/103622-tv-screensaver-starts-when-playing-photos-diaporama/'); 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 === 'Returning user? Sign In' || t.startsWith('Returning user? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_103622_tv_screensaver_starts_when_playing_photos_diaporama: header link "Lost your password?"', async ({ page }) => { await page.goto('/community/topic/103622-tv-screensaver-starts-when-playing-photos-diaporama/'); 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 === 'Lost your password?' || t.startsWith('Lost your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_103622_tv_screensaver_starts_when_playing_photos_diaporama: header link "Join Now"', async ({ page }) => { await page.goto('/community/topic/103622-tv-screensaver-starts-when-playing-photos-diaporama/'); 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 === 'Join Now' || t.startsWith('Join Now')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_103622_tv_screensaver_starts_when_playing_photos_diaporama: nav link "Homepage"', async ({ page }) => { await page.goto('/community/topic/103622-tv-screensaver-starts-when-playing-photos-diaporama/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Homepage' || t.startsWith('Homepage')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_110804_playstaion_5', () => { test('community_topic_110804_playstaion_5: title matches GT', async ({ page }) => { await page.goto('/community/topic/110804-playstaion-5/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('zenova playforge 5'); }); test('community_topic_110804_playstaion_5: h1 "Zenova PlayForge 5"', async ({ page }) => { await page.goto('/community/topic/110804-playstaion-5/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Zenova PlayForge 5' || t.startsWith('Zenova PlayForge 5'))).toBeTruthy(); }); test('community_topic_110804_playstaion_5: h2 "Suggested Replies"', async ({ page }) => { await page.goto('/community/topic/110804-playstaion-5/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Suggested Replies' || t.startsWith('Suggested Replies'))).toBeTruthy(); }); test('community_topic_110804_playstaion_5: h2 "Sign in or create an account t"', async ({ page }) => { await page.goto('/community/topic/110804-playstaion-5/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sign in or create an account to reply' || t.startsWith('Sign in or create an account to reply'))).toBeTruthy(); }); test('community_topic_110804_playstaion_5: h2 "Set up an account"', async ({ page }) => { await page.goto('/community/topic/110804-playstaion-5/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Set up an account' || t.startsWith('Set up an account'))).toBeTruthy(); }); test('community_topic_110804_playstaion_5: header link "Returning user? Log In"', async ({ page }) => { await page.goto('/community/topic/110804-playstaion-5/'); 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 === 'Returning user? Log In' || t.startsWith('Returning user? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_110804_playstaion_5: header link "Reset your password?"', async ({ page }) => { await page.goto('/community/topic/110804-playstaion-5/'); 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 === 'Reset your password?' || t.startsWith('Reset your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_110804_playstaion_5: header link "Join Now"', async ({ page }) => { await page.goto('/community/topic/110804-playstaion-5/'); 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 === 'Join Now' || t.startsWith('Join Now')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_110804_playstaion_5: nav link "Portal"', async ({ page }) => { await page.goto('/community/topic/110804-playstaion-5/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Portal' || t.startsWith('Portal')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_113284_guide_ssl_qnap_certificate_and_streamora_manual_and_automatic', () => { test('community_topic_113284_guide_ssl_qnap_certificate_and_streamora_manual_and_automatic: title matches GT', async ({ page }) => { await page.goto('/community/topic/113284-guide-ssl-qnap-certificate-and-streamora-manual-and-automatic/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('guide'); }); test('community_topic_113284_guide_ssl_qnap_certificate_and_streamora_manual_and_automatic: h1 "Guide - SSL Qorenta certificat"', async ({ page }) => { await page.goto('/community/topic/113284-guide-ssl-qnap-certificate-and-streamora-manual-and-automatic/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Guide - SSL Qorenta certificate and Streamora (manual and automatic)' || t.startsWith('Guide - SSL Qorenta certificate and Streamora (manual and automatic)'))).toBeTruthy(); }); test('community_topic_113284_guide_ssl_qnap_certificate_and_streamora_manual_and_automatic: h2 "Recommended Posts"', async ({ page }) => { await page.goto('/community/topic/113284-guide-ssl-qnap-certificate-and-streamora-manual-and-automatic/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recommended Posts' || t.startsWith('Recommended Posts'))).toBeTruthy(); }); test('community_topic_113284_guide_ssl_qnap_certificate_and_streamora_manual_and_automatic: h2 "Sign up or log in to add your "', async ({ page }) => { await page.goto('/community/topic/113284-guide-ssl-qnap-certificate-and-streamora-manual-and-automatic/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sign up or log in to add your comment' || t.startsWith('Sign up or log in to add your comment'))).toBeTruthy(); }); test('community_topic_113284_guide_ssl_qnap_certificate_and_streamora_manual_and_automatic: h2 "Set up an account"', async ({ page }) => { await page.goto('/community/topic/113284-guide-ssl-qnap-certificate-and-streamora-manual-and-automatic/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Set up an account' || t.startsWith('Set up an account'))).toBeTruthy(); }); test('community_topic_113284_guide_ssl_qnap_certificate_and_streamora_manual_and_automatic: header link "Returning user? Sign In"', async ({ page }) => { await page.goto('/community/topic/113284-guide-ssl-qnap-certificate-and-streamora-manual-and-automatic/'); 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 === 'Returning user? Sign In' || t.startsWith('Returning user? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_113284_guide_ssl_qnap_certificate_and_streamora_manual_and_automatic: header link "Reset your password?"', async ({ page }) => { await page.goto('/community/topic/113284-guide-ssl-qnap-certificate-and-streamora-manual-and-automatic/'); 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 === 'Reset your password?' || t.startsWith('Reset your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_113284_guide_ssl_qnap_certificate_and_streamora_manual_and_automatic: header link "Sign Up"', async ({ page }) => { await page.goto('/community/topic/113284-guide-ssl-qnap-certificate-and-streamora-manual-and-automatic/'); 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 === 'Sign Up' || t.startsWith('Sign Up')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_113284_guide_ssl_qnap_certificate_and_streamora_manual_and_automatic: nav link "Website"', async ({ page }) => { await page.goto('/community/topic/113284-guide-ssl-qnap-certificate-and-streamora-manual-and-automatic/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Website' || t.startsWith('Website')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_121722_shieldtv_and_did_you_know_tips_just_wont_go_away', () => { test('community_topic_121722_shieldtv_and_did_you_know_tips_just_wont_go_away: title matches GT', async ({ page }) => { await page.goto('/community/topic/121722-shieldtv-and-did-you-know-tips-just-wont-go-away/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streambox and "did you know" tips just w'); }); test('community_topic_121722_shieldtv_and_did_you_know_tips_just_wont_go_away: h1 "StreamBox and did you know tip"', async ({ page }) => { await page.goto('/community/topic/121722-shieldtv-and-did-you-know-tips-just-wont-go-away/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'StreamBox and "did you know" tips just won\'t go away.' || t.startsWith('StreamBox and "did you know" tips just won\'t go away.'))).toBeTruthy(); }); test('community_topic_121722_shieldtv_and_did_you_know_tips_just_wont_go_away: h2 "Recommended Posts"', async ({ page }) => { await page.goto('/community/topic/121722-shieldtv-and-did-you-know-tips-just-wont-go-away/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recommended Posts' || t.startsWith('Recommended Posts'))).toBeTruthy(); }); test('community_topic_121722_shieldtv_and_did_you_know_tips_just_wont_go_away: h2 "Register or sign in to join th"', async ({ page }) => { await page.goto('/community/topic/121722-shieldtv-and-did-you-know-tips-just-wont-go-away/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Register or sign in to join the discussion' || t.startsWith('Register or sign in to join the discussion'))).toBeTruthy(); }); test('community_topic_121722_shieldtv_and_did_you_know_tips_just_wont_go_away: h2 "Set up an account"', async ({ page }) => { await page.goto('/community/topic/121722-shieldtv-and-did-you-know-tips-just-wont-go-away/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Set up an account' || t.startsWith('Set up an account'))).toBeTruthy(); }); test('community_topic_121722_shieldtv_and_did_you_know_tips_just_wont_go_away: header link "Already a member? Log In"', async ({ page }) => { await page.goto('/community/topic/121722-shieldtv-and-did-you-know-tips-just-wont-go-away/'); 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 === 'Already a member? Log In' || t.startsWith('Already a member? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_121722_shieldtv_and_did_you_know_tips_just_wont_go_away: header link "Lost your password?"', async ({ page }) => { await page.goto('/community/topic/121722-shieldtv-and-did-you-know-tips-just-wont-go-away/'); 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 === 'Lost your password?' || t.startsWith('Lost your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_121722_shieldtv_and_did_you_know_tips_just_wont_go_away: header link "Register"', async ({ page }) => { await page.goto('/community/topic/121722-shieldtv-and-did-you-know-tips-just-wont-go-away/'); 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 === 'Register' || t.startsWith('Register')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_121722_shieldtv_and_did_you_know_tips_just_wont_go_away: nav link "Website"', async ({ page }) => { await page.goto('/community/topic/121722-shieldtv-and-did-you-know-tips-just-wont-go-away/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Website' || t.startsWith('Website')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_127031_createrestore_collections_library_on_new_install', () => { test('community_topic_127031_createrestore_collections_library_on_new_install: title matches GT', async ({ page }) => { await page.goto('/community/topic/127031-createrestore-collections-library-on-new-install/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('setting up a collections library on a fr'); }); test('community_topic_127031_createrestore_collections_library_on_new_install: h1 "Setting up a Collections libra"', async ({ page }) => { await page.goto('/community/topic/127031-createrestore-collections-library-on-new-install/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Setting up a Collections library on a fresh install' || t.startsWith('Setting up a Collections library on a fresh install'))).toBeTruthy(); }); test('community_topic_127031_createrestore_collections_library_on_new_install: h2 "Suggested Replies"', async ({ page }) => { await page.goto('/community/topic/127031-createrestore-collections-library-on-new-install/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Suggested Replies' || t.startsWith('Suggested Replies'))).toBeTruthy(); }); test('community_topic_127031_createrestore_collections_library_on_new_install: h3 "GrimReaper 4982"', async ({ page }) => { await page.goto('/community/topic/127031-createrestore-collections-library-on-new-install/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'GrimReaper 4982' || t.startsWith('GrimReaper 4982'))).toBeTruthy(); }); test('community_topic_127031_createrestore_collections_library_on_new_install: h3 "GrimReaper"', async ({ page }) => { await page.goto('/community/topic/127031-createrestore-collections-library-on-new-install/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'GrimReaper' || t.startsWith('GrimReaper'))).toBeTruthy(); }); test('community_topic_127031_createrestore_collections_library_on_new_install: header link "Already a member? Log In"', async ({ page }) => { await page.goto('/community/topic/127031-createrestore-collections-library-on-new-install/'); 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 === 'Already a member? Log In' || t.startsWith('Already a member? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_127031_createrestore_collections_library_on_new_install: header link "Trouble signing in?"', async ({ page }) => { await page.goto('/community/topic/127031-createrestore-collections-library-on-new-install/'); 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 === 'Trouble signing in?' || t.startsWith('Trouble signing in?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_127031_createrestore_collections_library_on_new_install: header link "Join Us"', async ({ page }) => { await page.goto('/community/topic/127031-createrestore-collections-library-on-new-install/'); 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 === 'Join Us' || t.startsWith('Join Us')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_127031_createrestore_collections_library_on_new_install: nav link "Our Site"', async ({ page }) => { await page.goto('/community/topic/127031-createrestore-collections-library-on-new-install/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Site' || t.startsWith('Our Site')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_131507_streamoraforkodi_next_gen_11xx_support', () => { test('community_topic_131507_streamoraforkodi_next_gen_11xx_support: title matches GT', async ({ page }) => { await page.goto('/community/topic/131507-streamoraforkodi-next-gen-11xx-support/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamoraformythra (next'); }); test('community_topic_131507_streamoraforkodi_next_gen_11xx_support: h1 "streamoraformythra (next-gen) "', async ({ page }) => { await page.goto('/community/topic/131507-streamoraforkodi-next-gen-11xx-support/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'streamoraformythra (next-gen) 11.X.X support' || t.startsWith('streamoraformythra (next-gen) 11.X.X support'))).toBeTruthy(); }); test('community_topic_131507_streamoraforkodi_next_gen_11xx_support: h2 "Featured Replies"', async ({ page }) => { await page.goto('/community/topic/131507-streamoraforkodi-next-gen-11xx-support/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Featured Replies' || t.startsWith('Featured Replies'))).toBeTruthy(); }); test('community_topic_131507_streamoraforkodi_next_gen_11xx_support: h2 "Create an account or sign in t"', async ({ page }) => { await page.goto('/community/topic/131507-streamoraforkodi-next-gen-11xx-support/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Create an account or sign in to reply' || t.startsWith('Create an account or sign in to reply'))).toBeTruthy(); }); test('community_topic_131507_streamoraforkodi_next_gen_11xx_support: h2 "Set up an account"', async ({ page }) => { await page.goto('/community/topic/131507-streamoraforkodi-next-gen-11xx-support/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Set up an account' || t.startsWith('Set up an account'))).toBeTruthy(); }); test('community_topic_131507_streamoraforkodi_next_gen_11xx_support: header link "Already a member? Log In"', async ({ page }) => { await page.goto('/community/topic/131507-streamoraforkodi-next-gen-11xx-support/'); 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 === 'Already a member? Log In' || t.startsWith('Already a member? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_131507_streamoraforkodi_next_gen_11xx_support: header link "Reset your password?"', async ({ page }) => { await page.goto('/community/topic/131507-streamoraforkodi-next-gen-11xx-support/'); 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 === 'Reset your password?' || t.startsWith('Reset your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_131507_streamoraforkodi_next_gen_11xx_support: header link "Join Us"', async ({ page }) => { await page.goto('/community/topic/131507-streamoraforkodi-next-gen-11xx-support/'); 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 === 'Join Us' || t.startsWith('Join Us')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_131507_streamoraforkodi_next_gen_11xx_support: nav link "Our Site"', async ({ page }) => { await page.goto('/community/topic/131507-streamoraforkodi-next-gen-11xx-support/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Site' || t.startsWith('Our Site')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_134143_parental_controls_media_disappears_when_meta_data_changes', () => { test('community_topic_134143_parental_controls_media_disappears_when_meta_data_changes: title matches GT', async ({ page }) => { await page.goto('/community/topic/134143-parental-controls-media-disappears-when-meta-data-changes/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('parental controls'); }); test('community_topic_134143_parental_controls_media_disappears_when_meta_data_changes: h1 "Parental Controls: Titles vani"', async ({ page }) => { await page.goto('/community/topic/134143-parental-controls-media-disappears-when-meta-data-changes/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Parental Controls: Titles vanish after a metadata refresh' || t.startsWith('Parental Controls: Titles vanish after a metadata refresh'))).toBeTruthy(); }); test('community_topic_134143_parental_controls_media_disappears_when_meta_data_changes: h2 "Recommended Posts"', async ({ page }) => { await page.goto('/community/topic/134143-parental-controls-media-disappears-when-meta-data-changes/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recommended Posts' || t.startsWith('Recommended Posts'))).toBeTruthy(); }); test('community_topic_134143_parental_controls_media_disappears_when_meta_data_changes: h2 "Create an account or sign in t"', async ({ page }) => { await page.goto('/community/topic/134143-parental-controls-media-disappears-when-meta-data-changes/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Create an account or sign in to comment' || t.startsWith('Create an account or sign in to comment'))).toBeTruthy(); }); test('community_topic_134143_parental_controls_media_disappears_when_meta_data_changes: h2 "Join the community"', async ({ page }) => { await page.goto('/community/topic/134143-parental-controls-media-disappears-when-meta-data-changes/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Join the community' || t.startsWith('Join the community'))).toBeTruthy(); }); test('community_topic_134143_parental_controls_media_disappears_when_meta_data_changes: header link "Existing user? Sign In"', async ({ page }) => { await page.goto('/community/topic/134143-parental-controls-media-disappears-when-meta-data-changes/'); 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 === 'Existing user? Sign In' || t.startsWith('Existing user? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_134143_parental_controls_media_disappears_when_meta_data_changes: header link "Forgot your password?"', async ({ page }) => { await page.goto('/community/topic/134143-parental-controls-media-disappears-when-meta-data-changes/'); 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 === 'Forgot your password?' || t.startsWith('Forgot your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_134143_parental_controls_media_disappears_when_meta_data_changes: header link "Sign Up"', async ({ page }) => { await page.goto('/community/topic/134143-parental-controls-media-disappears-when-meta-data-changes/'); 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 === 'Sign Up' || t.startsWith('Sign Up')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_134143_parental_controls_media_disappears_when_meta_data_changes: nav link "Website"', async ({ page }) => { await page.goto('/community/topic/134143-parental-controls-media-disappears-when-meta-data-changes/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Website' || t.startsWith('Website')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_134353_hardware_transcode_fails_tos_6', () => { test('community_topic_134353_hardware_transcode_fails_tos_6: title matches GT', async ({ page }) => { await page.goto('/community/topic/134353-hardware-transcode-fails-tos-6/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('hardware transcode broken on terraos 6'); }); test('community_topic_134353_hardware_transcode_fails_tos_6: h1 "Hardware transcode broken on T"', async ({ page }) => { await page.goto('/community/topic/134353-hardware-transcode-fails-tos-6/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Hardware transcode broken on TerraOS 6' || t.startsWith('Hardware transcode broken on TerraOS 6'))).toBeTruthy(); }); test('community_topic_134353_hardware_transcode_fails_tos_6: h2 "Featured Replies"', async ({ page }) => { await page.goto('/community/topic/134353-hardware-transcode-fails-tos-6/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Featured Replies' || t.startsWith('Featured Replies'))).toBeTruthy(); }); test('community_topic_134353_hardware_transcode_fails_tos_6: h2 "Sign in or register to leave a"', async ({ page }) => { await page.goto('/community/topic/134353-hardware-transcode-fails-tos-6/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sign in or register to leave a comment' || t.startsWith('Sign in or register to leave a comment'))).toBeTruthy(); }); test('community_topic_134353_hardware_transcode_fails_tos_6: h2 "Set up an account"', async ({ page }) => { await page.goto('/community/topic/134353-hardware-transcode-fails-tos-6/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Set up an account' || t.startsWith('Set up an account'))).toBeTruthy(); }); test('community_topic_134353_hardware_transcode_fails_tos_6: header link "Already a member? Sign In"', async ({ page }) => { await page.goto('/community/topic/134353-hardware-transcode-fails-tos-6/'); 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 === 'Already a member? Sign In' || t.startsWith('Already a member? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_134353_hardware_transcode_fails_tos_6: header link "Lost your password?"', async ({ page }) => { await page.goto('/community/topic/134353-hardware-transcode-fails-tos-6/'); 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 === 'Lost your password?' || t.startsWith('Lost your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_134353_hardware_transcode_fails_tos_6: header link "Sign Up"', async ({ page }) => { await page.goto('/community/topic/134353-hardware-transcode-fails-tos-6/'); 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 === 'Sign Up' || t.startsWith('Sign Up')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_134353_hardware_transcode_fails_tos_6: nav link "Website"', async ({ page }) => { await page.goto('/community/topic/134353-hardware-transcode-fails-tos-6/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Website' || t.startsWith('Website')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_142000_macos_streamora_app_crashing', () => { test('community_topic_142000_macos_streamora_app_crashing: title matches GT', async ({ page }) => { await page.goto('/community/topic/142000-macos-emby-app-crashing/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('macos streamora app crash'); }); test('community_topic_142000_macos_streamora_app_crashing: h1 "MacOS Streamora app crash"', async ({ page }) => { await page.goto('/community/topic/142000-macos-emby-app-crashing/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'MacOS Streamora app crash' || t.startsWith('MacOS Streamora app crash'))).toBeTruthy(); }); test('community_topic_142000_macos_streamora_app_crashing: h2 "Suggested Replies"', async ({ page }) => { await page.goto('/community/topic/142000-macos-emby-app-crashing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Suggested Replies' || t.startsWith('Suggested Replies'))).toBeTruthy(); }); test('community_topic_142000_macos_streamora_app_crashing: h2 "Create an account or sign in t"', async ({ page }) => { await page.goto('/community/topic/142000-macos-emby-app-crashing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Create an account or sign in to comment' || t.startsWith('Create an account or sign in to comment'))).toBeTruthy(); }); test('community_topic_142000_macos_streamora_app_crashing: h2 "Create an account"', async ({ page }) => { await page.goto('/community/topic/142000-macos-emby-app-crashing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Create an account' || t.startsWith('Create an account'))).toBeTruthy(); }); test('community_topic_142000_macos_streamora_app_crashing: header link "Already a member? Log In"', async ({ page }) => { await page.goto('/community/topic/142000-macos-emby-app-crashing/'); 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 === 'Already a member? Log In' || t.startsWith('Already a member? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_142000_macos_streamora_app_crashing: header link "Reset your password?"', async ({ page }) => { await page.goto('/community/topic/142000-macos-emby-app-crashing/'); 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 === 'Reset your password?' || t.startsWith('Reset your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_142000_macos_streamora_app_crashing: header link "Create Account"', async ({ page }) => { await page.goto('/community/topic/142000-macos-emby-app-crashing/'); 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 === 'Create Account' || t.startsWith('Create Account')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_142000_macos_streamora_app_crashing: nav link "Homepage"', async ({ page }) => { await page.goto('/community/topic/142000-macos-emby-app-crashing/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Homepage' || t.startsWith('Homepage')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_143686_streamora_server_on_nvidia_shield_keeps_crashing', () => { test('community_topic_143686_streamora_server_on_nvidia_shield_keeps_crashing: title matches GT', async ({ page }) => { await page.goto('/community/topic/143686-streamora-server-on-nvidia-shield-keeps-crashing/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora server on vantyr shield keeps '); }); test('community_topic_143686_streamora_server_on_nvidia_shield_keeps_crashing: h1 "Streamora Server on Vantyr Shi"', async ({ page }) => { await page.goto('/community/topic/143686-streamora-server-on-nvidia-shield-keeps-crashing/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Server on Vantyr Shield Keeps Crashing' || t.startsWith('Streamora Server on Vantyr Shield Keeps Crashing'))).toBeTruthy(); }); test('community_topic_143686_streamora_server_on_nvidia_shield_keeps_crashing: h2 "Recommended Posts"', async ({ page }) => { await page.goto('/community/topic/143686-streamora-server-on-nvidia-shield-keeps-crashing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recommended Posts' || t.startsWith('Recommended Posts'))).toBeTruthy(); }); test('community_topic_143686_streamora_server_on_nvidia_shield_keeps_crashing: h2 "Register or sign in to add you"', async ({ page }) => { await page.goto('/community/topic/143686-streamora-server-on-nvidia-shield-keeps-crashing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Register or sign in to add your comment' || t.startsWith('Register or sign in to add your comment'))).toBeTruthy(); }); test('community_topic_143686_streamora_server_on_nvidia_shield_keeps_crashing: h2 "Make a new account"', async ({ page }) => { await page.goto('/community/topic/143686-streamora-server-on-nvidia-shield-keeps-crashing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Make a new account' || t.startsWith('Make a new account'))).toBeTruthy(); }); test('community_topic_143686_streamora_server_on_nvidia_shield_keeps_crashing: header link "Existing user? Sign In"', async ({ page }) => { await page.goto('/community/topic/143686-streamora-server-on-nvidia-shield-keeps-crashing/'); 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 === 'Existing user? Sign In' || t.startsWith('Existing user? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_143686_streamora_server_on_nvidia_shield_keeps_crashing: header link "Forgot your password?"', async ({ page }) => { await page.goto('/community/topic/143686-streamora-server-on-nvidia-shield-keeps-crashing/'); 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 === 'Forgot your password?' || t.startsWith('Forgot your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_143686_streamora_server_on_nvidia_shield_keeps_crashing: header link "Sign Up"', async ({ page }) => { await page.goto('/community/topic/143686-streamora-server-on-nvidia-shield-keeps-crashing/'); 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 === 'Sign Up' || t.startsWith('Sign Up')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_143686_streamora_server_on_nvidia_shield_keeps_crashing: nav link "Website"', async ({ page }) => { await page.goto('/community/topic/143686-streamora-server-on-nvidia-shield-keeps-crashing/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Website' || t.startsWith('Website')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_144385_verizon_fios_killing_my_cablecard_options_ideas', () => { test('community_topic_144385_verizon_fios_killing_my_cablecard_options_ideas: title matches GT', async ({ page }) => { await page.goto('/community/topic/144385-verizon-fios-killing-my-cablecard-options-ideas/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('cable provider dropping my tuner support'); }); test('community_topic_144385_verizon_fios_killing_my_cablecard_options_ideas: h1 "Cable provider dropping my tun"', async ({ page }) => { await page.goto('/community/topic/144385-verizon-fios-killing-my-cablecard-options-ideas/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Cable provider dropping my tuner support: options?' || t.startsWith('Cable provider dropping my tuner support: options?'))).toBeTruthy(); }); test('community_topic_144385_verizon_fios_killing_my_cablecard_options_ideas: h2 "Recommended Posts"', async ({ page }) => { await page.goto('/community/topic/144385-verizon-fios-killing-my-cablecard-options-ideas/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recommended Posts' || t.startsWith('Recommended Posts'))).toBeTruthy(); }); test('community_topic_144385_verizon_fios_killing_my_cablecard_options_ideas: h2 "Set up an account or sign in t"', async ({ page }) => { await page.goto('/community/topic/144385-verizon-fios-killing-my-cablecard-options-ideas/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Set up an account or sign in to reply' || t.startsWith('Set up an account or sign in to reply'))).toBeTruthy(); }); test('community_topic_144385_verizon_fios_killing_my_cablecard_options_ideas: h2 "Set up an account"', async ({ page }) => { await page.goto('/community/topic/144385-verizon-fios-killing-my-cablecard-options-ideas/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Set up an account' || t.startsWith('Set up an account'))).toBeTruthy(); }); test('community_topic_144385_verizon_fios_killing_my_cablecard_options_ideas: header link "Existing user? Sign In"', async ({ page }) => { await page.goto('/community/topic/144385-verizon-fios-killing-my-cablecard-options-ideas/'); 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 === 'Existing user? Sign In' || t.startsWith('Existing user? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_144385_verizon_fios_killing_my_cablecard_options_ideas: header link "Forgot your password?"', async ({ page }) => { await page.goto('/community/topic/144385-verizon-fios-killing-my-cablecard-options-ideas/'); 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 === 'Forgot your password?' || t.startsWith('Forgot your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_144385_verizon_fios_killing_my_cablecard_options_ideas: header link "Sign Up"', async ({ page }) => { await page.goto('/community/topic/144385-verizon-fios-killing-my-cablecard-options-ideas/'); 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 === 'Sign Up' || t.startsWith('Sign Up')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_144385_verizon_fios_killing_my_cablecard_options_ideas: nav link "Website"', async ({ page }) => { await page.goto('/community/topic/144385-verizon-fios-killing-my-cablecard-options-ideas/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Website' || t.startsWith('Website')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_144521_premiere_purchase_support', () => { test('community_topic_144521_premiere_purchase_support: title matches GT', async ({ page }) => { await page.goto('/community/topic/144521-premiere-purchase-support/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('plus purchase help'); }); test('community_topic_144521_premiere_purchase_support: h1 "Plus Purchase Help"', async ({ page }) => { await page.goto('/community/topic/144521-premiere-purchase-support/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plus Purchase Help' || t.startsWith('Plus Purchase Help'))).toBeTruthy(); }); test('community_topic_144521_premiere_purchase_support: h2 "Suggested Replies"', async ({ page }) => { await page.goto('/community/topic/144521-premiere-purchase-support/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Suggested Replies' || t.startsWith('Suggested Replies'))).toBeTruthy(); }); test('community_topic_144521_premiere_purchase_support: h3 "mira 16426"', async ({ page }) => { await page.goto('/community/topic/144521-premiere-purchase-support/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'mira 16426' || t.startsWith('mira 16426'))).toBeTruthy(); }); test('community_topic_144521_premiere_purchase_support: h3 "mira"', async ({ page }) => { await page.goto('/community/topic/144521-premiere-purchase-support/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'mira' || t.startsWith('mira'))).toBeTruthy(); }); test('community_topic_144521_premiere_purchase_support: header link "Already a member? Sign In"', async ({ page }) => { await page.goto('/community/topic/144521-premiere-purchase-support/'); 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 === 'Already a member? Sign In' || t.startsWith('Already a member? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_144521_premiere_purchase_support: header link "Lost your password?"', async ({ page }) => { await page.goto('/community/topic/144521-premiere-purchase-support/'); 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 === 'Lost your password?' || t.startsWith('Lost your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_144521_premiere_purchase_support: header link "Sign Up"', async ({ page }) => { await page.goto('/community/topic/144521-premiere-purchase-support/'); 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 === 'Sign Up' || t.startsWith('Sign Up')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_144521_premiere_purchase_support: nav link "Website"', async ({ page }) => { await page.goto('/community/topic/144521-premiere-purchase-support/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Website' || t.startsWith('Website')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_144720_problems_with_version_49190', () => { test('community_topic_144720_problems_with_version_49190: title matches GT', async ({ page }) => { await page.goto('/community/topic/144720-problems-with-version-49190/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('trouble with version 4.9.1.90'); }); test('community_topic_144720_problems_with_version_49190: h1 "Trouble with Version 4.9.1.90"', async ({ page }) => { await page.goto('/community/topic/144720-problems-with-version-49190/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Trouble with Version 4.9.1.90' || t.startsWith('Trouble with Version 4.9.1.90'))).toBeTruthy(); }); test('community_topic_144720_problems_with_version_49190: h2 "Recommended Posts"', async ({ page }) => { await page.goto('/community/topic/144720-problems-with-version-49190/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recommended Posts' || t.startsWith('Recommended Posts'))).toBeTruthy(); }); test('community_topic_144720_problems_with_version_49190: h2 "Set up an account or log in to"', async ({ page }) => { await page.goto('/community/topic/144720-problems-with-version-49190/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Set up an account or log in to join the conversation.' || t.startsWith('Set up an account or log in to join the conversation.'))).toBeTruthy(); }); test('community_topic_144720_problems_with_version_49190: h2 "Set up an account"', async ({ page }) => { await page.goto('/community/topic/144720-problems-with-version-49190/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Set up an account' || t.startsWith('Set up an account'))).toBeTruthy(); }); test('community_topic_144720_problems_with_version_49190: header link "Existing user? Sign In"', async ({ page }) => { await page.goto('/community/topic/144720-problems-with-version-49190/'); 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 === 'Existing user? Sign In' || t.startsWith('Existing user? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_144720_problems_with_version_49190: header link "Forgot your password?"', async ({ page }) => { await page.goto('/community/topic/144720-problems-with-version-49190/'); 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 === 'Forgot your password?' || t.startsWith('Forgot your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_144720_problems_with_version_49190: header link "Sign Up"', async ({ page }) => { await page.goto('/community/topic/144720-problems-with-version-49190/'); 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 === 'Sign Up' || t.startsWith('Sign Up')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_144720_problems_with_version_49190: nav link "Website"', async ({ page }) => { await page.goto('/community/topic/144720-problems-with-version-49190/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Website' || t.startsWith('Website')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_145276_where_to_get_mono_and_ffmpeg', () => { test('community_topic_145276_where_to_get_mono_and_ffmpeg: title matches GT', async ({ page }) => { await page.goto('/community/topic/145276-where-to-get-mono-and-ffmpeg/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('where to get mono and ffmpeg'); }); test('community_topic_145276_where_to_get_mono_and_ffmpeg: h1 "how to install Mono and FFmpeg"', async ({ page }) => { await page.goto('/community/topic/145276-where-to-get-mono-and-ffmpeg/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'how to install Mono and FFmpeg' || t.startsWith('how to install Mono and FFmpeg'))).toBeTruthy(); }); test('community_topic_145276_where_to_get_mono_and_ffmpeg: h2 "Suggested Replies"', async ({ page }) => { await page.goto('/community/topic/145276-where-to-get-mono-and-ffmpeg/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Suggested Replies' || t.startsWith('Suggested Replies'))).toBeTruthy(); }); test('community_topic_145276_where_to_get_mono_and_ffmpeg: h2 "Join the conversation or log i"', async ({ page }) => { await page.goto('/community/topic/145276-where-to-get-mono-and-ffmpeg/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Join the conversation or log in to reply' || t.startsWith('Join the conversation or log in to reply'))).toBeTruthy(); }); test('community_topic_145276_where_to_get_mono_and_ffmpeg: h2 "Set up an account"', async ({ page }) => { await page.goto('/community/topic/145276-where-to-get-mono-and-ffmpeg/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Set up an account' || t.startsWith('Set up an account'))).toBeTruthy(); }); test('community_topic_145276_where_to_get_mono_and_ffmpeg: header link "Already a member? Log In"', async ({ page }) => { await page.goto('/community/topic/145276-where-to-get-mono-and-ffmpeg/'); 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 === 'Already a member? Log In' || t.startsWith('Already a member? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_145276_where_to_get_mono_and_ffmpeg: header link "Reset your password?"', async ({ page }) => { await page.goto('/community/topic/145276-where-to-get-mono-and-ffmpeg/'); 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 === 'Reset your password?' || t.startsWith('Reset your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_145276_where_to_get_mono_and_ffmpeg: header link "Join Now"', async ({ page }) => { await page.goto('/community/topic/145276-where-to-get-mono-and-ffmpeg/'); 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 === 'Join Now' || t.startsWith('Join Now')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_145276_where_to_get_mono_and_ffmpeg: nav link "Homepage"', async ({ page }) => { await page.goto('/community/topic/145276-where-to-get-mono-and-ffmpeg/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Homepage' || t.startsWith('Homepage')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_145776_streamora_for_lg_1050_released', () => { test('community_topic_145776_streamora_for_lg_1050_released: title matches GT', async ({ page }) => { await page.goto('/community/topic/145776-streamora-for-lg-1050-released/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora tv 1.0.50 released'); }); test('community_topic_145776_streamora_for_lg_1050_released: h1 "Streamora TV 1.0.50 Released"', async ({ page }) => { await page.goto('/community/topic/145776-streamora-for-lg-1050-released/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora TV 1.0.50 Released' || t.startsWith('Streamora TV 1.0.50 Released'))).toBeTruthy(); }); test('community_topic_145776_streamora_for_lg_1050_released: h2 "Recommended Posts"', async ({ page }) => { await page.goto('/community/topic/145776-streamora-for-lg-1050-released/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recommended Posts' || t.startsWith('Recommended Posts'))).toBeTruthy(); }); test('community_topic_145776_streamora_for_lg_1050_released: h3 "Maya 42480"', async ({ page }) => { await page.goto('/community/topic/145776-streamora-for-lg-1050-released/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Maya 42480' || t.startsWith('Maya 42480'))).toBeTruthy(); }); test('community_topic_145776_streamora_for_lg_1050_released: h3 "Maya"', async ({ page }) => { await page.goto('/community/topic/145776-streamora-for-lg-1050-released/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Maya' || t.startsWith('Maya'))).toBeTruthy(); }); test('community_topic_145776_streamora_for_lg_1050_released: header link "Already a member? Log In"', async ({ page }) => { await page.goto('/community/topic/145776-streamora-for-lg-1050-released/'); 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 === 'Already a member? Log In' || t.startsWith('Already a member? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_145776_streamora_for_lg_1050_released: header link "Lost your password?"', async ({ page }) => { await page.goto('/community/topic/145776-streamora-for-lg-1050-released/'); 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 === 'Lost your password?' || t.startsWith('Lost your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_145776_streamora_for_lg_1050_released: header link "Join Now"', async ({ page }) => { await page.goto('/community/topic/145776-streamora-for-lg-1050-released/'); 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 === 'Join Now' || t.startsWith('Join Now')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_145776_streamora_for_lg_1050_released: nav link "Website"', async ({ page }) => { await page.goto('/community/topic/145776-streamora-for-lg-1050-released/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Website' || t.startsWith('Website')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_146282_enable_subtitles_in_streamora_server', () => { test('community_topic_146282_enable_subtitles_in_streamora_server: title matches GT', async ({ page }) => { await page.goto('/community/topic/146282-enable-subtitles-in-streamora-server/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('turn on captions in streamora server'); }); test('community_topic_146282_enable_subtitles_in_streamora_server: h1 "Turn on captions in media serv"', async ({ page }) => { await page.goto('/community/topic/146282-enable-subtitles-in-streamora-server/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Turn on captions in media server' || t.startsWith('Turn on captions in media server'))).toBeTruthy(); }); test('community_topic_146282_enable_subtitles_in_streamora_server: h2 "Suggested Replies"', async ({ page }) => { await page.goto('/community/topic/146282-enable-subtitles-in-streamora-server/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Suggested Replies' || t.startsWith('Suggested Replies'))).toBeTruthy(); }); test('community_topic_146282_enable_subtitles_in_streamora_server: h2 "Create an account or sign in t"', async ({ page }) => { await page.goto('/community/topic/146282-enable-subtitles-in-streamora-server/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Create an account or sign in to join in' || t.startsWith('Create an account or sign in to join in'))).toBeTruthy(); }); test('community_topic_146282_enable_subtitles_in_streamora_server: h2 "Set up an account"', async ({ page }) => { await page.goto('/community/topic/146282-enable-subtitles-in-streamora-server/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Set up an account' || t.startsWith('Set up an account'))).toBeTruthy(); }); test('community_topic_146282_enable_subtitles_in_streamora_server: header link "Already a member? Log In"', async ({ page }) => { await page.goto('/community/topic/146282-enable-subtitles-in-streamora-server/'); 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 === 'Already a member? Log In' || t.startsWith('Already a member? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_146282_enable_subtitles_in_streamora_server: header link "Reset your password?"', async ({ page }) => { await page.goto('/community/topic/146282-enable-subtitles-in-streamora-server/'); 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 === 'Reset your password?' || t.startsWith('Reset your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_146282_enable_subtitles_in_streamora_server: header link "Join Us"', async ({ page }) => { await page.goto('/community/topic/146282-enable-subtitles-in-streamora-server/'); 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 === 'Join Us' || t.startsWith('Join Us')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_146282_enable_subtitles_in_streamora_server: nav link "Homepage"', async ({ page }) => { await page.goto('/community/topic/146282-enable-subtitles-in-streamora-server/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Homepage' || t.startsWith('Homepage')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_146810_streaming_controlled_by_android_profile', () => { test('community_topic_146810_streaming_controlled_by_android_profile: title matches GT', async ({ page }) => { await page.goto('/community/topic/146810-streaming-controlled-by-android-profile/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('android grabs playback with my custom pr'); }); test('community_topic_146810_streaming_controlled_by_android_profile: h1 "Android grabs playback with my"', async ({ page }) => { await page.goto('/community/topic/146810-streaming-controlled-by-android-profile/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Android grabs playback with my custom profile?' || t.startsWith('Android grabs playback with my custom profile?'))).toBeTruthy(); }); test('community_topic_146810_streaming_controlled_by_android_profile: h2 "Suggested Replies"', async ({ page }) => { await page.goto('/community/topic/146810-streaming-controlled-by-android-profile/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Suggested Replies' || t.startsWith('Suggested Replies'))).toBeTruthy(); }); test('community_topic_146810_streaming_controlled_by_android_profile: h2 "Register or sign in to join th"', async ({ page }) => { await page.goto('/community/topic/146810-streaming-controlled-by-android-profile/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Register or sign in to join the discussion' || t.startsWith('Register or sign in to join the discussion'))).toBeTruthy(); }); test('community_topic_146810_streaming_controlled_by_android_profile: h2 "Join our community"', async ({ page }) => { await page.goto('/community/topic/146810-streaming-controlled-by-android-profile/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); }); test('community_topic_146810_streaming_controlled_by_android_profile: header link "Already a member? Log In"', async ({ page }) => { await page.goto('/community/topic/146810-streaming-controlled-by-android-profile/'); 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 === 'Already a member? Log In' || t.startsWith('Already a member? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_146810_streaming_controlled_by_android_profile: header link "Lost your password?"', async ({ page }) => { await page.goto('/community/topic/146810-streaming-controlled-by-android-profile/'); 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 === 'Lost your password?' || t.startsWith('Lost your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_146810_streaming_controlled_by_android_profile: header link "Join Now"', async ({ page }) => { await page.goto('/community/topic/146810-streaming-controlled-by-android-profile/'); 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 === 'Join Now' || t.startsWith('Join Now')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_146810_streaming_controlled_by_android_profile: nav link "Website"', async ({ page }) => { await page.goto('/community/topic/146810-streaming-controlled-by-android-profile/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Website' || t.startsWith('Website')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_147205_help_official_streamora_theater_rpi4_image_on_armbian_choppy_h264_missing_v4l2m2m_invisible_playback_overlay', () => { test('community_topic_147205_help_official_streamora_theater_rpi4_image_on_armbian_choppy_h264_missing_v4l2m2m_invisible_playback_overlay: title matches GT', async ({ page }) => { await page.goto('/community/topic/147205-help-official-emby-theater-rpi4-image-on-armbian-choppy-h264-missing-v4l2m2m-invisible-playback-overlay/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('[help] official streamora theater rpi4 i'); }); test('community_topic_147205_help_official_streamora_theater_rpi4_image_on_armbian_choppy_h264_missing_v4l2m2m_invisible_playback_overlay: h1 "[Help] Official Streamora Thea"', async ({ page }) => { await page.goto('/community/topic/147205-help-official-emby-theater-rpi4-image-on-armbian-choppy-h264-missing-v4l2m2m-invisible-playback-overlay/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '[Help] Official Streamora Theater RPi4 Image on Armbian: Choppy H.264, Missing v4l2m2m, Invisible Ov' || t.startsWith('[Help] Official Streamora Theater RPi4 Image on Armbian: Choppy H.264, Missing v4l2m2m, Invisible Ov'))).toBeTruthy(); }); test('community_topic_147205_help_official_streamora_theater_rpi4_image_on_armbian_choppy_h264_missing_v4l2m2m_invisible_playback_overlay: h2 "Recommended Posts"', async ({ page }) => { await page.goto('/community/topic/147205-help-official-emby-theater-rpi4-image-on-armbian-choppy-h264-missing-v4l2m2m-invisible-playback-overlay/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recommended Posts' || t.startsWith('Recommended Posts'))).toBeTruthy(); }); test('community_topic_147205_help_official_streamora_theater_rpi4_image_on_armbian_choppy_h264_missing_v4l2m2m_invisible_playback_overlay: h2 "Set up an account or sign in t"', async ({ page }) => { await page.goto('/community/topic/147205-help-official-emby-theater-rpi4-image-on-armbian-choppy-h264-missing-v4l2m2m-invisible-playback-overlay/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Set up an account or sign in to comment' || t.startsWith('Set up an account or sign in to comment'))).toBeTruthy(); }); test('community_topic_147205_help_official_streamora_theater_rpi4_image_on_armbian_choppy_h264_missing_v4l2m2m_invisible_playback_overlay: h2 "Set up an account"', async ({ page }) => { await page.goto('/community/topic/147205-help-official-emby-theater-rpi4-image-on-armbian-choppy-h264-missing-v4l2m2m-invisible-playback-overlay/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Set up an account' || t.startsWith('Set up an account'))).toBeTruthy(); }); test('community_topic_147205_help_official_streamora_theater_rpi4_image_on_armbian_choppy_h264_missing_v4l2m2m_invisible_playback_overlay: header link "Already a member? Sign In"', async ({ page }) => { await page.goto('/community/topic/147205-help-official-emby-theater-rpi4-image-on-armbian-choppy-h264-missing-v4l2m2m-invisible-playback-overlay/'); 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 === 'Already a member? Sign In' || t.startsWith('Already a member? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_147205_help_official_streamora_theater_rpi4_image_on_armbian_choppy_h264_missing_v4l2m2m_invisible_playback_overlay: header link "Lost your password?"', async ({ page }) => { await page.goto('/community/topic/147205-help-official-emby-theater-rpi4-image-on-armbian-choppy-h264-missing-v4l2m2m-invisible-playback-overlay/'); 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 === 'Lost your password?' || t.startsWith('Lost your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_147205_help_official_streamora_theater_rpi4_image_on_armbian_choppy_h264_missing_v4l2m2m_invisible_playback_overlay: header link "Sign Up"', async ({ page }) => { await page.goto('/community/topic/147205-help-official-emby-theater-rpi4-image-on-armbian-choppy-h264-missing-v4l2m2m-invisible-playback-overlay/'); 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 === 'Sign Up' || t.startsWith('Sign Up')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_147205_help_official_streamora_theater_rpi4_image_on_armbian_choppy_h264_missing_v4l2m2m_invisible_playback_overlay: nav link "Website"', async ({ page }) => { await page.goto('/community/topic/147205-help-official-emby-theater-rpi4-image-on-armbian-choppy-h264-missing-v4l2m2m-invisible-playback-overlay/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Website' || t.startsWith('Website')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_147484_certain_users_unable_to_access_https', () => { test('community_topic_147484_certain_users_unable_to_access_https: title matches GT', async ({ page }) => { await page.goto('/community/topic/147484-certain-users-unable-to-access-https/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('some users unable to connect over https'); }); test('community_topic_147484_certain_users_unable_to_access_https: h1 "A few users can\'t connect over"', async ({ page }) => { await page.goto('/community/topic/147484-certain-users-unable-to-access-https/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'A few users can\'t connect over https' || t.startsWith('A few users can\'t connect over https'))).toBeTruthy(); }); test('community_topic_147484_certain_users_unable_to_access_https: h2 "Recommended Posts"', async ({ page }) => { await page.goto('/community/topic/147484-certain-users-unable-to-access-https/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recommended Posts' || t.startsWith('Recommended Posts'))).toBeTruthy(); }); test('community_topic_147484_certain_users_unable_to_access_https: h2 "Register or log in to join the"', async ({ page }) => { await page.goto('/community/topic/147484-certain-users-unable-to-access-https/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Register or log in to join the discussion' || t.startsWith('Register or log in to join the discussion'))).toBeTruthy(); }); test('community_topic_147484_certain_users_unable_to_access_https: h2 "Join the community"', async ({ page }) => { await page.goto('/community/topic/147484-certain-users-unable-to-access-https/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Join the community' || t.startsWith('Join the community'))).toBeTruthy(); }); test('community_topic_147484_certain_users_unable_to_access_https: header link "Existing user? Sign In"', async ({ page }) => { await page.goto('/community/topic/147484-certain-users-unable-to-access-https/'); 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 === 'Existing user? Sign In' || t.startsWith('Existing user? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_147484_certain_users_unable_to_access_https: header link "Forgot your password?"', async ({ page }) => { await page.goto('/community/topic/147484-certain-users-unable-to-access-https/'); 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 === 'Forgot your password?' || t.startsWith('Forgot your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_147484_certain_users_unable_to_access_https: header link "Sign Up"', async ({ page }) => { await page.goto('/community/topic/147484-certain-users-unable-to-access-https/'); 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 === 'Sign Up' || t.startsWith('Sign Up')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_147484_certain_users_unable_to_access_https: nav link "Website"', async ({ page }) => { await page.goto('/community/topic/147484-certain-users-unable-to-access-https/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Website' || t.startsWith('Website')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_147567_streamora_sometimes_plays_a_section_of_video_twice', () => { test('community_topic_147567_streamora_sometimes_plays_a_section_of_video_twice: title matches GT', async ({ page }) => { await page.goto('/community/topic/147567-emby-sometimes-plays-a-section-of-video-twice/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora sometimes replays a section tw'); }); test('community_topic_147567_streamora_sometimes_plays_a_section_of_video_twice: h1 "Streamora Sometimes Replays A "', async ({ page }) => { await page.goto('/community/topic/147567-emby-sometimes-plays-a-section-of-video-twice/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora Sometimes Replays A Section Twice' || t.startsWith('Streamora Sometimes Replays A Section Twice'))).toBeTruthy(); }); test('community_topic_147567_streamora_sometimes_plays_a_section_of_video_twice: h2 "Recommended Posts"', async ({ page }) => { await page.goto('/community/topic/147567-emby-sometimes-plays-a-section-of-video-twice/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recommended Posts' || t.startsWith('Recommended Posts'))).toBeTruthy(); }); test('community_topic_147567_streamora_sometimes_plays_a_section_of_video_twice: h2 "Register or log in to join the"', async ({ page }) => { await page.goto('/community/topic/147567-emby-sometimes-plays-a-section-of-video-twice/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Register or log in to join the discussion' || t.startsWith('Register or log in to join the discussion'))).toBeTruthy(); }); test('community_topic_147567_streamora_sometimes_plays_a_section_of_video_twice: h2 "Open a free account"', async ({ page }) => { await page.goto('/community/topic/147567-emby-sometimes-plays-a-section-of-video-twice/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Open a free account' || t.startsWith('Open a free account'))).toBeTruthy(); }); test('community_topic_147567_streamora_sometimes_plays_a_section_of_video_twice: header link "Existing user? Sign In"', async ({ page }) => { await page.goto('/community/topic/147567-emby-sometimes-plays-a-section-of-video-twice/'); 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 === 'Existing user? Sign In' || t.startsWith('Existing user? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_147567_streamora_sometimes_plays_a_section_of_video_twice: header link "Forgot your password?"', async ({ page }) => { await page.goto('/community/topic/147567-emby-sometimes-plays-a-section-of-video-twice/'); 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 === 'Forgot your password?' || t.startsWith('Forgot your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_147567_streamora_sometimes_plays_a_section_of_video_twice: header link "Sign Up"', async ({ page }) => { await page.goto('/community/topic/147567-emby-sometimes-plays-a-section-of-video-twice/'); 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 === 'Sign Up' || t.startsWith('Sign Up')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_147567_streamora_sometimes_plays_a_section_of_video_twice: nav link "Website"', async ({ page }) => { await page.goto('/community/topic/147567-emby-sometimes-plays-a-section-of-video-twice/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Website' || t.startsWith('Website')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_147620_streamora_keeps_pausing_on_atv', () => { test('community_topic_147620_streamora_keeps_pausing_on_atv: title matches GT', async ({ page }) => { await page.goto('/community/topic/147620-emby-keeps-pausing-on-atv/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora keeps pausing on my box'); }); test('community_topic_147620_streamora_keeps_pausing_on_atv: h1 "Streamora pausing on my box"', async ({ page }) => { await page.goto('/community/topic/147620-emby-keeps-pausing-on-atv/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora pausing on my box' || t.startsWith('Streamora pausing on my box'))).toBeTruthy(); }); test('community_topic_147620_streamora_keeps_pausing_on_atv: h2 "Suggested Replies"', async ({ page }) => { await page.goto('/community/topic/147620-emby-keeps-pausing-on-atv/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Suggested Replies' || t.startsWith('Suggested Replies'))).toBeTruthy(); }); test('community_topic_147620_streamora_keeps_pausing_on_atv: h2 "Join the community or log in t"', async ({ page }) => { await page.goto('/community/topic/147620-emby-keeps-pausing-on-atv/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Join the community or log in to post' || t.startsWith('Join the community or log in to post'))).toBeTruthy(); }); test('community_topic_147620_streamora_keeps_pausing_on_atv: h2 "Make a new account"', async ({ page }) => { await page.goto('/community/topic/147620-emby-keeps-pausing-on-atv/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Make a new account' || t.startsWith('Make a new account'))).toBeTruthy(); }); test('community_topic_147620_streamora_keeps_pausing_on_atv: header link "Already a member? Log In"', async ({ page }) => { await page.goto('/community/topic/147620-emby-keeps-pausing-on-atv/'); 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 === 'Already a member? Log In' || t.startsWith('Already a member? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_147620_streamora_keeps_pausing_on_atv: header link "Reset your password now"', async ({ page }) => { await page.goto('/community/topic/147620-emby-keeps-pausing-on-atv/'); 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 === 'Reset your password now' || t.startsWith('Reset your password now')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_147620_streamora_keeps_pausing_on_atv: header link "Join Now"', async ({ page }) => { await page.goto('/community/topic/147620-emby-keeps-pausing-on-atv/'); 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 === 'Join Now' || t.startsWith('Join Now')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_147620_streamora_keeps_pausing_on_atv: nav link "Our Site"', async ({ page }) => { await page.goto('/community/topic/147620-emby-keeps-pausing-on-atv/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Site' || t.startsWith('Our Site')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_147662_android_app_cannot_access_ipv6_domain_names', () => { test('community_topic_147662_android_app_cannot_access_ipv6_domain_names: title matches GT', async ({ page }) => { await page.goto('/community/topic/147662-android-app-cannot-access-ipv6-domain-names/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('android app can\'t reach servers over ipv'); }); test('community_topic_147662_android_app_cannot_access_ipv6_domain_names: h1 "Android app can\'t reach IPV6 d"', async ({ page }) => { await page.goto('/community/topic/147662-android-app-cannot-access-ipv6-domain-names/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Android app can\'t reach IPV6 domain names' || t.startsWith('Android app can\'t reach IPV6 domain names'))).toBeTruthy(); }); test('community_topic_147662_android_app_cannot_access_ipv6_domain_names: h2 "Suggested Replies"', async ({ page }) => { await page.goto('/community/topic/147662-android-app-cannot-access-ipv6-domain-names/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Suggested Replies' || t.startsWith('Suggested Replies'))).toBeTruthy(); }); test('community_topic_147662_android_app_cannot_access_ipv6_domain_names: h2 "Join the discussion or sign in"', async ({ page }) => { await page.goto('/community/topic/147662-android-app-cannot-access-ipv6-domain-names/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Join the discussion or sign in to reply' || t.startsWith('Join the discussion or sign in to reply'))).toBeTruthy(); }); test('community_topic_147662_android_app_cannot_access_ipv6_domain_names: h2 "Register an account"', async ({ page }) => { await page.goto('/community/topic/147662-android-app-cannot-access-ipv6-domain-names/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Register an account' || t.startsWith('Register an account'))).toBeTruthy(); }); test('community_topic_147662_android_app_cannot_access_ipv6_domain_names: header link "Already a member? Sign In"', async ({ page }) => { await page.goto('/community/topic/147662-android-app-cannot-access-ipv6-domain-names/'); 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 === 'Already a member? Sign In' || t.startsWith('Already a member? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_147662_android_app_cannot_access_ipv6_domain_names: header link "Reset your password?"', async ({ page }) => { await page.goto('/community/topic/147662-android-app-cannot-access-ipv6-domain-names/'); 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 === 'Reset your password?' || t.startsWith('Reset your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_147662_android_app_cannot_access_ipv6_domain_names: header link "Join Now"', async ({ page }) => { await page.goto('/community/topic/147662-android-app-cannot-access-ipv6-domain-names/'); 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 === 'Join Now' || t.startsWith('Join Now')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_147662_android_app_cannot_access_ipv6_domain_names: nav link "Our Site"', async ({ page }) => { await page.goto('/community/topic/147662-android-app-cannot-access-ipv6-domain-names/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Site' || t.startsWith('Our Site')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_147677_another_no_compatible_streams', () => { test('community_topic_147677_another_no_compatible_streams: title matches GT', async ({ page }) => { await page.goto('/community/topic/147677-another-no-compatible-streams/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('recurring "no compatible streams"'); }); test('community_topic_147677_another_no_compatible_streams: h1 "recurring no compatible stream"', async ({ page }) => { await page.goto('/community/topic/147677-another-no-compatible-streams/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'recurring "no compatible streams"' || t.startsWith('recurring "no compatible streams"'))).toBeTruthy(); }); test('community_topic_147677_another_no_compatible_streams: h2 "Recommended Posts"', async ({ page }) => { await page.goto('/community/topic/147677-another-no-compatible-streams/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recommended Posts' || t.startsWith('Recommended Posts'))).toBeTruthy(); }); test('community_topic_147677_another_no_compatible_streams: h2 "Sign up or log in to join the "', async ({ page }) => { await page.goto('/community/topic/147677-another-no-compatible-streams/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sign up or log in to join the conversation' || t.startsWith('Sign up or log in to join the conversation'))).toBeTruthy(); }); test('community_topic_147677_another_no_compatible_streams: h2 "Join the community"', async ({ page }) => { await page.goto('/community/topic/147677-another-no-compatible-streams/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Join the community' || t.startsWith('Join the community'))).toBeTruthy(); }); test('community_topic_147677_another_no_compatible_streams: header link "Existing user? Sign In"', async ({ page }) => { await page.goto('/community/topic/147677-another-no-compatible-streams/'); 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 === 'Existing user? Sign In' || t.startsWith('Existing user? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_147677_another_no_compatible_streams: header link "Forgot your password?"', async ({ page }) => { await page.goto('/community/topic/147677-another-no-compatible-streams/'); 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 === 'Forgot your password?' || t.startsWith('Forgot your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_147677_another_no_compatible_streams: header link "Sign Up"', async ({ page }) => { await page.goto('/community/topic/147677-another-no-compatible-streams/'); 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 === 'Sign Up' || t.startsWith('Sign Up')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_147677_another_no_compatible_streams: nav link "Website"', async ({ page }) => { await page.goto('/community/topic/147677-another-no-compatible-streams/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Website' || t.startsWith('Website')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_147725_streamora_app_for_tcl_tv', () => { test('community_topic_147725_streamora_app_for_tcl_tv: title matches GT', async ({ page }) => { await page.goto('/community/topic/147725-emby-app-for-tcl-tv/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('streamora app for smart tv'); }); test('community_topic_147725_streamora_app_for_tcl_tv: h1 "Streamora on smart TV"', async ({ page }) => { await page.goto('/community/topic/147725-emby-app-for-tcl-tv/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamora on smart TV' || t.startsWith('Streamora on smart TV'))).toBeTruthy(); }); test('community_topic_147725_streamora_app_for_tcl_tv: h2 "Suggested Replies"', async ({ page }) => { await page.goto('/community/topic/147725-emby-app-for-tcl-tv/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Suggested Replies' || t.startsWith('Suggested Replies'))).toBeTruthy(); }); test('community_topic_147725_streamora_app_for_tcl_tv: h2 "Join the discussion or sign in"', async ({ page }) => { await page.goto('/community/topic/147725-emby-app-for-tcl-tv/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Join the discussion or sign in to reply' || t.startsWith('Join the discussion or sign in to reply'))).toBeTruthy(); }); test('community_topic_147725_streamora_app_for_tcl_tv: h2 "Set up an account"', async ({ page }) => { await page.goto('/community/topic/147725-emby-app-for-tcl-tv/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Set up an account' || t.startsWith('Set up an account'))).toBeTruthy(); }); test('community_topic_147725_streamora_app_for_tcl_tv: header link "Already a member? Log In"', async ({ page }) => { await page.goto('/community/topic/147725-emby-app-for-tcl-tv/'); 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 === 'Already a member? Log In' || t.startsWith('Already a member? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_147725_streamora_app_for_tcl_tv: header link "Lost your password?"', async ({ page }) => { await page.goto('/community/topic/147725-emby-app-for-tcl-tv/'); 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 === 'Lost your password?' || t.startsWith('Lost your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_147725_streamora_app_for_tcl_tv: header link "Join Now"', async ({ page }) => { await page.goto('/community/topic/147725-emby-app-for-tcl-tv/'); 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 === 'Join Now' || t.startsWith('Join Now')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_147725_streamora_app_for_tcl_tv: nav link "Homepage"', async ({ page }) => { await page.goto('/community/topic/147725-emby-app-for-tcl-tv/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Homepage' || t.startsWith('Homepage')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_147799_alexa_plus_integration', () => { test('community_topic_147799_alexa_plus_integration: title matches GT', async ({ page }) => { await page.goto('/community/topic/147799-alexa-plus-integration/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('nova plus integration'); }); test('community_topic_147799_alexa_plus_integration: h1 "Nova Plus integration"', async ({ page }) => { await page.goto('/community/topic/147799-alexa-plus-integration/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Nova Plus integration' || t.startsWith('Nova Plus integration'))).toBeTruthy(); }); test('community_topic_147799_alexa_plus_integration: h2 "Suggested Replies"', async ({ page }) => { await page.goto('/community/topic/147799-alexa-plus-integration/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Suggested Replies' || t.startsWith('Suggested Replies'))).toBeTruthy(); }); test('community_topic_147799_alexa_plus_integration: h2 "Create an account or log in to"', async ({ page }) => { await page.goto('/community/topic/147799-alexa-plus-integration/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Create an account or log in to reply here' || t.startsWith('Create an account or log in to reply here'))).toBeTruthy(); }); test('community_topic_147799_alexa_plus_integration: h2 "Set up an account"', async ({ page }) => { await page.goto('/community/topic/147799-alexa-plus-integration/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Set up an account' || t.startsWith('Set up an account'))).toBeTruthy(); }); test('community_topic_147799_alexa_plus_integration: header link "Already a member? Log In"', async ({ page }) => { await page.goto('/community/topic/147799-alexa-plus-integration/'); 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 === 'Already a member? Log In' || t.startsWith('Already a member? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_147799_alexa_plus_integration: header link "Lost your password?"', async ({ page }) => { await page.goto('/community/topic/147799-alexa-plus-integration/'); 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 === 'Lost your password?' || t.startsWith('Lost your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_147799_alexa_plus_integration: header link "Join Now"', async ({ page }) => { await page.goto('/community/topic/147799-alexa-plus-integration/'); 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 === 'Join Now' || t.startsWith('Join Now')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_147799_alexa_plus_integration: nav link "Homepage"', async ({ page }) => { await page.goto('/community/topic/147799-alexa-plus-integration/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Homepage' || t.startsWith('Homepage')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_147862_auto_start_streamora_windows', () => { test('community_topic_147862_auto_start_streamora_windows: title matches GT', async ({ page }) => { await page.goto('/community/topic/147862-auto-start-emby-windows/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('auto start streamora pc'); }); test('community_topic_147862_auto_start_streamora_windows: h1 "Auto start Streamora PC"', async ({ page }) => { await page.goto('/community/topic/147862-auto-start-emby-windows/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Auto start Streamora PC' || t.startsWith('Auto start Streamora PC'))).toBeTruthy(); }); test('community_topic_147862_auto_start_streamora_windows: h2 "Recommended Posts"', async ({ page }) => { await page.goto('/community/topic/147862-auto-start-emby-windows/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recommended Posts' || t.startsWith('Recommended Posts'))).toBeTruthy(); }); test('community_topic_147862_auto_start_streamora_windows: h2 "Set up an account or log in to"', async ({ page }) => { await page.goto('/community/topic/147862-auto-start-emby-windows/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Set up an account or log in to comment' || t.startsWith('Set up an account or log in to comment'))).toBeTruthy(); }); test('community_topic_147862_auto_start_streamora_windows: h2 "Set up an account"', async ({ page }) => { await page.goto('/community/topic/147862-auto-start-emby-windows/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Set up an account' || t.startsWith('Set up an account'))).toBeTruthy(); }); test('community_topic_147862_auto_start_streamora_windows: header link "Existing user? Sign In"', async ({ page }) => { await page.goto('/community/topic/147862-auto-start-emby-windows/'); 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 === 'Existing user? Sign In' || t.startsWith('Existing user? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_147862_auto_start_streamora_windows: header link "Forgot your password?"', async ({ page }) => { await page.goto('/community/topic/147862-auto-start-emby-windows/'); 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 === 'Forgot your password?' || t.startsWith('Forgot your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_147862_auto_start_streamora_windows: header link "Sign Up"', async ({ page }) => { await page.goto('/community/topic/147862-auto-start-emby-windows/'); 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 === 'Sign Up' || t.startsWith('Sign Up')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_147862_auto_start_streamora_windows: nav link "Website"', async ({ page }) => { await page.goto('/community/topic/147862-auto-start-emby-windows/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Website' || t.startsWith('Website')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_147897_movies_unwatchable_because_cast_crew_overlapping', () => { test('community_topic_147897_movies_unwatchable_because_cast_crew_overlapping: title matches GT', async ({ page }) => { await page.goto('/community/topic/147897-movies-unwatchable-because-cast-crew-overlapping/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('films won\'t launch, cast & crew panel ov'); }); test('community_topic_147897_movies_unwatchable_because_cast_crew_overlapping: h1 "Films won\'t launch, Cast & Cre"', async ({ page }) => { await page.goto('/community/topic/147897-movies-unwatchable-because-cast-crew-overlapping/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Films won\'t launch, Cast & Crew panel overlaps controls' || t.startsWith('Films won\'t launch, Cast & Crew panel overlaps controls'))).toBeTruthy(); }); test('community_topic_147897_movies_unwatchable_because_cast_crew_overlapping: h2 "Recommended Posts"', async ({ page }) => { await page.goto('/community/topic/147897-movies-unwatchable-because-cast-crew-overlapping/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Recommended Posts' || t.startsWith('Recommended Posts'))).toBeTruthy(); }); test('community_topic_147897_movies_unwatchable_because_cast_crew_overlapping: h2 "Register or log in to join the"', async ({ page }) => { await page.goto('/community/topic/147897-movies-unwatchable-because-cast-crew-overlapping/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Register or log in to join the conversation' || t.startsWith('Register or log in to join the conversation'))).toBeTruthy(); }); test('community_topic_147897_movies_unwatchable_because_cast_crew_overlapping: h2 "Start a free account"', async ({ page }) => { await page.goto('/community/topic/147897-movies-unwatchable-because-cast-crew-overlapping/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Start a free account' || t.startsWith('Start a free account'))).toBeTruthy(); }); test('community_topic_147897_movies_unwatchable_because_cast_crew_overlapping: header link "Existing user? Sign In"', async ({ page }) => { await page.goto('/community/topic/147897-movies-unwatchable-because-cast-crew-overlapping/'); 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 === 'Existing user? Sign In' || t.startsWith('Existing user? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_147897_movies_unwatchable_because_cast_crew_overlapping: header link "Forgot your password?"', async ({ page }) => { await page.goto('/community/topic/147897-movies-unwatchable-because-cast-crew-overlapping/'); 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 === 'Forgot your password?' || t.startsWith('Forgot your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_147897_movies_unwatchable_because_cast_crew_overlapping: header link "Sign Up"', async ({ page }) => { await page.goto('/community/topic/147897-movies-unwatchable-because-cast-crew-overlapping/'); 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 === 'Sign Up' || t.startsWith('Sign Up')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_147897_movies_unwatchable_because_cast_crew_overlapping: nav link "Website"', async ({ page }) => { await page.goto('/community/topic/147897-movies-unwatchable-because-cast-crew-overlapping/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Website' || t.startsWith('Website')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_147925_need_help_connecting', () => { test('community_topic_147925_need_help_connecting: title matches GT', async ({ page }) => { await page.goto('/community/topic/147925-need-help-connecting/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('trouble connecting to vireo'); }); test('community_topic_147925_need_help_connecting: h1 "Unable to connect"', async ({ page }) => { await page.goto('/community/topic/147925-need-help-connecting/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Unable to connect' || t.startsWith('Unable to connect'))).toBeTruthy(); }); test('community_topic_147925_need_help_connecting: h2 "Suggested Replies"', async ({ page }) => { await page.goto('/community/topic/147925-need-help-connecting/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Suggested Replies' || t.startsWith('Suggested Replies'))).toBeTruthy(); }); test('community_topic_147925_need_help_connecting: h2 "Create an account or sign in t"', async ({ page }) => { await page.goto('/community/topic/147925-need-help-connecting/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Create an account or sign in to comment' || t.startsWith('Create an account or sign in to comment'))).toBeTruthy(); }); test('community_topic_147925_need_help_connecting: h2 "Create an account"', async ({ page }) => { await page.goto('/community/topic/147925-need-help-connecting/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Create an account' || t.startsWith('Create an account'))).toBeTruthy(); }); test('community_topic_147925_need_help_connecting: header link "Already a member? Log In"', async ({ page }) => { await page.goto('/community/topic/147925-need-help-connecting/'); 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 === 'Already a member? Log In' || t.startsWith('Already a member? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_147925_need_help_connecting: header link "Lost your password?"', async ({ page }) => { await page.goto('/community/topic/147925-need-help-connecting/'); 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 === 'Lost your password?' || t.startsWith('Lost your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_147925_need_help_connecting: header link "Join Now"', async ({ page }) => { await page.goto('/community/topic/147925-need-help-connecting/'); 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 === 'Join Now' || t.startsWith('Join Now')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_147925_need_help_connecting: nav link "Homepage"', async ({ page }) => { await page.goto('/community/topic/147925-need-help-connecting/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Homepage' || t.startsWith('Homepage')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_147928_discussion_group_on_xmpp_signal_or_simplex', () => { test('community_topic_147928_discussion_group_on_xmpp_signal_or_simplex: title matches GT', async ({ page }) => { await page.goto('/community/topic/147928-discussion-group-on-xmpp-signal-or-simplex/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('discussion group on xmpp, signal or simp'); }); test('community_topic_147928_discussion_group_on_xmpp_signal_or_simplex: h1 "Community Chat on XMPP, Signal"', async ({ page }) => { await page.goto('/community/topic/147928-discussion-group-on-xmpp-signal-or-simplex/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Community Chat on XMPP, Signal or SimpleX' || t.startsWith('Community Chat on XMPP, Signal or SimpleX'))).toBeTruthy(); }); test('community_topic_147928_discussion_group_on_xmpp_signal_or_simplex: h2 "Featured Replies"', async ({ page }) => { await page.goto('/community/topic/147928-discussion-group-on-xmpp-signal-or-simplex/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Featured Replies' || t.startsWith('Featured Replies'))).toBeTruthy(); }); test('community_topic_147928_discussion_group_on_xmpp_signal_or_simplex: h2 "Register a free account or sig"', async ({ page }) => { await page.goto('/community/topic/147928-discussion-group-on-xmpp-signal-or-simplex/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Register a free account or sign in to post' || t.startsWith('Register a free account or sign in to post'))).toBeTruthy(); }); test('community_topic_147928_discussion_group_on_xmpp_signal_or_simplex: h2 "Set up an account"', async ({ page }) => { await page.goto('/community/topic/147928-discussion-group-on-xmpp-signal-or-simplex/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Set up an account' || t.startsWith('Set up an account'))).toBeTruthy(); }); test('community_topic_147928_discussion_group_on_xmpp_signal_or_simplex: header link "Already a member? Log In"', async ({ page }) => { await page.goto('/community/topic/147928-discussion-group-on-xmpp-signal-or-simplex/'); 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 === 'Already a member? Log In' || t.startsWith('Already a member? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_147928_discussion_group_on_xmpp_signal_or_simplex: header link "Lost your password?"', async ({ page }) => { await page.goto('/community/topic/147928-discussion-group-on-xmpp-signal-or-simplex/'); 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 === 'Lost your password?' || t.startsWith('Lost your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_147928_discussion_group_on_xmpp_signal_or_simplex: header link "Join Now"', async ({ page }) => { await page.goto('/community/topic/147928-discussion-group-on-xmpp-signal-or-simplex/'); 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 === 'Join Now' || t.startsWith('Join Now')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_147928_discussion_group_on_xmpp_signal_or_simplex: nav link "Homepage"', async ({ page }) => { await page.goto('/community/topic/147928-discussion-group-on-xmpp-signal-or-simplex/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Homepage' || t.startsWith('Homepage')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_147942_server_error_since_last_updated', () => { test('community_topic_147942_server_error_since_last_updated: title matches GT', async ({ page }) => { await page.goto('/community/topic/147942-server-error-since-last-updated/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('playback fails after latest update'); }); test('community_topic_147942_server_error_since_last_updated: h1 "Playback broken after update,"', async ({ page }) => { await page.goto('/community/topic/147942-server-error-since-last-updated/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Playback broken after update,' || t.startsWith('Playback broken after update,'))).toBeTruthy(); }); test('community_topic_147942_server_error_since_last_updated: h2 "Suggested Replies"', async ({ page }) => { await page.goto('/community/topic/147942-server-error-since-last-updated/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Suggested Replies' || t.startsWith('Suggested Replies'))).toBeTruthy(); }); test('community_topic_147942_server_error_since_last_updated: h2 "Join the community or log in t"', async ({ page }) => { await page.goto('/community/topic/147942-server-error-since-last-updated/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Join the community or log in to reply' || t.startsWith('Join the community or log in to reply'))).toBeTruthy(); }); test('community_topic_147942_server_error_since_last_updated: h2 "Start a new account"', async ({ page }) => { await page.goto('/community/topic/147942-server-error-since-last-updated/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Start a new account' || t.startsWith('Start a new account'))).toBeTruthy(); }); test('community_topic_147942_server_error_since_last_updated: header link "Already a member? Log In"', async ({ page }) => { await page.goto('/community/topic/147942-server-error-since-last-updated/'); 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 === 'Already a member? Log In' || t.startsWith('Already a member? Log In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_147942_server_error_since_last_updated: header link "Reset your password?"', async ({ page }) => { await page.goto('/community/topic/147942-server-error-since-last-updated/'); 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 === 'Reset your password?' || t.startsWith('Reset your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_147942_server_error_since_last_updated: header link "Register"', async ({ page }) => { await page.goto('/community/topic/147942-server-error-since-last-updated/'); 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 === 'Register' || t.startsWith('Register')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_147942_server_error_since_last_updated: nav link "Home Site"', async ({ page }) => { await page.goto('/community/topic/147942-server-error-since-last-updated/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Home Site' || t.startsWith('Home Site')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - community_topic_9754_docker', () => { test('community_topic_9754_docker: title matches GT', async ({ page }) => { await page.goto('/community/topic/9754-docker/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('docker'); }); test('community_topic_9754_docker: h1 "Docker"', async ({ page }) => { await page.goto('/community/topic/9754-docker/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Docker' || t.startsWith('Docker'))).toBeTruthy(); }); test('community_topic_9754_docker: h2 "Featured Replies"', async ({ page }) => { await page.goto('/community/topic/9754-docker/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Featured Replies' || t.startsWith('Featured Replies'))).toBeTruthy(); }); test('community_topic_9754_docker: h2 "Set up a profile or log in to "', async ({ page }) => { await page.goto('/community/topic/9754-docker/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Set up a profile or log in to join the' || t.startsWith('Set up a profile or log in to join the'))).toBeTruthy(); }); test('community_topic_9754_docker: h2 "Set up a profile"', async ({ page }) => { await page.goto('/community/topic/9754-docker/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Set up a profile' || t.startsWith('Set up a profile'))).toBeTruthy(); }); test('community_topic_9754_docker: header link "Returning user? Sign In"', async ({ page }) => { await page.goto('/community/topic/9754-docker/'); 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 === 'Returning user? Sign In' || t.startsWith('Returning user? Sign In')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('community_topic_9754_docker: header link "Reset your password?"', async ({ page }) => { await page.goto('/community/topic/9754-docker/'); 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 === 'Reset your password?' || t.startsWith('Reset your password?')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('lostpassword')), 'href fragment present').toBeTruthy(); }); test('community_topic_9754_docker: header link "Sign Up"', async ({ page }) => { await page.goto('/community/topic/9754-docker/'); 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 === 'Sign Up' || t.startsWith('Sign Up')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('community_topic_9754_docker: nav link "Homepage"', async ({ page }) => { await page.goto('/community/topic/9754-docker/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Homepage' || t.startsWith('Homepage')), 'link text in nav').toBeTruthy(); }); }); test.describe('Functional - Routing', () => { test('navigate to index_html via "STREAMORA"', async ({ page }) => { await page.goto('/'); const link = page.locator('a[href*="index.html"]').first(); expect(await link.count(), 'nav link to index_html exists').toBeGreaterThan(0); await link.click(); await page.waitForTimeout(1200); expect(page.url().toLowerCase(), 'URL changed to destination').toContain('index.html'); const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); expect(bodyText, 'destination distinctive content shown').toContain('How It Works'); }); test('navigate to about_html via "ABOUT"', async ({ page }) => { await page.goto('/'); const link = page.locator('a[href*="about.html"]').first(); expect(await link.count(), 'nav link to about_html exists').toBeGreaterThan(0); await link.click(); await page.waitForTimeout(1200); expect(page.url().toLowerCase(), 'URL changed to destination').toContain('about.html'); const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); expect(bodyText, 'destination distinctive content shown').toContain('Your Media, Your Rules'); }); test('navigate to download_html via "DOWNLOAD"', async ({ page }) => { await page.goto('/'); const link = page.locator('a[href*="download.html"]').first(); expect(await link.count(), 'nav link to download_html exists').toBeGreaterThan(0); await link.click(); await page.waitForTimeout(1200); expect(page.url().toLowerCase(), 'URL changed to destination').toContain('download.html'); const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); expect(bodyText, 'destination distinctive content shown').toContain('Download Streamora'); }); });