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('water stewardship & crop intelligence'); }); test('homepage: nav link "Terravyn Solution Overview"', 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 === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('homepage: nav link "Sensing & Monitoring"', 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 === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('homepage: nav link "Terravyn Apps"', 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 === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('homepage: nav link "Terravyn Vision"', 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 === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog', () => { test('blog: title matches GT', async ({ page }) => { await page.goto('/blog/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('blog'); }); test('blog: h1 "The Root"', async ({ page }) => { await page.goto('/blog/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Root' || t.startsWith('The Root'))).toBeTruthy(); }); test('blog: h2 "Water Wise: 7 Reasons to Build"', async ({ page }) => { await page.goto('/blog/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Water Wise: 7 Reasons to Build a Data-Driven Irrigation Strategy' || t.startsWith('Water Wise: 7 Reasons to Build a Data-Driven Irrigation Strategy'))).toBeTruthy(); }); test('blog: h2 "How AgTech Is Advancing Water "', async ({ page }) => { await page.goto('/blog/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How AgTech Is Advancing Water Sustainability Globally' || t.startsWith('How AgTech Is Advancing Water Sustainability Globally'))).toBeTruthy(); }); test('blog: h2 "The Essential Role of Evapotra"', async ({ page }) => { await page.goto('/blog/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Essential Role of Evapotranspiration in Optimizing Agricultural Irrigation' || t.startsWith('The Essential Role of Evapotranspiration in Optimizing Agricultural Irrigation'))).toBeTruthy(); }); test('blog: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), '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('contact us'); }); test('contact: h1 "Contact Terravyn"', 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 === 'Contact Terravyn' || t.startsWith('Contact Terravyn'))).toBeTruthy(); }); test('contact: h3 "Tell Us What You Need"', async ({ page }) => { await page.goto('/contact/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Tell Us What You Need' || t.startsWith('Tell Us What You Need'))).toBeTruthy(); }); test('contact: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/contact/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('contact: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/contact/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('contact: nav link "Terravyn Solution Overview"', 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 === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('contact: nav link "Sensing & Monitoring"', 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 === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('contact: nav link "Terravyn Apps"', 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 === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('contact: nav link "Terravyn Vision"', 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 === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - customers', () => { test('customers: title matches GT', async ({ page }) => { await page.goto('/customers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('terravyn customers and partners'); }); test('customers: h1 "Trusted by Global Leaders Acro"', async ({ page }) => { await page.goto('/customers/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Trusted by Global Leaders Across Ag, Food, and Technology' || t.startsWith('Trusted by Global Leaders Across Ag, Food, and Technology'))).toBeTruthy(); }); test('customers: h2 "Terravyn helps the most forwar"', async ({ page }) => { await page.goto('/customers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn helps the most forward-thinking companies in agriculture sharpen decisions and understand c' || t.startsWith('Terravyn helps the most forward-thinking companies in agriculture sharpen decisions and understand c'))).toBeTruthy(); }); test('customers: h2 "Selected Case Studies"', async ({ page }) => { await page.goto('/customers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Selected Case Studies' || t.startsWith('Selected Case Studies'))).toBeTruthy(); }); test('customers: h2 "The Many Ways Terravyn Can Hel"', async ({ page }) => { await page.goto('/customers/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Many Ways Terravyn Can Help Your Operation' || t.startsWith('The Many Ways Terravyn Can Help Your Operation'))).toBeTruthy(); }); test('customers: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/customers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('customers: nav link "Sensing & Insights"', async ({ page }) => { await page.goto('/customers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Insights' || t.startsWith('Sensing & Insights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('customers: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/customers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('customers: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/customers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - jobs', () => { test('jobs: title matches GT', async ({ page }) => { await page.goto('/jobs/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('careers'); }); test('jobs: h1 "Join Team Terravyn"', async ({ page }) => { await page.goto('/jobs/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Join Team Terravyn' || t.startsWith('Join Team Terravyn'))).toBeTruthy(); }); test('jobs: h2 "Here Your Work Truly Matters"', async ({ page }) => { await page.goto('/jobs/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Here Your Work Truly Matters' || t.startsWith('Here Your Work Truly Matters'))).toBeTruthy(); }); test('jobs: h2 "Our Values"', async ({ page }) => { await page.goto('/jobs/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our Values' || t.startsWith('Our Values'))).toBeTruthy(); }); test('jobs: h2 "A Dedicated Team"', async ({ page }) => { await page.goto('/jobs/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'A Dedicated Team' || t.startsWith('A Dedicated Team'))).toBeTruthy(); }); test('jobs: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/jobs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('jobs: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/jobs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('jobs: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/jobs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('jobs: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/jobs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - learn_resource_center', () => { test('learn_resource_center: title matches GT', async ({ page }) => { await page.goto('/learn/resource-center/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('resource center'); }); test('learn_resource_center: h1 "Terravyn Resource Center"', async ({ page }) => { await page.goto('/learn/resource-center/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Resource Center' || t.startsWith('Terravyn Resource Center'))).toBeTruthy(); }); test('learn_resource_center: h3 "Customer Stories"', async ({ page }) => { await page.goto('/learn/resource-center/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Customer Stories' || t.startsWith('Customer Stories'))).toBeTruthy(); }); test('learn_resource_center: h3 "Proactive Disease Monitoring D"', async ({ page }) => { await page.goto('/learn/resource-center/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Proactive Disease Monitoring Delivers a 13% Drop in Pesticide Use and 20% Cost Savings' || t.startsWith('Proactive Disease Monitoring Delivers a 13% Drop in Pesticide Use and 20% Cost Savings'))).toBeTruthy(); }); test('learn_resource_center: h3 "Rootline Institute of Agricult"', async ({ page }) => { await page.goto('/learn/resource-center/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Rootline Institute of Agriculture and Environmental Science: Breeding for a Changing Climate' || t.startsWith('Rootline Institute of Agriculture and Environmental Science: Breeding for a Changing Climate'))).toBeTruthy(); }); test('learn_resource_center: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/learn/resource-center/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('learn_resource_center: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/learn/resource-center/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('learn_resource_center: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/learn/resource-center/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('learn_resource_center: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/learn/resource-center/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - mark3', () => { test('mark3: title matches GT', async ({ page }) => { await page.goto('/mark3/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('terravyn mark 3'); }); test('mark3: h1 "Terravyn Mark 3"', async ({ page }) => { await page.goto('/mark3/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Mark 3' || t.startsWith('Terravyn Mark 3'))).toBeTruthy(); }); test('mark3: h2 "In-Field Crop Monitoring, Stre"', async ({ page }) => { await page.goto('/mark3/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'In-Field Crop Monitoring, Streamlined' || t.startsWith('In-Field Crop Monitoring, Streamlined'))).toBeTruthy(); }); test('mark3: h2 "In-Field Crop Information: Mor"', async ({ page }) => { await page.goto('/mark3/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'In-Field Crop Information: More Complete, Dependable, and Easier to Reach Than Ever' || t.startsWith('In-Field Crop Information: More Complete, Dependable, and Easier to Reach Than Ever'))).toBeTruthy(); }); test('mark3: h2 "Terravyn Mark 3 In a Field All"', async ({ page }) => { await page.goto('/mark3/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Mark 3 In a Field All Its Own' || t.startsWith('Terravyn Mark 3 In a Field All Its Own'))).toBeTruthy(); }); test('mark3: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/mark3/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('mark3: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/mark3/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('mark3: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/mark3/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('mark3: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/mark3/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - news_terravyn_mark_3_wins_a_prestigious_idea_industrial_design_award', () => { test('news_terravyn_mark_3_wins_a_prestigious_idea_industrial_design_award: title matches GT', async ({ page }) => { await page.goto('/news/terravyn-mark-3-wins-a-prestigious-idea-industrial-design-award/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('the terravyn mark 3, an agriculture and '); }); test('news_terravyn_mark_3_wins_a_prestigious_idea_industrial_design_award: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/news/terravyn-mark-3-wins-a-prestigious-idea-industrial-design-award/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('news_terravyn_mark_3_wins_a_prestigious_idea_industrial_design_award: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/news/terravyn-mark-3-wins-a-prestigious-idea-industrial-design-award/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('news_terravyn_mark_3_wins_a_prestigious_idea_industrial_design_award: h4 "About Terravyn"', async ({ page }) => { await page.goto('/news/terravyn-mark-3-wins-a-prestigious-idea-industrial-design-award/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About Terravyn' || t.startsWith('About Terravyn'))).toBeTruthy(); }); test('news_terravyn_mark_3_wins_a_prestigious_idea_industrial_design_award: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/news/terravyn-mark-3-wins-a-prestigious-idea-industrial-design-award/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('news_terravyn_mark_3_wins_a_prestigious_idea_industrial_design_award: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/news/terravyn-mark-3-wins-a-prestigious-idea-industrial-design-award/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('news_terravyn_mark_3_wins_a_prestigious_idea_industrial_design_award: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/news/terravyn-mark-3-wins-a-prestigious-idea-industrial-design-award/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('news_terravyn_mark_3_wins_a_prestigious_idea_industrial_design_award: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/news/terravyn-mark-3-wins-a-prestigious-idea-industrial-design-award/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - news_terravyn_wins_2021_agtech_breakthrough_award_for_iot_monitoring_solution_of_the_year', () => { test('news_terravyn_wins_2021_agtech_breakthrough_award_for_iot_monitoring_solution_of_the_year: title matches GT', async ({ page }) => { await page.goto('/news/terravyn-wins-2021-agtech-breakthrough-award-for-iot-monitoring-solution-of-the-year/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('terravyn wins 2021 farmtech frontier awa'); }); test('news_terravyn_wins_2021_agtech_breakthrough_award_for_iot_monitoring_solution_of_the_year: h1 "Terravyn Wins 2021 FarmTech Fr"', async ({ page }) => { await page.goto('/news/terravyn-wins-2021-agtech-breakthrough-award-for-iot-monitoring-solution-of-the-year/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Wins 2021 FarmTech Frontier Award For “IoT Monitoring Solution of the Year”' || t.startsWith('Terravyn Wins 2021 FarmTech Frontier Award For “IoT Monitoring Solution of the Year”'))).toBeTruthy(); }); test('news_terravyn_wins_2021_agtech_breakthrough_award_for_iot_monitoring_solution_of_the_year: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/news/terravyn-wins-2021-agtech-breakthrough-award-for-iot-monitoring-solution-of-the-year/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('news_terravyn_wins_2021_agtech_breakthrough_award_for_iot_monitoring_solution_of_the_year: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/news/terravyn-wins-2021-agtech-breakthrough-award-for-iot-monitoring-solution-of-the-year/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('news_terravyn_wins_2021_agtech_breakthrough_award_for_iot_monitoring_solution_of_the_year: h4 "Annual Awards Program Recogniz"', async ({ page }) => { await page.goto('/news/terravyn-wins-2021-agtech-breakthrough-award-for-iot-monitoring-solution-of-the-year/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Annual Awards Program Recognizes Innovation in Agricultural Technologies Across the Globe' || t.startsWith('Annual Awards Program Recognizes Innovation in Agricultural Technologies Across the Globe'))).toBeTruthy(); }); test('news_terravyn_wins_2021_agtech_breakthrough_award_for_iot_monitoring_solution_of_the_year: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/news/terravyn-wins-2021-agtech-breakthrough-award-for-iot-monitoring-solution-of-the-year/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('news_terravyn_wins_2021_agtech_breakthrough_award_for_iot_monitoring_solution_of_the_year: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/news/terravyn-wins-2021-agtech-breakthrough-award-for-iot-monitoring-solution-of-the-year/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('news_terravyn_wins_2021_agtech_breakthrough_award_for_iot_monitoring_solution_of_the_year: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/news/terravyn-wins-2021-agtech-breakthrough-award-for-iot-monitoring-solution-of-the-year/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('news_terravyn_wins_2021_agtech_breakthrough_award_for_iot_monitoring_solution_of_the_year: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/news/terravyn-wins-2021-agtech-breakthrough-award-for-iot-monitoring-solution-of-the-year/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - news_terravyn_wins_fast_companys_next_big_things_in_tech_award', () => { test('news_terravyn_wins_fast_companys_next_big_things_in_tech_award: title matches GT', async ({ page }) => { await page.goto('/news/terravyn-wins-fast-companys-next-big-things-in-tech-award/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('terravyn wins catalyst business next wav'); }); test('news_terravyn_wins_fast_companys_next_big_things_in_tech_award: h1 "Terravyn Wins Catalyst Busines"', async ({ page }) => { await page.goto('/news/terravyn-wins-fast-companys-next-big-things-in-tech-award/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Wins Catalyst Business Next Wave in Tech Award' || t.startsWith('Terravyn Wins Catalyst Business Next Wave in Tech Award'))).toBeTruthy(); }); test('news_terravyn_wins_fast_companys_next_big_things_in_tech_award: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/news/terravyn-wins-fast-companys-next-big-things-in-tech-award/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('news_terravyn_wins_fast_companys_next_big_things_in_tech_award: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/news/terravyn-wins-fast-companys-next-big-things-in-tech-award/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('news_terravyn_wins_fast_companys_next_big_things_in_tech_award: h4 "Crop Intelligence Leader Recog"', async ({ page }) => { await page.goto('/news/terravyn-wins-fast-companys-next-big-things-in-tech-award/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Crop Intelligence Leader Recognized for Shaping the Future of Digital Agriculture' || t.startsWith('Crop Intelligence Leader Recognized for Shaping the Future of Digital Agriculture'))).toBeTruthy(); }); test('news_terravyn_wins_fast_companys_next_big_things_in_tech_award: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/news/terravyn-wins-fast-companys-next-big-things-in-tech-award/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('news_terravyn_wins_fast_companys_next_big_things_in_tech_award: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/news/terravyn-wins-fast-companys-next-big-things-in-tech-award/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('news_terravyn_wins_fast_companys_next_big_things_in_tech_award: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/news/terravyn-wins-fast-companys-next-big-things-in-tech-award/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('news_terravyn_wins_fast_companys_next_big_things_in_tech_award: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/news/terravyn-wins-fast-companys-next-big-things-in-tech-award/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - news_google_and_terravyn_collaborate_to_bring_innovative_water_stewardship_solution_to_nebraska_agriculture', () => { test('news_google_and_terravyn_collaborate_to_bring_innovative_water_stewardship_solution_to_nebraska_agriculture: title matches GT', async ({ page }) => { await page.goto('/news/google-and-terravyn-collaborate-to-bring-innovative-water-stewardship-solution-to-nebraska-agriculture/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('lumira and terravyn collaborate to bring'); }); test('news_google_and_terravyn_collaborate_to_bring_innovative_water_stewardship_solution_to_nebraska_agriculture: h4 "THE SCIENCE"', async ({ page }) => { await page.goto('/news/google-and-terravyn-collaborate-to-bring-innovative-water-stewardship-solution-to-nebraska-agriculture/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'THE SCIENCE' || t.startsWith('THE SCIENCE'))).toBeTruthy(); }); test('news_google_and_terravyn_collaborate_to_bring_innovative_water_stewardship_solution_to_nebraska_agriculture: h4 "POPULAR USE CASES"', async ({ page }) => { await page.goto('/news/google-and-terravyn-collaborate-to-bring-innovative-water-stewardship-solution-to-nebraska-agriculture/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'POPULAR USE CASES' || t.startsWith('POPULAR USE CASES'))).toBeTruthy(); }); test('news_google_and_terravyn_collaborate_to_bring_innovative_water_stewardship_solution_to_nebraska_agriculture: h4 "Cutting-Edge Technology Empowe"', async ({ page }) => { await page.goto('/news/google-and-terravyn-collaborate-to-bring-innovative-water-stewardship-solution-to-nebraska-agriculture/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Cutting-Edge Technology Empowers Farmers to Sharpen Irrigation Decisions, Supporting Water Replenish' || t.startsWith('Cutting-Edge Technology Empowers Farmers to Sharpen Irrigation Decisions, Supporting Water Replenish'))).toBeTruthy(); }); test('news_google_and_terravyn_collaborate_to_bring_innovative_water_stewardship_solution_to_nebraska_agriculture: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/news/google-and-terravyn-collaborate-to-bring-innovative-water-stewardship-solution-to-nebraska-agriculture/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('news_google_and_terravyn_collaborate_to_bring_innovative_water_stewardship_solution_to_nebraska_agriculture: nav link "Sensing & Insights"', async ({ page }) => { await page.goto('/news/google-and-terravyn-collaborate-to-bring-innovative-water-stewardship-solution-to-nebraska-agriculture/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Insights' || t.startsWith('Sensing & Insights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('news_google_and_terravyn_collaborate_to_bring_innovative_water_stewardship_solution_to_nebraska_agriculture: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/news/google-and-terravyn-collaborate-to-bring-innovative-water-stewardship-solution-to-nebraska-agriculture/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('news_google_and_terravyn_collaborate_to_bring_innovative_water_stewardship_solution_to_nebraska_agriculture: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/news/google-and-terravyn-collaborate-to-bring-innovative-water-stewardship-solution-to-nebraska-agriculture/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - news_smart_irrigation_amazon_and_terravyn_announce_new_project_to_save_water_benefit_mississippi_farmers', () => { test('news_smart_irrigation_amazon_and_terravyn_announce_new_project_to_save_water_benefit_mississippi_farmers: title matches GT', async ({ page }) => { await page.goto('/news/smart-irrigation-amazon-and-terravyn-announce-new-project-to-save-water-benefit-mississippi-farmers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('smart irrigation'); }); test('news_smart_irrigation_amazon_and_terravyn_announce_new_project_to_save_water_benefit_mississippi_farmers: h4 "THE SCIENCE"', async ({ page }) => { await page.goto('/news/smart-irrigation-amazon-and-terravyn-announce-new-project-to-save-water-benefit-mississippi-farmers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'THE SCIENCE' || t.startsWith('THE SCIENCE'))).toBeTruthy(); }); test('news_smart_irrigation_amazon_and_terravyn_announce_new_project_to_save_water_benefit_mississippi_farmers: h4 "POPULAR USE CASES"', async ({ page }) => { await page.goto('/news/smart-irrigation-amazon-and-terravyn-announce-new-project-to-save-water-benefit-mississippi-farmers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'POPULAR USE CASES' || t.startsWith('POPULAR USE CASES'))).toBeTruthy(); }); test('news_smart_irrigation_amazon_and_terravyn_announce_new_project_to_save_water_benefit_mississippi_farmers: h4 "Precision Irrigation Technolog"', async ({ page }) => { await page.goto('/news/smart-irrigation-amazon-and-terravyn-announce-new-project-to-save-water-benefit-mississippi-farmers/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Precision Irrigation Technology Conserves Groundwater in the Willow Delta, Supporting Agricultural S' || t.startsWith('Precision Irrigation Technology Conserves Groundwater in the Willow Delta, Supporting Agricultural S'))).toBeTruthy(); }); test('news_smart_irrigation_amazon_and_terravyn_announce_new_project_to_save_water_benefit_mississippi_farmers: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/news/smart-irrigation-amazon-and-terravyn-announce-new-project-to-save-water-benefit-mississippi-farmers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('news_smart_irrigation_amazon_and_terravyn_announce_new_project_to_save_water_benefit_mississippi_farmers: nav link "Sensing & Insights"', async ({ page }) => { await page.goto('/news/smart-irrigation-amazon-and-terravyn-announce-new-project-to-save-water-benefit-mississippi-farmers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Insights' || t.startsWith('Sensing & Insights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('news_smart_irrigation_amazon_and_terravyn_announce_new_project_to_save_water_benefit_mississippi_farmers: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/news/smart-irrigation-amazon-and-terravyn-announce-new-project-to-save-water-benefit-mississippi-farmers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('news_smart_irrigation_amazon_and_terravyn_announce_new_project_to_save_water_benefit_mississippi_farmers: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/news/smart-irrigation-amazon-and-terravyn-announce-new-project-to-save-water-benefit-mississippi-farmers/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), '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 "Privacy Statement"', 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 === 'Privacy Statement' || t.startsWith('Privacy Statement'))).toBeTruthy(); }); test('privacy: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/privacy/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('privacy: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/privacy/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('privacy: h4 "Please read this privacy state"', async ({ page }) => { await page.goto('/privacy/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Please read this privacy statement carefully before you use the services.' || t.startsWith('Please read this privacy statement carefully before you use the services.'))).toBeTruthy(); }); test('privacy: nav link "Terravyn Solution Overview"', 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 === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('privacy: nav link "Sensing & Monitoring"', 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 === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('privacy: nav link "Terravyn Apps"', 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 === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('privacy: nav link "Terravyn Vision"', 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 === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - products', () => { test('products: title matches GT', async ({ page }) => { await page.goto('/products/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('terravyn crop intelligence system overvi'); }); test('products: h1 "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/products/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview'))).toBeTruthy(); }); test('products: h1 "The Next Era of Crop Intellige"', async ({ page }) => { await page.goto('/products/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Next Era of Crop Intelligence Is Here' || t.startsWith('The Next Era of Crop Intelligence Is Here'))).toBeTruthy(); }); test('products: h2 "Guide and Strengthen Your Most"', async ({ page }) => { await page.goto('/products/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Guide and Strengthen Your Most Critical Decisions in Real Time' || t.startsWith('Guide and Strengthen Your Most Critical Decisions in Real Time'))).toBeTruthy(); }); test('products: h2 "Trusted by Pioneers in Ag, Foo"', async ({ page }) => { await page.goto('/products/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Trusted by Pioneers in Ag, Food, and Technology' || t.startsWith('Trusted by Pioneers in Ag, Food, and Technology'))).toBeTruthy(); }); test('products: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/products/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('products: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/products/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('products: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/products/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('products: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/products/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_a_guide_to_chlorophyll_index_a_key_indicator_of_plant_health', () => { test('blog_a_guide_to_chlorophyll_index_a_key_indicator_of_plant_health: title matches GT', async ({ page }) => { await page.goto('/blog/a-guide-to-chlorophyll-index-a-key-indicator-of-plant-health/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('a guide to chlorophyll index'); }); test('blog_a_guide_to_chlorophyll_index_a_key_indicator_of_plant_health: h1 "Understanding Chlorophyll Inde"', async ({ page }) => { await page.goto('/blog/a-guide-to-chlorophyll-index-a-key-indicator-of-plant-health/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Understanding Chlorophyll Index: A Key Indicator of Plant Health' || t.startsWith('Understanding Chlorophyll Index: A Key Indicator of Plant Health'))).toBeTruthy(); }); test('blog_a_guide_to_chlorophyll_index_a_key_indicator_of_plant_health: h3 "What Is the Chlorophyll"', async ({ page }) => { await page.goto('/blog/a-guide-to-chlorophyll-index-a-key-indicator-of-plant-health/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'What Is the Chlorophyll' || t.startsWith('What Is the Chlorophyll'))).toBeTruthy(); }); test('blog_a_guide_to_chlorophyll_index_a_key_indicator_of_plant_health: h3 "Why Does Measuring Chlorophyll"', async ({ page }) => { await page.goto('/blog/a-guide-to-chlorophyll-index-a-key-indicator-of-plant-health/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Why Does Measuring Chlorophyll Index Matter?' || t.startsWith('Why Does Measuring Chlorophyll Index Matter?'))).toBeTruthy(); }); test('blog_a_guide_to_chlorophyll_index_a_key_indicator_of_plant_health: h3 "How Does Terravyn Measure Chlo"', async ({ page }) => { await page.goto('/blog/a-guide-to-chlorophyll-index-a-key-indicator-of-plant-health/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How Does Terravyn Measure Chlorophyll Index?' || t.startsWith('How Does Terravyn Measure Chlorophyll Index?'))).toBeTruthy(); }); test('blog_a_guide_to_chlorophyll_index_a_key_indicator_of_plant_health: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/a-guide-to-chlorophyll-index-a-key-indicator-of-plant-health/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_a_guide_to_chlorophyll_index_a_key_indicator_of_plant_health: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/a-guide-to-chlorophyll-index-a-key-indicator-of-plant-health/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_a_guide_to_chlorophyll_index_a_key_indicator_of_plant_health: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/a-guide-to-chlorophyll-index-a-key-indicator-of-plant-health/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_a_guide_to_chlorophyll_index_a_key_indicator_of_plant_health: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/a-guide-to-chlorophyll-index-a-key-indicator-of-plant-health/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_a_guide_to_normalized_difference_vegetation_index_ndvi', () => { test('blog_a_guide_to_normalized_difference_vegetation_index_ndvi: title matches GT', async ({ page }) => { await page.goto('/blog/a-guide-to-normalized-difference-vegetation-index-ndvi/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('understanding the normalized difference '); }); test('blog_a_guide_to_normalized_difference_vegetation_index_ndvi: h1 "Understanding the Normalized D"', async ({ page }) => { await page.goto('/blog/a-guide-to-normalized-difference-vegetation-index-ndvi/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Understanding the Normalized Difference Vegetation Index (NDVI)' || t.startsWith('Understanding the Normalized Difference Vegetation Index (NDVI)'))).toBeTruthy(); }); test('blog_a_guide_to_normalized_difference_vegetation_index_ndvi: h3 "What is NDVI?"', async ({ page }) => { await page.goto('/blog/a-guide-to-normalized-difference-vegetation-index-ndvi/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'What is NDVI?' || t.startsWith('What is NDVI?'))).toBeTruthy(); }); test('blog_a_guide_to_normalized_difference_vegetation_index_ndvi: h3 "Why NDVI Measurement Matters f"', async ({ page }) => { await page.goto('/blog/a-guide-to-normalized-difference-vegetation-index-ndvi/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Why NDVI Measurement Matters for Growers' || t.startsWith('Why NDVI Measurement Matters for Growers'))).toBeTruthy(); }); test('blog_a_guide_to_normalized_difference_vegetation_index_ndvi: h3 "How Does Terravyn Measure NDVI"', async ({ page }) => { await page.goto('/blog/a-guide-to-normalized-difference-vegetation-index-ndvi/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How Does Terravyn Measure NDVI?' || t.startsWith('How Does Terravyn Measure NDVI?'))).toBeTruthy(); }); test('blog_a_guide_to_normalized_difference_vegetation_index_ndvi: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/a-guide-to-normalized-difference-vegetation-index-ndvi/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_a_guide_to_normalized_difference_vegetation_index_ndvi: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/a-guide-to-normalized-difference-vegetation-index-ndvi/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_a_guide_to_normalized_difference_vegetation_index_ndvi: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/a-guide-to-normalized-difference-vegetation-index-ndvi/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_a_guide_to_normalized_difference_vegetation_index_ndvi: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/a-guide-to-normalized-difference-vegetation-index-ndvi/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_a_history_of_crop_forecasting_in_3_maps', () => { test('blog_a_history_of_crop_forecasting_in_3_maps: title matches GT', async ({ page }) => { await page.goto('/blog/a-history-of-crop-forecasting-in-3-maps/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('a history of crop forecasting in 3 maps'); }); test('blog_a_history_of_crop_forecasting_in_3_maps: h1 "Crop forecasting’s story, told"', async ({ page }) => { await page.goto('/blog/a-history-of-crop-forecasting-in-3-maps/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Crop forecasting’s story, told in 3 maps' || t.startsWith('Crop forecasting’s story, told in 3 maps'))).toBeTruthy(); }); test('blog_a_history_of_crop_forecasting_in_3_maps: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/a-history-of-crop-forecasting-in-3-maps/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_a_history_of_crop_forecasting_in_3_maps: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/a-history-of-crop-forecasting-in-3-maps/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_a_history_of_crop_forecasting_in_3_maps: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/a-history-of-crop-forecasting-in-3-maps/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_a_history_of_crop_forecasting_in_3_maps: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/a-history-of-crop-forecasting-in-3-maps/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_a_history_of_crop_forecasting_in_3_maps: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/a-history-of-crop-forecasting-in-3-maps/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_a_history_of_crop_forecasting_in_3_maps: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/a-history-of-crop-forecasting-in-3-maps/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_a_valuable_partnership', () => { test('blog_a_valuable_partnership: title matches GT', async ({ page }) => { await page.goto('/blog/a-valuable-partnership/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('a valuable partnership'); }); test('blog_a_valuable_partnership: h1 "A Partnership of Value"', async ({ page }) => { await page.goto('/blog/a-valuable-partnership/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'A Partnership of Value' || t.startsWith('A Partnership of Value'))).toBeTruthy(); }); test('blog_a_valuable_partnership: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/a-valuable-partnership/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_a_valuable_partnership: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/a-valuable-partnership/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_a_valuable_partnership: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/a-valuable-partnership/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_a_valuable_partnership: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/a-valuable-partnership/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_a_valuable_partnership: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/a-valuable-partnership/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_a_valuable_partnership: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/a-valuable-partnership/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_adrift_in_a_data_desert', () => { test('blog_adrift_in_a_data_desert: title matches GT', async ({ page }) => { await page.goto('/blog/adrift-in-a-data-desert/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('lost in a data drought'); }); test('blog_adrift_in_a_data_desert: h1 "Lost in a data drought"', async ({ page }) => { await page.goto('/blog/adrift-in-a-data-desert/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Lost in a data drought' || t.startsWith('Lost in a data drought'))).toBeTruthy(); }); test('blog_adrift_in_a_data_desert: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/adrift-in-a-data-desert/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_adrift_in_a_data_desert: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/adrift-in-a-data-desert/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_adrift_in_a_data_desert: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/adrift-in-a-data-desert/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_adrift_in_a_data_desert: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/adrift-in-a-data-desert/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_adrift_in_a_data_desert: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/adrift-in-a-data-desert/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_adrift_in_a_data_desert: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/adrift-in-a-data-desert/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_aginnovatechs_regional_approach', () => { test('blog_aginnovatechs_regional_approach: title matches GT', async ({ page }) => { await page.goto('/blog/aginnovatechs-regional-approach/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('agrinova verde\'s regional approach to re'); }); test('blog_aginnovatechs_regional_approach: h1 "AgriNova Verde\'s Regional Appr"', async ({ page }) => { await page.goto('/blog/aginnovatechs-regional-approach/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'AgriNova Verde\'s Regional Approach to Reducing Risk in Agriculture' || t.startsWith('AgriNova Verde\'s Regional Approach to Reducing Risk in Agriculture'))).toBeTruthy(); }); test('blog_aginnovatechs_regional_approach: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/aginnovatechs-regional-approach/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_aginnovatechs_regional_approach: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/aginnovatechs-regional-approach/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_aginnovatechs_regional_approach: h6 "(L) Elias Duran, Commercial an"', async ({ page }) => { await page.goto('/blog/aginnovatechs-regional-approach/'); const texts = (await page.locator('h6').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '(L) Elias Duran, Commercial and Technical Lead, installs a Terravyn Mark 2 in a pineapple field. (R)' || t.startsWith('(L) Elias Duran, Commercial and Technical Lead, installs a Terravyn Mark 2 in a pineapple field. (R)'))).toBeTruthy(); }); test('blog_aginnovatechs_regional_approach: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/aginnovatechs-regional-approach/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_aginnovatechs_regional_approach: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/aginnovatechs-regional-approach/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_aginnovatechs_regional_approach: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/aginnovatechs-regional-approach/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_aginnovatechs_regional_approach: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/aginnovatechs-regional-approach/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_agrishow_start_up_award_finalist', () => { test('blog_agrishow_start_up_award_finalist: title matches GT', async ({ page }) => { await page.goto('/blog/agrishow-start-up-award-finalist/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('terravyn selected as finalist for the ag'); }); test('blog_agrishow_start_up_award_finalist: h1 "Terravyn Selected as Finalist "', async ({ page }) => { await page.goto('/blog/agrishow-start-up-award-finalist/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Selected as Finalist for the AgroExpo Startup Award' || t.startsWith('Terravyn Selected as Finalist for the AgroExpo Startup Award'))).toBeTruthy(); }); test('blog_agrishow_start_up_award_finalist: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/agrishow-start-up-award-finalist/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_agrishow_start_up_award_finalist: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/agrishow-start-up-award-finalist/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_agrishow_start_up_award_finalist: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/agrishow-start-up-award-finalist/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_agrishow_start_up_award_finalist: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/agrishow-start-up-award-finalist/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_agrishow_start_up_award_finalist: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/agrishow-start-up-award-finalist/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_agrishow_start_up_award_finalist: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/agrishow-start-up-award-finalist/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_terravyn_and_basf_team_up_in_xarvio_field_manager_to_reduce_pesticides', () => { test('blog_terravyn_and_basf_team_up_in_xarvio_field_manager_to_reduce_pesticides: title matches GT', async ({ page }) => { await page.goto('/blog/terravyn-and-basf-team-up-in-xarvio-field-manager-to-reduce-pesticides/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('terravyn and nutriva team up in nutriva '); }); test('blog_terravyn_and_basf_team_up_in_xarvio_field_manager_to_reduce_pesticides: h1 "Terravyn and Nutriva team up i"', async ({ page }) => { await page.goto('/blog/terravyn-and-basf-team-up-in-xarvio-field-manager-to-reduce-pesticides/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn and Nutriva team up in Nutriva Field Manager to reduce pesticides' || t.startsWith('Terravyn and Nutriva team up in Nutriva Field Manager to reduce pesticides'))).toBeTruthy(); }); test('blog_terravyn_and_basf_team_up_in_xarvio_field_manager_to_reduce_pesticides: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/terravyn-and-basf-team-up-in-xarvio-field-manager-to-reduce-pesticides/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_terravyn_and_basf_team_up_in_xarvio_field_manager_to_reduce_pesticides: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/terravyn-and-basf-team-up-in-xarvio-field-manager-to-reduce-pesticides/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_terravyn_and_basf_team_up_in_xarvio_field_manager_to_reduce_pesticides: h6 "A look at Nutriva\'s FIELD MANA"', async ({ page }) => { await page.goto('/blog/terravyn-and-basf-team-up-in-xarvio-field-manager-to-reduce-pesticides/'); const texts = (await page.locator('h6').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'A look at Nutriva\'s FIELD MANAGER web app.' || t.startsWith('A look at Nutriva\'s FIELD MANAGER web app.'))).toBeTruthy(); }); test('blog_terravyn_and_basf_team_up_in_xarvio_field_manager_to_reduce_pesticides: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/terravyn-and-basf-team-up-in-xarvio-field-manager-to-reduce-pesticides/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_terravyn_and_basf_team_up_in_xarvio_field_manager_to_reduce_pesticides: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/terravyn-and-basf-team-up-in-xarvio-field-manager-to-reduce-pesticides/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_terravyn_and_basf_team_up_in_xarvio_field_manager_to_reduce_pesticides: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/terravyn-and-basf-team-up-in-xarvio-field-manager-to-reduce-pesticides/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_terravyn_and_basf_team_up_in_xarvio_field_manager_to_reduce_pesticides: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/terravyn-and-basf-team-up-in-xarvio-field-manager-to-reduce-pesticides/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_terravyn_at_muller_ranch', () => { test('blog_terravyn_at_muller_ranch: title matches GT', async ({ page }) => { await page.goto('/blog/terravyn-at-muller-ranch/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('terravyn at halston ranch'); }); test('blog_terravyn_at_muller_ranch: h1 "Terravyn at Halston Ranch: wor"', async ({ page }) => { await page.goto('/blog/terravyn-at-muller-ranch/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn at Halston Ranch: working with the USDA on irrigation management' || t.startsWith('Terravyn at Halston Ranch: working with the USDA on irrigation management'))).toBeTruthy(); }); test('blog_terravyn_at_muller_ranch: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/terravyn-at-muller-ranch/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_terravyn_at_muller_ranch: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/terravyn-at-muller-ranch/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_terravyn_at_muller_ranch: h6 "Product Team led by Priya Anan"', async ({ page }) => { await page.goto('/blog/terravyn-at-muller-ranch/'); const texts = (await page.locator('h6').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Product Team led by Priya Anand at Terravyn Labs thinking through UX.' || t.startsWith('Product Team led by Priya Anand at Terravyn Labs thinking through UX.'))).toBeTruthy(); }); test('blog_terravyn_at_muller_ranch: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/terravyn-at-muller-ranch/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_terravyn_at_muller_ranch: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/terravyn-at-muller-ranch/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_terravyn_at_muller_ranch: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/terravyn-at-muller-ranch/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_terravyn_at_muller_ranch: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/terravyn-at-muller-ranch/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_terravyn_founder_adam_wolf_talks_iot_on_the_farm', () => { test('blog_terravyn_founder_adam_wolf_talks_iot_on_the_farm: title matches GT', async ({ page }) => { await page.goto('/blog/terravyn-founder-adam-wolf-talks-iot-on-the-farm/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('terravyn founder elias renn talks iot on'); }); test('blog_terravyn_founder_adam_wolf_talks_iot_on_the_farm: h1 "Terravyn Founder Elias Renn Ta"', async ({ page }) => { await page.goto('/blog/terravyn-founder-adam-wolf-talks-iot-on-the-farm/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Founder Elias Renn Talks IoT on the Farm' || t.startsWith('Terravyn Founder Elias Renn Talks IoT on the Farm'))).toBeTruthy(); }); test('blog_terravyn_founder_adam_wolf_talks_iot_on_the_farm: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/terravyn-founder-adam-wolf-talks-iot-on-the-farm/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_terravyn_founder_adam_wolf_talks_iot_on_the_farm: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/terravyn-founder-adam-wolf-talks-iot-on-the-farm/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_terravyn_founder_adam_wolf_talks_iot_on_the_farm: h6 "Terravyn Founder and Chief Sci"', async ({ page }) => { await page.goto('/blog/terravyn-founder-adam-wolf-talks-iot-on-the-farm/'); const texts = (await page.locator('h6').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Founder and Chief Scientist Elias Renn.' || t.startsWith('Terravyn Founder and Chief Scientist Elias Renn.'))).toBeTruthy(); }); test('blog_terravyn_founder_adam_wolf_talks_iot_on_the_farm: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/terravyn-founder-adam-wolf-talks-iot-on-the-farm/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_terravyn_founder_adam_wolf_talks_iot_on_the_farm: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/terravyn-founder-adam-wolf-talks-iot-on-the-farm/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_terravyn_founder_adam_wolf_talks_iot_on_the_farm: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/terravyn-founder-adam-wolf-talks-iot-on-the-farm/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_terravyn_founder_adam_wolf_talks_iot_on_the_farm: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/terravyn-founder-adam-wolf-talks-iot-on-the-farm/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_terravyn_in_zambia', () => { test('blog_terravyn_in_zambia: title matches GT', async ({ page }) => { await page.goto('/blog/terravyn-in-zambia/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('terravyn in zambia'); }); test('blog_terravyn_in_zambia: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/terravyn-in-zambia/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_terravyn_in_zambia: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/terravyn-in-zambia/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_terravyn_in_zambia: h6 "The team in Zambia deploying T"', async ({ page }) => { await page.goto('/blog/terravyn-in-zambia/'); const texts = (await page.locator('h6').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The team in Zambia deploying Terravyn\'s Fieldpod devices ahead of the maize seasons, which report ba' || t.startsWith('The team in Zambia deploying Terravyn\'s Fieldpod devices ahead of the maize seasons, which report ba'))).toBeTruthy(); }); test('blog_terravyn_in_zambia: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/terravyn-in-zambia/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_terravyn_in_zambia: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/terravyn-in-zambia/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_terravyn_in_zambia: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/terravyn-in-zambia/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_terravyn_in_zambia: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/terravyn-in-zambia/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_terravyn_is_named_a_finalist_for_verizon_climate_resilience_prize', () => { test('blog_terravyn_is_named_a_finalist_for_verizon_climate_resilience_prize: title matches GT', async ({ page }) => { await page.goto('/blog/terravyn-is-named-a-finalist-for-verizon-climate-resilience-prize/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('terravyn is named a finalist for nexawav'); }); test('blog_terravyn_is_named_a_finalist_for_verizon_climate_resilience_prize: h1 "Terravyn is Named a Finalist f"', async ({ page }) => { await page.goto('/blog/terravyn-is-named-a-finalist-for-verizon-climate-resilience-prize/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn is Named a Finalist for Nexawave Climate Resilience Prize' || t.startsWith('Terravyn is Named a Finalist for Nexawave Climate Resilience Prize'))).toBeTruthy(); }); test('blog_terravyn_is_named_a_finalist_for_verizon_climate_resilience_prize: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/terravyn-is-named-a-finalist-for-verizon-climate-resilience-prize/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_terravyn_is_named_a_finalist_for_verizon_climate_resilience_prize: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/terravyn-is-named-a-finalist-for-verizon-climate-resilience-prize/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_terravyn_is_named_a_finalist_for_verizon_climate_resilience_prize: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/terravyn-is-named-a-finalist-for-verizon-climate-resilience-prize/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_terravyn_is_named_a_finalist_for_verizon_climate_resilience_prize: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/terravyn-is-named-a-finalist-for-verizon-climate-resilience-prize/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_terravyn_is_named_a_finalist_for_verizon_climate_resilience_prize: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/terravyn-is-named-a-finalist-for-verizon-climate-resilience-prize/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_terravyn_is_named_a_finalist_for_verizon_climate_resilience_prize: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/terravyn-is-named-a-finalist-for-verizon-climate-resilience-prize/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_terravyn_raises_20m_to_digitize_agriculture_and_optimize_the_food_system_2', () => { test('blog_terravyn_raises_20m_to_digitize_agriculture_and_optimize_the_food_system_2: title matches GT', async ({ page }) => { await page.goto('/blog/terravyn-raises-20m-to-digitize-agriculture-and-optimize-the-food-system-2/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('terravyn secures \$20m to digitize agricu'); }); test('blog_terravyn_raises_20m_to_digitize_agriculture_and_optimize_the_food_system_2: h1 "Terravyn Secures \$20M to Digit"', async ({ page }) => { await page.goto('/blog/terravyn-raises-20m-to-digitize-agriculture-and-optimize-the-food-system-2/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Secures \$20M to Digitize Agriculture and Optimize the Food System' || t.startsWith('Terravyn Secures \$20M to Digitize Agriculture and Optimize the Food System'))).toBeTruthy(); }); test('blog_terravyn_raises_20m_to_digitize_agriculture_and_optimize_the_food_system_2: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/terravyn-raises-20m-to-digitize-agriculture-and-optimize-the-food-system-2/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_terravyn_raises_20m_to_digitize_agriculture_and_optimize_the_food_system_2: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/terravyn-raises-20m-to-digitize-agriculture-and-optimize-the-food-system-2/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_terravyn_raises_20m_to_digitize_agriculture_and_optimize_the_food_system_2: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/terravyn-raises-20m-to-digitize-agriculture-and-optimize-the-food-system-2/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_terravyn_raises_20m_to_digitize_agriculture_and_optimize_the_food_system_2: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/terravyn-raises-20m-to-digitize-agriculture-and-optimize-the-food-system-2/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_terravyn_raises_20m_to_digitize_agriculture_and_optimize_the_food_system_2: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/terravyn-raises-20m-to-digitize-agriculture-and-optimize-the-food-system-2/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_terravyn_raises_20m_to_digitize_agriculture_and_optimize_the_food_system_2: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/terravyn-raises-20m-to-digitize-agriculture-and-optimize-the-food-system-2/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_branding_terravyn', () => { test('blog_branding_terravyn: title matches GT', async ({ page }) => { await page.goto('/blog/branding-terravyn/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('branding terravyn'); }); test('blog_branding_terravyn: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/branding-terravyn/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_branding_terravyn: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/branding-terravyn/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_branding_terravyn: h6 "Some early logo explorations"', async ({ page }) => { await page.goto('/blog/branding-terravyn/'); const texts = (await page.locator('h6').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Some early logo explorations' || t.startsWith('Some early logo explorations'))).toBeTruthy(); }); test('blog_branding_terravyn: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/branding-terravyn/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_branding_terravyn: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/branding-terravyn/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_branding_terravyn: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/branding-terravyn/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_branding_terravyn: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/branding-terravyn/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_branding_for_the_reluctant_capitalist', () => { test('blog_branding_for_the_reluctant_capitalist: title matches GT', async ({ page }) => { await page.goto('/blog/branding-for-the-reluctant-capitalist/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('branding for the reluctant capitalist'); }); test('blog_branding_for_the_reluctant_capitalist: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/branding-for-the-reluctant-capitalist/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_branding_for_the_reluctant_capitalist: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/branding-for-the-reluctant-capitalist/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_branding_for_the_reluctant_capitalist: h6 "The founder alongside his crea"', async ({ page }) => { await page.goto('/blog/branding-for-the-reluctant-capitalist/'); const texts = (await page.locator('h6').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The founder alongside his creation, the first Terravyn sensor' || t.startsWith('The founder alongside his creation, the first Terravyn sensor'))).toBeTruthy(); }); test('blog_branding_for_the_reluctant_capitalist: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/branding-for-the-reluctant-capitalist/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_branding_for_the_reluctant_capitalist: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/branding-for-the-reluctant-capitalist/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_branding_for_the_reluctant_capitalist: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/branding-for-the-reluctant-capitalist/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_branding_for_the_reluctant_capitalist: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/branding-for-the-reluctant-capitalist/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_brazil_needs_better_weather_data_to_feed_the_world', () => { test('blog_brazil_needs_better_weather_data_to_feed_the_world: title matches GT', async ({ page }) => { await page.goto('/blog/brazil-needs-better-weather-data-to-feed-the-world/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('brazil needs better weather data to feed'); }); test('blog_brazil_needs_better_weather_data_to_feed_the_world: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/brazil-needs-better-weather-data-to-feed-the-world/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_brazil_needs_better_weather_data_to_feed_the_world: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/brazil-needs-better-weather-data-to-feed-the-world/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_brazil_needs_better_weather_data_to_feed_the_world: h6 "The Terravyn Mark tracking mic"', async ({ page }) => { await page.goto('/blog/brazil-needs-better-weather-data-to-feed-the-world/'); const texts = (await page.locator('h6').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Terravyn Mark tracking microclimate and plant data in a coffee field in São Paulo province, Braz' || t.startsWith('The Terravyn Mark tracking microclimate and plant data in a coffee field in São Paulo province, Braz'))).toBeTruthy(); }); test('blog_brazil_needs_better_weather_data_to_feed_the_world: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/brazil-needs-better-weather-data-to-feed-the-world/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_brazil_needs_better_weather_data_to_feed_the_world: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/brazil-needs-better-weather-data-to-feed-the-world/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_brazil_needs_better_weather_data_to_feed_the_world: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/brazil-needs-better-weather-data-to-feed-the-world/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_brazil_needs_better_weather_data_to_feed_the_world: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/brazil-needs-better-weather-data-to-feed-the-world/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_cabure_leads_the_way_in_argentina', () => { test('blog_cabure_leads_the_way_in_argentina: title matches GT', async ({ page }) => { await page.goto('/blog/cabure-leads-the-way-in-argentina/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('verdano leads the way in argentina'); }); test('blog_cabure_leads_the_way_in_argentina: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/cabure-leads-the-way-in-argentina/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_cabure_leads_the_way_in_argentina: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/cabure-leads-the-way-in-argentina/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_cabure_leads_the_way_in_argentina: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/cabure-leads-the-way-in-argentina/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_cabure_leads_the_way_in_argentina: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/cabure-leads-the-way-in-argentina/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_cabure_leads_the_way_in_argentina: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/cabure-leads-the-way-in-argentina/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_cabure_leads_the_way_in_argentina: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/cabure-leads-the-way-in-argentina/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_catching_up_with_terravyn', () => { test('blog_catching_up_with_terravyn: title matches GT', async ({ page }) => { await page.goto('/blog/catching-up-with-terravyn/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('catching up with terravyn'); }); test('blog_catching_up_with_terravyn: h1 "Catching Up with Terravyn: Mee"', async ({ page }) => { await page.goto('/blog/catching-up-with-terravyn/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Catching Up with Terravyn: Meet our New Hires, UK AgTech, and FarmPitch!' || t.startsWith('Catching Up with Terravyn: Meet our New Hires, UK AgTech, and FarmPitch!'))).toBeTruthy(); }); test('blog_catching_up_with_terravyn: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/catching-up-with-terravyn/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_catching_up_with_terravyn: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/catching-up-with-terravyn/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_catching_up_with_terravyn: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/catching-up-with-terravyn/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_catching_up_with_terravyn: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/catching-up-with-terravyn/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_catching_up_with_terravyn: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/catching-up-with-terravyn/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_catching_up_with_terravyn: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/catching-up-with-terravyn/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_clos_du_val_optimizes_irrigation_and_boosts_efficiency_with_terravyn', () => { test('blog_clos_du_val_optimizes_irrigation_and_boosts_efficiency_with_terravyn: title matches GT', async ({ page }) => { await page.goto('/blog/clos-du-val-optimizes-irrigation-and-boosts-efficiency-with-terravyn/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vallecrest optimizes irrigation and boos'); }); test('blog_clos_du_val_optimizes_irrigation_and_boosts_efficiency_with_terravyn: h1 "Vallecrest Optimizes Irrigatio"', async ({ page }) => { await page.goto('/blog/clos-du-val-optimizes-irrigation-and-boosts-efficiency-with-terravyn/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vallecrest Optimizes Irrigation and Boosts Efficiency with Terravyn' || t.startsWith('Vallecrest Optimizes Irrigation and Boosts Efficiency with Terravyn'))).toBeTruthy(); }); test('blog_clos_du_val_optimizes_irrigation_and_boosts_efficiency_with_terravyn: h3 "Find Out More"', async ({ page }) => { await page.goto('/blog/clos-du-val-optimizes-irrigation-and-boosts-efficiency-with-terravyn/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Find Out More' || t.startsWith('Find Out More'))).toBeTruthy(); }); test('blog_clos_du_val_optimizes_irrigation_and_boosts_efficiency_with_terravyn: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/clos-du-val-optimizes-irrigation-and-boosts-efficiency-with-terravyn/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_clos_du_val_optimizes_irrigation_and_boosts_efficiency_with_terravyn: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/clos-du-val-optimizes-irrigation-and-boosts-efficiency-with-terravyn/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_clos_du_val_optimizes_irrigation_and_boosts_efficiency_with_terravyn: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/clos-du-val-optimizes-irrigation-and-boosts-efficiency-with-terravyn/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_clos_du_val_optimizes_irrigation_and_boosts_efficiency_with_terravyn: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/clos-du-val-optimizes-irrigation-and-boosts-efficiency-with-terravyn/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_clos_du_val_optimizes_irrigation_and_boosts_efficiency_with_terravyn: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/clos-du-val-optimizes-irrigation-and-boosts-efficiency-with-terravyn/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_clos_du_val_optimizes_irrigation_and_boosts_efficiency_with_terravyn: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/clos-du-val-optimizes-irrigation-and-boosts-efficiency-with-terravyn/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_digital_transformation_in_winemaking_blending_tradition_and_innovation', () => { test('blog_digital_transformation_in_winemaking_blending_tradition_and_innovation: title matches GT', async ({ page }) => { await page.goto('/blog/digital-transformation-in-winemaking-blending-tradition-and-innovation/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('digital transformation in winemaking'); }); test('blog_digital_transformation_in_winemaking_blending_tradition_and_innovation: h1 "Digital Transformation in Wine"', async ({ page }) => { await page.goto('/blog/digital-transformation-in-winemaking-blending-tradition-and-innovation/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Digital Transformation in Winemaking: Blending Tradition and Innovation' || t.startsWith('Digital Transformation in Winemaking: Blending Tradition and Innovation'))).toBeTruthy(); }); test('blog_digital_transformation_in_winemaking_blending_tradition_and_innovation: h3 "Putting AgTech to Work Across "', async ({ page }) => { await page.goto('/blog/digital-transformation-in-winemaking-blending-tradition-and-innovation/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Putting AgTech to Work Across the Vineyard' || t.startsWith('Putting AgTech to Work Across the Vineyard'))).toBeTruthy(); }); test('blog_digital_transformation_in_winemaking_blending_tradition_and_innovation: h3 "Digital Transformation Signals"', async ({ page }) => { await page.goto('/blog/digital-transformation-in-winemaking-blending-tradition-and-innovation/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Digital Transformation Signals a Bright Future' || t.startsWith('Digital Transformation Signals a Bright Future'))).toBeTruthy(); }); test('blog_digital_transformation_in_winemaking_blending_tradition_and_innovation: h3 "Find Out More"', async ({ page }) => { await page.goto('/blog/digital-transformation-in-winemaking-blending-tradition-and-innovation/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Find Out More' || t.startsWith('Find Out More'))).toBeTruthy(); }); test('blog_digital_transformation_in_winemaking_blending_tradition_and_innovation: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/digital-transformation-in-winemaking-blending-tradition-and-innovation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_digital_transformation_in_winemaking_blending_tradition_and_innovation: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/digital-transformation-in-winemaking-blending-tradition-and-innovation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_digital_transformation_in_winemaking_blending_tradition_and_innovation: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/digital-transformation-in-winemaking-blending-tradition-and-innovation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_digital_transformation_in_winemaking_blending_tradition_and_innovation: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/digital-transformation-in-winemaking-blending-tradition-and-innovation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_east_of_eden_and_the_modern_miracle_of_iceberg_lettuce', () => { test('blog_east_of_eden_and_the_modern_miracle_of_iceberg_lettuce: title matches GT', async ({ page }) => { await page.goto('/blog/east-of-eden-and-the-modern-miracle-of-iceberg-lettuce/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('harvest of ash and the modern marvel of '); }); test('blog_east_of_eden_and_the_modern_miracle_of_iceberg_lettuce: h1 "Harvest of Ash and the modern "', async ({ page }) => { await page.goto('/blog/east-of-eden-and-the-modern-miracle-of-iceberg-lettuce/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Harvest of Ash and the modern marvel of iceberg lettuce' || t.startsWith('Harvest of Ash and the modern marvel of iceberg lettuce'))).toBeTruthy(); }); test('blog_east_of_eden_and_the_modern_miracle_of_iceberg_lettuce: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/east-of-eden-and-the-modern-miracle-of-iceberg-lettuce/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_east_of_eden_and_the_modern_miracle_of_iceberg_lettuce: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/east-of-eden-and-the-modern-miracle-of-iceberg-lettuce/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_east_of_eden_and_the_modern_miracle_of_iceberg_lettuce: h6 "Strawberry fields in the coast"', async ({ page }) => { await page.goto('/blog/east-of-eden-and-the-modern-miracle-of-iceberg-lettuce/'); const texts = (await page.locator('h6').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Strawberry fields in the coastal valley.' || t.startsWith('Strawberry fields in the coastal valley.'))).toBeTruthy(); }); test('blog_east_of_eden_and_the_modern_miracle_of_iceberg_lettuce: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/east-of-eden-and-the-modern-miracle-of-iceberg-lettuce/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_east_of_eden_and_the_modern_miracle_of_iceberg_lettuce: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/east-of-eden-and-the-modern-miracle-of-iceberg-lettuce/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_east_of_eden_and_the_modern_miracle_of_iceberg_lettuce: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/east-of-eden-and-the-modern-miracle-of-iceberg-lettuce/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_east_of_eden_and_the_modern_miracle_of_iceberg_lettuce: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/east-of-eden-and-the-modern-miracle-of-iceberg-lettuce/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_four_ways_in_field_crop_monitoring_can_help_determine_the_best_time_to_spray', () => { test('blog_four_ways_in_field_crop_monitoring_can_help_determine_the_best_time_to_spray: title matches GT', async ({ page }) => { await page.goto('/blog/four-ways-in-field-crop-monitoring-can-help-determine-the-best-time-to-spray/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('best time to spray'); }); test('blog_four_ways_in_field_crop_monitoring_can_help_determine_the_best_time_to_spray: h1 "Four Ways In-Field Crop Monito"', async ({ page }) => { await page.goto('/blog/four-ways-in-field-crop-monitoring-can-help-determine-the-best-time-to-spray/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Four Ways In-Field Crop Monitoring Can Help Determine the Best Time to Spray' || t.startsWith('Four Ways In-Field Crop Monitoring Can Help Determine the Best Time to Spray'))).toBeTruthy(); }); test('blog_four_ways_in_field_crop_monitoring_can_help_determine_the_best_time_to_spray: h2 "Spray at the Right Time with T"', async ({ page }) => { await page.goto('/blog/four-ways-in-field-crop-monitoring-can-help-determine-the-best-time-to-spray/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Spray at the Right Time with Terravyn' || t.startsWith('Spray at the Right Time with Terravyn'))).toBeTruthy(); }); test('blog_four_ways_in_field_crop_monitoring_can_help_determine_the_best_time_to_spray: h3 "1. Real-Time Environmental Mon"', async ({ page }) => { await page.goto('/blog/four-ways-in-field-crop-monitoring-can-help-determine-the-best-time-to-spray/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '1. Real-Time Environmental Monitoring' || t.startsWith('1. Real-Time Environmental Monitoring'))).toBeTruthy(); }); test('blog_four_ways_in_field_crop_monitoring_can_help_determine_the_best_time_to_spray: h3 "2. Early Pest Detections and P"', async ({ page }) => { await page.goto('/blog/four-ways-in-field-crop-monitoring-can-help-determine-the-best-time-to-spray/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '2. Early Pest Detections and Population Monitoring' || t.startsWith('2. Early Pest Detections and Population Monitoring'))).toBeTruthy(); }); test('blog_four_ways_in_field_crop_monitoring_can_help_determine_the_best_time_to_spray: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/four-ways-in-field-crop-monitoring-can-help-determine-the-best-time-to-spray/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_four_ways_in_field_crop_monitoring_can_help_determine_the_best_time_to_spray: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/four-ways-in-field-crop-monitoring-can-help-determine-the-best-time-to-spray/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_four_ways_in_field_crop_monitoring_can_help_determine_the_best_time_to_spray: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/four-ways-in-field-crop-monitoring-can-help-determine-the-best-time-to-spray/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_four_ways_in_field_crop_monitoring_can_help_determine_the_best_time_to_spray: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/four-ways-in-field-crop-monitoring-can-help-determine-the-best-time-to-spray/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_from_leaf_to_globe_and_back', () => { test('blog_from_leaf_to_globe_and_back: title matches GT', async ({ page }) => { await page.goto('/blog/from-leaf-to-globe-and-back/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('from leaf to globe and back'); }); test('blog_from_leaf_to_globe_and_back: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/from-leaf-to-globe-and-back/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_from_leaf_to_globe_and_back: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/from-leaf-to-globe-and-back/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_from_leaf_to_globe_and_back: h6 "Good morning from aboard the o"', async ({ page }) => { await page.goto('/blog/from-leaf-to-globe-and-back/'); const texts = (await page.locator('h6').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Good morning from aboard the orbital space station' || t.startsWith('Good morning from aboard the orbital space station'))).toBeTruthy(); }); test('blog_from_leaf_to_globe_and_back: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/from-leaf-to-globe-and-back/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_from_leaf_to_globe_and_back: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/from-leaf-to-globe-and-back/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_from_leaf_to_globe_and_back: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/from-leaf-to-globe-and-back/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_from_leaf_to_globe_and_back: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/from-leaf-to-globe-and-back/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_get_to_know_location_deep_dive_with_terravyns_advanced_analytics_en', () => { test('blog_get_to_know_location_deep_dive_with_terravyns_advanced_analytics_en: title matches GT', async ({ page }) => { await page.goto('/blog/get-to-know-location-deep-dive-with-terravyns-advanced-analytics-en/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('get to know'); }); test('blog_get_to_know_location_deep_dive_with_terravyns_advanced_analytics_en: h1 "Get to Know: Location Deep Div"', async ({ page }) => { await page.goto('/blog/get-to-know-location-deep-dive-with-terravyns-advanced-analytics-en/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Get to Know: Location Deep Dive with Terravyn’s Advanced Analytics' || t.startsWith('Get to Know: Location Deep Dive with Terravyn’s Advanced Analytics'))).toBeTruthy(); }); test('blog_get_to_know_location_deep_dive_with_terravyns_advanced_analytics_en: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/get-to-know-location-deep-dive-with-terravyns-advanced-analytics-en/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_get_to_know_location_deep_dive_with_terravyns_advanced_analytics_en: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/get-to-know-location-deep-dive-with-terravyns-advanced-analytics-en/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_get_to_know_location_deep_dive_with_terravyns_advanced_analytics_en: h6 "Daily temperature swing shown "', async ({ page }) => { await page.goto('/blog/get-to-know-location-deep-dive-with-terravyns-advanced-analytics-en/'); const texts = (await page.locator('h6').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Daily temperature swing shown on the Weather tab.' || t.startsWith('Daily temperature swing shown on the Weather tab.'))).toBeTruthy(); }); test('blog_get_to_know_location_deep_dive_with_terravyns_advanced_analytics_en: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/get-to-know-location-deep-dive-with-terravyns-advanced-analytics-en/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_get_to_know_location_deep_dive_with_terravyns_advanced_analytics_en: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/get-to-know-location-deep-dive-with-terravyns-advanced-analytics-en/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_get_to_know_location_deep_dive_with_terravyns_advanced_analytics_en: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/get-to-know-location-deep-dive-with-terravyns-advanced-analytics-en/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_get_to_know_location_deep_dive_with_terravyns_advanced_analytics_en: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/get-to-know-location-deep-dive-with-terravyns-advanced-analytics-en/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_how_agtech_is_advancing_water_sustainability_globally', () => { test('blog_how_agtech_is_advancing_water_sustainability_globally: title matches GT', async ({ page }) => { await page.goto('/blog/how-agtech-is-advancing-water-sustainability-globally/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how agtech is advancing water sustainabi'); }); test('blog_how_agtech_is_advancing_water_sustainability_globally: h1 "How AgTech Is Advancing Water "', async ({ page }) => { await page.goto('/blog/how-agtech-is-advancing-water-sustainability-globally/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How AgTech Is Advancing Water Sustainability Worldwide' || t.startsWith('How AgTech Is Advancing Water Sustainability Worldwide'))).toBeTruthy(); }); test('blog_how_agtech_is_advancing_water_sustainability_globally: h3 "A Solution Built Where Agronom"', async ({ page }) => { await page.goto('/blog/how-agtech-is-advancing-water-sustainability-globally/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'A Solution Built Where Agronomy and Modern Technology Meet' || t.startsWith('A Solution Built Where Agronomy and Modern Technology Meet'))).toBeTruthy(); }); test('blog_how_agtech_is_advancing_water_sustainability_globally: h3 "Midwest Grower Unlocks Major W"', async ({ page }) => { await page.goto('/blog/how-agtech-is-advancing-water-sustainability-globally/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Midwest Grower Unlocks Major Water Savings Through Small Irrigation Tweaks' || t.startsWith('Midwest Grower Unlocks Major Water Savings Through Small Irrigation Tweaks'))).toBeTruthy(); }); test('blog_how_agtech_is_advancing_water_sustainability_globally: h3 "California Winegrowers Embrace"', async ({ page }) => { await page.goto('/blog/how-agtech-is-advancing-water-sustainability-globally/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'California Winegrowers Embrace Tech to Safeguard Scarce Water Supplies' || t.startsWith('California Winegrowers Embrace Tech to Safeguard Scarce Water Supplies'))).toBeTruthy(); }); test('blog_how_agtech_is_advancing_water_sustainability_globally: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/how-agtech-is-advancing-water-sustainability-globally/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_how_agtech_is_advancing_water_sustainability_globally: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/how-agtech-is-advancing-water-sustainability-globally/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_how_agtech_is_advancing_water_sustainability_globally: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/how-agtech-is-advancing-water-sustainability-globally/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_how_agtech_is_advancing_water_sustainability_globally: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/how-agtech-is-advancing-water-sustainability-globally/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_how_data_and_technology_can_help_produce_the_next_blockbuster_hop', () => { test('blog_how_data_and_technology_can_help_produce_the_next_blockbuster_hop: title matches GT', async ({ page }) => { await page.goto('/blog/how-data-and-technology-can-help-produce-the-next-blockbuster-hop/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how data and technology can help cultiva'); }); test('blog_how_data_and_technology_can_help_produce_the_next_blockbuster_hop: h1 "How Data and Technology Can He"', async ({ page }) => { await page.goto('/blog/how-data-and-technology-can-help-produce-the-next-blockbuster-hop/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How Data and Technology Can Help Cultivate the Next Blockbuster Hop' || t.startsWith('How Data and Technology Can Help Cultivate the Next Blockbuster Hop'))).toBeTruthy(); }); test('blog_how_data_and_technology_can_help_produce_the_next_blockbuster_hop: h2 "Terravyn Labs sat down with ho"', async ({ page }) => { await page.goto('/blog/how-data-and-technology-can-help-produce-the-next-blockbuster-hop/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Labs sat down with hops producer Grant Whitlow, owner of Hollowbrook Ranches in Yakima, WA,' || t.startsWith('Terravyn Labs sat down with hops producer Grant Whitlow, owner of Hollowbrook Ranches in Yakima, WA,'))).toBeTruthy(); }); test('blog_how_data_and_technology_can_help_produce_the_next_blockbuster_hop: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/how-data-and-technology-can-help-produce-the-next-blockbuster-hop/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_how_data_and_technology_can_help_produce_the_next_blockbuster_hop: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/how-data-and-technology-can-help-produce-the-next-blockbuster-hop/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_how_data_and_technology_can_help_produce_the_next_blockbuster_hop: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/how-data-and-technology-can-help-produce-the-next-blockbuster-hop/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_how_data_and_technology_can_help_produce_the_next_blockbuster_hop: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/how-data-and-technology-can-help-produce-the-next-blockbuster-hop/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_how_data_and_technology_can_help_produce_the_next_blockbuster_hop: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/how-data-and-technology-can-help-produce-the-next-blockbuster-hop/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_how_data_and_technology_can_help_produce_the_next_blockbuster_hop: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/how-data-and-technology-can-help-produce-the-next-blockbuster-hop/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_how_to_feed_a_continent_with_less_water_and_more_data', () => { test('blog_how_to_feed_a_continent_with_less_water_and_more_data: title matches GT', async ({ page }) => { await page.goto('/blog/how-to-feed-a-continent-with-less-water-and-more-data/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how to feed a continent on less water an'); }); test('blog_how_to_feed_a_continent_with_less_water_and_more_data: h1 "How to Feed a Continent on Les"', async ({ page }) => { await page.goto('/blog/how-to-feed-a-continent-with-less-water-and-more-data/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to Feed a Continent on Less Water and More Data' || t.startsWith('How to Feed a Continent on Less Water and More Data'))).toBeTruthy(); }); test('blog_how_to_feed_a_continent_with_less_water_and_more_data: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/how-to-feed-a-continent-with-less-water-and-more-data/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_how_to_feed_a_continent_with_less_water_and_more_data: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/how-to-feed-a-continent-with-less-water-and-more-data/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_how_to_feed_a_continent_with_less_water_and_more_data: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/how-to-feed-a-continent-with-less-water-and-more-data/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_how_to_feed_a_continent_with_less_water_and_more_data: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/how-to-feed-a-continent-with-less-water-and-more-data/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_how_to_feed_a_continent_with_less_water_and_more_data: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/how-to-feed-a-continent-with-less-water-and-more-data/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_how_to_feed_a_continent_with_less_water_and_more_data: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/how-to-feed-a-continent-with-less-water-and-more-data/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_i_drink_your_milkshake_what_daniel_day_lewis_and_plant_roots_have_in_common', () => { test('blog_i_drink_your_milkshake_what_daniel_day_lewis_and_plant_roots_have_in_common: title matches GT', async ({ page }) => { await page.goto('/blog/i-drink-your-milkshake-what-daniel-day-lewis-and-plant-roots-have-in-common/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('racing to the well'); }); test('blog_i_drink_your_milkshake_what_daniel_day_lewis_and_plant_roots_have_in_common: h1 "Racing to the Well: What Compe"', async ({ page }) => { await page.goto('/blog/i-drink-your-milkshake-what-daniel-day-lewis-and-plant-roots-have-in-common/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Racing to the Well: What Competitive Pumping and Plant Roots Have in Common' || t.startsWith('Racing to the Well: What Competitive Pumping and Plant Roots Have in Common'))).toBeTruthy(); }); test('blog_i_drink_your_milkshake_what_daniel_day_lewis_and_plant_roots_have_in_common: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/i-drink-your-milkshake-what-daniel-day-lewis-and-plant-roots-have-in-common/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_i_drink_your_milkshake_what_daniel_day_lewis_and_plant_roots_have_in_common: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/i-drink-your-milkshake-what-daniel-day-lewis-and-plant-roots-have-in-common/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_i_drink_your_milkshake_what_daniel_day_lewis_and_plant_roots_have_in_common: h6 "Terravyn\'s TerraPod deployed o"', async ({ page }) => { await page.goto('/blog/i-drink-your-milkshake-what-daniel-day-lewis-and-plant-roots-have-in-common/'); const texts = (await page.locator('h6').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn\'s TerraPod deployed out in a coastal vineyard.' || t.startsWith('Terravyn\'s TerraPod deployed out in a coastal vineyard.'))).toBeTruthy(); }); test('blog_i_drink_your_milkshake_what_daniel_day_lewis_and_plant_roots_have_in_common: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/i-drink-your-milkshake-what-daniel-day-lewis-and-plant-roots-have-in-common/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_i_drink_your_milkshake_what_daniel_day_lewis_and_plant_roots_have_in_common: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/i-drink-your-milkshake-what-daniel-day-lewis-and-plant-roots-have-in-common/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_i_drink_your_milkshake_what_daniel_day_lewis_and_plant_roots_have_in_common: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/i-drink-your-milkshake-what-daniel-day-lewis-and-plant-roots-have-in-common/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_i_drink_your_milkshake_what_daniel_day_lewis_and_plant_roots_have_in_common: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/i-drink-your-milkshake-what-daniel-day-lewis-and-plant-roots-have-in-common/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_introducing_terravyn', () => { test('blog_introducing_terravyn: title matches GT', async ({ page }) => { await page.goto('/blog/introducing-terravyn/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('introducing terravyn'); }); test('blog_introducing_terravyn: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/introducing-terravyn/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_introducing_terravyn: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/introducing-terravyn/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_introducing_terravyn: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/introducing-terravyn/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_introducing_terravyn: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/introducing-terravyn/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_introducing_terravyn: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/introducing-terravyn/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_introducing_terravyn: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/introducing-terravyn/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_introducing_jim_ethington', () => { test('blog_introducing_jim_ethington: title matches GT', async ({ page }) => { await page.goto('/blog/introducing-jim-ethington/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('introducing terravyn’s new ceo, marcus h'); }); test('blog_introducing_jim_ethington: h1 "Introducing Terravyn’s New CEO"', async ({ page }) => { await page.goto('/blog/introducing-jim-ethington/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Introducing Terravyn’s New CEO, Marcus Halloway' || t.startsWith('Introducing Terravyn’s New CEO, Marcus Halloway'))).toBeTruthy(); }); test('blog_introducing_jim_ethington: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/introducing-jim-ethington/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_introducing_jim_ethington: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/introducing-jim-ethington/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_introducing_jim_ethington: h6 "Marcus Halloway’s visit to Sto"', async ({ page }) => { await page.goto('/blog/introducing-jim-ethington/'); const texts = (await page.locator('h6').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Marcus Halloway’s visit to Stonecrest Vineyard.' || t.startsWith('Marcus Halloway’s visit to Stonecrest Vineyard.'))).toBeTruthy(); }); test('blog_introducing_jim_ethington: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/introducing-jim-ethington/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_introducing_jim_ethington: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/introducing-jim-ethington/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_introducing_jim_ethington: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/introducing-jim-ethington/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_introducing_jim_ethington: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/introducing-jim-ethington/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_la_nina_agriculture_4_0_and_irrigation_as_risk_mitigation', () => { test('blog_la_nina_agriculture_4_0_and_irrigation_as_risk_mitigation: title matches GT', async ({ page }) => { await page.goto('/blog/la-nina-agriculture-4-0-and-irrigation-as-risk-mitigation/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('la niña, agriculture 4.0, and irrigation'); }); test('blog_la_nina_agriculture_4_0_and_irrigation_as_risk_mitigation: h1 "La Niña, Agriculture 4.0, and "', async ({ page }) => { await page.goto('/blog/la-nina-agriculture-4-0-and-irrigation-as-risk-mitigation/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'La Niña, Agriculture 4.0, and Irrigation as a Risk Buffer' || t.startsWith('La Niña, Agriculture 4.0, and Irrigation as a Risk Buffer'))).toBeTruthy(); }); test('blog_la_nina_agriculture_4_0_and_irrigation_as_risk_mitigation: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/la-nina-agriculture-4-0-and-irrigation-as-risk-mitigation/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_la_nina_agriculture_4_0_and_irrigation_as_risk_mitigation: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/la-nina-agriculture-4-0-and-irrigation-as-risk-mitigation/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_la_nina_agriculture_4_0_and_irrigation_as_risk_mitigation: h5 "Terravyn device installation a"', async ({ page }) => { await page.goto('/blog/la-nina-agriculture-4-0-and-irrigation-as-risk-mitigation/'); const texts = (await page.locator('h5').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn device installation and configuration at URMA/Agronova Cerrados, Brazil. URMA = Unidade de' || t.startsWith('Terravyn device installation and configuration at URMA/Agronova Cerrados, Brazil. URMA = Unidade de'))).toBeTruthy(); }); test('blog_la_nina_agriculture_4_0_and_irrigation_as_risk_mitigation: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/la-nina-agriculture-4-0-and-irrigation-as-risk-mitigation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_la_nina_agriculture_4_0_and_irrigation_as_risk_mitigation: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/la-nina-agriculture-4-0-and-irrigation-as-risk-mitigation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_la_nina_agriculture_4_0_and_irrigation_as_risk_mitigation: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/la-nina-agriculture-4-0-and-irrigation-as-risk-mitigation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_la_nina_agriculture_4_0_and_irrigation_as_risk_mitigation: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/la-nina-agriculture-4-0-and-irrigation-as-risk-mitigation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_long_foretold_long_last_actionable_data_enables_better_phenotyping', () => { test('blog_long_foretold_long_last_actionable_data_enables_better_phenotyping: title matches GT', async ({ page }) => { await page.goto('/blog/long-foretold-long-last-actionable-data-enables-better-phenotyping/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('long awaited at last'); }); test('blog_long_foretold_long_last_actionable_data_enables_better_phenotyping: h1 "Long Awaited at Last: Actionab"', async ({ page }) => { await page.goto('/blog/long-foretold-long-last-actionable-data-enables-better-phenotyping/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Long Awaited at Last: Actionable Data Powers Sharper Phenotyping' || t.startsWith('Long Awaited at Last: Actionable Data Powers Sharper Phenotyping'))).toBeTruthy(); }); test('blog_long_foretold_long_last_actionable_data_enables_better_phenotyping: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/long-foretold-long-last-actionable-data-enables-better-phenotyping/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_long_foretold_long_last_actionable_data_enables_better_phenotyping: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/long-foretold-long-last-actionable-data-enables-better-phenotyping/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_long_foretold_long_last_actionable_data_enables_better_phenotyping: h6 "The Terravyn Mark 2 in one sim"', async ({ page }) => { await page.goto('/blog/long-foretold-long-last-actionable-data-enables-better-phenotyping/'); const texts = (await page.locator('h6').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Terravyn Mark 2 in one simple setup.' || t.startsWith('The Terravyn Mark 2 in one simple setup.'))).toBeTruthy(); }); test('blog_long_foretold_long_last_actionable_data_enables_better_phenotyping: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/long-foretold-long-last-actionable-data-enables-better-phenotyping/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_long_foretold_long_last_actionable_data_enables_better_phenotyping: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/long-foretold-long-last-actionable-data-enables-better-phenotyping/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_long_foretold_long_last_actionable_data_enables_better_phenotyping: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/long-foretold-long-last-actionable-data-enables-better-phenotyping/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_long_foretold_long_last_actionable_data_enables_better_phenotyping: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/long-foretold-long-last-actionable-data-enables-better-phenotyping/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_long_foretold_long_last_understanding_the_effects_of_climate_on_seed_trials', () => { test('blog_long_foretold_long_last_understanding_the_effects_of_climate_on_seed_trials: title matches GT', async ({ page }) => { await page.goto('/blog/long-foretold-long-last-understanding-the-effects-of-climate-on-seed-trials/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('reading the field'); }); test('blog_long_foretold_long_last_understanding_the_effects_of_climate_on_seed_trials: h1 "Reading the Field: How Climate"', async ({ page }) => { await page.goto('/blog/long-foretold-long-last-understanding-the-effects-of-climate-on-seed-trials/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reading the Field: How Climate Conditions Shape the Outcome of Seed Trials' || t.startsWith('Reading the Field: How Climate Conditions Shape the Outcome of Seed Trials'))).toBeTruthy(); }); test('blog_long_foretold_long_last_understanding_the_effects_of_climate_on_seed_trials: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/long-foretold-long-last-understanding-the-effects-of-climate-on-seed-trials/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_long_foretold_long_last_understanding_the_effects_of_climate_on_seed_trials: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/long-foretold-long-last-understanding-the-effects-of-climate-on-seed-trials/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_long_foretold_long_last_understanding_the_effects_of_climate_on_seed_trials: h6 "Heading out to the field with "', async ({ page }) => { await page.goto('/blog/long-foretold-long-last-understanding-the-effects-of-climate-on-seed-trials/'); const texts = (await page.locator('h6').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Heading out to the field with the Terravyn Pulse 2.' || t.startsWith('Heading out to the field with the Terravyn Pulse 2.'))).toBeTruthy(); }); test('blog_long_foretold_long_last_understanding_the_effects_of_climate_on_seed_trials: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/long-foretold-long-last-understanding-the-effects-of-climate-on-seed-trials/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_long_foretold_long_last_understanding_the_effects_of_climate_on_seed_trials: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/long-foretold-long-last-understanding-the-effects-of-climate-on-seed-trials/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_long_foretold_long_last_understanding_the_effects_of_climate_on_seed_trials: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/long-foretold-long-last-understanding-the-effects-of-climate-on-seed-trials/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_long_foretold_long_last_understanding_the_effects_of_climate_on_seed_trials: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/long-foretold-long-last-understanding-the-effects-of-climate-on-seed-trials/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_lowering_the_cost_curve_for_organic_transition', () => { test('blog_lowering_the_cost_curve_for_organic_transition: title matches GT', async ({ page }) => { await page.goto('/blog/lowering-the-cost-curve-for-organic-transition/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('bringing down the cost of organic transi'); }); test('blog_lowering_the_cost_curve_for_organic_transition: h1 "Bringing Down the Cost of Orga"', async ({ page }) => { await page.goto('/blog/lowering-the-cost-curve-for-organic-transition/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Bringing Down the Cost of Organic Transition' || t.startsWith('Bringing Down the Cost of Organic Transition'))).toBeTruthy(); }); test('blog_lowering_the_cost_curve_for_organic_transition: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/lowering-the-cost-curve-for-organic-transition/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_lowering_the_cost_curve_for_organic_transition: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/lowering-the-cost-curve-for-organic-transition/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_lowering_the_cost_curve_for_organic_transition: h6 "Rising demand for organic food"', async ({ page }) => { await page.goto('/blog/lowering-the-cost-curve-for-organic-transition/'); const texts = (await page.locator('h6').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Rising demand for organic food by category, credit: AgraStat' || t.startsWith('Rising demand for organic food by category, credit: AgraStat'))).toBeTruthy(); }); test('blog_lowering_the_cost_curve_for_organic_transition: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/lowering-the-cost-curve-for-organic-transition/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_lowering_the_cost_curve_for_organic_transition: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/lowering-the-cost-curve-for-organic-transition/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_lowering_the_cost_curve_for_organic_transition: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/lowering-the-cost-curve-for-organic-transition/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_lowering_the_cost_curve_for_organic_transition: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/lowering-the-cost-curve-for-organic-transition/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_measuring_evapotranspiration_crop_coefficient_a_complete_guide', () => { test('blog_measuring_evapotranspiration_crop_coefficient_a_complete_guide: title matches GT', async ({ page }) => { await page.goto('/blog/measuring-evapotranspiration-crop-coefficient-a-complete-guide/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how to measure evapotranspiration & crop'); }); test('blog_measuring_evapotranspiration_crop_coefficient_a_complete_guide: h1 "Measuring Evapotranspiration &"', async ({ page }) => { await page.goto('/blog/measuring-evapotranspiration-crop-coefficient-a-complete-guide/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Measuring Evapotranspiration & Crop Coefficient in the Field' || t.startsWith('Measuring Evapotranspiration & Crop Coefficient in the Field'))).toBeTruthy(); }); test('blog_measuring_evapotranspiration_crop_coefficient_a_complete_guide: h3 "What Is Evapotranspiration?"', async ({ page }) => { await page.goto('/blog/measuring-evapotranspiration-crop-coefficient-a-complete-guide/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'What Is Evapotranspiration?' || t.startsWith('What Is Evapotranspiration?'))).toBeTruthy(); }); test('blog_measuring_evapotranspiration_crop_coefficient_a_complete_guide: h3 "Why Measure Evapotranspiration"', async ({ page }) => { await page.goto('/blog/measuring-evapotranspiration-crop-coefficient-a-complete-guide/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Why Measure Evapotranspiration at All?' || t.startsWith('Why Measure Evapotranspiration at All?'))).toBeTruthy(); }); test('blog_measuring_evapotranspiration_crop_coefficient_a_complete_guide: h3 "Capturing Evapotranspiration"', async ({ page }) => { await page.goto('/blog/measuring-evapotranspiration-crop-coefficient-a-complete-guide/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Capturing Evapotranspiration' || t.startsWith('Capturing Evapotranspiration'))).toBeTruthy(); }); test('blog_measuring_evapotranspiration_crop_coefficient_a_complete_guide: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/measuring-evapotranspiration-crop-coefficient-a-complete-guide/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_measuring_evapotranspiration_crop_coefficient_a_complete_guide: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/measuring-evapotranspiration-crop-coefficient-a-complete-guide/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_measuring_evapotranspiration_crop_coefficient_a_complete_guide: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/measuring-evapotranspiration-crop-coefficient-a-complete-guide/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_measuring_evapotranspiration_crop_coefficient_a_complete_guide: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/measuring-evapotranspiration-crop-coefficient-a-complete-guide/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_missing_the_trees_for_the_forest', () => { test('blog_missing_the_trees_for_the_forest: title matches GT', async ({ page }) => { await page.goto('/blog/missing-the-trees-for-the-forest/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('seeing past the satellite view'); }); test('blog_missing_the_trees_for_the_forest: h1 "Seeing Past the Satellite View"', async ({ page }) => { await page.goto('/blog/missing-the-trees-for-the-forest/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Seeing Past the Satellite View' || t.startsWith('Seeing Past the Satellite View'))).toBeTruthy(); }); test('blog_missing_the_trees_for_the_forest: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/missing-the-trees-for-the-forest/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_missing_the_trees_for_the_forest: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/missing-the-trees-for-the-forest/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_missing_the_trees_for_the_forest: h6 "Terravyn’s Fieldpod is an inte"', async ({ page }) => { await page.goto('/blog/missing-the-trees-for-the-forest/'); const texts = (await page.locator('h6').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn’s Fieldpod is an integrated solution for data-driven land management that can lower a growe' || t.startsWith('Terravyn’s Fieldpod is an integrated solution for data-driven land management that can lower a growe'))).toBeTruthy(); }); test('blog_missing_the_trees_for_the_forest: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/missing-the-trees-for-the-forest/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_missing_the_trees_for_the_forest: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/missing-the-trees-for-the-forest/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_missing_the_trees_for_the_forest: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/missing-the-trees-for-the-forest/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_missing_the_trees_for_the_forest: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/missing-the-trees-for-the-forest/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_netafim_terravyn_how_high_quality_data_enables_precision_irrigation_easily_affordably_and_globally', () => { test('blog_netafim_terravyn_how_high_quality_data_enables_precision_irrigation_easily_affordably_and_globally: title matches GT', async ({ page }) => { await page.goto('/blog/netafim-terravyn-how-high-quality-data-enables-precision-irrigation-easily-affordably-and-globally/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('aquavia & terravyn'); }); test('blog_netafim_terravyn_how_high_quality_data_enables_precision_irrigation_easily_affordably_and_globally: h1 "Aquavia & Terravyn: How high-q"', async ({ page }) => { await page.goto('/blog/netafim-terravyn-how-high-quality-data-enables-precision-irrigation-easily-affordably-and-globally/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Aquavia & Terravyn: How high-quality data enables precision irrigation easily, affordably, and globa' || t.startsWith('Aquavia & Terravyn: How high-quality data enables precision irrigation easily, affordably, and globa'))).toBeTruthy(); }); test('blog_netafim_terravyn_how_high_quality_data_enables_precision_irrigation_easily_affordably_and_globally: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/netafim-terravyn-how-high-quality-data-enables-precision-irrigation-easily-affordably-and-globally/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_netafim_terravyn_how_high_quality_data_enables_precision_irrigation_easily_affordably_and_globally: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/netafim-terravyn-how-high-quality-data-enables-precision-irrigation-easily-affordably-and-globally/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_netafim_terravyn_how_high_quality_data_enables_precision_irrigation_easily_affordably_and_globally: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/netafim-terravyn-how-high-quality-data-enables-precision-irrigation-easily-affordably-and-globally/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_netafim_terravyn_how_high_quality_data_enables_precision_irrigation_easily_affordably_and_globally: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/netafim-terravyn-how-high-quality-data-enables-precision-irrigation-easily-affordably-and-globally/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_netafim_terravyn_how_high_quality_data_enables_precision_irrigation_easily_affordably_and_globally: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/netafim-terravyn-how-high-quality-data-enables-precision-irrigation-easily-affordably-and-globally/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_netafim_terravyn_how_high_quality_data_enables_precision_irrigation_easily_affordably_and_globally: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/netafim-terravyn-how-high-quality-data-enables-precision-irrigation-easily-affordably-and-globally/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_only_happy_when_it_rains_a_brief_history_of_weather_forecasting', () => { test('blog_only_happy_when_it_rains_a_brief_history_of_weather_forecasting: title matches GT', async ({ page }) => { await page.goto('/blog/only-happy-when-it-rains-a-brief-history-of-weather-forecasting/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('reading the sky'); }); test('blog_only_happy_when_it_rains_a_brief_history_of_weather_forecasting: h1 "Reading the Sky: A Brief Histo"', async ({ page }) => { await page.goto('/blog/only-happy-when-it-rains-a-brief-history-of-weather-forecasting/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reading the Sky: A Brief History of Weather Forecasting' || t.startsWith('Reading the Sky: A Brief History of Weather Forecasting'))).toBeTruthy(); }); test('blog_only_happy_when_it_rains_a_brief_history_of_weather_forecasting: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/only-happy-when-it-rains-a-brief-history-of-weather-forecasting/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_only_happy_when_it_rains_a_brief_history_of_weather_forecasting: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/only-happy-when-it-rains-a-brief-history-of-weather-forecasting/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_only_happy_when_it_rains_a_brief_history_of_weather_forecasting: h6 "From scattered field data to o"', async ({ page }) => { await page.goto('/blog/only-happy-when-it-rains-a-brief-history-of-weather-forecasting/'); const texts = (await page.locator('h6').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'From scattered field data to one shared, living map.' || t.startsWith('From scattered field data to one shared, living map.'))).toBeTruthy(); }); test('blog_only_happy_when_it_rains_a_brief_history_of_weather_forecasting: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/only-happy-when-it-rains-a-brief-history-of-weather-forecasting/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_only_happy_when_it_rains_a_brief_history_of_weather_forecasting: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/only-happy-when-it-rains-a-brief-history-of-weather-forecasting/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_only_happy_when_it_rains_a_brief_history_of_weather_forecasting: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/only-happy-when-it-rains-a-brief-history-of-weather-forecasting/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_only_happy_when_it_rains_a_brief_history_of_weather_forecasting: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/only-happy-when-it-rains-a-brief-history-of-weather-forecasting/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_planting_our_seeds_and_watching_them_grow', () => { test('blog_planting_our_seeds_and_watching_them_grow: title matches GT', async ({ page }) => { await page.goto('/blog/planting-our-seeds-and-watching-them-grow/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sowing our seeds and watching them grow'); }); test('blog_planting_our_seeds_and_watching_them_grow: h1 "Sowing Our Seeds and Watching "', async ({ page }) => { await page.goto('/blog/planting-our-seeds-and-watching-them-grow/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sowing Our Seeds and Watching Them Grow' || t.startsWith('Sowing Our Seeds and Watching Them Grow'))).toBeTruthy(); }); test('blog_planting_our_seeds_and_watching_them_grow: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/planting-our-seeds-and-watching-them-grow/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_planting_our_seeds_and_watching_them_grow: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/planting-our-seeds-and-watching-them-grow/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_planting_our_seeds_and_watching_them_grow: h6 "The Terravyn Mark in a Chilean"', async ({ page }) => { await page.goto('/blog/planting-our-seeds-and-watching-them-grow/'); const texts = (await page.locator('h6').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Terravyn Mark in a Chilean vineyard.' || t.startsWith('The Terravyn Mark in a Chilean vineyard.'))).toBeTruthy(); }); test('blog_planting_our_seeds_and_watching_them_grow: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/planting-our-seeds-and-watching-them-grow/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_planting_our_seeds_and_watching_them_grow: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/planting-our-seeds-and-watching-them-grow/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_planting_our_seeds_and_watching_them_grow: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/planting-our-seeds-and-watching-them-grow/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_planting_our_seeds_and_watching_them_grow: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/planting-our-seeds-and-watching-them-grow/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_quatro_maneiras_pelas_quais_o_monitoramento_da_cultura_no_campo_pode_ajudar_a_determinar_o', () => { test('blog_quatro_maneiras_pelas_quais_o_monitoramento_da_cultura_no_campo_pode_ajudar_a_determinar_o: title matches GT', async ({ page }) => { await page.goto('/blog/quatro-maneiras-pelas-quais-o-monitoramento-da-cultura-no-campo-pode-ajudar-a-determinar-o/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('como o monitoramento da lavoura em campo'); }); test('blog_quatro_maneiras_pelas_quais_o_monitoramento_da_cultura_no_campo_pode_ajudar_a_determinar_o: h1 "Como o monitoramento da lavour"', async ({ page }) => { await page.goto('/blog/quatro-maneiras-pelas-quais-o-monitoramento-da-cultura-no-campo-pode-ajudar-a-determinar-o/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Como o monitoramento da lavoura em campo ajuda a definir o melhor momento de pulverização' || t.startsWith('Como o monitoramento da lavoura em campo ajuda a definir o melhor momento de pulverização'))).toBeTruthy(); }); test('blog_quatro_maneiras_pelas_quais_o_monitoramento_da_cultura_no_campo_pode_ajudar_a_determinar_o: h2 "Pulverize na hora certa com a "', async ({ page }) => { await page.goto('/blog/quatro-maneiras-pelas-quais-o-monitoramento-da-cultura-no-campo-pode-ajudar-a-determinar-o/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pulverize na hora certa com a Terravyn' || t.startsWith('Pulverize na hora certa com a Terravyn'))).toBeTruthy(); }); test('blog_quatro_maneiras_pelas_quais_o_monitoramento_da_cultura_no_campo_pode_ajudar_a_determinar_o: h3 "1. Acompanhamento ambiental em"', async ({ page }) => { await page.goto('/blog/quatro-maneiras-pelas-quais-o-monitoramento-da-cultura-no-campo-pode-ajudar-a-determinar-o/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '1. Acompanhamento ambiental em tempo real' || t.startsWith('1. Acompanhamento ambiental em tempo real'))).toBeTruthy(); }); test('blog_quatro_maneiras_pelas_quais_o_monitoramento_da_cultura_no_campo_pode_ajudar_a_determinar_o: h3 "2. Detecção precoce de pragas "', async ({ page }) => { await page.goto('/blog/quatro-maneiras-pelas-quais-o-monitoramento-da-cultura-no-campo-pode-ajudar-a-determinar-o/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '2. Detecção precoce de pragas e acompanhamento populacional' || t.startsWith('2. Detecção precoce de pragas e acompanhamento populacional'))).toBeTruthy(); }); test('blog_quatro_maneiras_pelas_quais_o_monitoramento_da_cultura_no_campo_pode_ajudar_a_determinar_o: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/quatro-maneiras-pelas-quais-o-monitoramento-da-cultura-no-campo-pode-ajudar-a-determinar-o/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_quatro_maneiras_pelas_quais_o_monitoramento_da_cultura_no_campo_pode_ajudar_a_determinar_o: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/quatro-maneiras-pelas-quais-o-monitoramento-da-cultura-no-campo-pode-ajudar-a-determinar-o/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_quatro_maneiras_pelas_quais_o_monitoramento_da_cultura_no_campo_pode_ajudar_a_determinar_o: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/quatro-maneiras-pelas-quais-o-monitoramento-da-cultura-no-campo-pode-ajudar-a-determinar-o/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_quatro_maneiras_pelas_quais_o_monitoramento_da_cultura_no_campo_pode_ajudar_a_determinar_o: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/quatro-maneiras-pelas-quais-o-monitoramento-da-cultura-no-campo-pode-ajudar-a-determinar-o/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_richardson_international_usa_inteligencia_agricola_da_terravyn_para_otimizar_a_producao', () => { test('blog_richardson_international_usa_inteligencia_agricola_da_terravyn_para_otimizar_a_producao: title matches GT', async ({ page }) => { await page.goto('/blog/richardson-international-usa-inteligencia-agricola-da-terravyn-para-otimizar-a-producao/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('northgrain cooperative usa inteligência '); }); test('blog_richardson_international_usa_inteligencia_agricola_da_terravyn_para_otimizar_a_producao: h1 "Northgrain Cooperative usa int"', async ({ page }) => { await page.goto('/blog/richardson-international-usa-inteligencia-agricola-da-terravyn-para-otimizar-a-producao/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Northgrain Cooperative usa inteligência agrícola da Terravyn para otimizar a produção' || t.startsWith('Northgrain Cooperative usa inteligência agrícola da Terravyn para otimizar a produção'))).toBeTruthy(); }); test('blog_richardson_international_usa_inteligencia_agricola_da_terravyn_para_otimizar_a_producao: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/richardson-international-usa-inteligencia-agricola-da-terravyn-para-otimizar-a-producao/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_richardson_international_usa_inteligencia_agricola_da_terravyn_para_otimizar_a_producao: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/richardson-international-usa-inteligencia-agricola-da-terravyn-para-otimizar-a-producao/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_richardson_international_usa_inteligencia_agricola_da_terravyn_para_otimizar_a_producao: h4 "Como um dos líderes globais da"', async ({ page }) => { await page.goto('/blog/richardson-international-usa-inteligencia-agricola-da-terravyn-para-otimizar-a-producao/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Como um dos líderes globais da agricultura coloca as informações da lavoura em ação para promover re' || t.startsWith('Como um dos líderes globais da agricultura coloca as informações da lavoura em ação para promover re'))).toBeTruthy(); }); test('blog_richardson_international_usa_inteligencia_agricola_da_terravyn_para_otimizar_a_producao: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/richardson-international-usa-inteligencia-agricola-da-terravyn-para-otimizar-a-producao/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_richardson_international_usa_inteligencia_agricola_da_terravyn_para_otimizar_a_producao: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/richardson-international-usa-inteligencia-agricola-da-terravyn-para-otimizar-a-producao/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_richardson_international_usa_inteligencia_agricola_da_terravyn_para_otimizar_a_producao: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/richardson-international-usa-inteligencia-agricola-da-terravyn-para-otimizar-a-producao/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_richardson_international_usa_inteligencia_agricola_da_terravyn_para_otimizar_a_producao: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/richardson-international-usa-inteligencia-agricola-da-terravyn-para-otimizar-a-producao/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_richardson_international_uses_terravyn_crop_intelligence_to_fine_tune_production', () => { test('blog_richardson_international_uses_terravyn_crop_intelligence_to_fine_tune_production: title matches GT', async ({ page }) => { await page.goto('/blog/richardson-international-uses-terravyn-crop-intelligence-to-fine-tune-production/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('northgrain cooperative uses terravyn cro'); }); test('blog_richardson_international_uses_terravyn_crop_intelligence_to_fine_tune_production: h1 "Northgrain Cooperative Uses Te"', async ({ page }) => { await page.goto('/blog/richardson-international-uses-terravyn-crop-intelligence-to-fine-tune-production/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Northgrain Cooperative Uses Terravyn Crop Intelligence to Fine-Tune Production' || t.startsWith('Northgrain Cooperative Uses Terravyn Crop Intelligence to Fine-Tune Production'))).toBeTruthy(); }); test('blog_richardson_international_uses_terravyn_crop_intelligence_to_fine_tune_production: h2 "Learn how other customers leve"', async ({ page }) => { await page.goto('/blog/richardson-international-uses-terravyn-crop-intelligence-to-fine-tune-production/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Learn how other customers leverage Terravyn.' || t.startsWith('Learn how other customers leverage Terravyn.'))).toBeTruthy(); }); test('blog_richardson_international_uses_terravyn_crop_intelligence_to_fine_tune_production: h2 "Learn how Terravyn harnesses g"', async ({ page }) => { await page.goto('/blog/richardson-international-uses-terravyn-crop-intelligence-to-fine-tune-production/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Learn how Terravyn harnesses ground-truth data from the field to drive more sustainable and profitab' || t.startsWith('Learn how Terravyn harnesses ground-truth data from the field to drive more sustainable and profitab'))).toBeTruthy(); }); test('blog_richardson_international_uses_terravyn_crop_intelligence_to_fine_tune_production: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/richardson-international-uses-terravyn-crop-intelligence-to-fine-tune-production/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_richardson_international_uses_terravyn_crop_intelligence_to_fine_tune_production: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/richardson-international-uses-terravyn-crop-intelligence-to-fine-tune-production/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_richardson_international_uses_terravyn_crop_intelligence_to_fine_tune_production: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/richardson-international-uses-terravyn-crop-intelligence-to-fine-tune-production/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_richardson_international_uses_terravyn_crop_intelligence_to_fine_tune_production: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/richardson-international-uses-terravyn-crop-intelligence-to-fine-tune-production/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_richardson_international_uses_terravyn_crop_intelligence_to_fine_tune_production: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/richardson-international-uses-terravyn-crop-intelligence-to-fine-tune-production/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_right_as_rain', () => { test('blog_right_as_rain: title matches GT', async ({ page }) => { await page.goto('/blog/right-as-rain/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('right as rain'); }); test('blog_right_as_rain: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/right-as-rain/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_right_as_rain: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/right-as-rain/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_right_as_rain: h6 "(Source)"', async ({ page }) => { await page.goto('/blog/right-as-rain/'); const texts = (await page.locator('h6').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '(Source)' || t.startsWith('(Source)'))).toBeTruthy(); }); test('blog_right_as_rain: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/right-as-rain/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_right_as_rain: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/right-as-rain/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_right_as_rain: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/right-as-rain/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_right_as_rain: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/right-as-rain/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_smallholder_farmers_need_good_weather_data_how_do_they_get_it', () => { test('blog_smallholder_farmers_need_good_weather_data_how_do_they_get_it: title matches GT', async ({ page }) => { await page.goto('/blog/smallholder-farmers-need-good-weather-data-how-do-they-get-it/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('smallholder farmers need good weather da'); }); test('blog_smallholder_farmers_need_good_weather_data_how_do_they_get_it: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/smallholder-farmers-need-good-weather-data-how-do-they-get-it/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_smallholder_farmers_need_good_weather_data_how_do_they_get_it: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/smallholder-farmers-need-good-weather-data-how-do-they-get-it/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_smallholder_farmers_need_good_weather_data_how_do_they_get_it: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/smallholder-farmers-need-good-weather-data-how-do-they-get-it/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_smallholder_farmers_need_good_weather_data_how_do_they_get_it: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/smallholder-farmers-need-good-weather-data-how-do-they-get-it/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_smallholder_farmers_need_good_weather_data_how_do_they_get_it: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/smallholder-farmers-need-good-weather-data-how-do-they-get-it/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_smallholder_farmers_need_good_weather_data_how_do_they_get_it: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/smallholder-farmers-need-good-weather-data-how-do-they-get-it/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_soil_vs_climate_measuring_land_and_crop_stewardship_and_the_quest_for_natural_wine_part_i', () => { test('blog_soil_vs_climate_measuring_land_and_crop_stewardship_and_the_quest_for_natural_wine_part_i: title matches GT', async ({ page }) => { await page.goto('/blog/soil-vs-climate-measuring-land-and-crop-stewardship-and-the-quest-for-natural-wine-part-i/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('soil vs. climate'); }); test('blog_soil_vs_climate_measuring_land_and_crop_stewardship_and_the_quest_for_natural_wine_part_i: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/soil-vs-climate-measuring-land-and-crop-stewardship-and-the-quest-for-natural-wine-part-i/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_soil_vs_climate_measuring_land_and_crop_stewardship_and_the_quest_for_natural_wine_part_i: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/soil-vs-climate-measuring-land-and-crop-stewardship-and-the-quest-for-natural-wine-part-i/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_soil_vs_climate_measuring_land_and_crop_stewardship_and_the_quest_for_natural_wine_part_i: h6 "The sumptuous view from a vine"', async ({ page }) => { await page.goto('/blog/soil-vs-climate-measuring-land-and-crop-stewardship-and-the-quest-for-natural-wine-part-i/'); const texts = (await page.locator('h6').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The sumptuous view from a vineyard.' || t.startsWith('The sumptuous view from a vineyard.'))).toBeTruthy(); }); test('blog_soil_vs_climate_measuring_land_and_crop_stewardship_and_the_quest_for_natural_wine_part_i: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/soil-vs-climate-measuring-land-and-crop-stewardship-and-the-quest-for-natural-wine-part-i/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_soil_vs_climate_measuring_land_and_crop_stewardship_and_the_quest_for_natural_wine_part_i: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/soil-vs-climate-measuring-land-and-crop-stewardship-and-the-quest-for-natural-wine-part-i/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_soil_vs_climate_measuring_land_and_crop_stewardship_and_the_quest_for_natural_wine_part_i: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/soil-vs-climate-measuring-land-and-crop-stewardship-and-the-quest-for-natural-wine-part-i/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_soil_vs_climate_measuring_land_and_crop_stewardship_and_the_quest_for_natural_wine_part_i: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/soil-vs-climate-measuring-land-and-crop-stewardship-and-the-quest-for-natural-wine-part-i/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_springing_forward_with_terravyn', () => { test('blog_springing_forward_with_terravyn: title matches GT', async ({ page }) => { await page.goto('/blog/springing-forward-with-terravyn/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('growing forward with terravyn'); }); test('blog_springing_forward_with_terravyn: h1 "Growing forward with Terravyn"', async ({ page }) => { await page.goto('/blog/springing-forward-with-terravyn/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Growing forward with Terravyn' || t.startsWith('Growing forward with Terravyn'))).toBeTruthy(); }); test('blog_springing_forward_with_terravyn: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/springing-forward-with-terravyn/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_springing_forward_with_terravyn: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/springing-forward-with-terravyn/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_springing_forward_with_terravyn: h6 "Our visit to Marbrook"', async ({ page }) => { await page.goto('/blog/springing-forward-with-terravyn/'); const texts = (await page.locator('h6').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our visit to Marbrook' || t.startsWith('Our visit to Marbrook'))).toBeTruthy(); }); test('blog_springing_forward_with_terravyn: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/springing-forward-with-terravyn/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_springing_forward_with_terravyn: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/springing-forward-with-terravyn/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_springing_forward_with_terravyn: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/springing-forward-with-terravyn/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_springing_forward_with_terravyn: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/springing-forward-with-terravyn/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_the_5_food_production_risks_digital_ag_can_solve', () => { test('blog_the_5_food_production_risks_digital_ag_can_solve: title matches GT', async ({ page }) => { await page.goto('/blog/the-5-food-production-risks-digital-ag-can-solve/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('five food production risks smarter data '); }); test('blog_the_5_food_production_risks_digital_ag_can_solve: h1 "Five Food Production Risks Sma"', async ({ page }) => { await page.goto('/blog/the-5-food-production-risks-digital-ag-can-solve/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Five Food Production Risks Smarter Data Can Solve' || t.startsWith('Five Food Production Risks Smarter Data Can Solve'))).toBeTruthy(); }); test('blog_the_5_food_production_risks_digital_ag_can_solve: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/the-5-food-production-risks-digital-ag-can-solve/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_the_5_food_production_risks_digital_ag_can_solve: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/the-5-food-production-risks-digital-ag-can-solve/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_the_5_food_production_risks_digital_ag_can_solve: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/the-5-food-production-risks-digital-ag-can-solve/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_the_5_food_production_risks_digital_ag_can_solve: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/the-5-food-production-risks-digital-ag-can-solve/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_the_5_food_production_risks_digital_ag_can_solve: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/the-5-food-production-risks-digital-ag-can-solve/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_the_5_food_production_risks_digital_ag_can_solve: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/the-5-food-production-risks-digital-ag-can-solve/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_the_essential_role_of_evapotranspiration_in_optimizing_agricultural_irrigation', () => { test('blog_the_essential_role_of_evapotranspiration_in_optimizing_agricultural_irrigation: title matches GT', async ({ page }) => { await page.goto('/blog/the-essential-role-of-evapotranspiration-in-optimizing-agricultural-irrigation/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('the essential role of evapotranspiration'); }); test('blog_the_essential_role_of_evapotranspiration_in_optimizing_agricultural_irrigation: h2 "Ready to start optimizing your"', async ({ page }) => { await page.goto('/blog/the-essential-role-of-evapotranspiration-in-optimizing-agricultural-irrigation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ready to start optimizing your water use?' || t.startsWith('Ready to start optimizing your water use?'))).toBeTruthy(); }); test('blog_the_essential_role_of_evapotranspiration_in_optimizing_agricultural_irrigation: h3 "What is Evapotranspiration?"', async ({ page }) => { await page.goto('/blog/the-essential-role-of-evapotranspiration-in-optimizing-agricultural-irrigation/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'What is Evapotranspiration?' || t.startsWith('What is Evapotranspiration?'))).toBeTruthy(); }); test('blog_the_essential_role_of_evapotranspiration_in_optimizing_agricultural_irrigation: h3 "The Importance of Evapotranspi"', async ({ page }) => { await page.goto('/blog/the-essential-role-of-evapotranspiration-in-optimizing-agricultural-irrigation/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Importance of Evapotranspiration in Agriculture' || t.startsWith('The Importance of Evapotranspiration in Agriculture'))).toBeTruthy(); }); test('blog_the_essential_role_of_evapotranspiration_in_optimizing_agricultural_irrigation: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/the-essential-role-of-evapotranspiration-in-optimizing-agricultural-irrigation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_the_essential_role_of_evapotranspiration_in_optimizing_agricultural_irrigation: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/the-essential-role-of-evapotranspiration-in-optimizing-agricultural-irrigation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_the_essential_role_of_evapotranspiration_in_optimizing_agricultural_irrigation: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/the-essential-role-of-evapotranspiration-in-optimizing-agricultural-irrigation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_the_essential_role_of_evapotranspiration_in_optimizing_agricultural_irrigation: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/the-essential-role-of-evapotranspiration-in-optimizing-agricultural-irrigation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_the_tension_is_killing_me', () => { test('blog_the_tension_is_killing_me: title matches GT', async ({ page }) => { await page.goto('/blog/the-tension-is-killing-me/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('the tension is killing me!'); }); test('blog_the_tension_is_killing_me: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/the-tension-is-killing-me/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_the_tension_is_killing_me: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/the-tension-is-killing-me/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_the_tension_is_killing_me: h6 "Caleb Marston, who built the f"', async ({ page }) => { await page.goto('/blog/the-tension-is-killing-me/'); const texts = (await page.locator('h6').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Caleb Marston, who built the first commercial pressure bomb, in 1967 (source)' || t.startsWith('Caleb Marston, who built the first commercial pressure bomb, in 1967 (source)'))).toBeTruthy(); }); test('blog_the_tension_is_killing_me: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/the-tension-is-killing-me/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_the_tension_is_killing_me: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/the-tension-is-killing-me/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_the_tension_is_killing_me: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/the-tension-is-killing-me/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_the_tension_is_killing_me: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/the-tension-is-killing-me/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_towards_a_more_digital_dense_smallholder_farmer', () => { test('blog_towards_a_more_digital_dense_smallholder_farmer: title matches GT', async ({ page }) => { await page.goto('/blog/towards-a-more-digital-dense-smallholder-farmer/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('towards a more ‘digital'); }); test('blog_towards_a_more_digital_dense_smallholder_farmer: h1 "Towards A More ‘Digital-Dense’"', async ({ page }) => { await page.goto('/blog/towards-a-more-digital-dense-smallholder-farmer/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Towards A More ‘Digital-Dense’ Smallholder Farmer' || t.startsWith('Towards A More ‘Digital-Dense’ Smallholder Farmer'))).toBeTruthy(); }); test('blog_towards_a_more_digital_dense_smallholder_farmer: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/towards-a-more-digital-dense-smallholder-farmer/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_towards_a_more_digital_dense_smallholder_farmer: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/towards-a-more-digital-dense-smallholder-farmer/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_towards_a_more_digital_dense_smallholder_farmer: h6 "Themba Ndlovu (left) compares "', async ({ page }) => { await page.goto('/blog/towards-a-more-digital-dense-smallholder-farmer/'); const texts = (await page.locator('h6').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Themba Ndlovu (left) compares the Terravyn Pulse with traditional weather stations while speaking wi' || t.startsWith('Themba Ndlovu (left) compares the Terravyn Pulse with traditional weather stations while speaking wi'))).toBeTruthy(); }); test('blog_towards_a_more_digital_dense_smallholder_farmer: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/towards-a-more-digital-dense-smallholder-farmer/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_towards_a_more_digital_dense_smallholder_farmer: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/towards-a-more-digital-dense-smallholder-farmer/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_towards_a_more_digital_dense_smallholder_farmer: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/towards-a-more-digital-dense-smallholder-farmer/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_towards_a_more_digital_dense_smallholder_farmer: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/towards-a-more-digital-dense-smallholder-farmer/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_um_guia_para_radiacao_solar_de_ondas_curtas_e_seus_derivados', () => { test('blog_um_guia_para_radiacao_solar_de_ondas_curtas_e_seus_derivados: title matches GT', async ({ page }) => { await page.goto('/blog/um-guia-para-radiacao-solar-de-ondas-curtas-e-seus-derivados/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('um guia para radiação solar de ondas cur'); }); test('blog_um_guia_para_radiacao_solar_de_ondas_curtas_e_seus_derivados: h1 "Um guia para radiação solar de"', async ({ page }) => { await page.goto('/blog/um-guia-para-radiacao-solar-de-ondas-curtas-e-seus-derivados/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Um guia para radiação solar de ondas curtas e seus derivados' || t.startsWith('Um guia para radiação solar de ondas curtas e seus derivados'))).toBeTruthy(); }); test('blog_um_guia_para_radiacao_solar_de_ondas_curtas_e_seus_derivados: h3 "O que é radiação solar?"', async ({ page }) => { await page.goto('/blog/um-guia-para-radiacao-solar-de-ondas-curtas-e-seus-derivados/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'O que é radiação solar?' || t.startsWith('O que é radiação solar?'))).toBeTruthy(); }); test('blog_um_guia_para_radiacao_solar_de_ondas_curtas_e_seus_derivados: h3 "Por que medimos a radiação sol"', async ({ page }) => { await page.goto('/blog/um-guia-para-radiacao-solar-de-ondas-curtas-e-seus-derivados/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Por que medimos a radiação solar?' || t.startsWith('Por que medimos a radiação solar?'))).toBeTruthy(); }); test('blog_um_guia_para_radiacao_solar_de_ondas_curtas_e_seus_derivados: h3 "Como medimos a radiação solar?"', async ({ page }) => { await page.goto('/blog/um-guia-para-radiacao-solar-de-ondas-curtas-e-seus-derivados/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Como medimos a radiação solar?' || t.startsWith('Como medimos a radiação solar?'))).toBeTruthy(); }); test('blog_um_guia_para_radiacao_solar_de_ondas_curtas_e_seus_derivados: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/um-guia-para-radiacao-solar-de-ondas-curtas-e-seus-derivados/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_um_guia_para_radiacao_solar_de_ondas_curtas_e_seus_derivados: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/um-guia-para-radiacao-solar-de-ondas-curtas-e-seus-derivados/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_um_guia_para_radiacao_solar_de_ondas_curtas_e_seus_derivados: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/um-guia-para-radiacao-solar-de-ondas-curtas-e-seus-derivados/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_um_guia_para_radiacao_solar_de_ondas_curtas_e_seus_derivados: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/um-guia-para-radiacao-solar-de-ondas-curtas-e-seus-derivados/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_um_guia_sobre_o_indice_de_vegetacao_por_diferenca_normalizada', () => { test('blog_um_guia_sobre_o_indice_de_vegetacao_por_diferenca_normalizada: title matches GT', async ({ page }) => { await page.goto('/blog/um-guia-sobre-o-indice-de-vegetacao-por-diferenca-normalizada/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('entenda o índice de vegetação por difere'); }); test('blog_um_guia_sobre_o_indice_de_vegetacao_por_diferenca_normalizada: h1 "Um Panorama do Índice de Veget"', async ({ page }) => { await page.goto('/blog/um-guia-sobre-o-indice-de-vegetacao-por-diferenca-normalizada/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Um Panorama do Índice de Vegetação por Diferença Normalizada (NDVI)' || t.startsWith('Um Panorama do Índice de Vegetação por Diferença Normalizada (NDVI)'))).toBeTruthy(); }); test('blog_um_guia_sobre_o_indice_de_vegetacao_por_diferenca_normalizada: h3 "Afinal, o que é NDVI?"', async ({ page }) => { await page.goto('/blog/um-guia-sobre-o-indice-de-vegetacao-por-diferenca-normalizada/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Afinal, o que é NDVI?' || t.startsWith('Afinal, o que é NDVI?'))).toBeTruthy(); }); test('blog_um_guia_sobre_o_indice_de_vegetacao_por_diferenca_normalizada: h3 "Por que medir o NDVI faz difer"', async ({ page }) => { await page.goto('/blog/um-guia-sobre-o-indice-de-vegetacao-por-diferenca-normalizada/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Por que medir o NDVI faz diferença?' || t.startsWith('Por que medir o NDVI faz diferença?'))).toBeTruthy(); }); test('blog_um_guia_sobre_o_indice_de_vegetacao_por_diferenca_normalizada: h3 "Como a Terravyn mede o NDVI?"', async ({ page }) => { await page.goto('/blog/um-guia-sobre-o-indice-de-vegetacao-por-diferenca-normalizada/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Como a Terravyn mede o NDVI?' || t.startsWith('Como a Terravyn mede o NDVI?'))).toBeTruthy(); }); test('blog_um_guia_sobre_o_indice_de_vegetacao_por_diferenca_normalizada: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/um-guia-sobre-o-indice-de-vegetacao-por-diferenca-normalizada/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_um_guia_sobre_o_indice_de_vegetacao_por_diferenca_normalizada: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/um-guia-sobre-o-indice-de-vegetacao-por-diferenca-normalizada/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_um_guia_sobre_o_indice_de_vegetacao_por_diferenca_normalizada: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/um-guia-sobre-o-indice-de-vegetacao-por-diferenca-normalizada/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_um_guia_sobre_o_indice_de_vegetacao_por_diferenca_normalizada: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/um-guia-sobre-o-indice-de-vegetacao-por-diferenca-normalizada/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_una_guia_para_los_grados_dia_de_crecimiento_gdd_vinculando_la_temperatura_y_las_etapas_de_crecimiento_de_los_cultivos', () => { test('blog_una_guia_para_los_grados_dia_de_crecimiento_gdd_vinculando_la_temperatura_y_las_etapas_de_crecimiento_de_los_cultivos: title matches GT', async ({ page }) => { await page.goto('/blog/una-guia-para-los-grados-dia-de-crecimiento-gdd-vinculando-la-temperatura-y-las-etapas-de-crecimiento-de-los-cultivos/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('guía completa de los grados día de creci'); }); test('blog_una_guia_para_los_grados_dia_de_crecimiento_gdd_vinculando_la_temperatura_y_las_etapas_de_crecimiento_de_los_cultivos: h1 "Guía de los grados día de crec"', async ({ page }) => { await page.goto('/blog/una-guia-para-los-grados-dia-de-crecimiento-gdd-vinculando-la-temperatura-y-las-etapas-de-crecimiento-de-los-cultivos/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Guía de los grados día de crecimiento (GDD): la temperatura y las etapas de desarrollo de los cultiv' || t.startsWith('Guía de los grados día de crecimiento (GDD): la temperatura y las etapas de desarrollo de los cultiv'))).toBeTruthy(); }); test('blog_una_guia_para_los_grados_dia_de_crecimiento_gdd_vinculando_la_temperatura_y_las_etapas_de_crecimiento_de_los_cultivos: h2 "¿Por qué la temporada de maíz "', async ({ page }) => { await page.goto('/blog/una-guia-para-los-grados-dia-de-crecimiento-gdd-vinculando-la-temperatura-y-las-etapas-de-crecimiento-de-los-cultivos/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '¿Por qué la temporada de maíz dura 2 o 3 meses más en Iowa que en California?' || t.startsWith('¿Por qué la temporada de maíz dura 2 o 3 meses más en Iowa que en California?'))).toBeTruthy(); }); test('blog_una_guia_para_los_grados_dia_de_crecimiento_gdd_vinculando_la_temperatura_y_las_etapas_de_crecimiento_de_los_cultivos: h3 "¿Qué son los grados día de cre"', async ({ page }) => { await page.goto('/blog/una-guia-para-los-grados-dia-de-crecimiento-gdd-vinculando-la-temperatura-y-las-etapas-de-crecimiento-de-los-cultivos/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '¿Qué son los grados día de crecimiento?' || t.startsWith('¿Qué son los grados día de crecimiento?'))).toBeTruthy(); }); test('blog_una_guia_para_los_grados_dia_de_crecimiento_gdd_vinculando_la_temperatura_y_las_etapas_de_crecimiento_de_los_cultivos: h3 "¿Por qué conviene medir los gr"', async ({ page }) => { await page.goto('/blog/una-guia-para-los-grados-dia-de-crecimiento-gdd-vinculando-la-temperatura-y-las-etapas-de-crecimiento-de-los-cultivos/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '¿Por qué conviene medir los grados día de crecimiento?' || t.startsWith('¿Por qué conviene medir los grados día de crecimiento?'))).toBeTruthy(); }); test('blog_una_guia_para_los_grados_dia_de_crecimiento_gdd_vinculando_la_temperatura_y_las_etapas_de_crecimiento_de_los_cultivos: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/una-guia-para-los-grados-dia-de-crecimiento-gdd-vinculando-la-temperatura-y-las-etapas-de-crecimiento-de-los-cultivos/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_una_guia_para_los_grados_dia_de_crecimiento_gdd_vinculando_la_temperatura_y_las_etapas_de_crecimiento_de_los_cultivos: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/una-guia-para-los-grados-dia-de-crecimiento-gdd-vinculando-la-temperatura-y-las-etapas-de-crecimiento-de-los-cultivos/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_una_guia_para_los_grados_dia_de_crecimiento_gdd_vinculando_la_temperatura_y_las_etapas_de_crecimiento_de_los_cultivos: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/una-guia-para-los-grados-dia-de-crecimiento-gdd-vinculando-la-temperatura-y-las-etapas-de-crecimiento-de-los-cultivos/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_una_guia_para_los_grados_dia_de_crecimiento_gdd_vinculando_la_temperatura_y_las_etapas_de_crecimiento_de_los_cultivos: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/una-guia-para-los-grados-dia-de-crecimiento-gdd-vinculando-la-temperatura-y-las-etapas-de-crecimiento-de-los-cultivos/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_when_the_rain_didnt_stop', () => { test('blog_when_the_rain_didnt_stop: title matches GT', async ({ page }) => { await page.goto('/blog/when-the-rain-didnt-stop/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('when the rain wouldn\'t quit'); }); test('blog_when_the_rain_didnt_stop: h1 "When the Rain Wouldn\'t Quit"', async ({ page }) => { await page.goto('/blog/when-the-rain-didnt-stop/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'When the Rain Wouldn\'t Quit' || t.startsWith('When the Rain Wouldn\'t Quit'))).toBeTruthy(); }); test('blog_when_the_rain_didnt_stop: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/blog/when-the-rain-didnt-stop/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('blog_when_the_rain_didnt_stop: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/blog/when-the-rain-didnt-stop/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('blog_when_the_rain_didnt_stop: h6 "The Terravyn Mark nestled in t"', async ({ page }) => { await page.goto('/blog/when-the-rain-didnt-stop/'); const texts = (await page.locator('h6').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Terravyn Mark nestled in the arms of the Verax P2 laser disdrometer, constantly refining and per' || t.startsWith('The Terravyn Mark nestled in the arms of the Verax P2 laser disdrometer, constantly refining and per'))).toBeTruthy(); }); test('blog_when_the_rain_didnt_stop: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/blog/when-the-rain-didnt-stop/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('blog_when_the_rain_didnt_stop: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/blog/when-the-rain-didnt-stop/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('blog_when_the_rain_didnt_stop: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/blog/when-the-rain-didnt-stop/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('blog_when_the_rain_didnt_stop: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/blog/when-the-rain-didnt-stop/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - news_terravyn_honored_as_one_of_americas_top_greentech_companies_by_time_magazine', () => { test('news_terravyn_honored_as_one_of_americas_top_greentech_companies_by_time_magazine: title matches GT', async ({ page }) => { await page.goto('/news/terravyn-honored-as-one-of-americas-top-greentech-companies-by-time-magazine/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('terravyn recognized on vantage\'s list of'); }); test('news_terravyn_honored_as_one_of_americas_top_greentech_companies_by_time_magazine: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/news/terravyn-honored-as-one-of-americas-top-greentech-companies-by-time-magazine/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('news_terravyn_honored_as_one_of_americas_top_greentech_companies_by_time_magazine: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/news/terravyn-honored-as-one-of-americas-top-greentech-companies-by-time-magazine/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('news_terravyn_honored_as_one_of_americas_top_greentech_companies_by_time_magazine: h4 "Award Highlights Terravyn\'s Re"', async ({ page }) => { await page.goto('/news/terravyn-honored-as-one-of-americas-top-greentech-companies-by-time-magazine/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Award Highlights Terravyn\'s Revolutionary Data-Driven Irrigation Management and Its Contribution to' || t.startsWith('Award Highlights Terravyn\'s Revolutionary Data-Driven Irrigation Management and Its Contribution to'))).toBeTruthy(); }); test('news_terravyn_honored_as_one_of_americas_top_greentech_companies_by_time_magazine: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/news/terravyn-honored-as-one-of-americas-top-greentech-companies-by-time-magazine/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('news_terravyn_honored_as_one_of_americas_top_greentech_companies_by_time_magazine: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/news/terravyn-honored-as-one-of-americas-top-greentech-companies-by-time-magazine/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('news_terravyn_honored_as_one_of_americas_top_greentech_companies_by_time_magazine: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/news/terravyn-honored-as-one-of-americas-top-greentech-companies-by-time-magazine/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('news_terravyn_honored_as_one_of_americas_top_greentech_companies_by_time_magazine: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/news/terravyn-honored-as-one-of-americas-top-greentech-companies-by-time-magazine/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - news_terravyn_wins_crop_monitoring_solution_of_the_year_award_from_agtech_breakthrough', () => { test('news_terravyn_wins_crop_monitoring_solution_of_the_year_award_from_agtech_breakthrough: title matches GT', async ({ page }) => { await page.goto('/news/terravyn-wins-crop-monitoring-solution-of-the-year-award-from-agtech-breakthrough/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('terravyn wins ‘crop monitoring solution '); }); test('news_terravyn_wins_crop_monitoring_solution_of_the_year_award_from_agtech_breakthrough: h1 "Terravyn Wins ‘Crop Monitoring"', async ({ page }) => { await page.goto('/news/terravyn-wins-crop-monitoring-solution-of-the-year-award-from-agtech-breakthrough/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Wins ‘Crop Monitoring Solution of the Year’ Award from FarmTech Frontier' || t.startsWith('Terravyn Wins ‘Crop Monitoring Solution of the Year’ Award from FarmTech Frontier'))).toBeTruthy(); }); test('news_terravyn_wins_crop_monitoring_solution_of_the_year_award_from_agtech_breakthrough: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/news/terravyn-wins-crop-monitoring-solution-of-the-year-award-from-agtech-breakthrough/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('news_terravyn_wins_crop_monitoring_solution_of_the_year_award_from_agtech_breakthrough: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/news/terravyn-wins-crop-monitoring-solution-of-the-year-award-from-agtech-breakthrough/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('news_terravyn_wins_crop_monitoring_solution_of_the_year_award_from_agtech_breakthrough: h4 "Annual Awards Program Celebrat"', async ({ page }) => { await page.goto('/news/terravyn-wins-crop-monitoring-solution-of-the-year-award-from-agtech-breakthrough/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Annual Awards Program Celebrates Breakthroughs in Agricultural and Food Technologies Around the Worl' || t.startsWith('Annual Awards Program Celebrates Breakthroughs in Agricultural and Food Technologies Around the Worl'))).toBeTruthy(); }); test('news_terravyn_wins_crop_monitoring_solution_of_the_year_award_from_agtech_breakthrough: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/news/terravyn-wins-crop-monitoring-solution-of-the-year-award-from-agtech-breakthrough/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('news_terravyn_wins_crop_monitoring_solution_of_the_year_award_from_agtech_breakthrough: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/news/terravyn-wins-crop-monitoring-solution-of-the-year-award-from-agtech-breakthrough/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('news_terravyn_wins_crop_monitoring_solution_of_the_year_award_from_agtech_breakthrough: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/news/terravyn-wins-crop-monitoring-solution-of-the-year-award-from-agtech-breakthrough/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('news_terravyn_wins_crop_monitoring_solution_of_the_year_award_from_agtech_breakthrough: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/news/terravyn-wins-crop-monitoring-solution-of-the-year-award-from-agtech-breakthrough/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - news_terravyn_wins_prestigious_sensor_of_the_year_award_from_agtech_breakthrough_2024', () => { test('news_terravyn_wins_prestigious_sensor_of_the_year_award_from_agtech_breakthrough_2024: title matches GT', async ({ page }) => { await page.goto('/news/terravyn-wins-prestigious-sensor-of-the-year-award-from-agtech-breakthrough-2024/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('terravyn wins prestigious \'sensor of the'); }); test('news_terravyn_wins_prestigious_sensor_of_the_year_award_from_agtech_breakthrough_2024: h1 "Terravyn Wins Prestigious ‘Sen"', async ({ page }) => { await page.goto('/news/terravyn-wins-prestigious-sensor-of-the-year-award-from-agtech-breakthrough-2024/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Wins Prestigious ‘Sensor of the Year’ Award from FarmTech Frontier' || t.startsWith('Terravyn Wins Prestigious ‘Sensor of the Year’ Award from FarmTech Frontier'))).toBeTruthy(); }); test('news_terravyn_wins_prestigious_sensor_of_the_year_award_from_agtech_breakthrough_2024: h4 "THE SCIENCE"', async ({ page }) => { await page.goto('/news/terravyn-wins-prestigious-sensor-of-the-year-award-from-agtech-breakthrough-2024/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'THE SCIENCE' || t.startsWith('THE SCIENCE'))).toBeTruthy(); }); test('news_terravyn_wins_prestigious_sensor_of_the_year_award_from_agtech_breakthrough_2024: h4 "POPULAR USE CASES"', async ({ page }) => { await page.goto('/news/terravyn-wins-prestigious-sensor-of-the-year-award-from-agtech-breakthrough-2024/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'POPULAR USE CASES' || t.startsWith('POPULAR USE CASES'))).toBeTruthy(); }); test('news_terravyn_wins_prestigious_sensor_of_the_year_award_from_agtech_breakthrough_2024: h4 "Groundbreaking Mark 3 In-Field"', async ({ page }) => { await page.goto('/news/terravyn-wins-prestigious-sensor-of-the-year-award-from-agtech-breakthrough-2024/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Groundbreaking Mark 3 In-Field Sensing and Monitoring Device Honored for Reshaping Agricultural Deci' || t.startsWith('Groundbreaking Mark 3 In-Field Sensing and Monitoring Device Honored for Reshaping Agricultural Deci'))).toBeTruthy(); }); test('news_terravyn_wins_prestigious_sensor_of_the_year_award_from_agtech_breakthrough_2024: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/news/terravyn-wins-prestigious-sensor-of-the-year-award-from-agtech-breakthrough-2024/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('news_terravyn_wins_prestigious_sensor_of_the_year_award_from_agtech_breakthrough_2024: nav link "Sensing & Insights"', async ({ page }) => { await page.goto('/news/terravyn-wins-prestigious-sensor-of-the-year-award-from-agtech-breakthrough-2024/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Insights' || t.startsWith('Sensing & Insights')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('news_terravyn_wins_prestigious_sensor_of_the_year_award_from_agtech_breakthrough_2024: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/news/terravyn-wins-prestigious-sensor-of-the-year-award-from-agtech-breakthrough-2024/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('news_terravyn_wins_prestigious_sensor_of_the_year_award_from_agtech_breakthrough_2024: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/news/terravyn-wins-prestigious-sensor-of-the-year-award-from-agtech-breakthrough-2024/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - request_demo', () => { test('request_demo: page loads without error', async ({ page }) => { const response = await page.goto('/request-demo/'); expect(response?.status()).toBeLessThan(400); await expect(page.locator('body')).toBeVisible(); }); test('request_demo: title matches GT', async ({ page }) => { await page.goto('/request-demo/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('request a demo'); }); test('request_demo: h1 "See Terravyn in Action"', async ({ page }) => { await page.goto('/request-demo/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See Terravyn in Action' || t.startsWith('See Terravyn in Action'))).toBeTruthy(); }); test('request_demo: h3 "Request a Demo"', async ({ page }) => { await page.goto('/request-demo/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Request a Demo' || t.startsWith('Request a Demo'))).toBeTruthy(); }); test('request_demo: h4 "TECHNOLOGY"', async ({ page }) => { await page.goto('/request-demo/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TECHNOLOGY' || t.startsWith('TECHNOLOGY'))).toBeTruthy(); }); test('request_demo: h4 "FEATURED USE CASES"', async ({ page }) => { await page.goto('/request-demo/'); const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FEATURED USE CASES' || t.startsWith('FEATURED USE CASES'))).toBeTruthy(); }); test('request_demo: nav link "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/request-demo/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Solution Overview' || t.startsWith('Terravyn Solution Overview')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy(); }); test('request_demo: nav link "Sensing & Monitoring"', async ({ page }) => { await page.goto('/request-demo/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sensing & Monitoring' || t.startsWith('Sensing & Monitoring')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('mark3')), 'href fragment present').toBeTruthy(); }); test('request_demo: nav link "Terravyn Apps"', async ({ page }) => { await page.goto('/request-demo/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Apps' || t.startsWith('Terravyn Apps')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('data-and-software')), 'href fragment present').toBeTruthy(); }); test('request_demo: nav link "Terravyn Vision"', async ({ page }) => { await page.goto('/request-demo/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terravyn Vision' || t.startsWith('Terravyn Vision')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('vision')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - Routing', () => { test('navigate to products via "Terravyn Solution Overview"', async ({ page }) => { await page.goto('/'); const link = page.locator('a[href*="products"]').first(); expect(await link.count(), 'nav link to products exists').toBeGreaterThan(0); await link.click(); await page.waitForTimeout(1200); expect(page.url().toLowerCase(), 'URL changed to destination').toContain('products'); const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); expect(bodyText, 'destination distinctive content shown').toContain('Terravyn Solution Overview'); }); test('navigate to mark3 via "Sensing & Monitoring"', async ({ page }) => { await page.goto('/'); const link = page.locator('a[href*="mark3"]').first(); expect(await link.count(), 'nav link to mark3 exists').toBeGreaterThan(0); await link.click(); await page.waitForTimeout(1200); expect(page.url().toLowerCase(), 'URL changed to destination').toContain('mark3'); const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); expect(bodyText, 'destination distinctive content shown').toContain('Terravyn Mark 3'); }); test('navigate to customers via "Customers"', async ({ page }) => { await page.goto('/'); const link = page.locator('a[href*="customers"]').first(); expect(await link.count(), 'nav link to customers exists').toBeGreaterThan(0); await link.click(); await page.waitForTimeout(1200); expect(page.url().toLowerCase(), 'URL changed to destination').toContain('customers'); const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); expect(bodyText, 'destination distinctive content shown').toContain('Trusted by Global Leaders Across Ag, Food, and Technology'); }); });