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('weavora'); }); test('homepage: h1 "A hackable text editor for the"', async ({ page }) => { await page.goto('/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'A hackable text editor for the modern coder' || t.startsWith('A hackable text editor for the modern coder'))).toBeTruthy(); }); test('homepage: h3 "Sync for Weavora"', async ({ page }) => { await page.goto('/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sync for Weavora' || t.startsWith('Sync for Weavora'))).toBeTruthy(); }); test('homepage: h3 "Git for Weavora"', async ({ page }) => { await page.goto('/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Git for Weavora' || t.startsWith('Git for Weavora'))).toBeTruthy(); }); test('homepage: h3 "All the essentials, built"', async ({ page }) => { await page.goto('/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'All the essentials, built' || t.startsWith('All the essentials, built'))).toBeTruthy(); }); test('homepage: nav link "Packages"', 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 === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('homepage: nav link "Themes"', 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 === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('homepage: nav link "Documentation"', 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 === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), '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(); }); }); test.describe('Functional - beta', () => { test('beta: title matches GT', async ({ page }) => { await page.goto('/beta/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('beta: h3 "Weavora Beta"', async ({ page }) => { await page.goto('/beta/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Weavora Beta' || t.startsWith('Weavora Beta'))).toBeTruthy(); }); test('beta: nav link "Packages"', async ({ page }) => { await page.goto('/beta/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('beta: nav link "Themes"', async ({ page }) => { await page.goto('/beta/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('beta: nav link "Documentation"', async ({ page }) => { await page.goto('/beta/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('beta: nav link "Blog"', async ({ page }) => { await page.goto('/beta/'); 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(); }); }); test.describe('Functional - contact', () => { test('contact: title matches GT', async ({ page }) => { await page.goto('/contact/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('contact'); }); test('contact: h3 "Let\'s connect"', async ({ page }) => { await page.goto('/contact/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Let\'s connect' || t.startsWith('Let\'s connect'))).toBeTruthy(); }); test('contact: h3 "Join our community"', async ({ page }) => { await page.goto('/contact/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Join our community' || t.startsWith('Join our community'))).toBeTruthy(); }); test('contact: nav link "Packages"', async ({ page }) => { await page.goto('/contact/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('contact: nav link "Themes"', async ({ page }) => { await page.goto('/contact/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('contact: nav link "Documentation"', async ({ page }) => { await page.goto('/contact/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('contact: nav link "Blog"', async ({ page }) => { await page.goto('/contact/'); 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(); }); }); test.describe('Functional - docs', () => { test('docs: title matches GT', async ({ page }) => { await page.goto('/docs/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('documentation'); }); test('docs: h2 "Weavora Documentation"', async ({ page }) => { await page.goto('/docs/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Weavora Documentation' || t.startsWith('Weavora Documentation'))).toBeTruthy(); }); test('docs: h3 "Current Release: v1.60.0"', async ({ page }) => { await page.goto('/docs/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Current Release: v1.60.0' || t.startsWith('Current Release: v1.60.0'))).toBeTruthy(); }); test('docs: h3 "Weavora Field Guide"', async ({ page }) => { await page.goto('/docs/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Weavora Field Guide' || t.startsWith('Weavora Field Guide'))).toBeTruthy(); }); test('docs: h3 "API Reference"', async ({ page }) => { await page.goto('/docs/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'API Reference' || t.startsWith('API Reference'))).toBeTruthy(); }); test('docs: nav link "Packages"', async ({ page }) => { await page.goto('/docs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('docs: nav link "Themes"', async ({ page }) => { await page.goto('/docs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('docs: nav link "Documentation"', async ({ page }) => { await page.goto('/docs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('docs: nav link "Blog"', async ({ page }) => { await page.goto('/docs/'); 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(); }); }); test.describe('Functional - faq', () => { test('faq: title matches GT', async ({ page }) => { await page.goto('/faq/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('faq'); }); test('faq: h1 "mac windows linux Improve this"', async ({ page }) => { await page.goto('/faq/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'mac windows linux Improve this page' || t.startsWith('mac windows linux Improve this page'))).toBeTruthy(); }); test('faq: h2 "FAQ"', async ({ page }) => { await page.goto('/faq/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FAQ' || t.startsWith('FAQ'))).toBeTruthy(); }); test('faq: h4 "Chapter 1: Getting Started"', async ({ page }) => { await page.goto('/faq/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Chapter 1: Getting Started' || t.startsWith('Chapter 1: Getting Started'))).toBeTruthy(); }); test('faq: h4 "Chapter 2: Using Weavora"', async ({ page }) => { await page.goto('/faq/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Chapter 2: Using Weavora' || t.startsWith('Chapter 2: Using Weavora'))).toBeTruthy(); }); test('faq: footer link "Terms of Use"', async ({ page }) => { await page.goto('/faq/'); const links = page.locator('footer a, [role="contentinfo"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terms of Use' || t.startsWith('Terms of Use')), 'link text in footer').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('terms')), 'href fragment present').toBeTruthy(); }); test('faq: footer link "Code of Conduct"', async ({ page }) => { await page.goto('/faq/'); const links = page.locator('footer a, [role="contentinfo"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Code of Conduct' || t.startsWith('Code of Conduct')), 'link text in footer').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('code_of_conduct.md')), 'href fragment present').toBeTruthy(); }); test('faq: footer link "Releases"', async ({ page }) => { await page.goto('/faq/'); const links = page.locator('footer a, [role="contentinfo"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Releases' || t.startsWith('Releases')), 'link text in footer').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('releases')), 'href fragment present').toBeTruthy(); }); test('faq: footer link "FAQ"', async ({ page }) => { await page.goto('/faq/'); const links = page.locator('footer a, [role="contentinfo"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FAQ' || t.startsWith('FAQ')), 'link text in footer').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('faq')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - nightly', () => { test('nightly: title matches GT', async ({ page }) => { await page.goto('/nightly/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('nightly: h3 "Try Weavora Nightly ✨"', async ({ page }) => { await page.goto('/nightly/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Try Weavora Nightly ✨' || t.startsWith('Try Weavora Nightly ✨'))).toBeTruthy(); }); test('nightly: nav link "Packages"', async ({ page }) => { await page.goto('/nightly/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('nightly: nav link "Themes"', async ({ page }) => { await page.goto('/nightly/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('nightly: nav link "Documentation"', async ({ page }) => { await page.goto('/nightly/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('nightly: nav link "Blog"', async ({ page }) => { await page.goto('/nightly/'); 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(); }); }); test.describe('Functional - packages', () => { test('packages: title matches GT', async ({ page }) => { await page.goto('/packages/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('packages'); }); test('packages: h2 "Packages unlock what Weavora c"', async ({ page }) => { await page.goto('/packages/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages unlock what Weavora can really do' || t.startsWith('Packages unlock what Weavora can really do'))).toBeTruthy(); }); test('packages: h3 "Featured"', async ({ page }) => { await page.goto('/packages/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Featured' || t.startsWith('Featured'))).toBeTruthy(); }); test('packages: h3 "Trending this week Change time"', async ({ page }) => { await page.goto('/packages/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Trending this week Change time range today this week this month' || t.startsWith('Trending this week Change time range today this week this month'))).toBeTruthy(); }); test('packages: h3 "Newest See all"', async ({ page }) => { await page.goto('/packages/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Newest See all' || t.startsWith('Newest See all'))).toBeTruthy(); }); test('packages: nav link "Packages"', async ({ page }) => { await page.goto('/packages/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('packages: nav link "Themes"', async ({ page }) => { await page.goto('/packages/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('packages: nav link "Documentation"', async ({ page }) => { await page.goto('/packages/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('packages: nav link "Blog"', async ({ page }) => { await page.goto('/packages/'); 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(); }); }); test.describe('Functional - releases', () => { test('releases: title matches GT', async ({ page }) => { await page.goto('/releases/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('release notes'); }); test('releases: h1 "Release notes"', async ({ page }) => { await page.goto('/releases/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Release notes' || t.startsWith('Release notes'))).toBeTruthy(); }); test('releases: h2 "v1.61.0-beta0 (2022-03-08)"', async ({ page }) => { await page.goto('/releases/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'v1.61.0-beta0 (2022-03-08)' || t.startsWith('v1.61.0-beta0 (2022-03-08)'))).toBeTruthy(); }); test('releases: h2 "Notable Changes"', async ({ page }) => { await page.goto('/releases/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Notable Changes' || t.startsWith('Notable Changes'))).toBeTruthy(); }); test('releases: h2 "v1.60.0 (2022-03-08)"', async ({ page }) => { await page.goto('/releases/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'v1.60.0 (2022-03-08)' || t.startsWith('v1.60.0 (2022-03-08)'))).toBeTruthy(); }); test('releases: nav link "Packages"', async ({ page }) => { await page.goto('/releases/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('releases: nav link "Themes"', async ({ page }) => { await page.goto('/releases/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('releases: nav link "Documentation"', async ({ page }) => { await page.goto('/releases/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('releases: nav link "Blog"', async ({ page }) => { await page.goto('/releases/'); 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(); }); }); test.describe('Functional - themes', () => { test('themes: title matches GT', async ({ page }) => { await page.goto('/themes/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('themes'); }); test('themes: h2 "Pick your favorite flavor of W"', async ({ page }) => { await page.goto('/themes/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pick your favorite flavor of Weavora.' || t.startsWith('Pick your favorite flavor of Weavora.'))).toBeTruthy(); }); test('themes: h3 "Featured"', async ({ page }) => { await page.goto('/themes/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Featured' || t.startsWith('Featured'))).toBeTruthy(); }); test('themes: h3 "Trending this week Adjust time"', async ({ page }) => { await page.goto('/themes/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Trending this week Adjust time span today this week this month' || t.startsWith('Trending this week Adjust time span today this week this month'))).toBeTruthy(); }); test('themes: h3 "Newest See all"', async ({ page }) => { await page.goto('/themes/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Newest See all' || t.startsWith('Newest See all'))).toBeTruthy(); }); test('themes: nav link "Packages"', async ({ page }) => { await page.goto('/themes/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('themes: nav link "Themes"', async ({ page }) => { await page.goto('/themes/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('themes: nav link "Documentation"', async ({ page }) => { await page.goto('/themes/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('themes: nav link "Blog"', async ({ page }) => { await page.goto('/themes/'); 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(); }); }); test.describe('Functional - packages_autoclose_html', () => { test('packages_autoclose_html: title matches GT', async ({ page }) => { await page.goto('/packages/autoclose-html/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('autoclose'); }); test('packages_autoclose_html: h1 "Auto Close HTML package for We"', async ({ page }) => { await page.goto('/packages/autoclose-html/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Auto Close HTML package for Weavora Text Editor' || t.startsWith('Auto Close HTML package for Weavora Text Editor'))).toBeTruthy(); }); test('packages_autoclose_html: h1 "Installation"', async ({ page }) => { await page.goto('/packages/autoclose-html/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Installation' || t.startsWith('Installation'))).toBeTruthy(); }); test('packages_autoclose_html: h1 "Usage"', async ({ page }) => { await page.goto('/packages/autoclose-html/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Usage' || t.startsWith('Usage'))).toBeTruthy(); }); test('packages_autoclose_html: h1 "Filing Bugs and Contributing"', async ({ page }) => { await page.goto('/packages/autoclose-html/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Filing Bugs and Contributing' || t.startsWith('Filing Bugs and Contributing'))).toBeTruthy(); }); test('packages_autoclose_html: nav link "Packages"', async ({ page }) => { await page.goto('/packages/autoclose-html/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('packages_autoclose_html: nav link "Themes"', async ({ page }) => { await page.goto('/packages/autoclose-html/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('packages_autoclose_html: nav link "Documentation"', async ({ page }) => { await page.goto('/packages/autoclose-html/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('packages_autoclose_html: nav link "Blog"', async ({ page }) => { await page.goto('/packages/autoclose-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(); }); }); test.describe('Functional - packages_liascript_preview_stargazers', () => { test('packages_liascript_preview_stargazers: title matches GT', async ({ page }) => { await page.goto('/packages/liascript-preview/stargazers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('packages_liascript_preview_stargazers: h2 "Stargazers of liascript-previe"', async ({ page }) => { await page.goto('/packages/liascript-preview/stargazers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stargazers of liascript-preview' || t.startsWith('Stargazers of liascript-preview'))).toBeTruthy(); }); test('packages_liascript_preview_stargazers: h4 "tojin12341za"', async ({ page }) => { await page.goto('/packages/liascript-preview/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'tojin12341za' || t.startsWith('tojin12341za'))).toBeTruthy(); }); test('packages_liascript_preview_stargazers: nav link "Packages"', async ({ page }) => { await page.goto('/packages/liascript-preview/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('packages_liascript_preview_stargazers: nav link "Themes"', async ({ page }) => { await page.goto('/packages/liascript-preview/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('packages_liascript_preview_stargazers: nav link "Documentation"', async ({ page }) => { await page.goto('/packages/liascript-preview/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('packages_liascript_preview_stargazers: nav link "Blog"', async ({ page }) => { await page.goto('/packages/liascript-preview/stargazers/'); 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(); }); }); test.describe('Functional - packages_list', () => { test('packages_list: title matches GT', async ({ page }) => { await page.goto('/packages/list/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('packages_list: h2 "Every package"', async ({ page }) => { await page.goto('/packages/list/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Every package' || t.startsWith('Every package'))).toBeTruthy(); }); test('packages_list: h4 "emberflow-ide-terminal"', async ({ page }) => { await page.goto('/packages/list/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'emberflow-ide-terminal' || t.startsWith('emberflow-ide-terminal'))).toBeTruthy(); }); test('packages_list: h4 "lynx"', async ({ page }) => { await page.goto('/packages/list/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'lynx' || t.startsWith('lynx'))).toBeTruthy(); }); test('packages_list: h4 "linter"', async ({ page }) => { await page.goto('/packages/list/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'linter' || t.startsWith('linter'))).toBeTruthy(); }); test('packages_list: nav link "Packages"', async ({ page }) => { await page.goto('/packages/list/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('packages_list: nav link "Themes"', async ({ page }) => { await page.goto('/packages/list/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('packages_list: nav link "Documentation"', async ({ page }) => { await page.goto('/packages/list/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('packages_list: nav link "Blog"', async ({ page }) => { await page.goto('/packages/list/'); 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(); }); }); test.describe('Functional - themes_list', () => { test('themes_list: title matches GT', async ({ page }) => { await page.goto('/themes/list/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('themes_list: h2 "Every theme"', async ({ page }) => { await page.goto('/themes/list/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Every theme' || t.startsWith('Every theme'))).toBeTruthy(); }); test('themes_list: h4 "weavora-material-ui"', async ({ page }) => { await page.goto('/themes/list/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'weavora-material-ui' || t.startsWith('weavora-material-ui'))).toBeTruthy(); }); test('themes_list: h4 "Opening Weavora..."', async ({ page }) => { await page.goto('/themes/list/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Opening Weavora...' || t.startsWith('Opening Weavora...'))).toBeTruthy(); }); test('themes_list: h4 "weavora-material-syntax"', async ({ page }) => { await page.goto('/themes/list/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'weavora-material-syntax' || t.startsWith('weavora-material-syntax'))).toBeTruthy(); }); test('themes_list: nav link "Packages"', async ({ page }) => { await page.goto('/themes/list/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('themes_list: nav link "Themes"', async ({ page }) => { await page.goto('/themes/list/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('themes_list: nav link "Documentation"', async ({ page }) => { await page.goto('/themes/list/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('themes_list: nav link "Blog"', async ({ page }) => { await page.goto('/themes/list/'); 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(); }); }); test.describe('Functional - themes_nord_weavora_ui', () => { test('themes_nord_weavora_ui: title matches GT', async ({ page }) => { await page.goto('/themes/nord-weavora-ui/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('nord'); }); test('themes_nord_weavora_ui: h2 "Getting Started"', async ({ page }) => { await page.goto('/themes/nord-weavora-ui/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Getting Started' || t.startsWith('Getting Started'))).toBeTruthy(); }); test('themes_nord_weavora_ui: h2 "Built-Ins"', async ({ page }) => { await page.goto('/themes/nord-weavora-ui/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Built-Ins' || t.startsWith('Built-Ins'))).toBeTruthy(); }); test('themes_nord_weavora_ui: h2 "Get Involved"', async ({ page }) => { await page.goto('/themes/nord-weavora-ui/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Get Involved' || t.startsWith('Get Involved'))).toBeTruthy(); }); test('themes_nord_weavora_ui: h2 "This package looks suspicious "', async ({ page }) => { await page.goto('/themes/nord-weavora-ui/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'This package looks suspicious to me.' || t.startsWith('This package looks suspicious to me.'))).toBeTruthy(); }); test('themes_nord_weavora_ui: nav link "Packages"', async ({ page }) => { await page.goto('/themes/nord-weavora-ui/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('themes_nord_weavora_ui: nav link "Themes"', async ({ page }) => { await page.goto('/themes/nord-weavora-ui/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('themes_nord_weavora_ui: nav link "Documentation"', async ({ page }) => { await page.goto('/themes/nord-weavora-ui/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('themes_nord_weavora_ui: nav link "Blog"', async ({ page }) => { await page.goto('/themes/nord-weavora-ui/'); 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(); }); }); test.describe('Functional - themes_solarized_dark_syntax', () => { test('themes_solarized_dark_syntax: title matches GT', async ({ page }) => { await page.goto('/themes/solarized-dark-syntax/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('midnight'); }); test('themes_solarized_dark_syntax: h1 "Midnight Ember Syntax theme"', async ({ page }) => { await page.goto('/themes/solarized-dark-syntax/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Midnight Ember Syntax theme' || t.startsWith('Midnight Ember Syntax theme'))).toBeTruthy(); }); test('themes_solarized_dark_syntax: h2 "This package looks suspicious "', async ({ page }) => { await page.goto('/themes/solarized-dark-syntax/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'This package looks suspicious to me.' || t.startsWith('This package looks suspicious to me.'))).toBeTruthy(); }); test('themes_solarized_dark_syntax: h4 "midnight-ember-syntax"', async ({ page }) => { await page.goto('/themes/solarized-dark-syntax/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'midnight-ember-syntax' || t.startsWith('midnight-ember-syntax'))).toBeTruthy(); }); test('themes_solarized_dark_syntax: nav link "Packages"', async ({ page }) => { await page.goto('/themes/solarized-dark-syntax/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('themes_solarized_dark_syntax: nav link "Themes"', async ({ page }) => { await page.goto('/themes/solarized-dark-syntax/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('themes_solarized_dark_syntax: nav link "Documentation"', async ({ page }) => { await page.goto('/themes/solarized-dark-syntax/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('themes_solarized_dark_syntax: nav link "Blog"', async ({ page }) => { await page.goto('/themes/solarized-dark-syntax/'); 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(); }); }); test.describe('Functional - users_ArnaudRinquin', () => { test('users_ArnaudRinquin: title matches GT', async ({ page }) => { await page.goto('/users/ArnaudRinquin/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('users_ArnaudRinquin: h2 "ArnaudRinquin"', async ({ page }) => { await page.goto('/users/ArnaudRinquin/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ArnaudRinquin' || t.startsWith('ArnaudRinquin'))).toBeTruthy(); }); test('users_ArnaudRinquin: h3 "Packages 2"', async ({ page }) => { await page.goto('/users/ArnaudRinquin/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages 2' || t.startsWith('Packages 2'))).toBeTruthy(); }); test('users_ArnaudRinquin: h3 "Themes 0"', async ({ page }) => { await page.goto('/users/ArnaudRinquin/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes 0' || t.startsWith('Themes 0'))).toBeTruthy(); }); test('users_ArnaudRinquin: h3 "Stars 41 See all"', async ({ page }) => { await page.goto('/users/ArnaudRinquin/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stars 41 See all' || t.startsWith('Stars 41 See all'))).toBeTruthy(); }); test('users_ArnaudRinquin: nav link "Packages"', async ({ page }) => { await page.goto('/users/ArnaudRinquin/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('users_ArnaudRinquin: nav link "Themes"', async ({ page }) => { await page.goto('/users/ArnaudRinquin/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('users_ArnaudRinquin: nav link "Documentation"', async ({ page }) => { await page.goto('/users/ArnaudRinquin/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('users_ArnaudRinquin: nav link "Blog"', async ({ page }) => { await page.goto('/users/ArnaudRinquin/'); 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(); }); }); test.describe('Functional - users_weavora', () => { test('users_weavora: title matches GT', async ({ page }) => { await page.goto('/users/weavora/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('users_weavora: h2 "weavora"', async ({ page }) => { await page.goto('/users/weavora/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'weavora' || t.startsWith('weavora'))).toBeTruthy(); }); test('users_weavora: h3 "Packages 105 See all"', async ({ page }) => { await page.goto('/users/weavora/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages 105 See all' || t.startsWith('Packages 105 See all'))).toBeTruthy(); }); test('users_weavora: h3 "Themes 13 See all"', async ({ page }) => { await page.goto('/users/weavora/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes 13 See all' || t.startsWith('Themes 13 See all'))).toBeTruthy(); }); test('users_weavora: h3 "Stars 0"', async ({ page }) => { await page.goto('/users/weavora/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stars 0' || t.startsWith('Stars 0'))).toBeTruthy(); }); test('users_weavora: nav link "Packages"', async ({ page }) => { await page.goto('/users/weavora/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('users_weavora: nav link "Themes"', async ({ page }) => { await page.goto('/users/weavora/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('users_weavora: nav link "Documentation"', async ({ page }) => { await page.goto('/users/weavora/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('users_weavora: nav link "Blog"', async ({ page }) => { await page.goto('/users/weavora/'); 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(); }); }); test.describe('Functional - users_weavora_material', () => { test('users_weavora_material: page loads without error', async ({ page }) => { const response = await page.goto('/users/weavora-material/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('users_weavora_material: title matches GT', async ({ page }) => { await page.goto('/users/weavora-material/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('users_weavora_material: h2 "weavora-material"', async ({ page }) => { await page.goto('/users/weavora-material/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'weavora-material' || t.startsWith('weavora-material'))).toBeTruthy(); }); test('users_weavora_material: h3 "Packages 0"', async ({ page }) => { await page.goto('/users/weavora-material/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages 0' || t.startsWith('Packages 0'))).toBeTruthy(); }); test('users_weavora_material: h3 "Themes 4"', async ({ page }) => { await page.goto('/users/weavora-material/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes 4' || t.startsWith('Themes 4'))).toBeTruthy(); }); test('users_weavora_material: h3 "Stars 0"', async ({ page }) => { await page.goto('/users/weavora-material/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stars 0' || t.startsWith('Stars 0'))).toBeTruthy(); }); test('users_weavora_material: nav link "Packages"', async ({ page }) => { await page.goto('/users/weavora-material/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('users_weavora_material: nav link "Themes"', async ({ page }) => { await page.goto('/users/weavora-material/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('users_weavora_material: nav link "Documentation"', async ({ page }) => { await page.goto('/users/weavora-material/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('users_weavora_material: nav link "Blog"', async ({ page }) => { await page.goto('/users/weavora-material/'); 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(); }); }); test.describe('Functional - users_b3by', () => { test('users_b3by: title matches GT', async ({ page }) => { await page.goto('/users/b3by/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('users_b3by: h2 "b3by"', async ({ page }) => { await page.goto('/users/b3by/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'b3by' || t.startsWith('b3by'))).toBeTruthy(); }); test('users_b3by: h3 "Packages 3"', async ({ page }) => { await page.goto('/users/b3by/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages 3' || t.startsWith('Packages 3'))).toBeTruthy(); }); test('users_b3by: h3 "Themes 0"', async ({ page }) => { await page.goto('/users/b3by/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes 0' || t.startsWith('Themes 0'))).toBeTruthy(); }); test('users_b3by: h3 "Stars 0"', async ({ page }) => { await page.goto('/users/b3by/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stars 0' || t.startsWith('Stars 0'))).toBeTruthy(); }); test('users_b3by: nav link "Packages"', async ({ page }) => { await page.goto('/users/b3by/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('users_b3by: nav link "Themes"', async ({ page }) => { await page.goto('/users/b3by/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('users_b3by: nav link "Documentation"', async ({ page }) => { await page.goto('/users/b3by/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('users_b3by: nav link "Blog"', async ({ page }) => { await page.goto('/users/b3by/'); 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(); }); }); test.describe('Functional - users_braver', () => { test('users_braver: title matches GT', async ({ page }) => { await page.goto('/users/braver/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('users_braver: h2 "braver"', async ({ page }) => { await page.goto('/users/braver/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'braver' || t.startsWith('braver'))).toBeTruthy(); }); test('users_braver: h3 "Packages 3"', async ({ page }) => { await page.goto('/users/braver/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages 3' || t.startsWith('Packages 3'))).toBeTruthy(); }); test('users_braver: h3 "Themes 3"', async ({ page }) => { await page.goto('/users/braver/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes 3' || t.startsWith('Themes 3'))).toBeTruthy(); }); test('users_braver: h3 "Stars 20 See all"', async ({ page }) => { await page.goto('/users/braver/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stars 20 See all' || t.startsWith('Stars 20 See all'))).toBeTruthy(); }); test('users_braver: nav link "Packages"', async ({ page }) => { await page.goto('/users/braver/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('users_braver: nav link "Themes"', async ({ page }) => { await page.goto('/users/braver/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('users_braver: nav link "Documentation"', async ({ page }) => { await page.goto('/users/braver/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('users_braver: nav link "Blog"', async ({ page }) => { await page.goto('/users/braver/'); 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(); }); }); test.describe('Functional - users_chinakids', () => { test('users_chinakids: title matches GT', async ({ page }) => { await page.goto('/users/chinakids/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('users_chinakids: h2 "chinakids"', async ({ page }) => { await page.goto('/users/chinakids/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'chinakids' || t.startsWith('chinakids'))).toBeTruthy(); }); test('users_chinakids: h3 "Packages 1"', async ({ page }) => { await page.goto('/users/chinakids/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages 1' || t.startsWith('Packages 1'))).toBeTruthy(); }); test('users_chinakids: h3 "Themes 0"', async ({ page }) => { await page.goto('/users/chinakids/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes 0' || t.startsWith('Themes 0'))).toBeTruthy(); }); test('users_chinakids: h3 "Stars 1"', async ({ page }) => { await page.goto('/users/chinakids/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stars 1' || t.startsWith('Stars 1'))).toBeTruthy(); }); test('users_chinakids: nav link "Packages"', async ({ page }) => { await page.goto('/users/chinakids/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('users_chinakids: nav link "Themes"', async ({ page }) => { await page.goto('/users/chinakids/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('users_chinakids: nav link "Documentation"', async ({ page }) => { await page.goto('/users/chinakids/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('users_chinakids: nav link "Blog"', async ({ page }) => { await page.goto('/users/chinakids/'); 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(); }); }); test.describe('Functional - users_falpsdsqglthnsac', () => { test('users_falpsdsqglthnsac: title matches GT', async ({ page }) => { await page.goto('/users/falpsdsqglthnsac/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('users_falpsdsqglthnsac: h2 "falpsdsqglthnsac"', async ({ page }) => { await page.goto('/users/falpsdsqglthnsac/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'falpsdsqglthnsac' || t.startsWith('falpsdsqglthnsac'))).toBeTruthy(); }); test('users_falpsdsqglthnsac: h3 "Packages 1"', async ({ page }) => { await page.goto('/users/falpsdsqglthnsac/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages 1' || t.startsWith('Packages 1'))).toBeTruthy(); }); test('users_falpsdsqglthnsac: h3 "Themes 0"', async ({ page }) => { await page.goto('/users/falpsdsqglthnsac/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes 0' || t.startsWith('Themes 0'))).toBeTruthy(); }); test('users_falpsdsqglthnsac: h3 "Stars 0"', async ({ page }) => { await page.goto('/users/falpsdsqglthnsac/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stars 0' || t.startsWith('Stars 0'))).toBeTruthy(); }); test('users_falpsdsqglthnsac: nav link "Packages"', async ({ page }) => { await page.goto('/users/falpsdsqglthnsac/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('users_falpsdsqglthnsac: nav link "Themes"', async ({ page }) => { await page.goto('/users/falpsdsqglthnsac/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('users_falpsdsqglthnsac: nav link "Documentation"', async ({ page }) => { await page.goto('/users/falpsdsqglthnsac/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('users_falpsdsqglthnsac: nav link "Blog"', async ({ page }) => { await page.goto('/users/falpsdsqglthnsac/'); 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(); }); }); test.describe('Functional - users_heartshapedbox', () => { test('users_heartshapedbox: title matches GT', async ({ page }) => { await page.goto('/users/heartshapedbox/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('users_heartshapedbox: h2 "heartshapedbox"', async ({ page }) => { await page.goto('/users/heartshapedbox/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'heartshapedbox' || t.startsWith('heartshapedbox'))).toBeTruthy(); }); test('users_heartshapedbox: h3 "Packages 0"', async ({ page }) => { await page.goto('/users/heartshapedbox/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages 0' || t.startsWith('Packages 0'))).toBeTruthy(); }); test('users_heartshapedbox: h3 "Themes 5"', async ({ page }) => { await page.goto('/users/heartshapedbox/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes 5' || t.startsWith('Themes 5'))).toBeTruthy(); }); test('users_heartshapedbox: h3 "Stars 1"', async ({ page }) => { await page.goto('/users/heartshapedbox/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stars 1' || t.startsWith('Stars 1'))).toBeTruthy(); }); test('users_heartshapedbox: nav link "Packages"', async ({ page }) => { await page.goto('/users/heartshapedbox/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('users_heartshapedbox: nav link "Themes"', async ({ page }) => { await page.goto('/users/heartshapedbox/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('users_heartshapedbox: nav link "Documentation"', async ({ page }) => { await page.goto('/users/heartshapedbox/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('users_heartshapedbox: nav link "Blog"', async ({ page }) => { await page.goto('/users/heartshapedbox/'); 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(); }); }); test.describe('Functional - users_jacqslabz', () => { test('users_jacqslabz: title matches GT', async ({ page }) => { await page.goto('/users/jacqslabz/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('users_jacqslabz: h2 "jacqslabz"', async ({ page }) => { await page.goto('/users/jacqslabz/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'jacqslabz' || t.startsWith('jacqslabz'))).toBeTruthy(); }); test('users_jacqslabz: h3 "Packages 1"', async ({ page }) => { await page.goto('/users/jacqslabz/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages 1' || t.startsWith('Packages 1'))).toBeTruthy(); }); test('users_jacqslabz: h3 "Themes 0"', async ({ page }) => { await page.goto('/users/jacqslabz/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes 0' || t.startsWith('Themes 0'))).toBeTruthy(); }); test('users_jacqslabz: h3 "Stars 15 See all"', async ({ page }) => { await page.goto('/users/jacqslabz/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stars 15 See all' || t.startsWith('Stars 15 See all'))).toBeTruthy(); }); test('users_jacqslabz: nav link "Packages"', async ({ page }) => { await page.goto('/users/jacqslabz/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('users_jacqslabz: nav link "Themes"', async ({ page }) => { await page.goto('/users/jacqslabz/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('users_jacqslabz: nav link "Documentation"', async ({ page }) => { await page.goto('/users/jacqslabz/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('users_jacqslabz: nav link "Blog"', async ({ page }) => { await page.goto('/users/jacqslabz/'); 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(); }); }); test.describe('Functional - users_kevinsawicki', () => { test('users_kevinsawicki: title matches GT', async ({ page }) => { await page.goto('/users/kevinsawicki/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('users_kevinsawicki: h2 "kevinsawicki"', async ({ page }) => { await page.goto('/users/kevinsawicki/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'kevinsawicki' || t.startsWith('kevinsawicki'))).toBeTruthy(); }); test('users_kevinsawicki: h3 "Packages 1"', async ({ page }) => { await page.goto('/users/kevinsawicki/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages 1' || t.startsWith('Packages 1'))).toBeTruthy(); }); test('users_kevinsawicki: h3 "Themes 2"', async ({ page }) => { await page.goto('/users/kevinsawicki/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes 2' || t.startsWith('Themes 2'))).toBeTruthy(); }); test('users_kevinsawicki: h3 "Stars 18 See all"', async ({ page }) => { await page.goto('/users/kevinsawicki/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stars 18 See all' || t.startsWith('Stars 18 See all'))).toBeTruthy(); }); test('users_kevinsawicki: nav link "Packages"', async ({ page }) => { await page.goto('/users/kevinsawicki/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('users_kevinsawicki: nav link "Themes"', async ({ page }) => { await page.goto('/users/kevinsawicki/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('users_kevinsawicki: nav link "Documentation"', async ({ page }) => { await page.goto('/users/kevinsawicki/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('users_kevinsawicki: nav link "Blog"', async ({ page }) => { await page.goto('/users/kevinsawicki/'); 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(); }); }); test.describe('Functional - users_mathieudutour', () => { test('users_mathieudutour: title matches GT', async ({ page }) => { await page.goto('/users/mathieudutour/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('users_mathieudutour: h2 "mathieudutour"', async ({ page }) => { await page.goto('/users/mathieudutour/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'mathieudutour' || t.startsWith('mathieudutour'))).toBeTruthy(); }); test('users_mathieudutour: h3 "Packages 2"', async ({ page }) => { await page.goto('/users/mathieudutour/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages 2' || t.startsWith('Packages 2'))).toBeTruthy(); }); test('users_mathieudutour: h3 "Themes 0"', async ({ page }) => { await page.goto('/users/mathieudutour/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes 0' || t.startsWith('Themes 0'))).toBeTruthy(); }); test('users_mathieudutour: h3 "Stars 0"', async ({ page }) => { await page.goto('/users/mathieudutour/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stars 0' || t.startsWith('Stars 0'))).toBeTruthy(); }); test('users_mathieudutour: nav link "Packages"', async ({ page }) => { await page.goto('/users/mathieudutour/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('users_mathieudutour: nav link "Themes"', async ({ page }) => { await page.goto('/users/mathieudutour/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('users_mathieudutour: nav link "Documentation"', async ({ page }) => { await page.goto('/users/mathieudutour/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('users_mathieudutour: nav link "Blog"', async ({ page }) => { await page.goto('/users/mathieudutour/'); 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(); }); }); test.describe('Functional - users_mattberkowitz', () => { test('users_mattberkowitz: title matches GT', async ({ page }) => { await page.goto('/users/mattberkowitz/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('users_mattberkowitz: h2 "mattberkowitz"', async ({ page }) => { await page.goto('/users/mattberkowitz/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'mattberkowitz' || t.startsWith('mattberkowitz'))).toBeTruthy(); }); test('users_mattberkowitz: h3 "Packages 1"', async ({ page }) => { await page.goto('/users/mattberkowitz/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages 1' || t.startsWith('Packages 1'))).toBeTruthy(); }); test('users_mattberkowitz: h3 "Themes 0"', async ({ page }) => { await page.goto('/users/mattberkowitz/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes 0' || t.startsWith('Themes 0'))).toBeTruthy(); }); test('users_mattberkowitz: h3 "Stars 0"', async ({ page }) => { await page.goto('/users/mattberkowitz/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stars 0' || t.startsWith('Stars 0'))).toBeTruthy(); }); test('users_mattberkowitz: nav link "Packages"', async ({ page }) => { await page.goto('/users/mattberkowitz/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('users_mattberkowitz: nav link "Themes"', async ({ page }) => { await page.goto('/users/mattberkowitz/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('users_mattberkowitz: nav link "Documentation"', async ({ page }) => { await page.goto('/users/mattberkowitz/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('users_mattberkowitz: nav link "Blog"', async ({ page }) => { await page.goto('/users/mattberkowitz/'); 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(); }); }); test.describe('Functional - users_nteract', () => { test('users_nteract: title matches GT', async ({ page }) => { await page.goto('/users/nteract/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('users_nteract: h2 "Corelace"', async ({ page }) => { await page.goto('/users/nteract/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Corelace' || t.startsWith('Corelace'))).toBeTruthy(); }); test('users_nteract: h3 "Packages 1"', async ({ page }) => { await page.goto('/users/nteract/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages 1' || t.startsWith('Packages 1'))).toBeTruthy(); }); test('users_nteract: h3 "Themes 0"', async ({ page }) => { await page.goto('/users/nteract/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes 0' || t.startsWith('Themes 0'))).toBeTruthy(); }); test('users_nteract: h3 "Stars 0"', async ({ page }) => { await page.goto('/users/nteract/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stars 0' || t.startsWith('Stars 0'))).toBeTruthy(); }); test('users_nteract: nav link "Packages"', async ({ page }) => { await page.goto('/users/nteract/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('users_nteract: nav link "Themes"', async ({ page }) => { await page.goto('/users/nteract/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('users_nteract: nav link "Documentation"', async ({ page }) => { await page.goto('/users/nteract/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('users_nteract: nav link "Blog"', async ({ page }) => { await page.goto('/users/nteract/'); 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(); }); }); test.describe('Functional - users_orktes', () => { test('users_orktes: title matches GT', async ({ page }) => { await page.goto('/users/orktes/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('users_orktes: h2 "orktes"', async ({ page }) => { await page.goto('/users/orktes/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'orktes' || t.startsWith('orktes'))).toBeTruthy(); }); test('users_orktes: h3 "Packages 1"', async ({ page }) => { await page.goto('/users/orktes/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages 1' || t.startsWith('Packages 1'))).toBeTruthy(); }); test('users_orktes: h3 "Themes 0"', async ({ page }) => { await page.goto('/users/orktes/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes 0' || t.startsWith('Themes 0'))).toBeTruthy(); }); test('users_orktes: h3 "Stars 0"', async ({ page }) => { await page.goto('/users/orktes/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stars 0' || t.startsWith('Stars 0'))).toBeTruthy(); }); test('users_orktes: nav link "Packages"', async ({ page }) => { await page.goto('/users/orktes/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('users_orktes: nav link "Themes"', async ({ page }) => { await page.goto('/users/orktes/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('users_orktes: nav link "Documentation"', async ({ page }) => { await page.goto('/users/orktes/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('users_orktes: nav link "Blog"', async ({ page }) => { await page.goto('/users/orktes/'); 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(); }); }); test.describe('Functional - users_timomeh', () => { test('users_timomeh: title matches GT', async ({ page }) => { await page.goto('/users/timomeh/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('users_timomeh: h2 "timomeh"', async ({ page }) => { await page.goto('/users/timomeh/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'timomeh' || t.startsWith('timomeh'))).toBeTruthy(); }); test('users_timomeh: h3 "Packages 1"', async ({ page }) => { await page.goto('/users/timomeh/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages 1' || t.startsWith('Packages 1'))).toBeTruthy(); }); test('users_timomeh: h3 "Themes 0"', async ({ page }) => { await page.goto('/users/timomeh/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes 0' || t.startsWith('Themes 0'))).toBeTruthy(); }); test('users_timomeh: h3 "Stars 9 See all"', async ({ page }) => { await page.goto('/users/timomeh/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stars 9 See all' || t.startsWith('Stars 9 See all'))).toBeTruthy(); }); test('users_timomeh: nav link "Packages"', async ({ page }) => { await page.goto('/users/timomeh/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('users_timomeh: nav link "Themes"', async ({ page }) => { await page.goto('/users/timomeh/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('users_timomeh: nav link "Documentation"', async ({ page }) => { await page.goto('/users/timomeh/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('users_timomeh: nav link "Blog"', async ({ page }) => { await page.goto('/users/timomeh/'); 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(); }); }); test.describe('Functional - users_tststs', () => { test('users_tststs: title matches GT', async ({ page }) => { await page.goto('/users/tststs/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('users_tststs: h2 "zephry"', async ({ page }) => { await page.goto('/users/tststs/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'zephry' || t.startsWith('zephry'))).toBeTruthy(); }); test('users_tststs: h3 "Packages 1"', async ({ page }) => { await page.goto('/users/tststs/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages 1' || t.startsWith('Packages 1'))).toBeTruthy(); }); test('users_tststs: h3 "Themes 0"', async ({ page }) => { await page.goto('/users/tststs/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes 0' || t.startsWith('Themes 0'))).toBeTruthy(); }); test('users_tststs: h3 "Stars 22 See all"', async ({ page }) => { await page.goto('/users/tststs/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stars 22 See all' || t.startsWith('Stars 22 See all'))).toBeTruthy(); }); test('users_tststs: nav link "Packages"', async ({ page }) => { await page.goto('/users/tststs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('users_tststs: nav link "Themes"', async ({ page }) => { await page.goto('/users/tststs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('users_tststs: nav link "Documentation"', async ({ page }) => { await page.goto('/users/tststs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('users_tststs: nav link "Blog"', async ({ page }) => { await page.goto('/users/tststs/'); 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(); }); }); test.describe('Functional - users_tunmiseo', () => { test('users_tunmiseo: title matches GT', async ({ page }) => { await page.goto('/users/tunmiseo/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('users_tunmiseo: h2 "orinvale"', async ({ page }) => { await page.goto('/users/tunmiseo/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'orinvale' || t.startsWith('orinvale'))).toBeTruthy(); }); test('users_tunmiseo: h3 "Packages 2"', async ({ page }) => { await page.goto('/users/tunmiseo/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages 2' || t.startsWith('Packages 2'))).toBeTruthy(); }); test('users_tunmiseo: h3 "Themes 3"', async ({ page }) => { await page.goto('/users/tunmiseo/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes 3' || t.startsWith('Themes 3'))).toBeTruthy(); }); test('users_tunmiseo: h3 "Stars 0"', async ({ page }) => { await page.goto('/users/tunmiseo/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stars 0' || t.startsWith('Stars 0'))).toBeTruthy(); }); test('users_tunmiseo: nav link "Packages"', async ({ page }) => { await page.goto('/users/tunmiseo/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('users_tunmiseo: nav link "Themes"', async ({ page }) => { await page.goto('/users/tunmiseo/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('users_tunmiseo: nav link "Documentation"', async ({ page }) => { await page.goto('/users/tunmiseo/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('users_tunmiseo: nav link "Blog"', async ({ page }) => { await page.goto('/users/tunmiseo/'); 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(); }); }); test.describe('Functional - packages_weavora_clock_stargazers', () => { test('packages_weavora_clock_stargazers: title matches GT', async ({ page }) => { await page.goto('/packages/weavora-clock/stargazers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('packages_weavora_clock_stargazers: h2 "Stargazers for weavora-clock"', async ({ page }) => { await page.goto('/packages/weavora-clock/stargazers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stargazers for weavora-clock' || t.startsWith('Stargazers for weavora-clock'))).toBeTruthy(); }); test('packages_weavora_clock_stargazers: h4 "dvnexus7"', async ({ page }) => { await page.goto('/packages/weavora-clock/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'dvnexus7' || t.startsWith('dvnexus7'))).toBeTruthy(); }); test('packages_weavora_clock_stargazers: h4 "quill-marsh"', async ({ page }) => { await page.goto('/packages/weavora-clock/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'quill-marsh' || t.startsWith('quill-marsh'))).toBeTruthy(); }); test('packages_weavora_clock_stargazers: h4 "kaelstrom"', async ({ page }) => { await page.goto('/packages/weavora-clock/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'kaelstrom' || t.startsWith('kaelstrom'))).toBeTruthy(); }); test('packages_weavora_clock_stargazers: nav link "Packages"', async ({ page }) => { await page.goto('/packages/weavora-clock/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('packages_weavora_clock_stargazers: nav link "Themes"', async ({ page }) => { await page.goto('/packages/weavora-clock/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('packages_weavora_clock_stargazers: nav link "Documentation"', async ({ page }) => { await page.goto('/packages/weavora-clock/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('packages_weavora_clock_stargazers: nav link "Blog"', async ({ page }) => { await page.goto('/packages/weavora-clock/stargazers/'); 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(); }); }); test.describe('Functional - packages_weavora_material_syntax_star', () => { test('packages_weavora_material_syntax_star: title matches GT', async ({ page }) => { await page.goto('/packages/weavora-material-syntax/star/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('packages_weavora_material_syntax_star: h2 "I think something here looks w"', async ({ page }) => { await page.goto('/packages/weavora-material-syntax/star/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'I think something here looks wrong.' || t.startsWith('I think something here looks wrong.'))).toBeTruthy(); }); test('packages_weavora_material_syntax_star: h4 "weavora-prism-syntax"', async ({ page }) => { await page.goto('/packages/weavora-material-syntax/star/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'weavora-prism-syntax' || t.startsWith('weavora-prism-syntax'))).toBeTruthy(); }); test('packages_weavora_material_syntax_star: nav link "Packages"', async ({ page }) => { await page.goto('/packages/weavora-material-syntax/star/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('packages_weavora_material_syntax_star: nav link "Themes"', async ({ page }) => { await page.goto('/packages/weavora-material-syntax/star/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('packages_weavora_material_syntax_star: nav link "Documentation"', async ({ page }) => { await page.goto('/packages/weavora-material-syntax/star/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('packages_weavora_material_syntax_star: nav link "Blog"', async ({ page }) => { await page.goto('/packages/weavora-material-syntax/star/'); 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(); }); }); test.describe('Functional - packages_weavora_material_ui_stargazers', () => { test('packages_weavora_material_ui_stargazers: title matches GT', async ({ page }) => { await page.goto('/packages/weavora-material-ui/stargazers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('packages_weavora_material_ui_stargazers: h2 "Stargazers for loom-material-u"', async ({ page }) => { await page.goto('/packages/weavora-material-ui/stargazers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stargazers for loom-material-ui' || t.startsWith('Stargazers for loom-material-ui'))).toBeTruthy(); }); test('packages_weavora_material_ui_stargazers: h4 "brenmar0412"', async ({ page }) => { await page.goto('/packages/weavora-material-ui/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'brenmar0412' || t.startsWith('brenmar0412'))).toBeTruthy(); }); test('packages_weavora_material_ui_stargazers: h4 "Quill"', async ({ page }) => { await page.goto('/packages/weavora-material-ui/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Quill' || t.startsWith('Quill'))).toBeTruthy(); }); test('packages_weavora_material_ui_stargazers: h4 "vladrenko"', async ({ page }) => { await page.goto('/packages/weavora-material-ui/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'vladrenko' || t.startsWith('vladrenko'))).toBeTruthy(); }); test('packages_weavora_material_ui_stargazers: nav link "Packages"', async ({ page }) => { await page.goto('/packages/weavora-material-ui/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('packages_weavora_material_ui_stargazers: nav link "Themes"', async ({ page }) => { await page.goto('/packages/weavora-material-ui/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('packages_weavora_material_ui_stargazers: nav link "Documentation"', async ({ page }) => { await page.goto('/packages/weavora-material-ui/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('packages_weavora_material_ui_stargazers: nav link "Blog"', async ({ page }) => { await page.goto('/packages/weavora-material-ui/stargazers/'); 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(); }); }); test.describe('Functional - packages_weavora_monokai_stargazers', () => { test('packages_weavora_monokai_stargazers: title matches GT', async ({ page }) => { await page.goto('/packages/weavora-monokai/stargazers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('packages_weavora_monokai_stargazers: h2 "Stargazers of weavora-monokai"', async ({ page }) => { await page.goto('/packages/weavora-monokai/stargazers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stargazers of weavora-monokai' || t.startsWith('Stargazers of weavora-monokai'))).toBeTruthy(); }); test('packages_weavora_monokai_stargazers: h4 "driftmox"', async ({ page }) => { await page.goto('/packages/weavora-monokai/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'driftmox' || t.startsWith('driftmox'))).toBeTruthy(); }); test('packages_weavora_monokai_stargazers: h4 "nvra221"', async ({ page }) => { await page.goto('/packages/weavora-monokai/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'nvra221' || t.startsWith('nvra221'))).toBeTruthy(); }); test('packages_weavora_monokai_stargazers: h4 "Brindle"', async ({ page }) => { await page.goto('/packages/weavora-monokai/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Brindle' || t.startsWith('Brindle'))).toBeTruthy(); }); test('packages_weavora_monokai_stargazers: nav link "Packages"', async ({ page }) => { await page.goto('/packages/weavora-monokai/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('packages_weavora_monokai_stargazers: nav link "Themes"', async ({ page }) => { await page.goto('/packages/weavora-monokai/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('packages_weavora_monokai_stargazers: nav link "Documentation"', async ({ page }) => { await page.goto('/packages/weavora-monokai/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('packages_weavora_monokai_stargazers: nav link "Blog"', async ({ page }) => { await page.goto('/packages/weavora-monokai/stargazers/'); 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(); }); }); test.describe('Functional - packages_weavora_pure_black_syntax_stargazers', () => { test('packages_weavora_pure_black_syntax_stargazers: title matches GT', async ({ page }) => { await page.goto('/packages/weavora-pure-black-syntax/stargazers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('packages_weavora_pure_black_syntax_stargazers: h2 "Users starring weavora-pure-bl"', async ({ page }) => { await page.goto('/packages/weavora-pure-black-syntax/stargazers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Users starring weavora-pure-black-syntax' || t.startsWith('Users starring weavora-pure-black-syntax'))).toBeTruthy(); }); test('packages_weavora_pure_black_syntax_stargazers: h4 "noravelt42"', async ({ page }) => { await page.goto('/packages/weavora-pure-black-syntax/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'noravelt42' || t.startsWith('noravelt42'))).toBeTruthy(); }); test('packages_weavora_pure_black_syntax_stargazers: nav link "Packages"', async ({ page }) => { await page.goto('/packages/weavora-pure-black-syntax/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('packages_weavora_pure_black_syntax_stargazers: nav link "Themes"', async ({ page }) => { await page.goto('/packages/weavora-pure-black-syntax/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('packages_weavora_pure_black_syntax_stargazers: nav link "Documentation"', async ({ page }) => { await page.goto('/packages/weavora-pure-black-syntax/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('packages_weavora_pure_black_syntax_stargazers: nav link "Blog"', async ({ page }) => { await page.goto('/packages/weavora-pure-black-syntax/stargazers/'); 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(); }); }); test.describe('Functional - packages_autoclose_html_star', () => { test('packages_autoclose_html_star: title matches GT', async ({ page }) => { await page.goto('/packages/autoclose-html/star/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('autoclose'); }); test('packages_autoclose_html_star: h1 "Auto Close HTML package for We"', async ({ page }) => { await page.goto('/packages/autoclose-html/star/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Auto Close HTML package for Weavora Text Editor' || t.startsWith('Auto Close HTML package for Weavora Text Editor'))).toBeTruthy(); }); test('packages_autoclose_html_star: h1 "Installation"', async ({ page }) => { await page.goto('/packages/autoclose-html/star/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Installation' || t.startsWith('Installation'))).toBeTruthy(); }); test('packages_autoclose_html_star: h1 "Usage"', async ({ page }) => { await page.goto('/packages/autoclose-html/star/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Usage' || t.startsWith('Usage'))).toBeTruthy(); }); test('packages_autoclose_html_star: h1 "Filing Bugs and Contributing"', async ({ page }) => { await page.goto('/packages/autoclose-html/star/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Filing Bugs and Contributing' || t.startsWith('Filing Bugs and Contributing'))).toBeTruthy(); }); test('packages_autoclose_html_star: nav link "Packages"', async ({ page }) => { await page.goto('/packages/autoclose-html/star/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('packages_autoclose_html_star: nav link "Themes"', async ({ page }) => { await page.goto('/packages/autoclose-html/star/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('packages_autoclose_html_star: nav link "Documentation"', async ({ page }) => { await page.goto('/packages/autoclose-html/star/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('packages_autoclose_html_star: nav link "Blog"', async ({ page }) => { await page.goto('/packages/autoclose-html/star/'); 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(); }); }); test.describe('Functional - packages_autoclose_html_stargazers', () => { test('packages_autoclose_html_stargazers: title matches GT', async ({ page }) => { await page.goto('/packages/autoclose-html/stargazers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('packages_autoclose_html_stargazers: h2 "Stargazers for autoclose-html"', async ({ page }) => { await page.goto('/packages/autoclose-html/stargazers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stargazers for autoclose-html' || t.startsWith('Stargazers for autoclose-html'))).toBeTruthy(); }); test('packages_autoclose_html_stargazers: h4 "cedarquill"', async ({ page }) => { await page.goto('/packages/autoclose-html/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'cedarquill' || t.startsWith('cedarquill'))).toBeTruthy(); }); test('packages_autoclose_html_stargazers: h4 "quillnap"', async ({ page }) => { await page.goto('/packages/autoclose-html/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'quillnap' || t.startsWith('quillnap'))).toBeTruthy(); }); test('packages_autoclose_html_stargazers: h4 "figs"', async ({ page }) => { await page.goto('/packages/autoclose-html/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'figs' || t.startsWith('figs'))).toBeTruthy(); }); test('packages_autoclose_html_stargazers: nav link "Packages"', async ({ page }) => { await page.goto('/packages/autoclose-html/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('packages_autoclose_html_stargazers: nav link "Themes"', async ({ page }) => { await page.goto('/packages/autoclose-html/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('packages_autoclose_html_stargazers: nav link "Documentation"', async ({ page }) => { await page.goto('/packages/autoclose-html/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('packages_autoclose_html_stargazers: nav link "Blog"', async ({ page }) => { await page.goto('/packages/autoclose-html/stargazers/'); 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(); }); }); test.describe('Functional - packages_dracula_syntax_stargazers', () => { test('packages_dracula_syntax_stargazers: title matches GT', async ({ page }) => { await page.goto('/packages/dracula-syntax/stargazers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('packages_dracula_syntax_stargazers: h2 "Stargazers for dracula-syntax"', async ({ page }) => { await page.goto('/packages/dracula-syntax/stargazers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stargazers for dracula-syntax' || t.startsWith('Stargazers for dracula-syntax'))).toBeTruthy(); }); test('packages_dracula_syntax_stargazers: h4 "nyx4TR"', async ({ page }) => { await page.goto('/packages/dracula-syntax/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'nyx4TR' || t.startsWith('nyx4TR'))).toBeTruthy(); }); test('packages_dracula_syntax_stargazers: h4 "kel-rutherd"', async ({ page }) => { await page.goto('/packages/dracula-syntax/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'kel-rutherd' || t.startsWith('kel-rutherd'))).toBeTruthy(); }); test('packages_dracula_syntax_stargazers: h4 "sadievortex"', async ({ page }) => { await page.goto('/packages/dracula-syntax/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'sadievortex' || t.startsWith('sadievortex'))).toBeTruthy(); }); test('packages_dracula_syntax_stargazers: nav link "Packages"', async ({ page }) => { await page.goto('/packages/dracula-syntax/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('packages_dracula_syntax_stargazers: nav link "Themes"', async ({ page }) => { await page.goto('/packages/dracula-syntax/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('packages_dracula_syntax_stargazers: nav link "Documentation"', async ({ page }) => { await page.goto('/packages/dracula-syntax/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('packages_dracula_syntax_stargazers: nav link "Blog"', async ({ page }) => { await page.goto('/packages/dracula-syntax/stargazers/'); 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(); }); }); test.describe('Functional - packages_dracula_ui_stargazers', () => { test('packages_dracula_ui_stargazers: title matches GT', async ({ page }) => { await page.goto('/packages/dracula-ui/stargazers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('packages_dracula_ui_stargazers: h2 "Stargazers for nocturne-ui"', async ({ page }) => { await page.goto('/packages/dracula-ui/stargazers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stargazers for nocturne-ui' || t.startsWith('Stargazers for nocturne-ui'))).toBeTruthy(); }); test('packages_dracula_ui_stargazers: h4 "lumenova14"', async ({ page }) => { await page.goto('/packages/dracula-ui/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'lumenova14' || t.startsWith('lumenova14'))).toBeTruthy(); }); test('packages_dracula_ui_stargazers: h4 "zmQ4te"', async ({ page }) => { await page.goto('/packages/dracula-ui/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'zmQ4te' || t.startsWith('zmQ4te'))).toBeTruthy(); }); test('packages_dracula_ui_stargazers: h4 "pixelnomad0"', async ({ page }) => { await page.goto('/packages/dracula-ui/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'pixelnomad0' || t.startsWith('pixelnomad0'))).toBeTruthy(); }); test('packages_dracula_ui_stargazers: nav link "Packages"', async ({ page }) => { await page.goto('/packages/dracula-ui/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('packages_dracula_ui_stargazers: nav link "Themes"', async ({ page }) => { await page.goto('/packages/dracula-ui/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('packages_dracula_ui_stargazers: nav link "Documentation"', async ({ page }) => { await page.goto('/packages/dracula-ui/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('packages_dracula_ui_stargazers: nav link "Blog"', async ({ page }) => { await page.goto('/packages/dracula-ui/stargazers/'); 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(); }); }); test.describe('Functional - packages_hey_pane_stargazers', () => { test('packages_hey_pane_stargazers: title matches GT', async ({ page }) => { await page.goto('/packages/hey-pane/stargazers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('packages_hey_pane_stargazers: h2 "Stargazers for hey-pane"', async ({ page }) => { await page.goto('/packages/hey-pane/stargazers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stargazers for hey-pane' || t.startsWith('Stargazers for hey-pane'))).toBeTruthy(); }); test('packages_hey_pane_stargazers: h4 "cobaltferns"', async ({ page }) => { await page.goto('/packages/hey-pane/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'cobaltferns' || t.startsWith('cobaltferns'))).toBeTruthy(); }); test('packages_hey_pane_stargazers: h4 "marlowquill7"', async ({ page }) => { await page.goto('/packages/hey-pane/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'marlowquill7' || t.startsWith('marlowquill7'))).toBeTruthy(); }); test('packages_hey_pane_stargazers: h4 "94043"', async ({ page }) => { await page.goto('/packages/hey-pane/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '94043' || t.startsWith('94043'))).toBeTruthy(); }); test('packages_hey_pane_stargazers: nav link "Packages"', async ({ page }) => { await page.goto('/packages/hey-pane/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('packages_hey_pane_stargazers: nav link "Themes"', async ({ page }) => { await page.goto('/packages/hey-pane/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('packages_hey_pane_stargazers: nav link "Documentation"', async ({ page }) => { await page.goto('/packages/hey-pane/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('packages_hey_pane_stargazers: nav link "Blog"', async ({ page }) => { await page.goto('/packages/hey-pane/stargazers/'); 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(); }); }); test.describe('Functional - packages_isotope_ui_star', () => { test('packages_isotope_ui_star: title matches GT', async ({ page }) => { await page.goto('/packages/isotope-ui/star/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('isotope'); }); test('packages_isotope_ui_star: h1 "Isotope UI theme"', async ({ page }) => { await page.goto('/packages/isotope-ui/star/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Isotope UI theme' || t.startsWith('Isotope UI theme'))).toBeTruthy(); }); test('packages_isotope_ui_star: h2 "Features"', async ({ page }) => { await page.goto('/packages/isotope-ui/star/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Features' || t.startsWith('Features'))).toBeTruthy(); }); test('packages_isotope_ui_star: h2 "Configuration"', async ({ page }) => { await page.goto('/packages/isotope-ui/star/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Configuration' || t.startsWith('Configuration'))).toBeTruthy(); }); test('packages_isotope_ui_star: h2 "Fonts"', async ({ page }) => { await page.goto('/packages/isotope-ui/star/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Fonts' || t.startsWith('Fonts'))).toBeTruthy(); }); test('packages_isotope_ui_star: nav link "Packages"', async ({ page }) => { await page.goto('/packages/isotope-ui/star/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('packages_isotope_ui_star: nav link "Themes"', async ({ page }) => { await page.goto('/packages/isotope-ui/star/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('packages_isotope_ui_star: nav link "Documentation"', async ({ page }) => { await page.goto('/packages/isotope-ui/star/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('packages_isotope_ui_star: nav link "Blog"', async ({ page }) => { await page.goto('/packages/isotope-ui/star/'); 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(); }); }); test.describe('Functional - packages_isotope_ui_stargazers', () => { test('packages_isotope_ui_stargazers: title matches GT', async ({ page }) => { await page.goto('/packages/isotope-ui/stargazers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('packages_isotope_ui_stargazers: h2 "Stargazers for isotope-ui"', async ({ page }) => { await page.goto('/packages/isotope-ui/stargazers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stargazers for isotope-ui' || t.startsWith('Stargazers for isotope-ui'))).toBeTruthy(); }); test('packages_isotope_ui_stargazers: h4 "kelvox"', async ({ page }) => { await page.goto('/packages/isotope-ui/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'kelvox' || t.startsWith('kelvox'))).toBeTruthy(); }); test('packages_isotope_ui_stargazers: h4 "driftmoss"', async ({ page }) => { await page.goto('/packages/isotope-ui/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'driftmoss' || t.startsWith('driftmoss'))).toBeTruthy(); }); test('packages_isotope_ui_stargazers: h4 "HarunoKazeda"', async ({ page }) => { await page.goto('/packages/isotope-ui/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'HarunoKazeda' || t.startsWith('HarunoKazeda'))).toBeTruthy(); }); test('packages_isotope_ui_stargazers: nav link "Packages"', async ({ page }) => { await page.goto('/packages/isotope-ui/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('packages_isotope_ui_stargazers: nav link "Themes"', async ({ page }) => { await page.goto('/packages/isotope-ui/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('packages_isotope_ui_stargazers: nav link "Documentation"', async ({ page }) => { await page.goto('/packages/isotope-ui/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('packages_isotope_ui_stargazers: nav link "Blog"', async ({ page }) => { await page.goto('/packages/isotope-ui/stargazers/'); 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(); }); }); test.describe('Functional - packages_language_spwn_star', () => { test('packages_language_spwn_star: title matches GT', async ({ page }) => { await page.goto('/packages/language-spwn/star/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('language'); }); test('packages_language_spwn_star: h1 "About language-spwn"', async ({ page }) => { await page.goto('/packages/language-spwn/star/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About language-spwn' || t.startsWith('About language-spwn'))).toBeTruthy(); }); test('packages_language_spwn_star: h2 "This package looks suspicious "', async ({ page }) => { await page.goto('/packages/language-spwn/star/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'This package looks suspicious to me.' || t.startsWith('This package looks suspicious to me.'))).toBeTruthy(); }); test('packages_language_spwn_star: h4 "language-spwn"', async ({ page }) => { await page.goto('/packages/language-spwn/star/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'language-spwn' || t.startsWith('language-spwn'))).toBeTruthy(); }); test('packages_language_spwn_star: nav link "Packages"', async ({ page }) => { await page.goto('/packages/language-spwn/star/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('packages_language_spwn_star: nav link "Themes"', async ({ page }) => { await page.goto('/packages/language-spwn/star/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('packages_language_spwn_star: nav link "Documentation"', async ({ page }) => { await page.goto('/packages/language-spwn/star/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('packages_language_spwn_star: nav link "Blog"', async ({ page }) => { await page.goto('/packages/language-spwn/star/'); 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(); }); }); test.describe('Functional - packages_monokai_star', () => { test('packages_monokai_star: title matches GT', async ({ page }) => { await page.goto('/packages/monokai/star/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('monokai'); }); test('packages_monokai_star: h1 "Monokai theme"', async ({ page }) => { await page.goto('/packages/monokai/star/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Monokai theme' || t.startsWith('Monokai theme'))).toBeTruthy(); }); test('packages_monokai_star: h2 "This package seems suspicious "', async ({ page }) => { await page.goto('/packages/monokai/star/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'This package seems suspicious to me.' || t.startsWith('This package seems suspicious to me.'))).toBeTruthy(); }); test('packages_monokai_star: h4 "monokai"', async ({ page }) => { await page.goto('/packages/monokai/star/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'monokai' || t.startsWith('monokai'))).toBeTruthy(); }); test('packages_monokai_star: nav link "Packages"', async ({ page }) => { await page.goto('/packages/monokai/star/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('packages_monokai_star: nav link "Themes"', async ({ page }) => { await page.goto('/packages/monokai/star/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('packages_monokai_star: nav link "Documentation"', async ({ page }) => { await page.goto('/packages/monokai/star/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('packages_monokai_star: nav link "Blog"', async ({ page }) => { await page.goto('/packages/monokai/star/'); 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(); }); }); test.describe('Functional - packages_monokai_stargazers', () => { test('packages_monokai_stargazers: title matches GT', async ({ page }) => { await page.goto('/packages/monokai/stargazers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('packages_monokai_stargazers: h2 "Stargazers for monokai"', async ({ page }) => { await page.goto('/packages/monokai/stargazers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stargazers for monokai' || t.startsWith('Stargazers for monokai'))).toBeTruthy(); }); test('packages_monokai_stargazers: h4 "CoolCoderX"', async ({ page }) => { await page.goto('/packages/monokai/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'CoolCoderX' || t.startsWith('CoolCoderX'))).toBeTruthy(); }); test('packages_monokai_stargazers: h4 "zappy8"', async ({ page }) => { await page.goto('/packages/monokai/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'zappy8' || t.startsWith('zappy8'))).toBeTruthy(); }); test('packages_monokai_stargazers: h4 "devrowan1"', async ({ page }) => { await page.goto('/packages/monokai/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'devrowan1' || t.startsWith('devrowan1'))).toBeTruthy(); }); test('packages_monokai_stargazers: nav link "Packages"', async ({ page }) => { await page.goto('/packages/monokai/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('packages_monokai_stargazers: nav link "Themes"', async ({ page }) => { await page.goto('/packages/monokai/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('packages_monokai_stargazers: nav link "Documentation"', async ({ page }) => { await page.goto('/packages/monokai/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('packages_monokai_stargazers: nav link "Blog"', async ({ page }) => { await page.goto('/packages/monokai/stargazers/'); 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(); }); }); test.describe('Functional - packages_night_ocean_waves_theme_syntax_stargazers', () => { test('packages_night_ocean_waves_theme_syntax_stargazers: title matches GT', async ({ page }) => { await page.goto('/packages/night-ocean-waves-theme-syntax/stargazers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('packages_night_ocean_waves_theme_syntax_stargazers: h2 "Fans who starred night-ocean-w"', async ({ page }) => { await page.goto('/packages/night-ocean-waves-theme-syntax/stargazers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Fans who starred night-ocean-waves-theme-syntax' || t.startsWith('Fans who starred night-ocean-waves-theme-syntax'))).toBeTruthy(); }); test('packages_night_ocean_waves_theme_syntax_stargazers: h4 "pbrilius"', async ({ page }) => { await page.goto('/packages/night-ocean-waves-theme-syntax/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'pbrilius' || t.startsWith('pbrilius'))).toBeTruthy(); }); test('packages_night_ocean_waves_theme_syntax_stargazers: h4 "MysteryShack"', async ({ page }) => { await page.goto('/packages/night-ocean-waves-theme-syntax/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'MysteryShack' || t.startsWith('MysteryShack'))).toBeTruthy(); }); test('packages_night_ocean_waves_theme_syntax_stargazers: h4 "kolk-mofumofu"', async ({ page }) => { await page.goto('/packages/night-ocean-waves-theme-syntax/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'kolk-mofumofu' || t.startsWith('kolk-mofumofu'))).toBeTruthy(); }); test('packages_night_ocean_waves_theme_syntax_stargazers: nav link "Packages"', async ({ page }) => { await page.goto('/packages/night-ocean-waves-theme-syntax/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('packages_night_ocean_waves_theme_syntax_stargazers: nav link "Themes"', async ({ page }) => { await page.goto('/packages/night-ocean-waves-theme-syntax/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('packages_night_ocean_waves_theme_syntax_stargazers: nav link "Documentation"', async ({ page }) => { await page.goto('/packages/night-ocean-waves-theme-syntax/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('packages_night_ocean_waves_theme_syntax_stargazers: nav link "Blog"', async ({ page }) => { await page.goto('/packages/night-ocean-waves-theme-syntax/stargazers/'); 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(); }); }); test.describe('Functional - packages_nord_weavora_ui_star', () => { test('packages_nord_weavora_ui_star: title matches GT', async ({ page }) => { await page.goto('/packages/nord-weavora-ui/star/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('nord'); }); test('packages_nord_weavora_ui_star: h2 "Getting Set Up"', async ({ page }) => { await page.goto('/packages/nord-weavora-ui/star/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Getting Set Up' || t.startsWith('Getting Set Up'))).toBeTruthy(); }); test('packages_nord_weavora_ui_star: h2 "The Perks"', async ({ page }) => { await page.goto('/packages/nord-weavora-ui/star/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Perks' || t.startsWith('The Perks'))).toBeTruthy(); }); test('packages_nord_weavora_ui_star: h2 "Get Involved"', async ({ page }) => { await page.goto('/packages/nord-weavora-ui/star/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Get Involved' || t.startsWith('Get Involved'))).toBeTruthy(); }); test('packages_nord_weavora_ui_star: h2 "Something here doesn\'t feel ri"', async ({ page }) => { await page.goto('/packages/nord-weavora-ui/star/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Something here doesn\'t feel right.' || t.startsWith('Something here doesn\'t feel right.'))).toBeTruthy(); }); test('packages_nord_weavora_ui_star: nav link "Packages"', async ({ page }) => { await page.goto('/packages/nord-weavora-ui/star/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('packages_nord_weavora_ui_star: nav link "Themes"', async ({ page }) => { await page.goto('/packages/nord-weavora-ui/star/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('packages_nord_weavora_ui_star: nav link "Documentation"', async ({ page }) => { await page.goto('/packages/nord-weavora-ui/star/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('packages_nord_weavora_ui_star: nav link "Blog"', async ({ page }) => { await page.goto('/packages/nord-weavora-ui/star/'); 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(); }); }); test.describe('Functional - packages_nord_weavora_ui_stargazers', () => { test('packages_nord_weavora_ui_stargazers: title matches GT', async ({ page }) => { await page.goto('/packages/nord-weavora-ui/stargazers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('packages_nord_weavora_ui_stargazers: h2 "Fans who starred nord-weavora-"', async ({ page }) => { await page.goto('/packages/nord-weavora-ui/stargazers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Fans who starred nord-weavora-ui' || t.startsWith('Fans who starred nord-weavora-ui'))).toBeTruthy(); }); test('packages_nord_weavora_ui_stargazers: h4 "migmuni"', async ({ page }) => { await page.goto('/packages/nord-weavora-ui/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'migmuni' || t.startsWith('migmuni'))).toBeTruthy(); }); test('packages_nord_weavora_ui_stargazers: h4 "codebachi"', async ({ page }) => { await page.goto('/packages/nord-weavora-ui/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'codebachi' || t.startsWith('codebachi'))).toBeTruthy(); }); test('packages_nord_weavora_ui_stargazers: h4 "andrewrynhard"', async ({ page }) => { await page.goto('/packages/nord-weavora-ui/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'andrewrynhard' || t.startsWith('andrewrynhard'))).toBeTruthy(); }); test('packages_nord_weavora_ui_stargazers: nav link "Packages"', async ({ page }) => { await page.goto('/packages/nord-weavora-ui/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('packages_nord_weavora_ui_stargazers: nav link "Themes"', async ({ page }) => { await page.goto('/packages/nord-weavora-ui/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('packages_nord_weavora_ui_stargazers: nav link "Documentation"', async ({ page }) => { await page.goto('/packages/nord-weavora-ui/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('packages_nord_weavora_ui_stargazers: nav link "Blog"', async ({ page }) => { await page.goto('/packages/nord-weavora-ui/stargazers/'); 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(); }); }); test.describe('Functional - packages_react_stargazers', () => { test('packages_react_stargazers: title matches GT', async ({ page }) => { await page.goto('/packages/react/stargazers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('packages_react_stargazers: h2 "Users starring react"', async ({ page }) => { await page.goto('/packages/react/stargazers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Users starring react' || t.startsWith('Users starring react'))).toBeTruthy(); }); test('packages_react_stargazers: h4 "quillnovar"', async ({ page }) => { await page.goto('/packages/react/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'quillnovar' || t.startsWith('quillnovar'))).toBeTruthy(); }); test('packages_react_stargazers: h4 "brindlethorn"', async ({ page }) => { await page.goto('/packages/react/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'brindlethorn' || t.startsWith('brindlethorn'))).toBeTruthy(); }); test('packages_react_stargazers: h4 "fennmarrowe"', async ({ page }) => { await page.goto('/packages/react/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'fennmarrowe' || t.startsWith('fennmarrowe'))).toBeTruthy(); }); test('packages_react_stargazers: nav link "Packages"', async ({ page }) => { await page.goto('/packages/react/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('packages_react_stargazers: nav link "Themes"', async ({ page }) => { await page.goto('/packages/react/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('packages_react_stargazers: nav link "Documentation"', async ({ page }) => { await page.goto('/packages/react/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('packages_react_stargazers: nav link "Blog"', async ({ page }) => { await page.goto('/packages/react/stargazers/'); 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(); }); }); test.describe('Functional - packages_scroll_through_time_stargazers', () => { test('packages_scroll_through_time_stargazers: title matches GT', async ({ page }) => { await page.goto('/packages/scroll-through-time/stargazers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('packages_scroll_through_time_stargazers: h2 "Stargazers of scroll-through-t"', async ({ page }) => { await page.goto('/packages/scroll-through-time/stargazers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stargazers of scroll-through-time' || t.startsWith('Stargazers of scroll-through-time'))).toBeTruthy(); }); test('packages_scroll_through_time_stargazers: h4 "brynwood4471"', async ({ page }) => { await page.goto('/packages/scroll-through-time/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'brynwood4471' || t.startsWith('brynwood4471'))).toBeTruthy(); }); test('packages_scroll_through_time_stargazers: h4 "Velmora"', async ({ page }) => { await page.goto('/packages/scroll-through-time/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Velmora' || t.startsWith('Velmora'))).toBeTruthy(); }); test('packages_scroll_through_time_stargazers: h4 "frostedmoths"', async ({ page }) => { await page.goto('/packages/scroll-through-time/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'frostedmoths' || t.startsWith('frostedmoths'))).toBeTruthy(); }); test('packages_scroll_through_time_stargazers: nav link "Packages"', async ({ page }) => { await page.goto('/packages/scroll-through-time/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('packages_scroll_through_time_stargazers: nav link "Themes"', async ({ page }) => { await page.goto('/packages/scroll-through-time/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('packages_scroll_through_time_stargazers: nav link "Documentation"', async ({ page }) => { await page.goto('/packages/scroll-through-time/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('packages_scroll_through_time_stargazers: nav link "Blog"', async ({ page }) => { await page.goto('/packages/scroll-through-time/stargazers/'); 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(); }); }); test.describe('Functional - packages_seti_ui_stargazers', () => { test('packages_seti_ui_stargazers: title matches GT', async ({ page }) => { await page.goto('/packages/seti-ui/stargazers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('packages_seti_ui_stargazers: h2 "Stargazers for lumo-ui"', async ({ page }) => { await page.goto('/packages/seti-ui/stargazers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stargazers for lumo-ui' || t.startsWith('Stargazers for lumo-ui'))).toBeTruthy(); }); test('packages_seti_ui_stargazers: h4 "Vexlor"', async ({ page }) => { await page.goto('/packages/seti-ui/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vexlor' || t.startsWith('Vexlor'))).toBeTruthy(); }); test('packages_seti_ui_stargazers: h4 "shadowgrove7"', async ({ page }) => { await page.goto('/packages/seti-ui/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'shadowgrove7' || t.startsWith('shadowgrove7'))).toBeTruthy(); }); test('packages_seti_ui_stargazers: h4 "Bralo88"', async ({ page }) => { await page.goto('/packages/seti-ui/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Bralo88' || t.startsWith('Bralo88'))).toBeTruthy(); }); test('packages_seti_ui_stargazers: nav link "Packages"', async ({ page }) => { await page.goto('/packages/seti-ui/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('packages_seti_ui_stargazers: nav link "Themes"', async ({ page }) => { await page.goto('/packages/seti-ui/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('packages_seti_ui_stargazers: nav link "Documentation"', async ({ page }) => { await page.goto('/packages/seti-ui/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('packages_seti_ui_stargazers: nav link "Blog"', async ({ page }) => { await page.goto('/packages/seti-ui/stargazers/'); 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(); }); }); test.describe('Functional - packages_simplified_chinese_menu_stargazers', () => { test('packages_simplified_chinese_menu_stargazers: title matches GT', async ({ page }) => { await page.goto('/packages/simplified-chinese-menu/stargazers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('packages_simplified_chinese_menu_stargazers: h2 "Stargazers of simplified-chine"', async ({ page }) => { await page.goto('/packages/simplified-chinese-menu/stargazers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stargazers of simplified-chinese-menu' || t.startsWith('Stargazers of simplified-chinese-menu'))).toBeTruthy(); }); test('packages_simplified_chinese_menu_stargazers: h4 "lumitab7"', async ({ page }) => { await page.goto('/packages/simplified-chinese-menu/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'lumitab7' || t.startsWith('lumitab7'))).toBeTruthy(); }); test('packages_simplified_chinese_menu_stargazers: h4 "QRTLAB"', async ({ page }) => { await page.goto('/packages/simplified-chinese-menu/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'QRTLAB' || t.startsWith('QRTLAB'))).toBeTruthy(); }); test('packages_simplified_chinese_menu_stargazers: h4 "frostq9"', async ({ page }) => { await page.goto('/packages/simplified-chinese-menu/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'frostq9' || t.startsWith('frostq9'))).toBeTruthy(); }); test('packages_simplified_chinese_menu_stargazers: nav link "Packages"', async ({ page }) => { await page.goto('/packages/simplified-chinese-menu/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('packages_simplified_chinese_menu_stargazers: nav link "Themes"', async ({ page }) => { await page.goto('/packages/simplified-chinese-menu/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('packages_simplified_chinese_menu_stargazers: nav link "Documentation"', async ({ page }) => { await page.goto('/packages/simplified-chinese-menu/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('packages_simplified_chinese_menu_stargazers: nav link "Blog"', async ({ page }) => { await page.goto('/packages/simplified-chinese-menu/stargazers/'); 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(); }); }); test.describe('Functional - packages_solarized_dark_syntax_star', () => { test('packages_solarized_dark_syntax_star: title matches GT', async ({ page }) => { await page.goto('/packages/solarized-dark-syntax/star/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('solarized'); }); test('packages_solarized_dark_syntax_star: h1 "Solarized Dark Syntax theme"', async ({ page }) => { await page.goto('/packages/solarized-dark-syntax/star/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Solarized Dark Syntax theme' || t.startsWith('Solarized Dark Syntax theme'))).toBeTruthy(); }); test('packages_solarized_dark_syntax_star: h2 "I think this package looks ske"', async ({ page }) => { await page.goto('/packages/solarized-dark-syntax/star/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'I think this package looks sketchy.' || t.startsWith('I think this package looks sketchy.'))).toBeTruthy(); }); test('packages_solarized_dark_syntax_star: h4 "solarized-dark-syntax"', async ({ page }) => { await page.goto('/packages/solarized-dark-syntax/star/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'solarized-dark-syntax' || t.startsWith('solarized-dark-syntax'))).toBeTruthy(); }); test('packages_solarized_dark_syntax_star: nav link "Packages"', async ({ page }) => { await page.goto('/packages/solarized-dark-syntax/star/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('packages_solarized_dark_syntax_star: nav link "Themes"', async ({ page }) => { await page.goto('/packages/solarized-dark-syntax/star/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('packages_solarized_dark_syntax_star: nav link "Documentation"', async ({ page }) => { await page.goto('/packages/solarized-dark-syntax/star/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('packages_solarized_dark_syntax_star: nav link "Blog"', async ({ page }) => { await page.goto('/packages/solarized-dark-syntax/star/'); 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(); }); }); test.describe('Functional - packages_teletype_stargazers', () => { test('packages_teletype_stargazers: title matches GT', async ({ page }) => { await page.goto('/packages/teletype/stargazers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('packages_teletype_stargazers: h2 "Stargazers for teletype"', async ({ page }) => { await page.goto('/packages/teletype/stargazers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stargazers for teletype' || t.startsWith('Stargazers for teletype'))).toBeTruthy(); }); test('packages_teletype_stargazers: h4 "quillspark52"', async ({ page }) => { await page.goto('/packages/teletype/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'quillspark52' || t.startsWith('quillspark52'))).toBeTruthy(); }); test('packages_teletype_stargazers: h4 "Norvyn"', async ({ page }) => { await page.goto('/packages/teletype/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Norvyn' || t.startsWith('Norvyn'))).toBeTruthy(); }); test('packages_teletype_stargazers: h4 "brightloom"', async ({ page }) => { await page.goto('/packages/teletype/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'brightloom' || t.startsWith('brightloom'))).toBeTruthy(); }); test('packages_teletype_stargazers: nav link "Packages"', async ({ page }) => { await page.goto('/packages/teletype/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('packages_teletype_stargazers: nav link "Themes"', async ({ page }) => { await page.goto('/packages/teletype/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('packages_teletype_stargazers: nav link "Documentation"', async ({ page }) => { await page.goto('/packages/teletype/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('packages_teletype_stargazers: nav link "Blog"', async ({ page }) => { await page.goto('/packages/teletype/stargazers/'); 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(); }); }); test.describe('Functional - packages_zentabs_stargazers', () => { test('packages_zentabs_stargazers: title matches GT', async ({ page }) => { await page.goto('/packages/zentabs/stargazers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('weavora'); }); test('packages_zentabs_stargazers: h2 "Stargazers for zentabs"', async ({ page }) => { await page.goto('/packages/zentabs/stargazers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stargazers for zentabs' || t.startsWith('Stargazers for zentabs'))).toBeTruthy(); }); test('packages_zentabs_stargazers: h4 "marlowvine"', async ({ page }) => { await page.goto('/packages/zentabs/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'marlowvine' || t.startsWith('marlowvine'))).toBeTruthy(); }); test('packages_zentabs_stargazers: h4 "Vexlor"', async ({ page }) => { await page.goto('/packages/zentabs/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vexlor' || t.startsWith('Vexlor'))).toBeTruthy(); }); test('packages_zentabs_stargazers: h4 "delmarquin"', async ({ page }) => { await page.goto('/packages/zentabs/stargazers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'delmarquin' || t.startsWith('delmarquin'))).toBeTruthy(); }); test('packages_zentabs_stargazers: nav link "Packages"', async ({ page }) => { await page.goto('/packages/zentabs/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Packages' || t.startsWith('Packages')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('packages')), 'href fragment present').toBeTruthy(); }); test('packages_zentabs_stargazers: nav link "Themes"', async ({ page }) => { await page.goto('/packages/zentabs/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themes' || t.startsWith('Themes')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('themes')), 'href fragment present').toBeTruthy(); }); test('packages_zentabs_stargazers: nav link "Documentation"', async ({ page }) => { await page.goto('/packages/zentabs/stargazers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); }); test('packages_zentabs_stargazers: nav link "Blog"', async ({ page }) => { await page.goto('/packages/zentabs/stargazers/'); 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(); }); }); test.describe('Functional - Routing', () => { test('navigate to packages via "Packages"', async ({ page }) => { await page.goto('/'); const link = page.locator('a[href*="packages"]').first(); expect(await link.count(), 'nav link to packages exists').toBeGreaterThan(0); await link.click(); await page.waitForTimeout(1200); expect(page.url().toLowerCase(), 'URL changed to destination').toContain('packages'); const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); expect(bodyText, 'destination distinctive content shown').toContain('Packages unlock what Weavora can really do'); }); test('navigate to themes via "Themes"', async ({ page }) => { await page.goto('/'); const link = page.locator('a[href*="themes"]').first(); expect(await link.count(), 'nav link to themes exists').toBeGreaterThan(0); await link.click(); await page.waitForTimeout(1200); expect(page.url().toLowerCase(), 'URL changed to destination').toContain('themes'); const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); expect(bodyText, 'destination distinctive content shown').toContain('Pick your favorite flavor of Weavora.'); }); test('navigate to docs via "Documentation"', async ({ page }) => { await page.goto('/'); const link = page.locator('a[href*="docs"]').first(); expect(await link.count(), 'nav link to docs exists').toBeGreaterThan(0); await link.click(); await page.waitForTimeout(1200); expect(page.url().toLowerCase(), 'URL changed to destination').toContain('docs'); const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); expect(bodyText, 'destination distinctive content shown').toContain('Weavora Documentation'); }); });