RecreationBench / web /gradyn.example /tests /static /content.scripted.spec.ts
VoyagerXHF's picture
Upload folder using huggingface_hub (part 38)
1c5f5f7 verified
Raw History Blame Contribute Delete
191 kB
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('distributed deep learning and hyperparam');
});
test('homepage: h1 "Scale to any size"', async ({ page }) => {
await page.goto('/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Scale to any size' || t.startsWith('Scale to any size'))).toBeTruthy();
});
test('homepage: h1 "Sweep hyperparameters"', async ({ page }) => {
await page.goto('/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sweep hyperparameters' || t.startsWith('Sweep hyperparameters'))).toBeTruthy();
});
test('homepage: h1 "Explore your results"', async ({ page }) => {
await page.goto('/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Explore your results' || t.startsWith('Explore your results'))).toBeTruthy();
});
test('homepage: h1 "Share your GPU cluster"', async ({ page }) => {
await page.goto('/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Share your GPU cluster' || t.startsWith('Share your GPU cluster'))).toBeTruthy();
});
test('homepage: nav link "Platform"', 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 === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - about', () => {
test('about: title matches GT', async ({ page }) => {
await page.goto('/about/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('about gradyn');
});
test('about: h1 "Our story"', async ({ page }) => {
await page.goto('/about/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Our story' || t.startsWith('Our story'))).toBeTruthy();
});
test('about: h1 "Advisors"', async ({ page }) => {
await page.goto('/about/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Advisors' || t.startsWith('Advisors'))).toBeTruthy();
});
test('about: h1 "Our Location"', async ({ page }) => {
await page.goto('/about/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Our Location' || t.startsWith('Our Location'))).toBeTruthy();
});
test('about: nav link "Product"', async ({ page }) => {
await page.goto('/about/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
test('about: nav link "News"', async ({ page }) => {
await page.goto('/about/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'News' || t.startsWith('News')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('about: nav link "Community"', async ({ page }) => {
await page.goto('/about/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Community' || t.startsWith('Community')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('resources')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - careers', () => {
test('careers: title matches GT', async ({ page }) => {
await page.goto('/careers/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('careers');
});
test('careers: h1 "Help shape the future of ML"', async ({ page }) => {
await page.goto('/careers/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Help shape the future of ML' || t.startsWith('Help shape the future of ML'))).toBeTruthy();
});
test('careers: h1 "Life on the platform team at G"', async ({ page }) => {
await page.goto('/careers/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Life on the platform team at Gradyn' || t.startsWith('Life on the platform team at Gradyn'))).toBeTruthy();
});
test('careers: h1 "Benefits"', async ({ page }) => {
await page.goto('/careers/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Benefits' || t.startsWith('Benefits'))).toBeTruthy();
});
test('careers: h2 "Come build alongside a crew of"', async ({ page }) => {
await page.goto('/careers/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Come build alongside a crew of deep engineers working across machine learning and distributed traini' || t.startsWith('Come build alongside a crew of deep engineers working across machine learning and distributed traini'))).toBeTruthy();
});
test('careers: nav link "Project"', async ({ page }) => {
await page.goto('/careers/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - cla', () => {
test('cla: title matches GT', async ({ page }) => {
await page.goto('/cla/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('gradyn contributor agreements');
});
test('cla: h1 "Gradyn Contributor License Agr"', async ({ page }) => {
await page.goto('/cla/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Gradyn Contributor License Agreements' || t.startsWith('Gradyn Contributor License Agreements'))).toBeTruthy();
});
test('cla: h2 "Individual Contributors"', async ({ page }) => {
await page.goto('/cla/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Individual Contributors' || t.startsWith('Individual Contributors'))).toBeTruthy();
});
test('cla: h2 "Corporate Contributors"', async ({ page }) => {
await page.goto('/cla/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Corporate Contributors' || t.startsWith('Corporate Contributors'))).toBeTruthy();
});
test('cla: h2 "How-To: Sending Your Signed Li"', async ({ page }) => {
await page.goto('/cla/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How-To: Sending Your Signed License Agreements' || t.startsWith('How-To: Sending Your Signed License Agreements'))).toBeTruthy();
});
test('cla: nav link "Project"', async ({ page }) => {
await page.goto('/cla/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').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('get in touch');
});
test('contact: h1 "Connect"', async ({ page }) => {
await page.goto('/contact/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Connect' || t.startsWith('Connect'))).toBeTruthy();
});
test('contact: h1 "Join the Community"', async ({ page }) => {
await page.goto('/contact/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Join the Community' || t.startsWith('Join the Community'))).toBeTruthy();
});
test('contact: h1 "Enterprise Support"', async ({ page }) => {
await page.goto('/contact/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Enterprise Support' || t.startsWith('Enterprise Support'))).toBeTruthy();
});
test('contact: nav link "Platform"', 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 === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
test('contact: nav link "News"', 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 === 'News' || t.startsWith('News')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('contact: nav link "Community"', 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 === 'Community' || t.startsWith('Community')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('resources')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - press', () => {
test('press: title matches GT', async ({ page }) => {
await page.goto('/press/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('press & news');
});
test('press: h2 "Why the Next Decade of AI Has "', async ({ page }) => {
await page.goto('/press/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Why the Next Decade of AI Has to Turn Green, Fast' || t.startsWith('Why the Next Decade of AI Has to Turn Green, Fast'))).toBeTruthy();
});
test('press: h2 "AI Can Achieve Great Things, i"', async ({ page }) => {
await page.goto('/press/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'AI Can Achieve Great Things, if It Won\'t Cook the Planet' || t.startsWith('AI Can Achieve Great Things, if It Won\'t Cook the Planet'))).toBeTruthy();
});
test('press: h2 "Forecasts Across AI, DL, And M"', async ({ page }) => {
await page.goto('/press/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Forecasts Across AI, DL, And ML' || t.startsWith('Forecasts Across AI, DL, And ML'))).toBeTruthy();
});
test('press: nav link "Project"', async ({ page }) => {
await page.goto('/press/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - privacy', () => {
test('privacy: title matches GT', async ({ page }) => {
await page.goto('/privacy/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('privacy policy');
});
test('privacy: h1 "Gradyn Privacy Policy"', async ({ page }) => {
await page.goto('/privacy/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Gradyn Privacy Policy' || t.startsWith('Gradyn Privacy Policy'))).toBeTruthy();
});
test('privacy: nav link "Project"', async ({ page }) => {
await page.goto('/privacy/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - project', () => {
test('project: title matches GT', async ({ page }) => {
await page.goto('/project/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('high');
});
test('project: h1 "Focus on models, not machines."', async ({ page }) => {
await page.goto('/project/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Focus on models, not machines.' || t.startsWith('Focus on models, not machines.'))).toBeTruthy();
});
test('project: h1 "Deliver your models sooner and"', async ({ page }) => {
await page.goto('/project/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Deliver your models sooner and simpler' || t.startsWith('Deliver your models sooner and simpler'))).toBeTruthy();
});
test('project: h1 "Our Platform is Transparent, C"', async ({ page }) => {
await page.goto('/project/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Our Platform is Transparent, Collaborative, and Open' || t.startsWith('Our Platform is Transparent, Collaborative, and Open'))).toBeTruthy();
});
test('project: h1 "Join Our Community"', async ({ page }) => {
await page.goto('/project/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Join Our Community' || t.startsWith('Join Our Community'))).toBeTruthy();
});
test('project: nav link "Project"', async ({ page }) => {
await page.goto('/project/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - resources', () => {
test('resources: title matches GT', async ({ page }) => {
await page.goto('/resources/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('resources');
});
test('resources: h1 "Case Studies"', async ({ page }) => {
await page.goto('/resources/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Case Studies' || t.startsWith('Case Studies'))).toBeTruthy();
});
test('resources: h1 "Recent Posts"', async ({ page }) => {
await page.goto('/resources/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
});
test('resources: h1 "Recordings"', async ({ page }) => {
await page.goto('/resources/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Recordings' || t.startsWith('Recordings'))).toBeTruthy();
});
test('resources: nav link "Project"', async ({ page }) => {
await page.goto('/resources/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_adaptive_asha', () => {
test('blog_adaptive_asha: title matches GT', async ({ page }) => {
await page.goto('/blog/adaptive-asha/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('adaptive asha explained with a nationwid');
});
test('blog_adaptive_asha: h1 "Adaptive ASHA Explained with a"', async ({ page }) => {
await page.goto('/blog/adaptive-asha/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Adaptive ASHA Explained with a Talent Showdown' || t.startsWith('Adaptive ASHA Explained with a Talent Showdown'))).toBeTruthy();
});
test('blog_adaptive_asha: h1 "Latest Articles"', async ({ page }) => {
await page.goto('/blog/adaptive-asha/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Articles' || t.startsWith('Latest Articles'))).toBeTruthy();
});
test('blog_adaptive_asha: nav link "Project"', async ({ page }) => {
await page.goto('/blog/adaptive-asha/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_ai_chips_in_the_real_world_recap', () => {
test('blog_ai_chips_in_the_real_world_recap: title matches GT', async ({ page }) => {
await page.goto('/blog/ai-chips-in-the-real-world-recap/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('specialized ai silicon in practice');
});
test('blog_ai_chips_in_the_real_world_recap: h1 "Recent Posts"', async ({ page }) => {
await page.goto('/blog/ai-chips-in-the-real-world-recap/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
});
test('blog_ai_chips_in_the_real_world_recap: h2 "Optimizing Workloads: The Pree"', async ({ page }) => {
await page.goto('/blog/ai-chips-in-the-real-world-recap/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Optimizing Workloads: The Preemption Puzzle, Finally Solved by Gradyn' || t.startsWith('Optimizing Workloads: The Preemption Puzzle, Finally Solved by Gradyn'))).toBeTruthy();
});
test('blog_ai_chips_in_the_real_world_recap: h2 "Develop and debug your code lo"', async ({ page }) => {
await page.goto('/blog/ai-chips-in-the-real-world-recap/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Develop and debug your code locally with the PyTorch Trainer API' || t.startsWith('Develop and debug your code locally with the PyTorch Trainer API'))).toBeTruthy();
});
test('blog_ai_chips_in_the_real_world_recap: nav link "Project"', async ({ page }) => {
await page.goto('/blog/ai-chips-in-the-real-world-recap/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_ai_in_the_2020s_must_get_greener_and_heres_how', () => {
test('blog_ai_in_the_2020s_must_get_greener_and_heres_how: title matches GT', async ({ page }) => {
await page.goto('/blog/ai-in-the-2020s-must-get-greener-and-heres-how/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sustainable ai is the defining challenge');
});
test('blog_ai_in_the_2020s_must_get_greener_and_heres_how: h1 "Why Machine Learning Must Get "', async ({ page }) => {
await page.goto('/blog/ai-in-the-2020s-must-get-greener-and-heres-how/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Why Machine Learning Must Get Far More Efficient' || t.startsWith('Why Machine Learning Must Get Far More Efficient'))).toBeTruthy();
});
test('blog_ai_in_the_2020s_must_get_greener_and_heres_how: h1 "Recent Posts"', async ({ page }) => {
await page.goto('/blog/ai-in-the-2020s-must-get-greener-and-heres-how/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
});
test('blog_ai_in_the_2020s_must_get_greener_and_heres_how: h2 "Pursuing energy-efficient “Gre"', async ({ page }) => {
await page.goto('/blog/ai-in-the-2020s-must-get-greener-and-heres-how/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pursuing energy-efficient “Green AI” calls for brand-new strategies' || t.startsWith('Pursuing energy-efficient “Green AI” calls for brand-new strategies'))).toBeTruthy();
});
test('blog_ai_in_the_2020s_must_get_greener_and_heres_how: h2 "Red AI Has Real Value"', async ({ page }) => {
await page.goto('/blog/ai-in-the-2020s-must-get-greener-and-heres-how/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Red AI Has Real Value' || t.startsWith('Red AI Has Real Value'))).toBeTruthy();
});
test('blog_ai_in_the_2020s_must_get_greener_and_heres_how: nav link "Project"', async ({ page }) => {
await page.goto('/blog/ai-in-the-2020s-must-get-greener-and-heres-how/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_ai_leadership_and_the_positive_impacts_on_economy_privacy_environmental_health', () => {
test('blog_ai_leadership_and_the_positive_impacts_on_economy_privacy_environmental_health: title matches GT', async ({ page }) => {
await page.goto('/blog/ai-leadership-and-the-positive-impacts-on-economy-privacy-environmental-health/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('how ai leadership can strengthen the eco');
});
test('blog_ai_leadership_and_the_positive_impacts_on_economy_privacy_environmental_health: h1 "Recent Posts"', async ({ page }) => {
await page.goto('/blog/ai-leadership-and-the-positive-impacts-on-economy-privacy-environmental-health/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
});
test('blog_ai_leadership_and_the_positive_impacts_on_economy_privacy_environmental_health: h2 "Gradyn Core v0.28.1"', async ({ page }) => {
await page.goto('/blog/ai-leadership-and-the-positive-impacts-on-economy-privacy-environmental-health/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Gradyn Core v0.28.1' || t.startsWith('Gradyn Core v0.28.1'))).toBeTruthy();
});
test('blog_ai_leadership_and_the_positive_impacts_on_economy_privacy_environmental_health: h2 "Gradyn Core v0.28.0"', async ({ page }) => {
await page.goto('/blog/ai-leadership-and-the-positive-impacts-on-economy-privacy-environmental-health/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Gradyn Core v0.28.0' || t.startsWith('Gradyn Core v0.28.0'))).toBeTruthy();
});
test('blog_ai_leadership_and_the_positive_impacts_on_economy_privacy_environmental_health: nav link "Project"', async ({ page }) => {
await page.goto('/blog/ai-leadership-and-the-positive-impacts-on-economy-privacy-environmental-health/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_alex_ratner_programmatic_data_labeling_machine_learning_podcast', () => {
test('blog_alex_ratner_programmatic_data_labeling_machine_learning_podcast: title matches GT', async ({ page }) => {
await page.goto('/blog/alex-ratner-programmatic-data-labeling-machine-learning-podcast/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('marek vance on programmatic data labelin');
});
test('blog_alex_ratner_programmatic_data_labeling_machine_learning_podcast: h1 "Recent Posts"', async ({ page }) => {
await page.goto('/blog/alex-ratner-programmatic-data-labeling-machine-learning-podcast/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
});
test('blog_alex_ratner_programmatic_data_labeling_machine_learning_podcast: h2 "How does data parallelism work"', async ({ page }) => {
await page.goto('/blog/alex-ratner-programmatic-data-labeling-machine-learning-podcast/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How does data parallelism work?' || t.startsWith('How does data parallelism work?'))).toBeTruthy();
});
test('blog_alex_ratner_programmatic_data_labeling_machine_learning_podcast: h2 "Sharding Optimizer State Acros"', async ({ page }) => {
await page.goto('/blog/alex-ratner-programmatic-data-labeling-machine-learning-podcast/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sharding Optimizer State Across Four Practical Tiers' || t.startsWith('Sharding Optimizer State Across Four Practical Tiers'))).toBeTruthy();
});
test('blog_alex_ratner_programmatic_data_labeling_machine_learning_podcast: nav link "Project"', async ({ page }) => {
await page.goto('/blog/alex-ratner-programmatic-data-labeling-machine-learning-podcast/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_announcing_the_gradyn_model_registry', () => {
test('blog_announcing_the_gradyn_model_registry: title matches GT', async ({ page }) => {
await page.goto('/blog/announcing-the-gradyn-model-registry/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('ship models faster with gradyn\'s new mod');
});
test('blog_announcing_the_gradyn_model_registry: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/announcing-the-gradyn-model-registry/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_announcing_the_gradyn_model_registry: h2 "Closing the Distance Between R"', async ({ page }) => {
await page.goto('/blog/announcing-the-gradyn-model-registry/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Closing the Distance Between Research and Production' || t.startsWith('Closing the Distance Between Research and Production'))).toBeTruthy();
});
test('blog_announcing_the_gradyn_model_registry: h2 "Production-Ready Models with t"', async ({ page }) => {
await page.goto('/blog/announcing-the-gradyn-model-registry/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Production-Ready Models with the Model Registry' || t.startsWith('Production-Ready Models with the Model Registry'))).toBeTruthy();
});
test('blog_announcing_the_gradyn_model_registry: nav link "Project"', async ({ page }) => {
await page.goto('/blog/announcing-the-gradyn-model-registry/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
test('blog_announcing_the_gradyn_model_registry: footer link "Product"', async ({ page }) => {
await page.goto('/blog/announcing-the-gradyn-model-registry/');
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 === 'Product' || t.startsWith('Product')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_apis', () => {
test('blog_apis: title matches GT', async ({ page }) => {
await page.goto('/blog/apis/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('6 gradyn apis explained');
});
test('blog_apis: h1 "6 Key Gradyn APIs Explained"', async ({ page }) => {
await page.goto('/blog/apis/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '6 Key Gradyn APIs Explained' || t.startsWith('6 Key Gradyn APIs Explained'))).toBeTruthy();
});
test('blog_apis: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/apis/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_apis: h2 "Trial API"', async ({ page }) => {
await page.goto('/blog/apis/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Trial API' || t.startsWith('Trial API'))).toBeTruthy();
});
test('blog_apis: h2 "Core API"', async ({ page }) => {
await page.goto('/blog/apis/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Core API' || t.startsWith('Core API'))).toBeTruthy();
});
test('blog_apis: nav link "Product"', async ({ page }) => {
await page.goto('/blog/apis/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_building_an_enterprise_deep_learning_platform', () => {
test('blog_building_an_enterprise_deep_learning_platform: title matches GT', async ({ page }) => {
await page.goto('/blog/building-an-enterprise-deep-learning-platform/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('designing an enterprise deep learning pl');
});
test('blog_building_an_enterprise_deep_learning_platform: h1 "Recent Posts"', async ({ page }) => {
await page.goto('/blog/building-an-enterprise-deep-learning-platform/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
});
test('blog_building_an_enterprise_deep_learning_platform: h2 "What Your Deep Learning Platfo"', async ({ page }) => {
await page.goto('/blog/building-an-enterprise-deep-learning-platform/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What Your Deep Learning Platform Must Include' || t.startsWith('What Your Deep Learning Platform Must Include'))).toBeTruthy();
});
test('blog_building_an_enterprise_deep_learning_platform: h2 "Gradyn v0.31.0"', async ({ page }) => {
await page.goto('/blog/building-an-enterprise-deep-learning-platform/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Gradyn v0.31.0' || t.startsWith('Gradyn v0.31.0'))).toBeTruthy();
});
test('blog_building_an_enterprise_deep_learning_platform: nav link "Project"', async ({ page }) => {
await page.goto('/blog/building-an-enterprise-deep-learning-platform/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
test('blog_building_an_enterprise_deep_learning_platform: footer link "Platform"', async ({ page }) => {
await page.goto('/blog/building-an-enterprise-deep-learning-platform/');
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 === 'Platform' || t.startsWith('Platform')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_building_an_enterprise_deep_learning_platform_2', () => {
test('blog_building_an_enterprise_deep_learning_platform_2: title matches GT', async ({ page }) => {
await page.goto('/blog/building-an-enterprise-deep-learning-platform-2/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('how to stand up an enterprise deep learn');
});
test('blog_building_an_enterprise_deep_learning_platform_2: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/building-an-enterprise-deep-learning-platform-2/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_building_an_enterprise_deep_learning_platform_2: h2 "Building the ML backbone"', async ({ page }) => {
await page.goto('/blog/building-an-enterprise-deep-learning-platform-2/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Building the ML backbone' || t.startsWith('Building the ML backbone'))).toBeTruthy();
});
test('blog_building_an_enterprise_deep_learning_platform_2: h2 "Assembling your Software Layer"', async ({ page }) => {
await page.goto('/blog/building-an-enterprise-deep-learning-platform-2/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Assembling your Software Layer' || t.startsWith('Assembling your Software Layer'))).toBeTruthy();
});
test('blog_building_an_enterprise_deep_learning_platform_2: nav link "Product"', async ({ page }) => {
await page.goto('/blog/building-an-enterprise-deep-learning-platform-2/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_building_an_enterprise_deep_learning_platform_3', () => {
test('blog_building_an_enterprise_deep_learning_platform_3: title matches GT', async ({ page }) => {
await page.goto('/blog/building-an-enterprise-deep-learning-platform-3/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('assembling a production');
});
test('blog_building_an_enterprise_deep_learning_platform_3: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/building-an-enterprise-deep-learning-platform-3/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_building_an_enterprise_deep_learning_platform_3: h2 "Nimbus 7B vs. Terra 7B: Head-t"', async ({ page }) => {
await page.goto('/blog/building-an-enterprise-deep-learning-platform-3/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Nimbus 7B vs. Terra 7B: Head-to-Head in the Foundry studio' || t.startsWith('Nimbus 7B vs. Terra 7B: Head-to-Head in the Foundry studio'))).toBeTruthy();
});
test('blog_building_an_enterprise_deep_learning_platform_3: h2 "Tensor Parallelism: What is it"', async ({ page }) => {
await page.goto('/blog/building-an-enterprise-deep-learning-platform-3/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tensor Parallelism: What is it?' || t.startsWith('Tensor Parallelism: What is it?'))).toBeTruthy();
});
test('blog_building_an_enterprise_deep_learning_platform_3: nav link "Platform"', async ({ page }) => {
await page.goto('/blog/building-an-enterprise-deep-learning-platform-3/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_cloud_v_onprem', () => {
test('blog_cloud_v_onprem: title matches GT', async ({ page }) => {
await page.goto('/blog/cloud-v-onprem/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('picking the right deep learning infrastr');
});
test('blog_cloud_v_onprem: h1 "Selecting Deep Learning Infras"', async ({ page }) => {
await page.goto('/blog/cloud-v-onprem/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Selecting Deep Learning Infrastructure: The Cloud vs. On-Prem Debate' || t.startsWith('Selecting Deep Learning Infrastructure: The Cloud vs. On-Prem Debate'))).toBeTruthy();
});
test('blog_cloud_v_onprem: h1 "Performance"', async ({ page }) => {
await page.goto('/blog/cloud-v-onprem/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Performance' || t.startsWith('Performance'))).toBeTruthy();
});
test('blog_cloud_v_onprem: h1 "The Cost"', async ({ page }) => {
await page.goto('/blog/cloud-v-onprem/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The Cost' || t.startsWith('The Cost'))).toBeTruthy();
});
test('blog_cloud_v_onprem: h1 "Setup"', async ({ page }) => {
await page.goto('/blog/cloud-v-onprem/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Setup' || t.startsWith('Setup'))).toBeTruthy();
});
test('blog_cloud_v_onprem: nav link "Product"', async ({ page }) => {
await page.goto('/blog/cloud-v-onprem/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_data_scientists_dont_care_about_kubernetes', () => {
test('blog_data_scientists_dont_care_about_kubernetes: title matches GT', async ({ page }) => {
await page.goto('/blog/data-scientists-dont-care-about-kubernetes/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('why kubernetes gets in the way of model ');
});
test('blog_data_scientists_dont_care_about_kubernetes: h1 "Data Scientists Would Rather S"', async ({ page }) => {
await page.goto('/blog/data-scientists-dont-care-about-kubernetes/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Data Scientists Would Rather Skip Kubernetes' || t.startsWith('Data Scientists Would Rather Skip Kubernetes'))).toBeTruthy();
});
test('blog_data_scientists_dont_care_about_kubernetes: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/data-scientists-dont-care-about-kubernetes/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_data_scientists_dont_care_about_kubernetes: h2 "Where ML Tooling Fails"', async ({ page }) => {
await page.goto('/blog/data-scientists-dont-care-about-kubernetes/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Where ML Tooling Fails' || t.startsWith('Where ML Tooling Fails'))).toBeTruthy();
});
test('blog_data_scientists_dont_care_about_kubernetes: h2 "Principles of Good Data Scienc"', async ({ page }) => {
await page.goto('/blog/data-scientists-dont-care-about-kubernetes/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Principles of Good Data Science Tools' || t.startsWith('Principles of Good Data Science Tools'))).toBeTruthy();
});
test('blog_data_scientists_dont_care_about_kubernetes: nav link "Product"', async ({ page }) => {
await page.goto('/blog/data-scientists-dont-care-about-kubernetes/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_data_version_control_gradyn', () => {
test('blog_data_version_control_gradyn: title matches GT', async ({ page }) => {
await page.goto('/blog/data-version-control-gradyn/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('version');
});
test('blog_data_version_control_gradyn: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/data-version-control-gradyn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_data_version_control_gradyn: h2 "Data Version Control"', async ({ page }) => {
await page.goto('/blog/data-version-control-gradyn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Data Version Control' || t.startsWith('Data Version Control'))).toBeTruthy();
});
test('blog_data_version_control_gradyn: h2 "Setting Up DVC and Gradyn"', async ({ page }) => {
await page.goto('/blog/data-version-control-gradyn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Setting Up DVC and Gradyn' || t.startsWith('Setting Up DVC and Gradyn'))).toBeTruthy();
});
test('blog_data_version_control_gradyn: nav link "Project"', async ({ page }) => {
await page.goto('/blog/data-version-control-gradyn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_dave_patterson_podcast_new', () => {
test('blog_dave_patterson_podcast_new: title matches GT', async ({ page }) => {
await page.goto('/blog/dave-patterson-podcast-new/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('a conversation with marcus holloway');
});
test('blog_dave_patterson_podcast_new: h1 "Recent Posts"', async ({ page }) => {
await page.goto('/blog/dave-patterson-podcast-new/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
});
test('blog_dave_patterson_podcast_new: h2 "Introducing the Gradyn Podcast"', async ({ page }) => {
await page.goto('/blog/dave-patterson-podcast-new/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Introducing the Gradyn Podcast Series' || t.startsWith('Introducing the Gradyn Podcast Series'))).toBeTruthy();
});
test('blog_dave_patterson_podcast_new: h2 "Gradyn Core v0.31.0"', async ({ page }) => {
await page.goto('/blog/dave-patterson-podcast-new/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Gradyn Core v0.31.0' || t.startsWith('Gradyn Core v0.31.0'))).toBeTruthy();
});
test('blog_dave_patterson_podcast_new: nav link "Project"', async ({ page }) => {
await page.goto('/blog/dave-patterson-podcast-new/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_deep_in_the_trenches_p1', () => {
test('blog_deep_in_the_trenches_p1: title matches GT', async ({ page }) => {
await page.goto('/blog/deep-in-the-trenches-p1/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('notes from the lab');
});
test('blog_deep_in_the_trenches_p1: h1 "Recent Posts"', async ({ page }) => {
await page.goto('/blog/deep-in-the-trenches-p1/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
});
test('blog_deep_in_the_trenches_p1: h2 "Applications"', async ({ page }) => {
await page.goto('/blog/deep-in-the-trenches-p1/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Applications' || t.startsWith('Applications'))).toBeTruthy();
});
test('blog_deep_in_the_trenches_p1: h2 "Methods"', async ({ page }) => {
await page.goto('/blog/deep-in-the-trenches-p1/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Methods' || t.startsWith('Methods'))).toBeTruthy();
});
test('blog_deep_in_the_trenches_p1: nav link "Project"', async ({ page }) => {
await page.goto('/blog/deep-in-the-trenches-p1/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_deep_learning_tools_grad_students', () => {
test('blog_deep_learning_tools_grad_students: title matches GT', async ({ page }) => {
await page.goto('/blog/deep-learning-tools-grad-students/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('the deep learning platform we wish we\'d ');
});
test('blog_deep_learning_tools_grad_students: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/deep-learning-tools-grad-students/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_deep_learning_tools_grad_students: h2 "The way we ran deep learning r"', async ({ page }) => {
await page.goto('/blog/deep-learning-tools-grad-students/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The way we ran deep learning research back in grad school' || t.startsWith('The way we ran deep learning research back in grad school'))).toBeTruthy();
});
test('blog_deep_learning_tools_grad_students: h2 "How Gradyn can transform the r"', async ({ page }) => {
await page.goto('/blog/deep-learning-tools-grad-students/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How Gradyn can transform the research experience' || t.startsWith('How Gradyn can transform the research experience'))).toBeTruthy();
});
test('blog_deep_learning_tools_grad_students: nav link "Project"', async ({ page }) => {
await page.goto('/blog/deep-learning-tools-grad-students/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
test('blog_deep_learning_tools_grad_students: footer link "Product"', async ({ page }) => {
await page.goto('/blog/deep-learning-tools-grad-students/');
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 === 'Product' || t.startsWith('Product')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_gradyn_ai_sagemaker_comparison', () => {
test('blog_gradyn_ai_sagemaker_comparison: title matches GT', async ({ page }) => {
await page.goto('/blog/gradyn-ai-sagemaker-comparison/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('gradyn / cumulus ml comparison');
});
test('blog_gradyn_ai_sagemaker_comparison: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/gradyn-ai-sagemaker-comparison/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_gradyn_ai_sagemaker_comparison: h2 "Gradyn Studio is now available"', async ({ page }) => {
await page.goto('/blog/gradyn-ai-sagemaker-comparison/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Gradyn Studio is now available!' || t.startsWith('Gradyn Studio is now available!'))).toBeTruthy();
});
test('blog_gradyn_ai_sagemaker_comparison: h2 "Profiling Activation Memory in"', async ({ page }) => {
await page.goto('/blog/gradyn-ai-sagemaker-comparison/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Profiling Activation Memory in PyTorch Models' || t.startsWith('Profiling Activation Memory in PyTorch Models'))).toBeTruthy();
});
test('blog_gradyn_ai_sagemaker_comparison: nav link "Project"', async ({ page }) => {
await page.goto('/blog/gradyn-ai-sagemaker-comparison/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_gradyn_algorithmia_integration', () => {
test('blog_gradyn_algorithmia_integration: title matches GT', async ({ page }) => {
await page.goto('/blog/gradyn-algorithmia-integration/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('servio and gradyn');
});
test('blog_gradyn_algorithmia_integration: h1 "Recent Reads"', async ({ page }) => {
await page.goto('/blog/gradyn-algorithmia-integration/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Recent Reads' || t.startsWith('Recent Reads'))).toBeTruthy();
});
test('blog_gradyn_algorithmia_integration: h2 "An introduction to the Gradyn "', async ({ page }) => {
await page.goto('/blog/gradyn-algorithmia-integration/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'An introduction to the Gradyn and Servio integration' || t.startsWith('An introduction to the Gradyn and Servio integration'))).toBeTruthy();
});
test('blog_gradyn_algorithmia_integration: h2 "Train on Gradyn, then deploy w"', async ({ page }) => {
await page.goto('/blog/gradyn-algorithmia-integration/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Train on Gradyn, then deploy with Servio' || t.startsWith('Train on Gradyn, then deploy with Servio'))).toBeTruthy();
});
test('blog_gradyn_algorithmia_integration: nav link "Project"', async ({ page }) => {
await page.goto('/blog/gradyn-algorithmia-integration/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_gradyn_and_spark', () => {
test('blog_gradyn_and_spark: title matches GT', async ({ page }) => {
await page.goto('/blog/gradyn-and-spark/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('building end');
});
test('blog_gradyn_and_spark: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/gradyn-and-spark/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_gradyn_and_spark: h2 "Why Data Versioning Matters"', async ({ page }) => {
await page.goto('/blog/gradyn-and-spark/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Why Data Versioning Matters' || t.startsWith('Why Data Versioning Matters'))).toBeTruthy();
});
test('blog_gradyn_and_spark: h2 "Preprocessing Data with Spark"', async ({ page }) => {
await page.goto('/blog/gradyn-and-spark/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Preprocessing Data with Spark' || t.startsWith('Preprocessing Data with Spark'))).toBeTruthy();
});
test('blog_gradyn_and_spark: nav link "Project"', async ({ page }) => {
await page.goto('/blog/gradyn-and-spark/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_gradyn_community_sync', () => {
test('blog_gradyn_community_sync: title matches GT', async ({ page }) => {
await page.goto('/blog/gradyn-community-sync/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('inside our first');
});
test('blog_gradyn_community_sync: h1 "Our First-Ever Gradyn Communit"', async ({ page }) => {
await page.goto('/blog/gradyn-community-sync/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Our First-Ever Gradyn Community Sync' || t.startsWith('Our First-Ever Gradyn Community Sync'))).toBeTruthy();
});
test('blog_gradyn_community_sync: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/gradyn-community-sync/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_gradyn_community_sync: h2 "An Open Welcome"', async ({ page }) => {
await page.goto('/blog/gradyn-community-sync/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'An Open Welcome' || t.startsWith('An Open Welcome'))).toBeTruthy();
});
test('blog_gradyn_community_sync: h2 "The Community Roundtable"', async ({ page }) => {
await page.goto('/blog/gradyn-community-sync/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The Community Roundtable' || t.startsWith('The Community Roundtable'))).toBeTruthy();
});
test('blog_gradyn_community_sync: nav link "Project"', async ({ page }) => {
await page.goto('/blog/gradyn-community-sync/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_gradyn_kubeflow_comparison', () => {
test('blog_gradyn_kubeflow_comparison: title matches GT', async ({ page }) => {
await page.goto('/blog/gradyn-kubeflow-comparison/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('gradyn and fluxboard');
});
test('blog_gradyn_kubeflow_comparison: h1 "Gradyn and Fluxboard: Stronger"', async ({ page }) => {
await page.goto('/blog/gradyn-kubeflow-comparison/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Gradyn and Fluxboard: Stronger When Combined!' || t.startsWith('Gradyn and Fluxboard: Stronger When Combined!'))).toBeTruthy();
});
test('blog_gradyn_kubeflow_comparison: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/gradyn-kubeflow-comparison/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_gradyn_kubeflow_comparison: h2 "Making Sense of Fluxboard’s Ma"', async ({ page }) => {
await page.goto('/blog/gradyn-kubeflow-comparison/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Making Sense of Fluxboard’s Many Components' || t.startsWith('Making Sense of Fluxboard’s Many Components'))).toBeTruthy();
});
test('blog_gradyn_kubeflow_comparison: h2 "How Fluxboard and Gradyn Stack"', async ({ page }) => {
await page.goto('/blog/gradyn-kubeflow-comparison/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How Fluxboard and Gradyn Stack Up for Model Training' || t.startsWith('How Fluxboard and Gradyn Stack Up for Model Training'))).toBeTruthy();
});
test('blog_gradyn_kubeflow_comparison: nav link "Project"', async ({ page }) => {
await page.goto('/blog/gradyn-kubeflow-comparison/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_gradyn_on_kubernetes', () => {
test('blog_gradyn_on_kubernetes: title matches GT', async ({ page }) => {
await page.goto('/blog/gradyn-on-kubernetes/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('gradyn now natively supports kubernetes!');
});
test('blog_gradyn_on_kubernetes: h1 "Gradyn Now Supports Kubernetes"', async ({ page }) => {
await page.goto('/blog/gradyn-on-kubernetes/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Gradyn Now Supports Kubernetes!' || t.startsWith('Gradyn Now Supports Kubernetes!'))).toBeTruthy();
});
test('blog_gradyn_on_kubernetes: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/gradyn-on-kubernetes/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_gradyn_on_kubernetes: h2 "Why Run Deep Learning on Kuber"', async ({ page }) => {
await page.goto('/blog/gradyn-on-kubernetes/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Why Run Deep Learning on Kubernetes?' || t.startsWith('Why Run Deep Learning on Kubernetes?'))).toBeTruthy();
});
test('blog_gradyn_on_kubernetes: h2 "Gradyn on Kubernetes"', async ({ page }) => {
await page.goto('/blog/gradyn-on-kubernetes/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Gradyn on Kubernetes' || t.startsWith('Gradyn on Kubernetes'))).toBeTruthy();
});
test('blog_gradyn_on_kubernetes: nav link "Project"', async ({ page }) => {
await page.goto('/blog/gradyn-on-kubernetes/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_distributed_deep_learning_that_actually_works', () => {
test('blog_distributed_deep_learning_that_actually_works: title matches GT', async ({ page }) => {
await page.goto('/blog/distributed-deep-learning-that-actually-works/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('making multi');
});
test('blog_distributed_deep_learning_that_actually_works: h1 "Distributed Deep Learning You "', async ({ page }) => {
await page.goto('/blog/distributed-deep-learning-that-actually-works/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Distributed Deep Learning You Can Rely On' || t.startsWith('Distributed Deep Learning You Can Rely On'))).toBeTruthy();
});
test('blog_distributed_deep_learning_that_actually_works: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/distributed-deep-learning-that-actually-works/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_distributed_deep_learning_that_actually_works: h2 "Groundwork"', async ({ page }) => {
await page.goto('/blog/distributed-deep-learning-that-actually-works/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Groundwork' || t.startsWith('Groundwork'))).toBeTruthy();
});
test('blog_distributed_deep_learning_that_actually_works: h2 "The Communication Ceiling"', async ({ page }) => {
await page.goto('/blog/distributed-deep-learning-that-actually-works/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The Communication Ceiling' || t.startsWith('The Communication Ceiling'))).toBeTruthy();
});
test('blog_distributed_deep_learning_that_actually_works: nav link "Project"', async ({ page }) => {
await page.goto('/blog/distributed-deep-learning-that-actually-works/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
test('blog_distributed_deep_learning_that_actually_works: footer link "Product"', async ({ page }) => {
await page.goto('/blog/distributed-deep-learning-that-actually-works/');
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 === 'Product' || t.startsWith('Product')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_epoch_based_metrics', () => {
test('blog_epoch_based_metrics: title matches GT', async ({ page }) => {
await page.goto('/blog/epoch-based-metrics/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('viewing epoch');
});
test('blog_epoch_based_metrics: h1 "Recent Posts"', async ({ page }) => {
await page.goto('/blog/epoch-based-metrics/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
});
test('blog_epoch_based_metrics: h2 "Fresh walkthrough on reading e"', async ({ page }) => {
await page.goto('/blog/epoch-based-metrics/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fresh walkthrough on reading epoch-based metrics in the Gradyn WebUI' || t.startsWith('Fresh walkthrough on reading epoch-based metrics in the Gradyn WebUI'))).toBeTruthy();
});
test('blog_epoch_based_metrics: h2 "Tackling Cluster Efficiency: H"', async ({ page }) => {
await page.goto('/blog/epoch-based-metrics/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tackling Cluster Efficiency: How Gradyn Cracks the Preemption Riddle' || t.startsWith('Tackling Cluster Efficiency: How Gradyn Cracks the Preemption Riddle'))).toBeTruthy();
});
test('blog_epoch_based_metrics: nav link "Project"', async ({ page }) => {
await page.goto('/blog/epoch-based-metrics/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_faster_nlp_with_deep_learning_distributed_training', () => {
test('blog_faster_nlp_with_deep_learning_distributed_training: title matches GT', async ({ page }) => {
await page.goto('/blog/faster-nlp-with-deep-learning-distributed-training/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('accelerating nlp deep learning with dist');
});
test('blog_faster_nlp_with_deep_learning_distributed_training: h1 "Speeding Up NLP Deep Learning "', async ({ page }) => {
await page.goto('/blog/faster-nlp-with-deep-learning-distributed-training/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Speeding Up NLP Deep Learning with Distributed Training' || t.startsWith('Speeding Up NLP Deep Learning with Distributed Training'))).toBeTruthy();
});
test('blog_faster_nlp_with_deep_learning_distributed_training: h1 "Newest Posts"', async ({ page }) => {
await page.goto('/blog/faster-nlp-with-deep-learning-distributed-training/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Newest Posts' || t.startsWith('Newest Posts'))).toBeTruthy();
});
test('blog_faster_nlp_with_deep_learning_distributed_training: h2 "Nimbus 7B vs. Terra 7B: Head-t"', async ({ page }) => {
await page.goto('/blog/faster-nlp-with-deep-learning-distributed-training/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Nimbus 7B vs. Terra 7B: Head-to-Head inside GenAI studio' || t.startsWith('Nimbus 7B vs. Terra 7B: Head-to-Head inside GenAI studio'))).toBeTruthy();
});
test('blog_faster_nlp_with_deep_learning_distributed_training: h2 "Activation Memory: A Quick Pri"', async ({ page }) => {
await page.goto('/blog/faster-nlp-with-deep-learning-distributed-training/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Activation Memory: A Quick Primer' || t.startsWith('Activation Memory: A Quick Primer'))).toBeTruthy();
});
test('blog_faster_nlp_with_deep_learning_distributed_training: nav link "Project"', async ({ page }) => {
await page.goto('/blog/faster-nlp-with-deep-learning-distributed-training/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
test('blog_faster_nlp_with_deep_learning_distributed_training: footer link "Product"', async ({ page }) => {
await page.goto('/blog/faster-nlp-with-deep-learning-distributed-training/');
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 === 'Product' || t.startsWith('Product')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_fine_tune_bert', () => {
test('blog_fine_tune_bert: title matches GT', async ({ page }) => {
await page.goto('/blog/fine-tune-bert/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('fine');
});
test('blog_fine_tune_bert: h2 "Running It Locally First"', async ({ page }) => {
await page.goto('/blog/fine-tune-bert/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Running It Locally First' || t.startsWith('Running It Locally First'))).toBeTruthy();
});
test('blog_fine_tune_bert: h2 "Go Further With Gradyn"', async ({ page }) => {
await page.goto('/blog/fine-tune-bert/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Go Further With Gradyn' || t.startsWith('Go Further With Gradyn'))).toBeTruthy();
});
test('blog_fine_tune_bert: h2 "Running BERT Across Many GPUs."', async ({ page }) => {
await page.goto('/blog/fine-tune-bert/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Running BERT Across Many GPUs.' || t.startsWith('Running BERT Across Many GPUs.'))).toBeTruthy();
});
test('blog_fine_tune_bert: nav link "Project"', async ({ page }) => {
await page.goto('/blog/fine-tune-bert/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_first_time_user_experience_gradyn', () => {
test('blog_first_time_user_experience_gradyn: title matches GT', async ({ page }) => {
await page.goto('/blog/first-time-user-experience-gradyn/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('getting started with gradyn');
});
test('blog_first_time_user_experience_gradyn: h1 "Components"', async ({ page }) => {
await page.goto('/blog/first-time-user-experience-gradyn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Components' || t.startsWith('Components'))).toBeTruthy();
});
test('blog_first_time_user_experience_gradyn: h1 "Installing Gradyn on Kubernete"', async ({ page }) => {
await page.goto('/blog/first-time-user-experience-gradyn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Installing Gradyn on Kubernetes & Meridian Runtime Enterprise' || t.startsWith('Installing Gradyn on Kubernetes & Meridian Runtime Enterprise'))).toBeTruthy();
});
test('blog_first_time_user_experience_gradyn: h1 "Installing the Gradyn Command "', async ({ page }) => {
await page.goto('/blog/first-time-user-experience-gradyn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Installing the Gradyn Command Line Interface' || t.startsWith('Installing the Gradyn Command Line Interface'))).toBeTruthy();
});
test('blog_first_time_user_experience_gradyn: nav link "Project"', async ({ page }) => {
await page.goto('/blog/first-time-user-experience-gradyn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_first_time_user_experience_gradyn_part_2', () => {
test('blog_first_time_user_experience_gradyn_part_2: title matches GT', async ({ page }) => {
await page.goto('/blog/first-time-user-experience-gradyn-part-2/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('getting up and running with gradyn');
});
test('blog_first_time_user_experience_gradyn_part_2: h1 "Getting Up and Running With Gr"', async ({ page }) => {
await page.goto('/blog/first-time-user-experience-gradyn-part-2/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Getting Up and Running With Gradyn: A Newcomer’s Hands-On Journey, Part Two' || t.startsWith('Getting Up and Running With Gradyn: A Newcomer’s Hands-On Journey, Part Two'))).toBeTruthy();
});
test('blog_first_time_user_experience_gradyn_part_2: h1 "Overview of the Gradyn model t"', async ({ page }) => {
await page.goto('/blog/first-time-user-experience-gradyn-part-2/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Overview of the Gradyn model training workflow' || t.startsWith('Overview of the Gradyn model training workflow'))).toBeTruthy();
});
test('blog_first_time_user_experience_gradyn_part_2: h1 "The use case and our model"', async ({ page }) => {
await page.goto('/blog/first-time-user-experience-gradyn-part-2/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The use case and our model' || t.startsWith('The use case and our model'))).toBeTruthy();
});
test('blog_first_time_user_experience_gradyn_part_2: h1 "Starting my first experiment o"', async ({ page }) => {
await page.goto('/blog/first-time-user-experience-gradyn-part-2/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Starting my first experiment on a single GPU' || t.startsWith('Starting my first experiment on a single GPU'))).toBeTruthy();
});
test('blog_first_time_user_experience_gradyn_part_2: nav link "Product"', async ({ page }) => {
await page.goto('/blog/first-time-user-experience-gradyn-part-2/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_gpu_cluster_p1', () => {
test('blog_gpu_cluster_p1: title matches GT', async ({ page }) => {
await page.goto('/blog/gpu-cluster-p1/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('how to squeeze real value from your gpu ');
});
test('blog_gpu_cluster_p1: h1 "How to squeeze real value from"', async ({ page }) => {
await page.goto('/blog/gpu-cluster-p1/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How to squeeze real value from your GPU cluster for deep learning: part I' || t.startsWith('How to squeeze real value from your GPU cluster for deep learning: part I'))).toBeTruthy();
});
test('blog_gpu_cluster_p1: h1 "Recent Posts"', async ({ page }) => {
await page.goto('/blog/gpu-cluster-p1/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
});
test('blog_gpu_cluster_p1: h2 "Traditional Cluster Management"', async ({ page }) => {
await page.goto('/blog/gpu-cluster-p1/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Traditional Cluster Management Software' || t.startsWith('Traditional Cluster Management Software'))).toBeTruthy();
});
test('blog_gpu_cluster_p1: h2 "What’s Missing?"', async ({ page }) => {
await page.goto('/blog/gpu-cluster-p1/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What’s Missing?' || t.startsWith('What’s Missing?'))).toBeTruthy();
});
test('blog_gpu_cluster_p1: nav link "Project"', async ({ page }) => {
await page.goto('/blog/gpu-cluster-p1/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_gpu_cluster_p2', () => {
test('blog_gpu_cluster_p2: title matches GT', async ({ page }) => {
await page.goto('/blog/gpu-cluster-p2/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('squeezing every last bit from your gpu c');
});
test('blog_gpu_cluster_p2: h1 "Squeezing every last bit from "', async ({ page }) => {
await page.goto('/blog/gpu-cluster-p2/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Squeezing every last bit from your GPU cluster for deep learning: part II' || t.startsWith('Squeezing every last bit from your GPU cluster for deep learning: part II'))).toBeTruthy();
});
test('blog_gpu_cluster_p2: h1 "Recent Posts"', async ({ page }) => {
await page.goto('/blog/gpu-cluster-p2/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
});
test('blog_gpu_cluster_p2: h2 "Assembling a Complete Deep Lea"', async ({ page }) => {
await page.goto('/blog/gpu-cluster-p2/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Assembling a Complete Deep Learning Stack' || t.startsWith('Assembling a Complete Deep Learning Stack'))).toBeTruthy();
});
test('blog_gpu_cluster_p2: h2 "A DL Team\'s Wish List"', async ({ page }) => {
await page.goto('/blog/gpu-cluster-p2/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'A DL Team\'s Wish List' || t.startsWith('A DL Team\'s Wish List'))).toBeTruthy();
});
test('blog_gpu_cluster_p2: nav link "Project"', async ({ page }) => {
await page.goto('/blog/gpu-cluster-p2/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_hpsearch_fasterrcnn_coco_pytorch', () => {
test('blog_hpsearch_fasterrcnn_coco_pytorch: title matches GT', async ({ page }) => {
await page.goto('/blog/hpsearch-fasterrcnn-coco-pytorch/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('hyperparameter search on fasterrcnn');
});
test('blog_hpsearch_fasterrcnn_coco_pytorch: h1 "Hyperparameter Sweeps for Fast"', async ({ page }) => {
await page.goto('/blog/hpsearch-fasterrcnn-coco-pytorch/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Hyperparameter Sweeps for FasterRCNN' || t.startsWith('Hyperparameter Sweeps for FasterRCNN'))).toBeTruthy();
});
test('blog_hpsearch_fasterrcnn_coco_pytorch: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/hpsearch-fasterrcnn-coco-pytorch/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_hpsearch_fasterrcnn_coco_pytorch: h2 "Getting Set Up Locally"', async ({ page }) => {
await page.goto('/blog/hpsearch-fasterrcnn-coco-pytorch/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Getting Set Up Locally' || t.startsWith('Getting Set Up Locally'))).toBeTruthy();
});
test('blog_hpsearch_fasterrcnn_coco_pytorch: h2 "Go Further With Gradyn"', async ({ page }) => {
await page.goto('/blog/hpsearch-fasterrcnn-coco-pytorch/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Go Further With Gradyn' || t.startsWith('Go Further With Gradyn'))).toBeTruthy();
});
test('blog_hpsearch_fasterrcnn_coco_pytorch: nav link "Product"', async ({ page }) => {
await page.goto('/blog/hpsearch-fasterrcnn-coco-pytorch/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_hyperparameter_visualizations_gradyn', () => {
test('blog_hyperparameter_visualizations_gradyn: title matches GT', async ({ page }) => {
await page.goto('/blog/hyperparameter-visualizations-gradyn/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('new feature');
});
test('blog_hyperparameter_visualizations_gradyn: h1 "New Feature: Charting Your Hyp"', async ({ page }) => {
await page.goto('/blog/hyperparameter-visualizations-gradyn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'New Feature: Charting Your Hyperparameter Searches' || t.startsWith('New Feature: Charting Your Hyperparameter Searches'))).toBeTruthy();
});
test('blog_hyperparameter_visualizations_gradyn: h1 "Learning Curve"', async ({ page }) => {
await page.goto('/blog/hyperparameter-visualizations-gradyn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Learning Curve' || t.startsWith('Learning Curve'))).toBeTruthy();
});
test('blog_hyperparameter_visualizations_gradyn: h1 "Parallel Plot"', async ({ page }) => {
await page.goto('/blog/hyperparameter-visualizations-gradyn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Parallel Plot' || t.startsWith('Parallel Plot'))).toBeTruthy();
});
test('blog_hyperparameter_visualizations_gradyn: h1 "Scatter Plot"', async ({ page }) => {
await page.goto('/blog/hyperparameter-visualizations-gradyn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Scatter Plot' || t.startsWith('Scatter Plot'))).toBeTruthy();
});
test('blog_hyperparameter_visualizations_gradyn: nav link "Project"', async ({ page }) => {
await page.goto('/blog/hyperparameter-visualizations-gradyn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_intro_to_core_api', () => {
test('blog_intro_to_core_api: title matches GT', async ({ page }) => {
await page.goto('/blog/intro-to-core-api/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('intro to core api');
});
test('blog_intro_to_core_api: h1 "Why Core API?"', async ({ page }) => {
await page.goto('/blog/intro-to-core-api/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Why Core API?' || t.startsWith('Why Core API?'))).toBeTruthy();
});
test('blog_intro_to_core_api: h1 "Integer Incrementing Tutorial"', async ({ page }) => {
await page.goto('/blog/intro-to-core-api/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integer Incrementing Tutorial' || t.startsWith('Integer Incrementing Tutorial'))).toBeTruthy();
});
test('blog_intro_to_core_api: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/intro-to-core-api/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_intro_to_core_api: nav link "Project"', async ({ page }) => {
await page.goto('/blog/intro-to-core-api/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_intro_to_core_api_pt2', () => {
test('blog_intro_to_core_api_pt2: title matches GT', async ({ page }) => {
await page.goto('/blog/intro-to-core-api-pt2/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('intro to core api');
});
test('blog_intro_to_core_api_pt2: h1 "Latest Articles"', async ({ page }) => {
await page.goto('/blog/intro-to-core-api-pt2/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Articles' || t.startsWith('Latest Articles'))).toBeTruthy();
});
test('blog_intro_to_core_api_pt2: h2 "Step 0: Run the script on your"', async ({ page }) => {
await page.goto('/blog/intro-to-core-api-pt2/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Step 0: Run the script on your local machine' || t.startsWith('Step 0: Run the script on your local machine'))).toBeTruthy();
});
test('blog_intro_to_core_api_pt2: h2 "Step 1: Run the script on Grad"', async ({ page }) => {
await page.goto('/blog/intro-to-core-api-pt2/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Step 1: Run the script on Gradyn' || t.startsWith('Step 1: Run the script on Gradyn'))).toBeTruthy();
});
test('blog_intro_to_core_api_pt2: nav link "Project"', async ({ page }) => {
await page.goto('/blog/intro-to-core-api-pt2/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_intro_to_gradyn', () => {
test('blog_intro_to_gradyn: title matches GT', async ({ page }) => {
await page.goto('/blog/intro-to-gradyn/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('getting started with gradyn');
});
test('blog_intro_to_gradyn: h1 "Intro to Gradyn: A First-Time "', async ({ page }) => {
await page.goto('/blog/intro-to-gradyn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Intro to Gradyn: A First-Time User\'s Guide' || t.startsWith('Intro to Gradyn: A First-Time User\'s Guide'))).toBeTruthy();
});
test('blog_intro_to_gradyn: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/intro-to-gradyn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_intro_to_gradyn: h2 "Core Concepts"', async ({ page }) => {
await page.goto('/blog/intro-to-gradyn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Core Concepts' || t.startsWith('Core Concepts'))).toBeTruthy();
});
test('blog_intro_to_gradyn: h2 "Porting Models"', async ({ page }) => {
await page.goto('/blog/intro-to-gradyn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Porting Models' || t.startsWith('Porting Models'))).toBeTruthy();
});
test('blog_intro_to_gradyn: nav link "Project"', async ({ page }) => {
await page.goto('/blog/intro-to-gradyn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_joe_hellerstein_data_wrangling_reproducibility_podcast', () => {
test('blog_joe_hellerstein_data_wrangling_reproducibility_podcast: title matches GT', async ({ page }) => {
await page.goto('/blog/joe-hellerstein-data-wrangling-reproducibility-podcast/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('dr. lena varga on data wrangling and rep');
});
test('blog_joe_hellerstein_data_wrangling_reproducibility_podcast: h1 "Recent Posts"', async ({ page }) => {
await page.goto('/blog/joe-hellerstein-data-wrangling-reproducibility-podcast/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
});
test('blog_joe_hellerstein_data_wrangling_reproducibility_podcast: h2 "Gradyn v0.31.0 Notes"', async ({ page }) => {
await page.goto('/blog/joe-hellerstein-data-wrangling-reproducibility-podcast/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Gradyn v0.31.0 Notes' || t.startsWith('Gradyn v0.31.0 Notes'))).toBeTruthy();
});
test('blog_joe_hellerstein_data_wrangling_reproducibility_podcast: h2 "AI News #19"', async ({ page }) => {
await page.goto('/blog/joe-hellerstein-data-wrangling-reproducibility-podcast/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'AI News #19' || t.startsWith('AI News #19'))).toBeTruthy();
});
test('blog_joe_hellerstein_data_wrangling_reproducibility_podcast: nav link "Product"', async ({ page }) => {
await page.goto('/blog/joe-hellerstein-data-wrangling-reproducibility-podcast/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_llm_prompting', () => {
test('blog_llm_prompting: title matches GT', async ({ page }) => {
await page.goto('/blog/llm-prompting/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('llm prompting');
});
test('blog_llm_prompting: h1 "LLM Prompting: The Core Techni"', async ({ page }) => {
await page.goto('/blog/llm-prompting/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'LLM Prompting: The Core Techniques' || t.startsWith('LLM Prompting: The Core Techniques'))).toBeTruthy();
});
test('blog_llm_prompting: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/llm-prompting/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_llm_prompting: h2 "What is an LLM prompt?"', async ({ page }) => {
await page.goto('/blog/llm-prompting/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What is an LLM prompt?' || t.startsWith('What is an LLM prompt?'))).toBeTruthy();
});
test('blog_llm_prompting: h2 "Zero-shot, one-shot, and few-s"', async ({ page }) => {
await page.goto('/blog/llm-prompting/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Zero-shot, one-shot, and few-shot prompts' || t.startsWith('Zero-shot, one-shot, and few-shot prompts'))).toBeTruthy();
});
test('blog_llm_prompting: nav link "Project"', async ({ page }) => {
await page.goto('/blog/llm-prompting/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_maximize_juptyter_notebook_experience_gradyn', () => {
test('blog_maximize_juptyter_notebook_experience_gradyn: title matches GT', async ({ page }) => {
await page.goto('/blog/maximize-juptyter-notebook-experience-gradyn/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('get the most out of your jupyter noteboo');
});
test('blog_maximize_juptyter_notebook_experience_gradyn: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/maximize-juptyter-notebook-experience-gradyn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_maximize_juptyter_notebook_experience_gradyn: h2 "Manage Compute Resources for J"', async ({ page }) => {
await page.goto('/blog/maximize-juptyter-notebook-experience-gradyn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Manage Compute Resources for Jupyter Notebooks with Gradyn Resource Pools' || t.startsWith('Manage Compute Resources for Jupyter Notebooks with Gradyn Resource Pools'))).toBeTruthy();
});
test('blog_maximize_juptyter_notebook_experience_gradyn: h2 "Maximize Resource Use Through "', async ({ page }) => {
await page.goto('/blog/maximize-juptyter-notebook-experience-gradyn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Maximize Resource Use Through Persistence' || t.startsWith('Maximize Resource Use Through Persistence'))).toBeTruthy();
});
test('blog_maximize_juptyter_notebook_experience_gradyn: nav link "Product"', async ({ page }) => {
await page.goto('/blog/maximize-juptyter-notebook-experience-gradyn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
test('blog_maximize_juptyter_notebook_experience_gradyn: footer link "Roadmap"', async ({ page }) => {
await page.goto('/blog/maximize-juptyter-notebook-experience-gradyn/');
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 === 'Roadmap' || t.startsWith('Roadmap')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_metaflow_gradyn_integration', () => {
test('blog_metaflow_gradyn_integration: title matches GT', async ({ page }) => {
await page.goto('/blog/metaflow-gradyn-integration/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('easier nlp model training with flowdeck ');
});
test('blog_metaflow_gradyn_integration: h1 "Introduction"', async ({ page }) => {
await page.goto('/blog/metaflow-gradyn-integration/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Introduction' || t.startsWith('Introduction'))).toBeTruthy();
});
test('blog_metaflow_gradyn_integration: h1 "Use case"', async ({ page }) => {
await page.goto('/blog/metaflow-gradyn-integration/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Use case' || t.startsWith('Use case'))).toBeTruthy();
});
test('blog_metaflow_gradyn_integration: h1 "Setup"', async ({ page }) => {
await page.goto('/blog/metaflow-gradyn-integration/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Setup' || t.startsWith('Setup'))).toBeTruthy();
});
test('blog_metaflow_gradyn_integration: nav link "Project"', async ({ page }) => {
await page.goto('/blog/metaflow-gradyn-integration/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_neil_conway_deep_learning_model_development_challenges_podcast', () => {
test('blog_neil_conway_deep_learning_model_development_challenges_podcast: title matches GT', async ({ page }) => {
await page.goto('/blog/neil-conway-deep-learning-model-development-challenges-podcast/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('marcus vane on the challenges of deep le');
});
test('blog_neil_conway_deep_learning_model_development_challenges_podcast: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/neil-conway-deep-learning-model-development-challenges-podcast/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_neil_conway_deep_learning_model_development_challenges_podcast: h2 "Optimizing Activation Memory: "', async ({ page }) => {
await page.goto('/blog/neil-conway-deep-learning-model-development-challenges-podcast/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Optimizing Activation Memory: A Practical Guide' || t.startsWith('Optimizing Activation Memory: A Practical Guide'))).toBeTruthy();
});
test('blog_neil_conway_deep_learning_model_development_challenges_podcast: h2 "Small Language Models Head to "', async ({ page }) => {
await page.goto('/blog/neil-conway-deep-learning-model-development-challenges-podcast/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Small Language Models Head to Head: A Rapid Benchmark Roundup' || t.startsWith('Small Language Models Head to Head: A Rapid Benchmark Roundup'))).toBeTruthy();
});
test('blog_neil_conway_deep_learning_model_development_challenges_podcast: nav link "Project"', async ({ page }) => {
await page.goto('/blog/neil-conway-deep-learning-model-development-challenges-podcast/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_neural_architecture_search', () => {
test('blog_neural_architecture_search: title matches GT', async ({ page }) => {
await page.goto('/blog/neural-architecture-search/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('what you should know about neural archit');
});
test('blog_neural_architecture_search: h1 "A practical guide to Neural Ar"', async ({ page }) => {
await page.goto('/blog/neural-architecture-search/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'A practical guide to Neural Architecture Search' || t.startsWith('A practical guide to Neural Architecture Search'))).toBeTruthy();
});
test('blog_neural_architecture_search: h1 "Recent Reads"', async ({ page }) => {
await page.goto('/blog/neural-architecture-search/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Recent Reads' || t.startsWith('Recent Reads'))).toBeTruthy();
});
test('blog_neural_architecture_search: h2 "AutoML ⊃ Hyperparameter Optimi"', async ({ page }) => {
await page.goto('/blog/neural-architecture-search/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'AutoML ⊃ Hyperparameter Optimization ⊃ NAS' || t.startsWith('AutoML ⊃ Hyperparameter Optimization ⊃ NAS'))).toBeTruthy();
});
test('blog_neural_architecture_search: h2 "Inside NAS"', async ({ page }) => {
await page.goto('/blog/neural-architecture-search/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Inside NAS' || t.startsWith('Inside NAS'))).toBeTruthy();
});
test('blog_neural_architecture_search: nav link "Project"', async ({ page }) => {
await page.goto('/blog/neural-architecture-search/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_object_detection_keras_gradyn', () => {
test('blog_object_detection_keras_gradyn: title matches GT', async ({ page }) => {
await page.goto('/blog/object-detection-keras-gradyn/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('object detection with keras and gradyn');
});
test('blog_object_detection_keras_gradyn: h1 "Recent Posts"', async ({ page }) => {
await page.goto('/blog/object-detection-keras-gradyn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
});
test('blog_object_detection_keras_gradyn: h2 "A Quick Tour of the RetinaNet "', async ({ page }) => {
await page.goto('/blog/object-detection-keras-gradyn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'A Quick Tour of the RetinaNet Object Detection Model' || t.startsWith('A Quick Tour of the RetinaNet Object Detection Model'))).toBeTruthy();
});
test('blog_object_detection_keras_gradyn: h2 "Getting Gradyn Running"', async ({ page }) => {
await page.goto('/blog/object-detection-keras-gradyn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Getting Gradyn Running' || t.startsWith('Getting Gradyn Running'))).toBeTruthy();
});
test('blog_object_detection_keras_gradyn: nav link "Project"', async ({ page }) => {
await page.goto('/blog/object-detection-keras-gradyn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_optimizing_horovod', () => {
test('blog_optimizing_horovod: title matches GT', async ({ page }) => {
await page.goto('/blog/optimizing-horovod/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('making cyclonet faster with local gradie');
});
test('blog_optimizing_horovod: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/optimizing-horovod/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_optimizing_horovod: h2 "Accelerating Model Training vi"', async ({ page }) => {
await page.goto('/blog/optimizing-horovod/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accelerating Model Training via Local Gradient Aggregation' || t.startsWith('Accelerating Model Training via Local Gradient Aggregation'))).toBeTruthy();
});
test('blog_optimizing_horovod: h2 "Measuring Performance"', async ({ page }) => {
await page.goto('/blog/optimizing-horovod/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Measuring Performance' || t.startsWith('Measuring Performance'))).toBeTruthy();
});
test('blog_optimizing_horovod: nav link "Platform"', async ({ page }) => {
await page.goto('/blog/optimizing-horovod/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
test('blog_optimizing_horovod: footer link "Product"', async ({ page }) => {
await page.goto('/blog/optimizing-horovod/');
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 === 'Product' || t.startsWith('Product')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_preemption', () => {
test('blog_preemption: title matches GT', async ({ page }) => {
await page.goto('/blog/preemption/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sharing clusters the smart way');
});
test('blog_preemption: h1 "Preemption, Up Close"', async ({ page }) => {
await page.goto('/blog/preemption/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Preemption, Up Close' || t.startsWith('Preemption, Up Close'))).toBeTruthy();
});
test('blog_preemption: h1 "Wrapping up"', async ({ page }) => {
await page.goto('/blog/preemption/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Wrapping up' || t.startsWith('Wrapping up'))).toBeTruthy();
});
test('blog_preemption: h1 "Recent Posts"', async ({ page }) => {
await page.goto('/blog/preemption/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
});
test('blog_preemption: nav link "Project"', async ({ page }) => {
await page.goto('/blog/preemption/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_product_feature_series_one_click_access_to_tensorboard', () => {
test('blog_product_feature_series_one_click_access_to_tensorboard: title matches GT', async ({ page }) => {
await page.goto('/blog/product-feature-series-one-click-access-to-tensorboard/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('[product feature series] instant one');
});
test('blog_product_feature_series_one_click_access_to_tensorboard: h2 "Model registry is now availabl"', async ({ page }) => {
await page.goto('/blog/product-feature-series-one-click-access-to-tensorboard/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Model registry is now available!' || t.startsWith('Model registry is now available!'))).toBeTruthy();
});
test('blog_product_feature_series_one_click_access_to_tensorboard: h2 "Gradient Checkpointing: A Deep"', async ({ page }) => {
await page.goto('/blog/product-feature-series-one-click-access-to-tensorboard/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Gradient Checkpointing: A Deep Dive using PyTorch' || t.startsWith('Gradient Checkpointing: A Deep Dive using PyTorch'))).toBeTruthy();
});
test('blog_product_feature_series_one_click_access_to_tensorboard: h2 "Orbit 7B vs. Lumen 7B: A Rapid"', async ({ page }) => {
await page.goto('/blog/product-feature-series-one-click-access-to-tensorboard/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Orbit 7B vs. Lumen 7B: A Rapid Head-to-Head Benchmark Showdown' || t.startsWith('Orbit 7B vs. Lumen 7B: A Rapid Head-to-Head Benchmark Showdown'))).toBeTruthy();
});
test('blog_product_feature_series_one_click_access_to_tensorboard: nav link "Product"', async ({ page }) => {
await page.goto('/blog/product-feature-series-one-click-access-to-tensorboard/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_production_training_pipelines_with_gradyn_and_kubeflow', () => {
test('blog_production_training_pipelines_with_gradyn_and_kubeflow: title matches GT', async ({ page }) => {
await page.goto('/blog/production-training-pipelines-with-gradyn-and-kubeflow/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('build fast, automated ml pipelines with ');
});
test('blog_production_training_pipelines_with_gradyn_and_kubeflow: h1 "Fast, automated ML pipelines w"', async ({ page }) => {
await page.goto('/blog/production-training-pipelines-with-gradyn-and-kubeflow/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fast, automated ML pipelines with Gradyn and Fluxboard' || t.startsWith('Fast, automated ML pipelines with Gradyn and Fluxboard'))).toBeTruthy();
});
test('blog_production_training_pipelines_with_gradyn_and_kubeflow: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/production-training-pipelines-with-gradyn-and-kubeflow/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_production_training_pipelines_with_gradyn_and_kubeflow: h2 "Where Fluxboard Pipelines Come"', async ({ page }) => {
await page.goto('/blog/production-training-pipelines-with-gradyn-and-kubeflow/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Where Fluxboard Pipelines Come In' || t.startsWith('Where Fluxboard Pipelines Come In'))).toBeTruthy();
});
test('blog_production_training_pipelines_with_gradyn_and_kubeflow: h2 "Production-Grade Training with"', async ({ page }) => {
await page.goto('/blog/production-training-pipelines-with-gradyn-and-kubeflow/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Production-Grade Training with Gradyn' || t.startsWith('Production-Grade Training with Gradyn'))).toBeTruthy();
});
test('blog_production_training_pipelines_with_gradyn_and_kubeflow: nav link "Project"', async ({ page }) => {
await page.goto('/blog/production-training-pipelines-with-gradyn-and-kubeflow/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_pytorch_trainer', () => {
test('blog_pytorch_trainer: title matches GT', async ({ page }) => {
await page.goto('/blog/pytorch-trainer/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('build and test your code locally using t');
});
test('blog_pytorch_trainer: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/pytorch-trainer/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_pytorch_trainer: h2 "Training Locally"', async ({ page }) => {
await page.goto('/blog/pytorch-trainer/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Training Locally' || t.startsWith('Training Locally'))).toBeTruthy();
});
test('blog_pytorch_trainer: h2 "From Laptop to Cluster"', async ({ page }) => {
await page.goto('/blog/pytorch-trainer/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'From Laptop to Cluster' || t.startsWith('From Laptop to Cluster'))).toBeTruthy();
});
test('blog_pytorch_trainer: nav link "Project"', async ({ page }) => {
await page.goto('/blog/pytorch-trainer/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_rag', () => {
test('blog_rag: title matches GT', async ({ page }) => {
await page.goto('/blog/rag/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('the detective and the narrator');
});
test('blog_rag: h1 "Defining RAG"', async ({ page }) => {
await page.goto('/blog/rag/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Defining RAG' || t.startsWith('Defining RAG'))).toBeTruthy();
});
test('blog_rag: h1 "When should you reach for RAG?"', async ({ page }) => {
await page.goto('/blog/rag/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'When should you reach for RAG?' || t.startsWith('When should you reach for RAG?'))).toBeTruthy();
});
test('blog_rag: h1 "How does RAG run?"', async ({ page }) => {
await page.goto('/blog/rag/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How does RAG run?' || t.startsWith('How does RAG run?'))).toBeTruthy();
});
test('blog_rag: nav link "Product"', async ({ page }) => {
await page.goto('/blog/rag/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
test('blog_rag: nav link "Community"', async ({ page }) => {
await page.goto('/blog/rag/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Community' || t.startsWith('Community')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('resources')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_random_search_baseline_for_nas', () => {
test('blog_random_search_baseline_for_nas: title matches GT', async ({ page }) => {
await page.goto('/blog/random-search-baseline-for-nas/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('why random search remains a tough baseli');
});
test('blog_random_search_baseline_for_nas: h1 "Recent Posts"', async ({ page }) => {
await page.goto('/blog/random-search-baseline-for-nas/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
});
test('blog_random_search_baseline_for_nas: h2 "AI News #19"', async ({ page }) => {
await page.goto('/blog/random-search-baseline-for-nas/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'AI News #19' || t.startsWith('AI News #19'))).toBeTruthy();
});
test('blog_random_search_baseline_for_nas: h2 "Gradyn v0.30.0 Notes"', async ({ page }) => {
await page.goto('/blog/random-search-baseline-for-nas/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Gradyn v0.30.0 Notes' || t.startsWith('Gradyn v0.30.0 Notes'))).toBeTruthy();
});
test('blog_random_search_baseline_for_nas: nav link "Project"', async ({ page }) => {
await page.goto('/blog/random-search-baseline-for-nas/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_reproducibility_in_ml', () => {
test('blog_reproducibility_in_ml: title matches GT', async ({ page }) => {
await page.goto('/blog/reproducibility-in-ml/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('reproducible ml');
});
test('blog_reproducibility_in_ml: h1 "Reproducible ML: why it\'s esse"', async ({ page }) => {
await page.goto('/blog/reproducibility-in-ml/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Reproducible ML: why it\'s essential and how you can achieve it' || t.startsWith('Reproducible ML: why it\'s essential and how you can achieve it'))).toBeTruthy();
});
test('blog_reproducibility_in_ml: h1 "Recent Reads"', async ({ page }) => {
await page.goto('/blog/reproducibility-in-ml/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Recent Reads' || t.startsWith('Recent Reads'))).toBeTruthy();
});
test('blog_reproducibility_in_ml: h2 "A Day in the Shoes of a New Da"', async ({ page }) => {
await page.goto('/blog/reproducibility-in-ml/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'A Day in the Shoes of a New Data Scientist' || t.startsWith('A Day in the Shoes of a New Data Scientist'))).toBeTruthy();
});
test('blog_reproducibility_in_ml: h2 "Where Non-Determinism Comes Fr"', async ({ page }) => {
await page.goto('/blog/reproducibility-in-ml/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Where Non-Determinism Comes From' || t.startsWith('Where Non-Determinism Comes From'))).toBeTruthy();
});
test('blog_reproducibility_in_ml: nav link "Project"', async ({ page }) => {
await page.goto('/blog/reproducibility-in-ml/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_resource_pools', () => {
test('blog_resource_pools: title matches GT', async ({ page }) => {
await page.goto('/blog/resource-pools/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('squeeze more performance from your deep ');
});
test('blog_resource_pools: h1 "Run your deep learning cluster"', async ({ page }) => {
await page.goto('/blog/resource-pools/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Run your deep learning cluster more efficiently using resource pools' || t.startsWith('Run your deep learning cluster more efficiently using resource pools'))).toBeTruthy();
});
test('blog_resource_pools: h1 "From the Blog"', async ({ page }) => {
await page.goto('/blog/resource-pools/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'From the Blog' || t.startsWith('From the Blog'))).toBeTruthy();
});
test('blog_resource_pools: h2 "Meet resource pools: a path to"', async ({ page }) => {
await page.goto('/blog/resource-pools/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Meet resource pools: a path to more efficient clusters' || t.startsWith('Meet resource pools: a path to more efficient clusters'))).toBeTruthy();
});
test('blog_resource_pools: h2 "Working with resource pools"', async ({ page }) => {
await page.goto('/blog/resource-pools/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Working with resource pools' || t.startsWith('Working with resource pools'))).toBeTruthy();
});
test('blog_resource_pools: nav link "Product"', async ({ page }) => {
await page.goto('/blog/resource-pools/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
test('blog_resource_pools: footer link "Openings"', async ({ page }) => {
await page.goto('/blog/resource-pools/');
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 === 'Openings' || t.startsWith('Openings')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('careers')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_sc23_recap', () => {
test('blog_sc23_recap: title matches GT', async ({ page }) => {
await page.goto('/blog/sc23-recap/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('solara, voltcore vx200s, liquid cooling,');
});
test('blog_sc23_recap: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/sc23-recap/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_sc23_recap: h2 "Gradyn v0.28.1"', async ({ page }) => {
await page.goto('/blog/sc23-recap/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Gradyn v0.28.1' || t.startsWith('Gradyn v0.28.1'))).toBeTruthy();
});
test('blog_sc23_recap: h2 "Gradyn v0.28.0"', async ({ page }) => {
await page.goto('/blog/sc23-recap/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Gradyn v0.28.0' || t.startsWith('Gradyn v0.28.0'))).toBeTruthy();
});
test('blog_sc23_recap: nav link "Product"', async ({ page }) => {
await page.goto('/blog/sc23-recap/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
test('blog_sc23_recap: footer link "Source"', async ({ page }) => {
await page.goto('/blog/sc23-recap/');
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 === 'Source' || t.startsWith('Source')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_scale_your_model_development_on_a_budget', () => {
test('blog_scale_your_model_development_on_a_budget: title matches GT', async ({ page }) => {
await page.goto('/blog/scale-your-model-development-on-a-budget/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('stretch your model development budget wi');
});
test('blog_scale_your_model_development_on_a_budget: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/scale-your-model-development-on-a-budget/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_scale_your_model_development_on_a_budget: h2 "Intro"', async ({ page }) => {
await page.goto('/blog/scale-your-model-development-on-a-budget/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Intro' || t.startsWith('Intro'))).toBeTruthy();
});
test('blog_scale_your_model_development_on_a_budget: h2 "So When Are Preemptibles Worth"', async ({ page }) => {
await page.goto('/blog/scale-your-model-development-on-a-budget/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'So When Are Preemptibles Worth It?' || t.startsWith('So When Are Preemptibles Worth It?'))).toBeTruthy();
});
test('blog_scale_your_model_development_on_a_budget: nav link "Product"', async ({ page }) => {
await page.goto('/blog/scale-your-model-development-on-a-budget/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_slurm_lacking_deep_learning', () => {
test('blog_slurm_lacking_deep_learning: title matches GT', async ({ page }) => {
await page.goto('/blog/slurm-lacking-deep-learning/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('how slurm falls short for modern deep le');
});
test('blog_slurm_lacking_deep_learning: h1 "Where Slurm Falls Short for De"', async ({ page }) => {
await page.goto('/blog/slurm-lacking-deep-learning/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Where Slurm Falls Short for Deep Learning Work' || t.startsWith('Where Slurm Falls Short for Deep Learning Work'))).toBeTruthy();
});
test('blog_slurm_lacking_deep_learning: h1 "Recent Posts"', async ({ page }) => {
await page.goto('/blog/slurm-lacking-deep-learning/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
});
test('blog_slurm_lacking_deep_learning: h2 "Final Thoughts"', async ({ page }) => {
await page.goto('/blog/slurm-lacking-deep-learning/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Final Thoughts' || t.startsWith('Final Thoughts'))).toBeTruthy();
});
test('blog_slurm_lacking_deep_learning: h2 "Gradyn v0.28.1"', async ({ page }) => {
await page.goto('/blog/slurm-lacking-deep-learning/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Gradyn v0.28.1' || t.startsWith('Gradyn v0.28.1'))).toBeTruthy();
});
test('blog_slurm_lacking_deep_learning: nav link "Project"', async ({ page }) => {
await page.goto('/blog/slurm-lacking-deep-learning/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_specialized_ai_chips_hold_both_promise_and_peril_for_developers', () => {
test('blog_specialized_ai_chips_hold_both_promise_and_peril_for_developers: title matches GT', async ({ page }) => {
await page.goto('/blog/specialized-ai-chips-hold-both-promise-and-peril-for-developers/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('purpose');
});
test('blog_specialized_ai_chips_hold_both_promise_and_peril_for_developers: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/specialized-ai-chips-hold-both-promise-and-peril-for-developers/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_specialized_ai_chips_hold_both_promise_and_peril_for_developers: h2 "Introducing GenAI studio today"', async ({ page }) => {
await page.goto('/blog/specialized-ai-chips-hold-both-promise-and-peril-for-developers/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Introducing GenAI studio today!' || t.startsWith('Introducing GenAI studio today!'))).toBeTruthy();
});
test('blog_specialized_ai_chips_hold_both_promise_and_peril_for_developers: h2 "Memory Profiling: A Close Look"', async ({ page }) => {
await page.goto('/blog/specialized-ai-chips-hold-both-promise-and-peril-for-developers/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Memory Profiling: A Close Look with PyTorch' || t.startsWith('Memory Profiling: A Close Look with PyTorch'))).toBeTruthy();
});
test('blog_specialized_ai_chips_hold_both_promise_and_peril_for_developers: nav link "Product"', async ({ page }) => {
await page.goto('/blog/specialized-ai-chips-hold-both-promise-and-peril-for-developers/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_speedy_model_training_rapids_gradyn', () => {
test('blog_speedy_model_training_rapids_gradyn: title matches GT', async ({ page }) => {
await page.goto('/blog/speedy-model-training-rapids-gradyn/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('repost');
});
test('blog_speedy_model_training_rapids_gradyn: h1 "Repost: Accelerated Model Trai"', async ({ page }) => {
await page.goto('/blog/speedy-model-training-rapids-gradyn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Repost: Accelerated Model Training with RapidFrame & Gradyn' || t.startsWith('Repost: Accelerated Model Training with RapidFrame & Gradyn'))).toBeTruthy();
});
test('blog_speedy_model_training_rapids_gradyn: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/speedy-model-training-rapids-gradyn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_speedy_model_training_rapids_gradyn: h2 "Opening up GPU access"', async ({ page }) => {
await page.goto('/blog/speedy-model-training-rapids-gradyn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Opening up GPU access' || t.startsWith('Opening up GPU access'))).toBeTruthy();
});
test('blog_speedy_model_training_rapids_gradyn: h2 "Getting set up"', async ({ page }) => {
await page.goto('/blog/speedy-model-training-rapids-gradyn/');
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('blog_speedy_model_training_rapids_gradyn: nav link "Product"', async ({ page }) => {
await page.goto('/blog/speedy-model-training-rapids-gradyn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_stable_diffusion_core_api', () => {
test('blog_stable_diffusion_core_api: title matches GT', async ({ page }) => {
await page.goto('/blog/stable-diffusion-core-api/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('building custom stable diffusion models ');
});
test('blog_stable_diffusion_core_api: h1 "Diffusion, Textual Inversion, "', async ({ page }) => {
await page.goto('/blog/stable-diffusion-core-api/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Diffusion, Textual Inversion, and 🧨 Diffusers' || t.startsWith('Diffusion, Textual Inversion, and 🧨 Diffusers'))).toBeTruthy();
});
test('blog_stable_diffusion_core_api: h1 "Explore the Demo"', async ({ page }) => {
await page.goto('/blog/stable-diffusion-core-api/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Explore the Demo' || t.startsWith('Explore the Demo'))).toBeTruthy();
});
test('blog_stable_diffusion_core_api: h1 "Step-by-Step: Fine-Tuning"', async ({ page }) => {
await page.goto('/blog/stable-diffusion-core-api/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Step-by-Step: Fine-Tuning' || t.startsWith('Step-by-Step: Fine-Tuning'))).toBeTruthy();
});
test('blog_stable_diffusion_core_api: nav link "Product"', async ({ page }) => {
await page.goto('/blog/stable-diffusion-core-api/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_standardized_models_with_gradyn', () => {
test('blog_standardized_models_with_gradyn: title matches GT', async ({ page }) => {
await page.goto('/blog/standardized-models-with-gradyn/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('organizing your machine learning codebas');
});
test('blog_standardized_models_with_gradyn: h1 "Organizing your Code to Build "', async ({ page }) => {
await page.goto('/blog/standardized-models-with-gradyn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Organizing your Code to Build a Deep Learning Model that Truly Scales' || t.startsWith('Organizing your Code to Build a Deep Learning Model that Truly Scales'))).toBeTruthy();
});
test('blog_standardized_models_with_gradyn: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/standardized-models-with-gradyn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_standardized_models_with_gradyn: h2 "The Gradyn studio is now live!"', async ({ page }) => {
await page.goto('/blog/standardized-models-with-gradyn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The Gradyn studio is now live!' || t.startsWith('The Gradyn studio is now live!'))).toBeTruthy();
});
test('blog_standardized_models_with_gradyn: h2 "Activation Memory: A Deep Dive"', async ({ page }) => {
await page.goto('/blog/standardized-models-with-gradyn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Activation Memory: A Deep Dive into Training' || t.startsWith('Activation Memory: A Deep Dive into Training'))).toBeTruthy();
});
test('blog_standardized_models_with_gradyn: nav link "Product"', async ({ page }) => {
await page.goto('/blog/standardized-models-with-gradyn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_stop_doing_iterative_model_development', () => {
test('blog_stop_doing_iterative_model_development: title matches GT', async ({ page }) => {
await page.goto('/blog/stop-doing-iterative-model-development/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('break free from iterative model developm');
});
test('blog_stop_doing_iterative_model_development: h1 "A hands-on example"', async ({ page }) => {
await page.goto('/blog/stop-doing-iterative-model-development/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'A hands-on example' || t.startsWith('A hands-on example'))).toBeTruthy();
});
test('blog_stop_doing_iterative_model_development: h1 "Search-First Model Development"', async ({ page }) => {
await page.goto('/blog/stop-doing-iterative-model-development/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Search-First Model Development' || t.startsWith('Search-First Model Development'))).toBeTruthy();
});
test('blog_stop_doing_iterative_model_development: h1 "Latest Articles"', async ({ page }) => {
await page.goto('/blog/stop-doing-iterative-model-development/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Articles' || t.startsWith('Latest Articles'))).toBeTruthy();
});
test('blog_stop_doing_iterative_model_development: nav link "Project"', async ({ page }) => {
await page.goto('/blog/stop-doing-iterative-model-development/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_tensorflow_ai_service_partner', () => {
test('blog_tensorflow_ai_service_partner: title matches GT', async ({ page }) => {
await page.goto('/blog/tensorflow-ai-service-partner/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('gradyn joins the tensorforge ai service ');
});
test('blog_tensorflow_ai_service_partner: h1 "Gradyn joins the TensorForge A"', async ({ page }) => {
await page.goto('/blog/tensorflow-ai-service-partner/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Gradyn joins the TensorForge AI Service Partner program to help organizations build AI-powered apps' || t.startsWith('Gradyn joins the TensorForge AI Service Partner program to help organizations build AI-powered apps'))).toBeTruthy();
});
test('blog_tensorflow_ai_service_partner: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/tensorflow-ai-service-partner/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_tensorflow_ai_service_partner: h2 "About Gradyn, Inc."', async ({ page }) => {
await page.goto('/blog/tensorflow-ai-service-partner/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'About Gradyn, Inc.' || t.startsWith('About Gradyn, Inc.'))).toBeTruthy();
});
test('blog_tensorflow_ai_service_partner: h2 "AI Digest #8"', async ({ page }) => {
await page.goto('/blog/tensorflow-ai-service-partner/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'AI Digest #8' || t.startsWith('AI Digest #8'))).toBeTruthy();
});
test('blog_tensorflow_ai_service_partner: nav link "Project"', async ({ page }) => {
await page.goto('/blog/tensorflow-ai-service-partner/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
test('blog_tensorflow_ai_service_partner: footer link "Platform"', async ({ page }) => {
await page.goto('/blog/tensorflow-ai-service-partner/');
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 === 'Platform' || t.startsWith('Platform')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_tf_dataset_the_bad_parts', () => {
test('blog_tf_dataset_the_bad_parts: title matches GT', async ({ page }) => {
await page.goto('/blog/tf-dataset-the-bad-parts/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('tensorflow datasets');
});
test('blog_tf_dataset_the_bad_parts: h1 "Data Loading Patterns"', async ({ page }) => {
await page.goto('/blog/tf-dataset-the-bad-parts/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Data Loading Patterns' || t.startsWith('Data Loading Patterns'))).toBeTruthy();
});
test('blog_tf_dataset_the_bad_parts: h1 "Sequential Reads in TensorFlow"', async ({ page }) => {
await page.goto('/blog/tf-dataset-the-bad-parts/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sequential Reads in TensorFlow Datasets' || t.startsWith('Sequential Reads in TensorFlow Datasets'))).toBeTruthy();
});
test('blog_tf_dataset_the_bad_parts: h1 "The Fix"', async ({ page }) => {
await page.goto('/blog/tf-dataset-the-bad-parts/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The Fix' || t.startsWith('The Fix'))).toBeTruthy();
});
test('blog_tf_dataset_the_bad_parts: nav link "Product"', async ({ page }) => {
await page.goto('/blog/tf-dataset-the-bad-parts/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_the_squeeze_on_ai_talent_could_cripple_americas_most_important_companies', () => {
test('blog_the_squeeze_on_ai_talent_could_cripple_americas_most_important_companies: title matches GT', async ({ page }) => {
await page.goto('/blog/the-squeeze-on-ai-talent-could-cripple-americas-most-important-companies/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('the fight for machine learning engineers');
});
test('blog_the_squeeze_on_ai_talent_could_cripple_americas_most_important_companies: h1 "Recent Posts"', async ({ page }) => {
await page.goto('/blog/the-squeeze-on-ai-talent-could-cripple-americas-most-important-companies/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
});
test('blog_the_squeeze_on_ai_talent_could_cripple_americas_most_important_companies: h2 "Model Studio is now available!"', async ({ page }) => {
await page.goto('/blog/the-squeeze-on-ai-talent-could-cripple-americas-most-important-companies/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Model Studio is now available!' || t.startsWith('Model Studio is now available!'))).toBeTruthy();
});
test('blog_the_squeeze_on_ai_talent_could_cripple_americas_most_important_companies: h2 "Where Training Memory Goes: A "', async ({ page }) => {
await page.goto('/blog/the-squeeze-on-ai-talent-could-cripple-americas-most-important-companies/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Where Training Memory Goes: A Deep Dive in Tensyr' || t.startsWith('Where Training Memory Goes: A Deep Dive in Tensyr'))).toBeTruthy();
});
test('blog_the_squeeze_on_ai_talent_could_cripple_americas_most_important_companies: nav link "Project"', async ({ page }) => {
await page.goto('/blog/the-squeeze-on-ai-talent-could-cripple-americas-most-important-companies/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_tianqi_chen_model_deployment_specialized_hardware_podcast', () => {
test('blog_tianqi_chen_model_deployment_specialized_hardware_podcast: title matches GT', async ({ page }) => {
await page.goto('/blog/tianqi-chen-model-deployment-specialized-hardware-podcast/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('rowan vesely on shipping models efficien');
});
test('blog_tianqi_chen_model_deployment_specialized_hardware_podcast: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/tianqi-chen-model-deployment-specialized-hardware-podcast/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_tianqi_chen_model_deployment_specialized_hardware_podcast: h2 "Nimbus 7B vs. Terra 7B: A Rapi"', async ({ page }) => {
await page.goto('/blog/tianqi-chen-model-deployment-specialized-hardware-podcast/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Nimbus 7B vs. Terra 7B: A Rapid Head-to-Head Run in GenAI studio' || t.startsWith('Nimbus 7B vs. Terra 7B: A Rapid Head-to-Head Run in GenAI studio'))).toBeTruthy();
});
test('blog_tianqi_chen_model_deployment_specialized_hardware_podcast: h2 "Activation Memory: A Plain Gui"', async ({ page }) => {
await page.goto('/blog/tianqi-chen-model-deployment-specialized-hardware-podcast/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Activation Memory: A Plain Guide' || t.startsWith('Activation Memory: A Plain Guide'))).toBeTruthy();
});
test('blog_tianqi_chen_model_deployment_specialized_hardware_podcast: nav link "Project"', async ({ page }) => {
await page.goto('/blog/tianqi-chen-model-deployment-specialized-hardware-podcast/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_toward_the_jet_age_of_machine_learning', () => {
test('blog_toward_the_jet_age_of_machine_learning: title matches GT', async ({ page }) => {
await page.goto('/blog/toward-the-jet-age-of-machine-learning/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('when deep learning outgrows a single gpu');
});
test('blog_toward_the_jet_age_of_machine_learning: h1 "Recent Posts"', async ({ page }) => {
await page.goto('/blog/toward-the-jet-age-of-machine-learning/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
});
test('blog_toward_the_jet_age_of_machine_learning: h2 "Challenge 1: Speed and Efficie"', async ({ page }) => {
await page.goto('/blog/toward-the-jet-age-of-machine-learning/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenge 1: Speed and Efficiency' || t.startsWith('Challenge 1: Speed and Efficiency'))).toBeTruthy();
});
test('blog_toward_the_jet_age_of_machine_learning: h2 "Challenge 2: Automation"', async ({ page }) => {
await page.goto('/blog/toward-the-jet-age-of-machine-learning/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenge 2: Automation' || t.startsWith('Challenge 2: Automation'))).toBeTruthy();
});
test('blog_toward_the_jet_age_of_machine_learning: nav link "Project"', async ({ page }) => {
await page.goto('/blog/toward-the-jet-age-of-machine-learning/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_transfer_learning_with_gradyn', () => {
test('blog_transfer_learning_with_gradyn: title matches GT', async ({ page }) => {
await page.goto('/blog/transfer-learning-with-gradyn/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('transfer learning made painless with gra');
});
test('blog_transfer_learning_with_gradyn: h1 "1) Distributed Training"', async ({ page }) => {
await page.goto('/blog/transfer-learning-with-gradyn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '1) Distributed Training' || t.startsWith('1) Distributed Training'))).toBeTruthy();
});
test('blog_transfer_learning_with_gradyn: h1 "2) Visualization:"', async ({ page }) => {
await page.goto('/blog/transfer-learning-with-gradyn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '2) Visualization:' || t.startsWith('2) Visualization:'))).toBeTruthy();
});
test('blog_transfer_learning_with_gradyn: h1 "3) Checkpointing"', async ({ page }) => {
await page.goto('/blog/transfer-learning-with-gradyn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '3) Checkpointing' || t.startsWith('3) Checkpointing'))).toBeTruthy();
});
test('blog_transfer_learning_with_gradyn: nav link "Product"', async ({ page }) => {
await page.goto('/blog/transfer-learning-with-gradyn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_warm_starting_deep_learning', () => {
test('blog_warm_starting_deep_learning: title matches GT', async ({ page }) => {
await page.goto('/blog/warm-starting-deep-learning/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('reusing trained weights for leaner deep ');
});
test('blog_warm_starting_deep_learning: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/warm-starting-deep-learning/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_warm_starting_deep_learning: h2 "Warm-starting and Transfer Lea"', async ({ page }) => {
await page.goto('/blog/warm-starting-deep-learning/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Warm-starting and Transfer Learning' || t.startsWith('Warm-starting and Transfer Learning'))).toBeTruthy();
});
test('blog_warm_starting_deep_learning: h2 "Warm-starting for Efficient De"', async ({ page }) => {
await page.goto('/blog/warm-starting-deep-learning/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Warm-starting for Efficient Deep Learning Resource Utilization' || t.startsWith('Warm-starting for Efficient Deep Learning Resource Utilization'))).toBeTruthy();
});
test('blog_warm_starting_deep_learning: nav link "Project"', async ({ page }) => {
await page.goto('/blog/warm-starting-deep-learning/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_weekly_update_2', () => {
test('blog_weekly_update_2: title matches GT', async ({ page }) => {
await page.goto('/blog/weekly-update-2/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('nyra video, a contamination sweeper, fas');
});
test('blog_weekly_update_2: h1 "Recent Posts"', async ({ page }) => {
await page.goto('/blog/weekly-update-2/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
});
test('blog_weekly_update_2: h2 "1) Nyra Video and Nyra Edit"', async ({ page }) => {
await page.goto('/blog/weekly-update-2/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '1) Nyra Video and Nyra Edit' || t.startsWith('1) Nyra Video and Nyra Edit'))).toBeTruthy();
});
test('blog_weekly_update_2: h2 "2) Contamination Sweeper"', async ({ page }) => {
await page.goto('/blog/weekly-update-2/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '2) Contamination Sweeper' || t.startsWith('2) Contamination Sweeper'))).toBeTruthy();
});
test('blog_weekly_update_2: nav link "Product"', async ({ page }) => {
await page.goto('/blog/weekly-update-2/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_weekly_update_3', () => {
test('blog_weekly_update_3: title matches GT', async ({ page }) => {
await page.goto('/blog/weekly-update-3/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('frameflow video synthesis, horizon decod');
});
test('blog_weekly_update_3: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/weekly-update-3/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_weekly_update_3: h2 "1) FrameFlow Video Synthesis"', async ({ page }) => {
await page.goto('/blog/weekly-update-3/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '1) FrameFlow Video Synthesis' || t.startsWith('1) FrameFlow Video Synthesis'))).toBeTruthy();
});
test('blog_weekly_update_3: h2 "2) Horizon Decoding"', async ({ page }) => {
await page.goto('/blog/weekly-update-3/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '2) Horizon Decoding' || t.startsWith('2) Horizon Decoding'))).toBeTruthy();
});
test('blog_weekly_update_3: nav link "Project"', async ({ page }) => {
await page.goto('/blog/weekly-update-3/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
test('blog_weekly_update_3: footer link "Product"', async ({ page }) => {
await page.goto('/blog/weekly-update-3/');
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 === 'Product' || t.startsWith('Product')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_weekly_update_4', () => {
test('blog_weekly_update_4: title matches GT', async ({ page }) => {
await page.goto('/blog/weekly-update-4/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('visual anagrams, adversarial diffusion d');
});
test('blog_weekly_update_4: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/weekly-update-4/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_weekly_update_4: h2 "1) Visual Anagrams"', async ({ page }) => {
await page.goto('/blog/weekly-update-4/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '1) Visual Anagrams' || t.startsWith('1) Visual Anagrams'))).toBeTruthy();
});
test('blog_weekly_update_4: h2 "2) Adversarial Diffusion Disti"', async ({ page }) => {
await page.goto('/blog/weekly-update-4/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '2) Adversarial Diffusion Distillation' || t.startsWith('2) Adversarial Diffusion Distillation'))).toBeTruthy();
});
test('blog_weekly_update_4: nav link "Product"', async ({ page }) => {
await page.goto('/blog/weekly-update-4/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
test('blog_weekly_update_4: nav link "News"', async ({ page }) => {
await page.goto('/blog/weekly-update-4/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'News' || t.startsWith('News')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_weekly_update_4: nav link "Community"', async ({ page }) => {
await page.goto('/blog/weekly-update-4/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Community' || t.startsWith('Community')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('resources')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_weekly_update_5', () => {
test('blog_weekly_update_5: title matches GT', async ({ page }) => {
await page.goto('/blog/weekly-update-5/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('boundless zoom diffusion, tonekeep trans');
});
test('blog_weekly_update_5: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/weekly-update-5/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_weekly_update_5: h2 "1) Boundless Zoom Diffusion:"', async ({ page }) => {
await page.goto('/blog/weekly-update-5/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '1) Boundless Zoom Diffusion:' || t.startsWith('1) Boundless Zoom Diffusion:'))).toBeTruthy();
});
test('blog_weekly_update_5: h2 "2) ToneKeep Translate"', async ({ page }) => {
await page.goto('/blog/weekly-update-5/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '2) ToneKeep Translate' || t.startsWith('2) ToneKeep Translate'))).toBeTruthy();
});
test('blog_weekly_update_5: nav link "Product"', async ({ page }) => {
await page.goto('/blog/weekly-update-5/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_what_andreessen_horowitz_got_wrong_about_ai', () => {
test('blog_what_andreessen_horowitz_got_wrong_about_ai: title matches GT', async ({ page }) => {
await page.goto('/blog/what-andreessen-horowitz-got-wrong-about-ai/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('where brightmoor capital misreads the ai');
});
test('blog_what_andreessen_horowitz_got_wrong_about_ai: h1 "Where Brightmoor Capital Gets "', async ({ page }) => {
await page.goto('/blog/what-andreessen-horowitz-got-wrong-about-ai/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Where Brightmoor Capital Gets AI Wrong' || t.startsWith('Where Brightmoor Capital Gets AI Wrong'))).toBeTruthy();
});
test('blog_what_andreessen_horowitz_got_wrong_about_ai: h1 "Recent Posts"', async ({ page }) => {
await page.goto('/blog/what-andreessen-horowitz-got-wrong-about-ai/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
});
test('blog_what_andreessen_horowitz_got_wrong_about_ai: h2 "Gradyn Studio is now available"', async ({ page }) => {
await page.goto('/blog/what-andreessen-horowitz-got-wrong-about-ai/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Gradyn Studio is now available!' || t.startsWith('Gradyn Studio is now available!'))).toBeTruthy();
});
test('blog_what_andreessen_horowitz_got_wrong_about_ai: h2 "Activation Memory: A Deep Dive"', async ({ page }) => {
await page.goto('/blog/what-andreessen-horowitz-got-wrong-about-ai/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Activation Memory: A Deep Dive using Tensora' || t.startsWith('Activation Memory: A Deep Dive using Tensora'))).toBeTruthy();
});
test('blog_what_andreessen_horowitz_got_wrong_about_ai: nav link "Project"', async ({ page }) => {
await page.goto('/blog/what-andreessen-horowitz-got-wrong-about-ai/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_why_does_no_one_use_advanced_hp_tuning', () => {
test('blog_why_does_no_one_use_advanced_hp_tuning: title matches GT', async ({ page }) => {
await page.goto('/blog/why-does-no-one-use-advanced-hp-tuning/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('why is advanced hyperparameter tuning so');
});
test('blog_why_does_no_one_use_advanced_hp_tuning: h1 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/why-does-no-one-use-advanced-hp-tuning/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog_why_does_no_one_use_advanced_hp_tuning: h2 "Scaling to large problems"', async ({ page }) => {
await page.goto('/blog/why-does-no-one-use-advanced-hp-tuning/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Scaling to large problems' || t.startsWith('Scaling to large problems'))).toBeTruthy();
});
test('blog_why_does_no_one_use_advanced_hp_tuning: h2 "Hooking into your backend syst"', async ({ page }) => {
await page.goto('/blog/why-does-no-one-use-advanced-hp-tuning/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Hooking into your backend systems' || t.startsWith('Hooking into your backend systems'))).toBeTruthy();
});
test('blog_why_does_no_one_use_advanced_hp_tuning: nav link "Project"', async ({ page }) => {
await page.goto('/blog/why-does-no-one-use-advanced-hp-tuning/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Routing', () => {
test('navigate to project via "Platform"', async ({ page }) => {
await page.goto('/');
const link = page.locator('a[href*="project"]').first();
expect(await link.count(), 'nav link to project exists').toBeGreaterThan(0);
await link.click();
await page.waitForTimeout(1200);
expect(page.url().toLowerCase(), 'URL changed to destination').toContain('project');
const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' ');
expect(bodyText, 'destination distinctive content shown').toContain('Focus on models, not machines.');
});
});