Datasets:
Download web/kartova.example/tests/static/content.scripted.spec.ts from Qwen/RecreationBench: direct link, hf CLI and curl.
- Browser
- Download file 251 kB
-
https://huggingface.co/datasets/Qwen/RecreationBench/resolve/main/web/kartova.example/tests/static/content.scripted.spec.ts
- Command line
-
hf download hf://datasets/Qwen/RecreationBench/web/kartova.example/tests/static/content.scripted.spec.ts
-
curl -L -o content.scripted.spec.ts https://huggingface.co/datasets/Qwen/RecreationBench/resolve/main/web/kartova.example/tests/static/content.scripted.spec.ts
251 kB
| import { test, expect } from '@playwright/test'; | |
| test.describe('Functional - homepage', () => { | |
| test('homepage: title matches GT', async ({ page }) => { | |
| await page.goto('/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('the ai'); | |
| }); | |
| test('homepage: h1 "Engage every channel. Win over"', async ({ page }) => { | |
| await page.goto('/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Engage every channel. Win over every customer.' || t.startsWith('Engage every channel. Win over every customer.'))).toBeTruthy(); | |
| }); | |
| test('homepage: h2 "Built for commerce at global e"', async ({ page }) => { | |
| await page.goto('/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Built for commerce at global enterprise scale.' || t.startsWith('Built for commerce at global enterprise scale.'))).toBeTruthy(); | |
| }); | |
| test('homepage: nav link "Customers"', 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 === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('homepage: nav link "Start Free Trial"', 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 === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('homepage: nav link "Kartova posts robust Q1 2026 g"', 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 === 'Kartova posts robust Q1 2026 growth, climbing past the \$100B' || t.startsWith('Kartova posts robust Q1 2026 growth, climbing past the \$100B')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - b2b_digital_transformation_maturity', () => { | |
| test('b2b_digital_transformation_maturity: title matches GT', async ({ page }) => { | |
| await page.goto('/b2b-digital-transformation-maturity/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('a field guide to b2b digital transformat'); | |
| }); | |
| test('b2b_digital_transformation_maturity: h1 "A practical guide to B2B digit"', async ({ page }) => { | |
| await page.goto('/b2b-digital-transformation-maturity/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'A practical guide to B2B digital transformation and reaching digital maturity.' || t.startsWith('A practical guide to B2B digital transformation and reaching digital maturity.'))).toBeTruthy(); | |
| }); | |
| test('b2b_digital_transformation_maturity: h2 "Defining B2B digital transform"', async ({ page }) => { | |
| await page.goto('/b2b-digital-transformation-maturity/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Defining B2B digital transformation' || t.startsWith('Defining B2B digital transformation'))).toBeTruthy(); | |
| }); | |
| test('b2b_digital_transformation_maturity: h2 "How is digital maturity define"', async ({ page }) => { | |
| await page.goto('/b2b-digital-transformation-maturity/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How is digital maturity defined in B2B?' || t.startsWith('How is digital maturity defined in B2B?'))).toBeTruthy(); | |
| }); | |
| test('b2b_digital_transformation_maturity: h2 "Digital maturity investments a"', async ({ page }) => { | |
| await page.goto('/b2b-digital-transformation-maturity/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Digital maturity investments are climbing across the B2B sector*' || t.startsWith('Digital maturity investments are climbing across the B2B sector*'))).toBeTruthy(); | |
| }); | |
| test('b2b_digital_transformation_maturity: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/b2b-digital-transformation-maturity/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('b2b_digital_transformation_maturity: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/b2b-digital-transformation-maturity/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('b2b_digital_transformation_maturity: nav link "Kartova posts strong Q1 2026 g"', async ({ page }) => { | |
| await page.goto('/b2b-digital-transformation-maturity/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts strong Q1 2026 growth, crossing the \$100B GMV ' || t.startsWith('Kartova posts strong Q1 2026 growth, crossing the \$100B GMV ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('b2b_digital_transformation_maturity: nav link "Seeing through AI: How compute"', async ({ page }) => { | |
| await page.goto('/b2b-digital-transformation-maturity/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seeing through AI: How computer vision is reshaping modern r' || t.startsWith('Seeing through AI: How computer vision is reshaping modern r')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - bfcm_commerce', () => { | |
| test('bfcm_commerce: title matches GT', async ({ page }) => { | |
| await page.goto('/bfcm-commerce/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('peak season and holiday sales commerce'); | |
| }); | |
| test('bfcm_commerce: h1 "Calm, not chaos: peak season h"', async ({ page }) => { | |
| await page.goto('/bfcm-commerce/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Calm, not chaos: peak season handled without the panic.' || t.startsWith('Calm, not chaos: peak season handled without the panic.'))).toBeTruthy(); | |
| }); | |
| test('bfcm_commerce: h2 "Will your eCommerce stack hold"', async ({ page }) => { | |
| await page.goto('/bfcm-commerce/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Will your eCommerce stack hold up when peak hits?' || t.startsWith('Will your eCommerce stack hold up when peak hits?'))).toBeTruthy(); | |
| }); | |
| test('bfcm_commerce: h2 "Made for scale. Engineered for"', async ({ page }) => { | |
| await page.goto('/bfcm-commerce/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Made for scale. Engineered for peace of mind.' || t.startsWith('Made for scale. Engineered for peace of mind.'))).toBeTruthy(); | |
| }); | |
| test('bfcm_commerce: h2 "When the stakes are highest, t"', async ({ page }) => { | |
| await page.goto('/bfcm-commerce/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'When the stakes are highest, these brands rely on Kartova.' || t.startsWith('When the stakes are highest, these brands rely on Kartova.'))).toBeTruthy(); | |
| }); | |
| test('bfcm_commerce: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/bfcm-commerce/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('bfcm_commerce: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/bfcm-commerce/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('bfcm_commerce: nav link "Kartova posts strong Q1 2026 m"', async ({ page }) => { | |
| await page.goto('/bfcm-commerce/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts strong Q1 2026 momentum, crossing the \$100B GM' || t.startsWith('Kartova posts strong Q1 2026 momentum, crossing the \$100B GM')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('bfcm_commerce: nav link "Seeing through AI: how machine"', async ({ page }) => { | |
| await page.goto('/bfcm-commerce/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seeing through AI: how machine vision is reshaping the retai' || t.startsWith('Seeing through AI: how machine vision is reshaping the retai')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), '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('the kartova blog'); | |
| }); | |
| test('blog: h1 "The Kartova Blog"', 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 Kartova Blog' || t.startsWith('The Kartova Blog'))).toBeTruthy(); | |
| }); | |
| test('blog: h2 "Featured Posts"', 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 === 'Featured Posts' || t.startsWith('Featured Posts'))).toBeTruthy(); | |
| }); | |
| test('blog: nav link "Customers"', 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 === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog: nav link "Start Free Trial"', 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 === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog: nav link "Kartova posts a standout Q1 20"', 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 === 'Kartova posts a standout Q1 2026, pushing past the \$100B GMV' || t.startsWith('Kartova posts a standout Q1 2026, pushing past the \$100B GMV')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog: nav link "Seen by machines: how computer"', 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 === 'Seen by machines: how computer vision is reshaping the store' || t.startsWith('Seen by machines: how computer vision is reshaping the store')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - careers', () => { | |
| test('careers: title matches GT', async ({ page }) => { | |
| await page.goto('/careers/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('kartova, inc. careers'); | |
| }); | |
| test('careers: h1 "Our purpose, our vision, and o"', async ({ page }) => { | |
| await page.goto('/careers/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Our purpose, our vision, and our mission at Kartova' || t.startsWith('Our purpose, our vision, and our mission at Kartova'))).toBeTruthy(); | |
| }); | |
| test('careers: h2 "Our Guiding Values"', async ({ page }) => { | |
| await page.goto('/careers/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Our Guiding Values' || t.startsWith('Our Guiding Values'))).toBeTruthy(); | |
| }); | |
| test('careers: h2 "Deliver Impact"', async ({ page }) => { | |
| await page.goto('/careers/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Deliver Impact' || t.startsWith('Deliver Impact'))).toBeTruthy(); | |
| }); | |
| test('careers: h2 "Nurture Belonging"', async ({ page }) => { | |
| await page.goto('/careers/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Nurture Belonging' || t.startsWith('Nurture Belonging'))).toBeTruthy(); | |
| }); | |
| test('careers: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/careers/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('careers: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/careers/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('careers: nav link "Kartova posts record Q1 2026 r"', async ({ page }) => { | |
| await page.goto('/careers/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts record Q1 2026 results, pushing its annual GMV' || t.startsWith('Kartova posts record Q1 2026 results, pushing its annual GMV')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('careers: nav link "Retail through a new lens: how"', async ({ page }) => { | |
| await page.goto('/careers/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Retail through a new lens: how computer vision is transformi' || t.startsWith('Retail through a new lens: how computer vision is transformi')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - commerce_platform', () => { | |
| test('commerce_platform: title matches GT', async ({ page }) => { | |
| await page.goto('/commerce-platform/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('kartova commerce platform for enterprise'); | |
| }); | |
| test('commerce_platform: h1 "Unite every channel. Operate s"', async ({ page }) => { | |
| await page.goto('/commerce-platform/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Unite every channel. Operate smarter. Scale freely.' || t.startsWith('Unite every channel. Operate smarter. Scale freely.'))).toBeTruthy(); | |
| }); | |
| test('commerce_platform: h2 "Chosen by leading global enter"', async ({ page }) => { | |
| await page.goto('/commerce-platform/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Chosen by leading global enterprises' || t.startsWith('Chosen by leading global enterprises'))).toBeTruthy(); | |
| }); | |
| test('commerce_platform: h2 "The commerce engine trusted by"', async ({ page }) => { | |
| await page.goto('/commerce-platform/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The commerce engine trusted by the world\'s most ambitious enterprise teams' || t.startsWith('The commerce engine trusted by the world\'s most ambitious enterprise teams'))).toBeTruthy(); | |
| }); | |
| test('commerce_platform: h2 "Named a Leader in Composable C"', async ({ page }) => { | |
| await page.goto('/commerce-platform/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Named a Leader in Composable Commerce by Vantage Research®' || t.startsWith('Named a Leader in Composable Commerce by Vantage Research®'))).toBeTruthy(); | |
| }); | |
| test('commerce_platform: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/commerce-platform/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('commerce_platform: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/commerce-platform/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('commerce_platform: nav link "Kartova posts robust Q1 2026 r"', async ({ page }) => { | |
| await page.goto('/commerce-platform/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts robust Q1 2026 results, pushing well past the ' || t.startsWith('Kartova posts robust Q1 2026 results, pushing well past the ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('commerce_platform: nav link "Seeing retail anew: how comput"', async ({ page }) => { | |
| await page.goto('/commerce-platform/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seeing retail anew: how computer vision is reshaping the sto' || t.startsWith('Seeing retail anew: how computer vision is reshaping the sto')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - compilations', () => { | |
| test('compilations: title matches GT', async ({ page }) => { | |
| await page.goto('/compilations/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('compilations'); | |
| }); | |
| test('compilations: h1 "Composable commerce, reimagine"', async ({ page }) => { | |
| await page.goto('/compilations/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Composable commerce, reimagined with Kartova' || t.startsWith('Composable commerce, reimagined with Kartova'))).toBeTruthy(); | |
| }); | |
| test('compilations: h2 "AI-native foundations for the "', async ({ page }) => { | |
| await page.goto('/compilations/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI-native foundations for the agentic commerce era' || t.startsWith('AI-native foundations for the agentic commerce era'))).toBeTruthy(); | |
| }); | |
| test('compilations: h2 "Checkout built to lead every i"', async ({ page }) => { | |
| await page.goto('/compilations/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Checkout built to lead every innovation' || t.startsWith('Checkout built to lead every innovation'))).toBeTruthy(); | |
| }); | |
| test('compilations: h2 "Enterprise agility, ready to s"', async ({ page }) => { | |
| await page.goto('/compilations/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Enterprise agility, ready to scale' || t.startsWith('Enterprise agility, ready to scale'))).toBeTruthy(); | |
| }); | |
| test('compilations: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/compilations/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('compilations: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/compilations/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('compilations: nav link "Kartova posts record Q1 2026 g"', async ({ page }) => { | |
| await page.goto('/compilations/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts record Q1 2026 growth as it clears the \$100B G' || t.startsWith('Kartova posts record Q1 2026 growth as it clears the \$100B G')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('compilations: nav link "Seen through AI: how computer "', async ({ page }) => { | |
| await page.goto('/compilations/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seen through AI: how computer vision is reshaping the modern' || t.startsWith('Seen through AI: how computer vision is reshaping the modern')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - compliance', () => { | |
| test('compliance: title matches GT', async ({ page }) => { | |
| await page.goto('/compliance/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('compliance and trust at kartova'); | |
| }); | |
| test('compliance: h1 "Compliance built in at enterpr"', async ({ page }) => { | |
| await page.goto('/compliance/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Compliance built in at enterprise scale' || t.startsWith('Compliance built in at enterprise scale'))).toBeTruthy(); | |
| }); | |
| test('compliance: h2 "Modern Slavery Statement"', async ({ page }) => { | |
| await page.goto('/compliance/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Modern Slavery Statement' || t.startsWith('Modern Slavery Statement'))).toBeTruthy(); | |
| }); | |
| test('compliance: h2 "Incident Reporting System"', async ({ page }) => { | |
| await page.goto('/compliance/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Incident Reporting System' || t.startsWith('Incident Reporting System'))).toBeTruthy(); | |
| }); | |
| test('compliance: h2 "Frequently asked questions"', async ({ page }) => { | |
| await page.goto('/compliance/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Frequently asked questions' || t.startsWith('Frequently asked questions'))).toBeTruthy(); | |
| }); | |
| test('compliance: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/compliance/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('compliance: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/compliance/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('compliance: nav link "Kartova posts record Q1 2026 m"', async ({ page }) => { | |
| await page.goto('/compliance/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts record Q1 2026 momentum, crossing the \$100B GM' || t.startsWith('Kartova posts record Q1 2026 momentum, crossing the \$100B GM')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('compliance: nav link "Seeing with AI: how computer v"', async ({ page }) => { | |
| await page.goto('/compliance/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seeing with AI: how computer vision is transforming the reta' || t.startsWith('Seeing with AI: how computer vision is transforming the reta')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - composable_commerce', () => { | |
| test('composable_commerce: title matches GT', async ({ page }) => { | |
| await page.goto('/composable-commerce/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('composable commerce'); | |
| }); | |
| test('composable_commerce: h1 "Composable commerce. Adapt to "', async ({ page }) => { | |
| await page.goto('/composable-commerce/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Composable commerce. Adapt to what\'s next.' || t.startsWith('Composable commerce. Adapt to what\'s next.'))).toBeTruthy(); | |
| }); | |
| test('composable_commerce: h2 "Is outdated tech holding back "', async ({ page }) => { | |
| await page.goto('/composable-commerce/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Is outdated tech holding back your growth?' || t.startsWith('Is outdated tech holding back your growth?'))).toBeTruthy(); | |
| }); | |
| test('composable_commerce: h2 "What is composable commerce?"', async ({ page }) => { | |
| await page.goto('/composable-commerce/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'What is composable commerce?' || t.startsWith('What is composable commerce?'))).toBeTruthy(); | |
| }); | |
| test('composable_commerce: h2 "How composable commerce benefi"', async ({ page }) => { | |
| await page.goto('/composable-commerce/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How composable commerce benefits modern enterprises.' || t.startsWith('How composable commerce benefits modern enterprises.'))).toBeTruthy(); | |
| }); | |
| test('composable_commerce: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/composable-commerce/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('composable_commerce: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/composable-commerce/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('composable_commerce: nav link "Kartova reports strong Q1 2026"', async ({ page }) => { | |
| await page.goto('/composable-commerce/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova reports strong Q1 2026 growth, surpassing the \$100B ' || t.startsWith('Kartova reports strong Q1 2026 growth, surpassing the \$100B ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('composable_commerce: nav link "How computer vision and AI are"', async ({ page }) => { | |
| await page.goto('/composable-commerce/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How computer vision and AI are quietly reshaping modern reta' || t.startsWith('How computer vision and AI are quietly reshaping modern reta')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - customer_stories', () => { | |
| test('customer_stories: title matches GT', async ({ page }) => { | |
| await page.goto('/customer-stories/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('kartova customers'); | |
| }); | |
| test('customer_stories: h1 "Backed by industry leaders. Bu"', async ({ page }) => { | |
| await page.goto('/customer-stories/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Backed by industry leaders. Built to accelerate growth.' || t.startsWith('Backed by industry leaders. Built to accelerate growth.'))).toBeTruthy(); | |
| }); | |
| test('customer_stories: h2 "Real Brands. Real Impact. Kart"', async ({ page }) => { | |
| await page.goto('/customer-stories/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Real Brands. Real Impact. Kartova in Action Today.' || t.startsWith('Real Brands. Real Impact. Kartova in Action Today.'))).toBeTruthy(); | |
| }); | |
| test('customer_stories: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/customer-stories/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('customer_stories: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/customer-stories/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('customer_stories: nav link "Kartova posts robust Q1 2026 g"', async ({ page }) => { | |
| await page.goto('/customer-stories/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts robust Q1 2026 growth, crossing the \$100B GMV ' || t.startsWith('Kartova posts robust Q1 2026 growth, crossing the \$100B GMV ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('customer_stories: nav link "Seen through AI: how computer "', async ({ page }) => { | |
| await page.goto('/customer-stories/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seen through AI: how computer vision is reshaping the retail' || t.startsWith('Seen through AI: how computer vision is reshaping the retail')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - free_trial', () => { | |
| test('free_trial: title matches GT', async ({ page }) => { | |
| await page.goto('/free-trial/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('begin your 60'); | |
| }); | |
| test('free_trial: h1 "Start building with Kartova, c"', async ({ page }) => { | |
| await page.goto('/free-trial/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start building with Kartova, completely free' || t.startsWith('Start building with Kartova, completely free'))).toBeTruthy(); | |
| }); | |
| test('free_trial: h2 "Driving enterprise commerce at"', async ({ page }) => { | |
| await page.goto('/free-trial/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Driving enterprise commerce at a worldwide scale.' || t.startsWith('Driving enterprise commerce at a worldwide scale.'))).toBeTruthy(); | |
| }); | |
| test('free_trial: h2 "FAQs"', async ({ page }) => { | |
| await page.goto('/free-trial/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'FAQs' || t.startsWith('FAQs'))).toBeTruthy(); | |
| }); | |
| test('free_trial: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/free-trial/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('free_trial: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/free-trial/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('free_trial: nav link "Kartova posts record Q1 2026 g"', async ({ page }) => { | |
| await page.goto('/free-trial/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts record Q1 2026 growth, blowing past the \$100B ' || t.startsWith('Kartova posts record Q1 2026 growth, blowing past the \$100B ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('free_trial: nav link "Seen through AI: how computer "', async ({ page }) => { | |
| await page.goto('/free-trial/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seen through AI: how computer vision is reshaping the modern' || t.startsWith('Seen through AI: how computer vision is reshaping the modern')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - migration_replatforming', () => { | |
| test('migration_replatforming: title matches GT', async ({ page }) => { | |
| await page.goto('/migration-replatforming/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('why enterprises migrate to kartova'); | |
| }); | |
| test('migration_replatforming: h1 "Your final replatform. Truly."', async ({ page }) => { | |
| await page.goto('/migration-replatforming/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Your final replatform. Truly.' || t.startsWith('Your final replatform. Truly.'))).toBeTruthy(); | |
| }); | |
| test('migration_replatforming: h2 "Trapped by a rigid monolith? L"', async ({ page }) => { | |
| await page.goto('/migration-replatforming/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Trapped by a rigid monolith? Let\'s fix that.' || t.startsWith('Trapped by a rigid monolith? Let\'s fix that.'))).toBeTruthy(); | |
| }); | |
| test('migration_replatforming: h2 "How Kartova sets itself apart "', async ({ page }) => { | |
| await page.goto('/migration-replatforming/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How Kartova sets itself apart from legacy platforms.' || t.startsWith('How Kartova sets itself apart from legacy platforms.'))).toBeTruthy(); | |
| }); | |
| test('migration_replatforming: h2 "From homegrown systems to comp"', async ({ page }) => { | |
| await page.goto('/migration-replatforming/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'From homegrown systems to composable commerce' || t.startsWith('From homegrown systems to composable commerce'))).toBeTruthy(); | |
| }); | |
| test('migration_replatforming: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/migration-replatforming/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('migration_replatforming: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/migration-replatforming/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('migration_replatforming: nav link "Kartova posts robust Q1 2026 r"', async ({ page }) => { | |
| await page.goto('/migration-replatforming/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts robust Q1 2026 results, pushing past the \$100B' || t.startsWith('Kartova posts robust Q1 2026 results, pushing past the \$100B')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('migration_replatforming: nav link "Seen through the lens of AI: h"', async ({ page }) => { | |
| await page.goto('/migration-replatforming/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seen through the lens of AI: how computer vision is reinvent' || t.startsWith('Seen through the lens of AI: how computer vision is reinvent')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - newsletter', () => { | |
| test('newsletter: title matches GT', async ({ page }) => { | |
| await page.goto('/newsletter/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('sign up for the kartova newsletter'); | |
| }); | |
| test('newsletter: h1 "From release notes to strategi"', async ({ page }) => { | |
| await page.goto('/newsletter/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'From release notes to strategic viewpoints, get the newest thinking in commerce sent straight to you' || t.startsWith('From release notes to strategic viewpoints, get the newest thinking in commerce sent straight to you'))).toBeTruthy(); | |
| }); | |
| test('newsletter: h2 "Sign up for monthly commerce u"', async ({ page }) => { | |
| await page.goto('/newsletter/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sign up for monthly commerce updates' || t.startsWith('Sign up for monthly commerce updates'))).toBeTruthy(); | |
| }); | |
| test('newsletter: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/newsletter/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('newsletter: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/newsletter/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('newsletter: nav link "Kartova posts record Q1 2026 m"', async ({ page }) => { | |
| await page.goto('/newsletter/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts record Q1 2026 momentum, pushing past the \$100' || t.startsWith('Kartova posts record Q1 2026 momentum, pushing past the \$100')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('newsletter: nav link "Seeing with AI: how machine vi"', async ({ page }) => { | |
| await page.goto('/newsletter/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seeing with AI: how machine vision is reshaping the modern r' || t.startsWith('Seeing with AI: how machine vision is reshaping the modern r')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - offices', () => { | |
| test('offices: title matches GT', async ({ page }) => { | |
| await page.goto('/offices/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('kartova global offices around the world'); | |
| }); | |
| test('offices: h1 "Our Offices"', async ({ page }) => { | |
| await page.goto('/offices/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Our Offices' || t.startsWith('Our Offices'))).toBeTruthy(); | |
| }); | |
| test('offices: h2 "Americas"', async ({ page }) => { | |
| await page.goto('/offices/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Americas' || t.startsWith('Americas'))).toBeTruthy(); | |
| }); | |
| test('offices: h2 "EMEA"', async ({ page }) => { | |
| await page.goto('/offices/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'EMEA' || t.startsWith('EMEA'))).toBeTruthy(); | |
| }); | |
| test('offices: h2 "APAC"', async ({ page }) => { | |
| await page.goto('/offices/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'APAC' || t.startsWith('APAC'))).toBeTruthy(); | |
| }); | |
| test('offices: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/offices/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('offices: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/offices/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('offices: nav link "Kartova posts robust Q1 2026 r"', async ({ page }) => { | |
| await page.goto('/offices/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts robust Q1 2026 results, breaking past the \$100' || t.startsWith('Kartova posts robust Q1 2026 results, breaking past the \$100')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('offices: nav link "Seeing retail anew: how machin"', async ({ page }) => { | |
| await page.goto('/offices/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seeing retail anew: how machine vision is transforming the s' || t.startsWith('Seeing retail anew: how machine vision is transforming the s')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - omnichannel', () => { | |
| test('omnichannel: title matches GT', async ({ page }) => { | |
| await page.goto('/omnichannel/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('connected omnichannel journeys built on '); | |
| }); | |
| test('omnichannel: h1 "Connected omnichannel journeys"', async ({ page }) => { | |
| await page.goto('/omnichannel/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Connected omnichannel journeys built on composable commerce' || t.startsWith('Connected omnichannel journeys built on composable commerce'))).toBeTruthy(); | |
| }); | |
| test('omnichannel: h2 "Why omnichannel experiences de"', async ({ page }) => { | |
| await page.goto('/omnichannel/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Why omnichannel experiences deliver undeniable value' || t.startsWith('Why omnichannel experiences deliver undeniable value'))).toBeTruthy(); | |
| }); | |
| test('omnichannel: h2 "The Omnichannel Playbook"', async ({ page }) => { | |
| await page.goto('/omnichannel/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The Omnichannel Playbook' || t.startsWith('The Omnichannel Playbook'))).toBeTruthy(); | |
| }); | |
| test('omnichannel: h2 "How omnichannel commerce power"', async ({ page }) => { | |
| await page.goto('/omnichannel/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How omnichannel commerce powers industry leaders today' || t.startsWith('How omnichannel commerce powers industry leaders today'))).toBeTruthy(); | |
| }); | |
| test('omnichannel: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/omnichannel/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('omnichannel: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/omnichannel/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('omnichannel: nav link "Kartova posts record Q1 2026 r"', async ({ page }) => { | |
| await page.goto('/omnichannel/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts record Q1 2026 results, crossing the \$100B GMV' || t.startsWith('Kartova posts record Q1 2026 results, crossing the \$100B GMV')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('omnichannel: nav link "Seeing retail differently: how"', async ({ page }) => { | |
| await page.goto('/omnichannel/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seeing retail differently: how computer vision is transformi' || t.startsWith('Seeing retail differently: how computer vision is transformi')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - partners', () => { | |
| test('partners: title matches GT', async ({ page }) => { | |
| await page.goto('/partners/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('find your kartova solution partner'); | |
| }); | |
| test('partners: h1 "Find a Kartova Partner"', async ({ page }) => { | |
| await page.goto('/partners/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Find a Kartova Partner' || t.startsWith('Find a Kartova Partner'))).toBeTruthy(); | |
| }); | |
| test('partners: h2 "Why build with Kartova Partner"', async ({ page }) => { | |
| await page.goto('/partners/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Why build with Kartova Partners?' || t.startsWith('Why build with Kartova Partners?'))).toBeTruthy(); | |
| }); | |
| test('partners: h2 "Which kind of partner are you "', async ({ page }) => { | |
| await page.goto('/partners/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Which kind of partner are you searching for?' || t.startsWith('Which kind of partner are you searching for?'))).toBeTruthy(); | |
| }); | |
| test('partners: h2 "Keen to become a Kartova partn"', async ({ page }) => { | |
| await page.goto('/partners/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Keen to become a Kartova partner today?' || t.startsWith('Keen to become a Kartova partner today?'))).toBeTruthy(); | |
| }); | |
| test('partners: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/partners/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('partners: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/partners/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('partners: nav link "Kartova posts record Q1 2026 m"', async ({ page }) => { | |
| await page.goto('/partners/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts record Q1 2026 momentum, crossing the \$100B GM' || t.startsWith('Kartova posts record Q1 2026 momentum, crossing the \$100B GM')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('partners: nav link "Beyond human sight: how machin"', async ({ page }) => { | |
| await page.goto('/partners/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Beyond human sight: how machine vision is transforming moder' || t.startsWith('Beyond human sight: how machine vision is transforming moder')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - press_releases', () => { | |
| test('press_releases: title matches GT', async ({ page }) => { | |
| await page.goto('/press-releases/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('kartova'); | |
| }); | |
| test('press_releases: h1 "Press Releases"', async ({ page }) => { | |
| await page.goto('/press-releases/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Press Releases' || t.startsWith('Press Releases'))).toBeTruthy(); | |
| }); | |
| test('press_releases: h2 "Media contacts"', async ({ page }) => { | |
| await page.goto('/press-releases/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Media contacts' || t.startsWith('Media contacts'))).toBeTruthy(); | |
| }); | |
| test('press_releases: h2 "Commerce insights, delivered s"', async ({ page }) => { | |
| await page.goto('/press-releases/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Commerce insights, delivered straight to your inbox.' || t.startsWith('Commerce insights, delivered straight to your inbox.'))).toBeTruthy(); | |
| }); | |
| test('press_releases: h2 "Sign up now!"', async ({ page }) => { | |
| await page.goto('/press-releases/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sign up now!' || t.startsWith('Sign up now!'))).toBeTruthy(); | |
| }); | |
| test('press_releases: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/press-releases/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('press_releases: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/press-releases/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('press_releases: nav link "Kartova posts robust Q1 2026 m"', async ({ page }) => { | |
| await page.goto('/press-releases/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts robust Q1 2026 momentum, crossing the \$100B GM' || t.startsWith('Kartova posts robust Q1 2026 momentum, crossing the \$100B GM')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('press_releases: nav link "Seeing retail anew: how AI-dri"', async ({ page }) => { | |
| await page.goto('/press-releases/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seeing retail anew: how AI-driven computer vision is transfo' || t.startsWith('Seeing retail anew: how AI-driven computer vision is transfo')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - resources', () => { | |
| test('resources: title matches GT', async ({ page }) => { | |
| await page.goto('/resources/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('kartova resources'); | |
| }); | |
| test('resources: h1 "Knowledge Library"', async ({ page }) => { | |
| await page.goto('/resources/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Knowledge Library' || t.startsWith('Knowledge Library'))).toBeTruthy(); | |
| }); | |
| test('resources: h2 "Top picks from Kartova"', async ({ page }) => { | |
| await page.goto('/resources/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Top picks from Kartova' || t.startsWith('Top picks from Kartova'))).toBeTruthy(); | |
| }); | |
| test('resources: h2 "Latest Blog Posts"', async ({ page }) => { | |
| await page.goto('/resources/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Latest Blog Posts' || t.startsWith('Latest Blog Posts'))).toBeTruthy(); | |
| }); | |
| test('resources: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/resources/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('resources: nav link "Begin Free Trial"', async ({ page }) => { | |
| await page.goto('/resources/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Begin Free Trial' || t.startsWith('Begin Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('resources: nav link "Kartova posts record Q1 2026 m"', async ({ page }) => { | |
| await page.goto('/resources/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts record Q1 2026 momentum, crossing the \$100B GM' || t.startsWith('Kartova posts record Q1 2026 momentum, crossing the \$100B GM')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('resources: nav link "Seeing with AI: how computer v"', async ({ page }) => { | |
| await page.goto('/resources/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seeing with AI: how computer vision is transforming the stor' || t.startsWith('Seeing with AI: how computer vision is transforming the stor')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - tco_and_roi', () => { | |
| test('tco_and_roi: title matches GT', async ({ page }) => { | |
| await page.goto('/tco-and-roi/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('how tco and roi shape modern commerce'); | |
| }); | |
| test('tco_and_roi: h1 "Spend smarter, achieve more wi"', async ({ page }) => { | |
| await page.goto('/tco-and-roi/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Spend smarter, achieve more with Kartova.' || t.startsWith('Spend smarter, achieve more with Kartova.'))).toBeTruthy(); | |
| }); | |
| test('tco_and_roi: h2 "Turn hidden expenses into meas"', async ({ page }) => { | |
| await page.goto('/tco-and-roi/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Turn hidden expenses into measurable savings' || t.startsWith('Turn hidden expenses into measurable savings'))).toBeTruthy(); | |
| }); | |
| test('tco_and_roi: h2 "How enterprises cut TCO with a"', async ({ page }) => { | |
| await page.goto('/tco-and-roi/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How enterprises cut TCO with a modern commerce platform' || t.startsWith('How enterprises cut TCO with a modern commerce platform'))).toBeTruthy(); | |
| }); | |
| test('tco_and_roi: h2 "How enterprises grow ROI faste"', async ({ page }) => { | |
| await page.goto('/tco-and-roi/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How enterprises grow ROI faster with Kartova' || t.startsWith('How enterprises grow ROI faster with Kartova'))).toBeTruthy(); | |
| }); | |
| test('tco_and_roi: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/tco-and-roi/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('tco_and_roi: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/tco-and-roi/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('tco_and_roi: nav link "Kartova posts strong Q1 2026 r"', async ({ page }) => { | |
| await page.goto('/tco-and-roi/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts strong Q1 2026 results, surpassing the \$100B G' || t.startsWith('Kartova posts strong Q1 2026 results, surpassing the \$100B G')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('tco_and_roi: nav link "Seen through AI: how computer "', async ({ page }) => { | |
| await page.goto('/tco-and-roi/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seen through AI: how computer vision is transforming modern ' || t.startsWith('Seen through AI: how computer vision is transforming modern ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - training', () => { | |
| test('training: title matches GT', async ({ page }) => { | |
| await page.goto('/training/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('training'); | |
| }); | |
| test('training: h1 "Master how to get the most out"', async ({ page }) => { | |
| await page.goto('/training/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Master how to get the most out of Kartova' || t.startsWith('Master how to get the most out of Kartova'))).toBeTruthy(); | |
| }); | |
| test('training: h2 "Our Core Trainings"', async ({ page }) => { | |
| await page.goto('/training/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Our Core Trainings' || t.startsWith('Our Core Trainings'))).toBeTruthy(); | |
| }); | |
| test('training: h2 "On Demand Trainings"', async ({ page }) => { | |
| await page.goto('/training/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'On Demand Trainings' || t.startsWith('On Demand Trainings'))).toBeTruthy(); | |
| }); | |
| test('training: h2 "Preparing for your exams"', async ({ page }) => { | |
| await page.goto('/training/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Preparing for your exams' || t.startsWith('Preparing for your exams'))).toBeTruthy(); | |
| }); | |
| test('training: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/training/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('training: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/training/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('training: nav link "Kartova posts record Q1 2026 m"', async ({ page }) => { | |
| await page.goto('/training/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts record Q1 2026 momentum, crossing the \$100B GM' || t.startsWith('Kartova posts record Q1 2026 momentum, crossing the \$100B GM')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('training: nav link "Seen by AI: how computer visio"', async ({ page }) => { | |
| await page.goto('/training/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seen by AI: how computer vision is reshaping the modern reta' || t.startsWith('Seen by AI: how computer vision is reshaping the modern reta')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - unified_commerce', () => { | |
| test('unified_commerce: title matches GT', async ({ page }) => { | |
| await page.goto('/unified-commerce/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('unified commerce guide'); | |
| }); | |
| test('unified_commerce: h1 "Unified commerce. Boundless sc"', async ({ page }) => { | |
| await page.goto('/unified-commerce/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Unified commerce. Boundless scale.' || t.startsWith('Unified commerce. Boundless scale.'))).toBeTruthy(); | |
| }); | |
| test('unified_commerce: h2 "Fragmented commerce systems cr"', async ({ page }) => { | |
| await page.goto('/unified-commerce/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fragmented commerce systems create a fractured customer experience' || t.startsWith('Fragmented commerce systems create a fractured customer experience'))).toBeTruthy(); | |
| }); | |
| test('unified_commerce: h2 "What is unified commerce?"', async ({ page }) => { | |
| await page.goto('/unified-commerce/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'What is unified commerce?' || t.startsWith('What is unified commerce?'))).toBeTruthy(); | |
| }); | |
| test('unified_commerce: h2 "The outcomes forward-looking e"', async ({ page }) => { | |
| await page.goto('/unified-commerce/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The outcomes forward-looking enterprises unlock with unified commerce' || t.startsWith('The outcomes forward-looking enterprises unlock with unified commerce'))).toBeTruthy(); | |
| }); | |
| test('unified_commerce: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/unified-commerce/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('unified_commerce: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/unified-commerce/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('unified_commerce: nav link "Kartova posts robust Q1 2026 g"', async ({ page }) => { | |
| await page.goto('/unified-commerce/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts robust Q1 2026 growth, pushing past the \$100B ' || t.startsWith('Kartova posts robust Q1 2026 growth, pushing past the \$100B ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('unified_commerce: nav link "Through an AI lens: how comput"', async ({ page }) => { | |
| await page.goto('/unified-commerce/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Through an AI lens: how computer vision is transforming mode' || t.startsWith('Through an AI lens: how computer vision is transforming mode')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - why_kartova', () => { | |
| test('why_kartova: title matches GT', async ({ page }) => { | |
| await page.goto('/why-kartova/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('why kartova is redefining the future of '); | |
| }); | |
| test('why_kartova: h1 "Enterprise commerce, reimagine"', async ({ page }) => { | |
| await page.goto('/why-kartova/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Enterprise commerce, reimagined for what comes next.' || t.startsWith('Enterprise commerce, reimagined for what comes next.'))).toBeTruthy(); | |
| }); | |
| test('why_kartova: h2 "Your definitive platform for c"', async ({ page }) => { | |
| await page.goto('/why-kartova/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Your definitive platform for commerce innovation.' || t.startsWith('Your definitive platform for commerce innovation.'))).toBeTruthy(); | |
| }); | |
| test('why_kartova: h2 "Real-world outcomes from our c"', async ({ page }) => { | |
| await page.goto('/why-kartova/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Real-world outcomes from our customers.' || t.startsWith('Real-world outcomes from our customers.'))).toBeTruthy(); | |
| }); | |
| test('why_kartova: h2 "Why leading enterprises upgrad"', async ({ page }) => { | |
| await page.goto('/why-kartova/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Why leading enterprises upgrade to Kartova now.' || t.startsWith('Why leading enterprises upgrade to Kartova now.'))).toBeTruthy(); | |
| }); | |
| test('why_kartova: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/why-kartova/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('why_kartova: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/why-kartova/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('why_kartova: nav link "Kartova posts record Q1 2026 g"', async ({ page }) => { | |
| await page.goto('/why-kartova/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts record Q1 2026 gains, pushing past the \$100B G' || t.startsWith('Kartova posts record Q1 2026 gains, pushing past the \$100B G')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('why_kartova: nav link "Seen through AI: the ways comp"', async ({ page }) => { | |
| await page.goto('/why-kartova/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seen through AI: the ways computer vision is transforming mo' || t.startsWith('Seen through AI: the ways computer vision is transforming mo')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_computer_vision_in_retail', () => { | |
| test('blog_computer_vision_in_retail: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/computer-vision-in-retail/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('computer vision in retail'); | |
| }); | |
| test('blog_computer_vision_in_retail: h1 "Seeing retail anew: how comput"', async ({ page }) => { | |
| await page.goto('/blog/computer-vision-in-retail/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seeing retail anew: how computer vision is transforming the store' || t.startsWith('Seeing retail anew: how computer vision is transforming the store'))).toBeTruthy(); | |
| }); | |
| test('blog_computer_vision_in_retail: h2 "How computer vision took hold "', async ({ page }) => { | |
| await page.goto('/blog/computer-vision-in-retail/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How computer vision took hold in retail' || t.startsWith('How computer vision took hold in retail'))).toBeTruthy(); | |
| }); | |
| test('blog_computer_vision_in_retail: h2 "Defining computer vision"', async ({ page }) => { | |
| await page.goto('/blog/computer-vision-in-retail/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Defining computer vision' || t.startsWith('Defining computer vision'))).toBeTruthy(); | |
| }); | |
| test('blog_computer_vision_in_retail: h2 "Retail use cases for computer "', async ({ page }) => { | |
| await page.goto('/blog/computer-vision-in-retail/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Retail use cases for computer vision' || t.startsWith('Retail use cases for computer vision'))).toBeTruthy(); | |
| }); | |
| test('blog_computer_vision_in_retail: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/blog/computer-vision-in-retail/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_computer_vision_in_retail: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/blog/computer-vision-in-retail/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_computer_vision_in_retail: nav link "Kartova posts strong Q1 2026 g"', async ({ page }) => { | |
| await page.goto('/blog/computer-vision-in-retail/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts strong Q1 2026 growth, pushing past the \$100B ' || t.startsWith('Kartova posts strong Q1 2026 growth, pushing past the \$100B ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_computer_vision_in_retail: nav link "Seen through AI: the ways comp"', async ({ page }) => { | |
| await page.goto('/blog/computer-vision-in-retail/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seen through AI: the ways computer vision is reshaping the r' || t.startsWith('Seen through AI: the ways computer vision is reshaping the r')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - careers_dei_esg', () => { | |
| test('careers_dei_esg: title matches GT', async ({ page }) => { | |
| await page.goto('/careers/dei-esg/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('belonging, diversity, equity & inclusion'); | |
| }); | |
| test('careers_dei_esg: h1 "Diversity, Equity, Inclusion &"', async ({ page }) => { | |
| await page.goto('/careers/dei-esg/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Diversity, Equity, Inclusion & Belonging at Kartova' || t.startsWith('Diversity, Equity, Inclusion & Belonging at Kartova'))).toBeTruthy(); | |
| }); | |
| test('careers_dei_esg: h2 "What Do Diversity, Equity, Inc"', async ({ page }) => { | |
| await page.goto('/careers/dei-esg/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'What Do Diversity, Equity, Inclusion and Belonging Actually Mean at Kartova?' || t.startsWith('What Do Diversity, Equity, Inclusion and Belonging Actually Mean at Kartova?'))).toBeTruthy(); | |
| }); | |
| test('careers_dei_esg: h2 "Employee Resource Groups"', async ({ page }) => { | |
| await page.goto('/careers/dei-esg/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Employee Resource Groups' || t.startsWith('Employee Resource Groups'))).toBeTruthy(); | |
| }); | |
| test('careers_dei_esg: h2 "BLK Leaders"', async ({ page }) => { | |
| await page.goto('/careers/dei-esg/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'BLK Leaders' || t.startsWith('BLK Leaders'))).toBeTruthy(); | |
| }); | |
| test('careers_dei_esg: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/careers/dei-esg/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('careers_dei_esg: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/careers/dei-esg/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('careers_dei_esg: nav link "Kartova posts robust Q1 2026 r"', async ({ page }) => { | |
| await page.goto('/careers/dei-esg/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts robust Q1 2026 results, crossing the \$100B GMV' || t.startsWith('Kartova posts robust Q1 2026 results, crossing the \$100B GMV')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('careers_dei_esg: nav link "Seeing through AI: how compute"', async ({ page }) => { | |
| await page.goto('/careers/dei-esg/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seeing through AI: how computer vision is reshaping the reta' || t.startsWith('Seeing through AI: how computer vision is reshaping the reta')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - careers_hiring_faq', () => { | |
| test('careers_hiring_faq: title matches GT', async ({ page }) => { | |
| await page.goto('/careers/hiring-faq/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('hiring q&a'); | |
| }); | |
| test('careers_hiring_faq: h1 "Your Kartova journey begins wi"', async ({ page }) => { | |
| await page.goto('/careers/hiring-faq/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Your Kartova journey begins with one simple click today.' || t.startsWith('Your Kartova journey begins with one simple click today.'))).toBeTruthy(); | |
| }); | |
| test('careers_hiring_faq: h2 "How We Hire You"', async ({ page }) => { | |
| await page.goto('/careers/hiring-faq/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How We Hire You' || t.startsWith('How We Hire You'))).toBeTruthy(); | |
| }); | |
| test('careers_hiring_faq: h2 "Common questions"', async ({ page }) => { | |
| await page.goto('/careers/hiring-faq/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Common questions' || t.startsWith('Common questions'))).toBeTruthy(); | |
| }); | |
| test('careers_hiring_faq: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/careers/hiring-faq/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('careers_hiring_faq: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/careers/hiring-faq/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('careers_hiring_faq: nav link "Kartova posts strong Q1 2026 m"', async ({ page }) => { | |
| await page.goto('/careers/hiring-faq/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts strong Q1 2026 momentum, pushing past the \$100' || t.startsWith('Kartova posts strong Q1 2026 momentum, pushing past the \$100')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('careers_hiring_faq: nav link "Seen by machines: how computer"', async ({ page }) => { | |
| await page.goto('/careers/hiring-faq/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seen by machines: how computer vision is reshaping the futur' || t.startsWith('Seen by machines: how computer vision is reshaping the futur')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - careers_jobs', () => { | |
| test('careers_jobs: title matches GT', async ({ page }) => { | |
| await page.goto('/careers/jobs/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('current job openings at kartova'); | |
| }); | |
| test('careers_jobs: h1 "Hey, ready to become a Kartova"', async ({ page }) => { | |
| await page.goto('/careers/jobs/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Hey, ready to become a Kartovan?' || t.startsWith('Hey, ready to become a Kartovan?'))).toBeTruthy(); | |
| }); | |
| test('careers_jobs: h2 "Stay alert and secure!"', async ({ page }) => { | |
| await page.goto('/careers/jobs/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Stay alert and secure!' || t.startsWith('Stay alert and secure!'))).toBeTruthy(); | |
| }); | |
| test('careers_jobs: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/careers/jobs/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('careers_jobs: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/careers/jobs/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('careers_jobs: nav link "Kartova posts record Q1 2026 g"', async ({ page }) => { | |
| await page.goto('/careers/jobs/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts record Q1 2026 growth, crossing the \$100B GMV ' || t.startsWith('Kartova posts record Q1 2026 growth, crossing the \$100B GMV ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('careers_jobs: nav link "Seen through AI: how computer "', async ({ page }) => { | |
| await page.goto('/careers/jobs/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seen through AI: how computer vision is transforming the ret' || t.startsWith('Seen through AI: how computer vision is transforming the ret')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - careers_our_benefits', () => { | |
| test('careers_our_benefits: title matches GT', async ({ page }) => { | |
| await page.goto('/careers/our-benefits/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('the employee benefits at kartova'); | |
| }); | |
| test('careers_our_benefits: h1 "Our Benefits"', async ({ page }) => { | |
| await page.goto('/careers/our-benefits/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Our Benefits' || t.startsWith('Our Benefits'))).toBeTruthy(); | |
| }); | |
| test('careers_our_benefits: h2 "Powering your best work and yo"', async ({ page }) => { | |
| await page.goto('/careers/our-benefits/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Powering your best work and your fullest life' || t.startsWith('Powering your best work and your fullest life'))).toBeTruthy(); | |
| }); | |
| test('careers_our_benefits: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/careers/our-benefits/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('careers_our_benefits: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/careers/our-benefits/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('careers_our_benefits: nav link "Kartova reports strong Q1 2026"', async ({ page }) => { | |
| await page.goto('/careers/our-benefits/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova reports strong Q1 2026 growth, surpassing the \$100B ' || t.startsWith('Kartova reports strong Q1 2026 growth, surpassing the \$100B ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('careers_our_benefits: nav link "Seeing through AI: how machine"', async ({ page }) => { | |
| await page.goto('/careers/our-benefits/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seeing through AI: how machine vision is reshaping the moder' || t.startsWith('Seeing through AI: how machine vision is reshaping the moder')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - company_about', () => { | |
| test('company_about: title matches GT', async ({ page }) => { | |
| await page.goto('/company/about/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('we are kartova, inc.'); | |
| }); | |
| test('company_about: h1 "Building tomorrow\'s commerce, "', async ({ page }) => { | |
| await page.goto('/company/about/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Building tomorrow\'s commerce, on your terms' || t.startsWith('Building tomorrow\'s commerce, on your terms'))).toBeTruthy(); | |
| }); | |
| test('company_about: h2 "The world shifted. So we engin"', async ({ page }) => { | |
| await page.goto('/company/about/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The world shifted. So we engineered a platform that keeps pace — whatever the future happens to brin' || t.startsWith('The world shifted. So we engineered a platform that keeps pace — whatever the future happens to brin'))).toBeTruthy(); | |
| }); | |
| test('company_about: h2 "Rethinking enterprise commerce"', async ({ page }) => { | |
| await page.goto('/company/about/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Rethinking enterprise commerce, from headless to agentic.' || t.startsWith('Rethinking enterprise commerce, from headless to agentic.'))).toBeTruthy(); | |
| }); | |
| test('company_about: h2 "Made for scale. Prepared for i"', async ({ page }) => { | |
| await page.goto('/company/about/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Made for scale. Prepared for intelligence. Trusted across the enterprise.' || t.startsWith('Made for scale. Prepared for intelligence. Trusted across the enterprise.'))).toBeTruthy(); | |
| }); | |
| test('company_about: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/company/about/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('company_about: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/company/about/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('company_about: nav link "Kartova posts a record Q1 2026"', async ({ page }) => { | |
| await page.goto('/company/about/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts a record Q1 2026, finally breaking the \$100B G' || t.startsWith('Kartova posts a record Q1 2026, finally breaking the \$100B G')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('company_about: nav link "Seeing retail differently: how"', async ({ page }) => { | |
| await page.goto('/company/about/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seeing retail differently: how AI-driven vision is reshaping' || t.startsWith('Seeing retail differently: how AI-driven vision is reshaping')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - infrastructure_partners_aws', () => { | |
| test('infrastructure_partners_aws: title matches GT', async ({ page }) => { | |
| await page.goto('/infrastructure-partners/aws/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('kartova infrastructure partner'); | |
| }); | |
| test('infrastructure_partners_aws: h1 "Nimbus Cloud"', async ({ page }) => { | |
| await page.goto('/infrastructure-partners/aws/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Nimbus Cloud' || t.startsWith('Nimbus Cloud'))).toBeTruthy(); | |
| }); | |
| test('infrastructure_partners_aws: h2 "NC PARTNERSHIP"', async ({ page }) => { | |
| await page.goto('/infrastructure-partners/aws/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'NC PARTNERSHIP' || t.startsWith('NC PARTNERSHIP'))).toBeTruthy(); | |
| }); | |
| test('infrastructure_partners_aws: h2 "NC at a glance"', async ({ page }) => { | |
| await page.goto('/infrastructure-partners/aws/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'NC at a glance' || t.startsWith('NC at a glance'))).toBeTruthy(); | |
| }); | |
| test('infrastructure_partners_aws: h2 "Cloud native"', async ({ page }) => { | |
| await page.goto('/infrastructure-partners/aws/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cloud native' || t.startsWith('Cloud native'))).toBeTruthy(); | |
| }); | |
| test('infrastructure_partners_aws: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/infrastructure-partners/aws/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('infrastructure_partners_aws: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/infrastructure-partners/aws/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('infrastructure_partners_aws: nav link "Kartova posts record Q1 2026 g"', async ({ page }) => { | |
| await page.goto('/infrastructure-partners/aws/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts record Q1 2026 growth, surpassing the \$100B GM' || t.startsWith('Kartova posts record Q1 2026 growth, surpassing the \$100B GM')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('infrastructure_partners_aws: nav link "Seen through AI: how computer "', async ({ page }) => { | |
| await page.goto('/infrastructure-partners/aws/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seen through AI: how computer vision is quietly reshaping th' || t.startsWith('Seen through AI: how computer vision is quietly reshaping th')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - infrastructure_partners_google_cloud', () => { | |
| test('infrastructure_partners_google_cloud: title matches GT', async ({ page }) => { | |
| await page.goto('/infrastructure-partners/google-cloud/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('kartova infrastructure partner'); | |
| }); | |
| test('infrastructure_partners_google_cloud: h1 "Strata Cloud"', async ({ page }) => { | |
| await page.goto('/infrastructure-partners/google-cloud/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Strata Cloud' || t.startsWith('Strata Cloud'))).toBeTruthy(); | |
| }); | |
| test('infrastructure_partners_google_cloud: h2 "Strata Cloud Partnership"', async ({ page }) => { | |
| await page.goto('/infrastructure-partners/google-cloud/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Strata Cloud Partnership' || t.startsWith('Strata Cloud Partnership'))).toBeTruthy(); | |
| }); | |
| test('infrastructure_partners_google_cloud: h2 "About Strata Cloud"', async ({ page }) => { | |
| await page.goto('/infrastructure-partners/google-cloud/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'About Strata Cloud' || t.startsWith('About Strata Cloud'))).toBeTruthy(); | |
| }); | |
| test('infrastructure_partners_google_cloud: h2 "Joining Forces: Why we partner"', async ({ page }) => { | |
| await page.goto('/infrastructure-partners/google-cloud/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Joining Forces: Why we partner with Strata Cloud' || t.startsWith('Joining Forces: Why we partner with Strata Cloud'))).toBeTruthy(); | |
| }); | |
| test('infrastructure_partners_google_cloud: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/infrastructure-partners/google-cloud/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('infrastructure_partners_google_cloud: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/infrastructure-partners/google-cloud/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('infrastructure_partners_google_cloud: nav link "Kartova posts robust Q1 2026 g"', async ({ page }) => { | |
| await page.goto('/infrastructure-partners/google-cloud/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts robust Q1 2026 growth, pushing past the \$100B ' || t.startsWith('Kartova posts robust Q1 2026 growth, pushing past the \$100B ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('infrastructure_partners_google_cloud: nav link "Seeing through AI: how compute"', async ({ page }) => { | |
| await page.goto('/infrastructure-partners/google-cloud/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seeing through AI: how computer vision is reshaping modern r' || t.startsWith('Seeing through AI: how computer vision is reshaping modern r')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - infrastructure_partners_mongodb', () => { | |
| test('infrastructure_partners_mongodb: title matches GT', async ({ page }) => { | |
| await page.goto('/infrastructure-partners/mongodb/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('kartova infrastructure partner'); | |
| }); | |
| test('infrastructure_partners_mongodb: h1 "Datalume"', async ({ page }) => { | |
| await page.goto('/infrastructure-partners/mongodb/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Datalume' || t.startsWith('Datalume'))).toBeTruthy(); | |
| }); | |
| test('infrastructure_partners_mongodb: h2 "Datalume partnership"', async ({ page }) => { | |
| await page.goto('/infrastructure-partners/mongodb/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Datalume partnership' || t.startsWith('Datalume partnership'))).toBeTruthy(); | |
| }); | |
| test('infrastructure_partners_mongodb: h2 "Combining strengths for data-d"', async ({ page }) => { | |
| await page.goto('/infrastructure-partners/mongodb/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Combining strengths for data-driven commerce' || t.startsWith('Combining strengths for data-driven commerce'))).toBeTruthy(); | |
| }); | |
| test('infrastructure_partners_mongodb: h2 "Adaptable Data Modeling"', async ({ page }) => { | |
| await page.goto('/infrastructure-partners/mongodb/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Adaptable Data Modeling' || t.startsWith('Adaptable Data Modeling'))).toBeTruthy(); | |
| }); | |
| test('infrastructure_partners_mongodb: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/infrastructure-partners/mongodb/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('infrastructure_partners_mongodb: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/infrastructure-partners/mongodb/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('infrastructure_partners_mongodb: nav link "Kartova posts robust Q1 2026 r"', async ({ page }) => { | |
| await page.goto('/infrastructure-partners/mongodb/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts robust Q1 2026 results, crossing the \$100B GMV' || t.startsWith('Kartova posts robust Q1 2026 results, crossing the \$100B GMV')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('infrastructure_partners_mongodb: nav link "Seeing with AI: how computer v"', async ({ page }) => { | |
| await page.goto('/infrastructure-partners/mongodb/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seeing with AI: how computer vision is reshaping the modern ' || t.startsWith('Seeing with AI: how computer vision is reshaping the modern ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - newsroom_media_resources', () => { | |
| test('newsroom_media_resources: title matches GT', async ({ page }) => { | |
| await page.goto('/newsroom/media-resources/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('press kit & media info'); | |
| }); | |
| test('newsroom_media_resources: h1 "Brand & Media Center"', async ({ page }) => { | |
| await page.goto('/newsroom/media-resources/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Brand & Media Center' || t.startsWith('Brand & Media Center'))).toBeTruthy(); | |
| }); | |
| test('newsroom_media_resources: h2 "Brand Kit"', async ({ page }) => { | |
| await page.goto('/newsroom/media-resources/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Brand Kit' || t.startsWith('Brand Kit'))).toBeTruthy(); | |
| }); | |
| test('newsroom_media_resources: h2 "Executive Team Photos"', async ({ page }) => { | |
| await page.goto('/newsroom/media-resources/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Executive Team Photos' || t.startsWith('Executive Team Photos'))).toBeTruthy(); | |
| }); | |
| test('newsroom_media_resources: h2 "Company Snapshot"', async ({ page }) => { | |
| await page.goto('/newsroom/media-resources/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Company Snapshot' || t.startsWith('Company Snapshot'))).toBeTruthy(); | |
| }); | |
| test('newsroom_media_resources: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/newsroom/media-resources/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('newsroom_media_resources: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/newsroom/media-resources/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('newsroom_media_resources: nav link "Kartova posts record Q1 2026 m"', async ({ page }) => { | |
| await page.goto('/newsroom/media-resources/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts record Q1 2026 momentum, pushing past the \$100' || t.startsWith('Kartova posts record Q1 2026 momentum, pushing past the \$100')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('newsroom_media_resources: nav link "Seeing with AI: how computer v"', async ({ page }) => { | |
| await page.goto('/newsroom/media-resources/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seeing with AI: how computer vision is reshaping the future ' || t.startsWith('Seeing with AI: how computer vision is reshaping the future ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - partner_program_overview', () => { | |
| test('partner_program_overview: title matches GT', async ({ page }) => { | |
| await page.goto('/partner-program/overview/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('discover the kartova partner program'); | |
| }); | |
| test('partner_program_overview: h1 "Kartova Partner Program"', async ({ page }) => { | |
| await page.goto('/partner-program/overview/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova Partner Program' || t.startsWith('Kartova Partner Program'))).toBeTruthy(); | |
| }); | |
| test('partner_program_overview: h2 "About the Kartova Partner Prog"', async ({ page }) => { | |
| await page.goto('/partner-program/overview/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'About the Kartova Partner Program' || t.startsWith('About the Kartova Partner Program'))).toBeTruthy(); | |
| }); | |
| test('partner_program_overview: h2 "Key Highlights of the 2025 Par"', async ({ page }) => { | |
| await page.goto('/partner-program/overview/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Key Highlights of the 2025 Partner Program' || t.startsWith('Key Highlights of the 2025 Partner Program'))).toBeTruthy(); | |
| }); | |
| test('partner_program_overview: h2 "Unlock More Possibilities with"', async ({ page }) => { | |
| await page.goto('/partner-program/overview/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Unlock More Possibilities with Every Partnership Tier' || t.startsWith('Unlock More Possibilities with Every Partnership Tier'))).toBeTruthy(); | |
| }); | |
| test('partner_program_overview: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/partner-program/overview/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('partner_program_overview: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/partner-program/overview/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('partner_program_overview: nav link "Kartova posts strong Q1 2026 g"', async ({ page }) => { | |
| await page.goto('/partner-program/overview/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts strong Q1 2026 growth, crossing the \$100B GMV ' || t.startsWith('Kartova posts strong Q1 2026 growth, crossing the \$100B GMV ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('partner_program_overview: nav link "Seeing with AI: how computer v"', async ({ page }) => { | |
| await page.goto('/partner-program/overview/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seeing with AI: how computer vision is reshaping modern reta' || t.startsWith('Seeing with AI: how computer vision is reshaping modern reta')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - partners_solution_integrators_and_agencies', () => { | |
| test('partners_solution_integrators_and_agencies: title matches GT', async ({ page }) => { | |
| await page.goto('/partners/solution-integrators-and-agencies/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('explore kartova solution integrator part'); | |
| }); | |
| test('partners_solution_integrators_and_agencies: h1 "Solution Integrators"', async ({ page }) => { | |
| await page.goto('/partners/solution-integrators-and-agencies/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Solution Integrators' || t.startsWith('Solution Integrators'))).toBeTruthy(); | |
| }); | |
| test('partners_solution_integrators_and_agencies: h2 "More Certified Partners"', async ({ page }) => { | |
| await page.goto('/partners/solution-integrators-and-agencies/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'More Certified Partners' || t.startsWith('More Certified Partners'))).toBeTruthy(); | |
| }); | |
| test('partners_solution_integrators_and_agencies: h2 "Searching for the right techno"', async ({ page }) => { | |
| await page.goto('/partners/solution-integrators-and-agencies/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Searching for the right technology partner? Browse our Solution Hub' || t.startsWith('Searching for the right technology partner? Browse our Solution Hub'))).toBeTruthy(); | |
| }); | |
| test('partners_solution_integrators_and_agencies: h2 "Want to become an official Kar"', async ({ page }) => { | |
| await page.goto('/partners/solution-integrators-and-agencies/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Want to become an official Kartova partner?' || t.startsWith('Want to become an official Kartova partner?'))).toBeTruthy(); | |
| }); | |
| test('partners_solution_integrators_and_agencies: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/partners/solution-integrators-and-agencies/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('partners_solution_integrators_and_agencies: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/partners/solution-integrators-and-agencies/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('partners_solution_integrators_and_agencies: nav link "Kartova posts record Q1 2026 r"', async ({ page }) => { | |
| await page.goto('/partners/solution-integrators-and-agencies/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts record Q1 2026 results, crossing the \$100B GMV' || t.startsWith('Kartova posts record Q1 2026 results, crossing the \$100B GMV')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('partners_solution_integrators_and_agencies: nav link "Seen through AI: how computer "', async ({ page }) => { | |
| await page.goto('/partners/solution-integrators-and-agencies/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seen through AI: how computer vision is transforming modern ' || t.startsWith('Seen through AI: how computer vision is transforming modern ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - platform_connect', () => { | |
| test('platform_connect: title matches GT', async ({ page }) => { | |
| await page.goto('/platform/connect/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('connect integration blueprint'); | |
| }); | |
| test('platform_connect: h1 "Design. Connect. Launch. Compo"', async ({ page }) => { | |
| await page.goto('/platform/connect/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Design. Connect. Launch. Composable integrations built for every team.' || t.startsWith('Design. Connect. Launch. Composable integrations built for every team.'))).toBeTruthy(); | |
| }); | |
| test('platform_connect: h2 "Simplify your commerce integra"', async ({ page }) => { | |
| await page.goto('/platform/connect/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Simplify your commerce integrations' || t.startsWith('Simplify your commerce integrations'))).toBeTruthy(); | |
| }); | |
| test('platform_connect: h2 "Notable features"', async ({ page }) => { | |
| await page.goto('/platform/connect/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Notable features' || t.startsWith('Notable features'))).toBeTruthy(); | |
| }); | |
| test('platform_connect: h2 "Robust connectors engineered o"', async ({ page }) => { | |
| await page.goto('/platform/connect/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Robust connectors engineered on our framework' || t.startsWith('Robust connectors engineered on our framework'))).toBeTruthy(); | |
| }); | |
| test('platform_connect: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/platform/connect/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('platform_connect: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/platform/connect/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('platform_connect: nav link "Kartova reports record Q1 2026"', async ({ page }) => { | |
| await page.goto('/platform/connect/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova reports record Q1 2026 growth, surpassing the \$100B ' || t.startsWith('Kartova reports record Q1 2026 growth, surpassing the \$100B ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('platform_connect: nav link "Seeing through machines: how c"', async ({ page }) => { | |
| await page.goto('/platform/connect/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seeing through machines: how computer vision is transforming' || t.startsWith('Seeing through machines: how computer vision is transforming')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - press_releases_kartova_reports_strong_q1_2026', () => { | |
| test('press_releases_kartova_reports_strong_q1_2026: title matches GT', async ({ page }) => { | |
| await page.goto('/press-releases/kartova-reports-strong-q1-2026/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('kartova reports strong q1 2026 revenue g'); | |
| }); | |
| test('press_releases_kartova_reports_strong_q1_2026: h1 "Kartova reports strong Q1 2026"', async ({ page }) => { | |
| await page.goto('/press-releases/kartova-reports-strong-q1-2026/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova reports strong Q1 2026 growth, surpassing the \$100B GMV run-rate milestone' || t.startsWith('Kartova reports strong Q1 2026 growth, surpassing the \$100B GMV run-rate milestone'))).toBeTruthy(); | |
| }); | |
| test('press_releases_kartova_reports_strong_q1_2026: h2 "About Kartova, Inc."', async ({ page }) => { | |
| await page.goto('/press-releases/kartova-reports-strong-q1-2026/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'About Kartova, Inc.' || t.startsWith('About Kartova, Inc.'))).toBeTruthy(); | |
| }); | |
| test('press_releases_kartova_reports_strong_q1_2026: h2 "Recent Press Releases"', async ({ page }) => { | |
| await page.goto('/press-releases/kartova-reports-strong-q1-2026/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Recent Press Releases' || t.startsWith('Recent Press Releases'))).toBeTruthy(); | |
| }); | |
| test('press_releases_kartova_reports_strong_q1_2026: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/press-releases/kartova-reports-strong-q1-2026/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('press_releases_kartova_reports_strong_q1_2026: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/press-releases/kartova-reports-strong-q1-2026/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('press_releases_kartova_reports_strong_q1_2026: nav link "Kartova reports strong Q1 2026"', async ({ page }) => { | |
| await page.goto('/press-releases/kartova-reports-strong-q1-2026/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova reports strong Q1 2026 growth, breaking past the \$10' || t.startsWith('Kartova reports strong Q1 2026 growth, breaking past the \$10')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('press_releases_kartova_reports_strong_q1_2026: nav link "Seeing through machines: how c"', async ({ page }) => { | |
| await page.goto('/press-releases/kartova-reports-strong-q1-2026/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seeing through machines: how computer vision is reshaping mo' || t.startsWith('Seeing through machines: how computer vision is reshaping mo')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - products_agent_gateway', () => { | |
| test('products_agent_gateway: title matches GT', async ({ page }) => { | |
| await page.goto('/products/agent-gateway/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('agent gateway'); | |
| }); | |
| test('products_agent_gateway: h1 "AI that delivers. Commerce tha"', async ({ page }) => { | |
| await page.goto('/products/agent-gateway/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI that delivers. Commerce that runs — everywhere.' || t.startsWith('AI that delivers. Commerce that runs — everywhere.'))).toBeTruthy(); | |
| }); | |
| test('products_agent_gateway: h2 "Designed for commerce agents. "', async ({ page }) => { | |
| await page.goto('/products/agent-gateway/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Designed for commerce agents. Secured and scaled for the enterprise.' || t.startsWith('Designed for commerce agents. Secured and scaled for the enterprise.'))).toBeTruthy(); | |
| }); | |
| test('products_agent_gateway: h2 "Agentic commerce, ready when y"', async ({ page }) => { | |
| await page.goto('/products/agent-gateway/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Agentic commerce, ready when you are.' || t.startsWith('Agentic commerce, ready when you are.'))).toBeTruthy(); | |
| }); | |
| test('products_agent_gateway: h2 "Real-world outcomes: what you "', async ({ page }) => { | |
| await page.goto('/products/agent-gateway/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Real-world outcomes: what you can build with Agent Gateway.' || t.startsWith('Real-world outcomes: what you can build with Agent Gateway.'))).toBeTruthy(); | |
| }); | |
| test('products_agent_gateway: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/products/agent-gateway/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_agent_gateway: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/products/agent-gateway/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_agent_gateway: nav link "Kartova posts strong Q1 2026 g"', async ({ page }) => { | |
| await page.goto('/products/agent-gateway/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts strong Q1 2026 growth, pushing past the \$100B ' || t.startsWith('Kartova posts strong Q1 2026 growth, pushing past the \$100B ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_agent_gateway: nav link "Seeing like a machine: how com"', async ({ page }) => { | |
| await page.goto('/products/agent-gateway/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seeing like a machine: how computer vision is reshaping the ' || t.startsWith('Seeing like a machine: how computer vision is reshaping the ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - products_agentic_commerce', () => { | |
| test('products_agentic_commerce: title matches GT', async ({ page }) => { | |
| await page.goto('/products/agentic-commerce/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('understanding agentic commerce'); | |
| }); | |
| test('products_agentic_commerce: h1 "Agentic commerce. AI that acts"', async ({ page }) => { | |
| await page.goto('/products/agentic-commerce/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Agentic commerce. AI that acts — and hands you a real edge.' || t.startsWith('Agentic commerce. AI that acts — and hands you a real edge.'))).toBeTruthy(); | |
| }); | |
| test('products_agentic_commerce: h2 "Defining agentic commerce"', async ({ page }) => { | |
| await page.goto('/products/agentic-commerce/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Defining agentic commerce' || t.startsWith('Defining agentic commerce'))).toBeTruthy(); | |
| }); | |
| test('products_agentic_commerce: h2 "Is agentic commerce the next b"', async ({ page }) => { | |
| await page.goto('/products/agentic-commerce/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Is agentic commerce the next big shift?' || t.startsWith('Is agentic commerce the next big shift?'))).toBeTruthy(); | |
| }); | |
| test('products_agentic_commerce: h2 "Agentic commerce at work: Real"', async ({ page }) => { | |
| await page.goto('/products/agentic-commerce/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Agentic commerce at work: Real use cases.' || t.startsWith('Agentic commerce at work: Real use cases.'))).toBeTruthy(); | |
| }); | |
| test('products_agentic_commerce: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/products/agentic-commerce/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_agentic_commerce: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/products/agentic-commerce/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_agentic_commerce: nav link "Kartova posts robust Q1 2026 g"', async ({ page }) => { | |
| await page.goto('/products/agentic-commerce/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts robust Q1 2026 growth, crossing the \$100B GMV ' || t.startsWith('Kartova posts robust Q1 2026 growth, crossing the \$100B GMV ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_agentic_commerce: nav link "Seen through AI: how computer "', async ({ page }) => { | |
| await page.goto('/products/agentic-commerce/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seen through AI: how computer vision is reshaping the modern' || t.startsWith('Seen through AI: how computer vision is reshaping the modern')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - products_agentic_jumpstart', () => { | |
| test('products_agentic_jumpstart: title matches GT', async ({ page }) => { | |
| await page.goto('/products/agentic-jumpstart/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('agentic jumpstart for agent'); | |
| }); | |
| test('products_agentic_jumpstart: h1 "The agentic marketplace is her"', async ({ page }) => { | |
| await page.goto('/products/agentic-jumpstart/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The agentic marketplace is here, worldwide — and it\'s powered by Kartova.' || t.startsWith('The agentic marketplace is here, worldwide — and it\'s powered by Kartova.'))).toBeTruthy(); | |
| }); | |
| test('products_agentic_jumpstart: h2 "Kick off your agentic rollout "', async ({ page }) => { | |
| await page.goto('/products/agentic-jumpstart/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kick off your agentic rollout — effortless, quick, and safe.' || t.startsWith('Kick off your agentic rollout — effortless, quick, and safe.'))).toBeTruthy(); | |
| }); | |
| test('products_agentic_jumpstart: h2 "Engineered to convert the agen"', async ({ page }) => { | |
| await page.goto('/products/agentic-jumpstart/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Engineered to convert the agentic shift into growth right now.' || t.startsWith('Engineered to convert the agentic shift into growth right now.'))).toBeTruthy(); | |
| }); | |
| test('products_agentic_jumpstart: h3 "Be findable wherever your shop"', async ({ page }) => { | |
| await page.goto('/products/agentic-jumpstart/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Be findable wherever your shoppers or their AI agents happen to be' || t.startsWith('Be findable wherever your shoppers or their AI agents happen to be'))).toBeTruthy(); | |
| }); | |
| test('products_agentic_jumpstart: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/products/agentic-jumpstart/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_agentic_jumpstart: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/products/agentic-jumpstart/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_agentic_jumpstart: nav link "Kartova posts robust Q1 2026 r"', async ({ page }) => { | |
| await page.goto('/products/agentic-jumpstart/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts robust Q1 2026 results, crossing the \$100B GMV' || t.startsWith('Kartova posts robust Q1 2026 results, crossing the \$100B GMV')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_agentic_jumpstart: nav link "Seeing with AI: how computer v"', async ({ page }) => { | |
| await page.goto('/products/agentic-jumpstart/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seeing with AI: how computer vision is reshaping modern reta' || t.startsWith('Seeing with AI: how computer vision is reshaping modern reta')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - products_agenticlift', () => { | |
| test('products_agenticlift: title matches GT', async ({ page }) => { | |
| await page.goto('/products/agenticlift/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('agenticlift'); | |
| }); | |
| test('products_agenticlift: h1 "The instant on-ramp to agentic"', async ({ page }) => { | |
| await page.goto('/products/agenticlift/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The instant on-ramp to agentic commerce — with no replatforming required.' || t.startsWith('The instant on-ramp to agentic commerce — with no replatforming required.'))).toBeTruthy(); | |
| }); | |
| test('products_agenticlift: h2 "Agentic commerce has arrived. "', async ({ page }) => { | |
| await page.goto('/products/agenticlift/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Agentic commerce has arrived. Here\'s where to begin.' || t.startsWith('Agentic commerce has arrived. Here\'s where to begin.'))).toBeTruthy(); | |
| }); | |
| test('products_agenticlift: h2 "5 steps to begin selling throu"', async ({ page }) => { | |
| await page.goto('/products/agenticlift/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === '5 steps to begin selling through AI channels' || t.startsWith('5 steps to begin selling through AI channels'))).toBeTruthy(); | |
| }); | |
| test('products_agenticlift: h2 "Deep dive: Get your product da"', async ({ page }) => { | |
| await page.goto('/products/agenticlift/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Deep dive: Get your product data ready for AI shopping with AgenticLift' || t.startsWith('Deep dive: Get your product data ready for AI shopping with AgenticLift'))).toBeTruthy(); | |
| }); | |
| test('products_agenticlift: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/products/agenticlift/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_agenticlift: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/products/agenticlift/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_agenticlift: nav link "Kartova posts record Q1 2026 r"', async ({ page }) => { | |
| await page.goto('/products/agenticlift/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts record Q1 2026 results, pushing past the \$100B' || t.startsWith('Kartova posts record Q1 2026 results, pushing past the \$100B')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_agenticlift: nav link "Seen through AI: how computer "', async ({ page }) => { | |
| await page.goto('/products/agenticlift/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seen through AI: how computer vision is transforming modern ' || t.startsWith('Seen through AI: how computer vision is transforming modern ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - products_ai_hub', () => { | |
| test('products_ai_hub: title matches GT', async ({ page }) => { | |
| await page.goto('/products/ai-hub/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('kartova ai hub suite'); | |
| }); | |
| test('products_ai_hub: h1 "AI Hub: Convert AI chats into "', async ({ page }) => { | |
| await page.goto('/products/ai-hub/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI Hub: Convert AI chats into real sales.' || t.startsWith('AI Hub: Convert AI chats into real sales.'))).toBeTruthy(); | |
| }); | |
| test('products_ai_hub: h2 "Where AI discovery turns into "', async ({ page }) => { | |
| await page.goto('/products/ai-hub/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Where AI discovery turns into measurable growth.' || t.startsWith('Where AI discovery turns into measurable growth.'))).toBeTruthy(); | |
| }); | |
| test('products_ai_hub: h2 "Trusted by innovators making A"', async ({ page }) => { | |
| await page.goto('/products/ai-hub/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Trusted by innovators making AI a genuine transaction channel.' || t.startsWith('Trusted by innovators making AI a genuine transaction channel.'))).toBeTruthy(); | |
| }); | |
| test('products_ai_hub: h2 "Ship revenue-ready commerce in"', async ({ page }) => { | |
| await page.goto('/products/ai-hub/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Ship revenue-ready commerce inside every AI channel.' || t.startsWith('Ship revenue-ready commerce inside every AI channel.'))).toBeTruthy(); | |
| }); | |
| test('products_ai_hub: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/products/ai-hub/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_ai_hub: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/products/ai-hub/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_ai_hub: nav link "Kartova posts strong Q1 2026 g"', async ({ page }) => { | |
| await page.goto('/products/ai-hub/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts strong Q1 2026 growth, moving past the \$100B G' || t.startsWith('Kartova posts strong Q1 2026 growth, moving past the \$100B G')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_ai_hub: nav link "Seeing through AI: how machine"', async ({ page }) => { | |
| await page.goto('/products/ai-hub/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seeing through AI: how machine vision is transforming the re' || t.startsWith('Seeing through AI: how machine vision is transforming the re')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - products_audit_log', () => { | |
| test('products_audit_log: title matches GT', async ({ page }) => { | |
| await page.goto('/products/audit-log/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('kartova audit log premium tier'); | |
| }); | |
| test('products_audit_log: h1 "See every commerce change at a"', async ({ page }) => { | |
| await page.goto('/products/audit-log/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'See every commerce change at a glance' || t.startsWith('See every commerce change at a glance'))).toBeTruthy(); | |
| }); | |
| test('products_audit_log: h2 "Capture the fullest possible p"', async ({ page }) => { | |
| await page.goto('/products/audit-log/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Capture the fullest possible picture with Audit Log Premium' || t.startsWith('Capture the fullest possible picture with Audit Log Premium'))).toBeTruthy(); | |
| }); | |
| test('products_audit_log: h2 "Rethink digital commerce, star"', async ({ page }) => { | |
| await page.goto('/products/audit-log/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Rethink digital commerce, starting today' || t.startsWith('Rethink digital commerce, starting today'))).toBeTruthy(); | |
| }); | |
| test('products_audit_log: h2 "Contact us"', async ({ page }) => { | |
| await page.goto('/products/audit-log/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Contact us' || t.startsWith('Contact us'))).toBeTruthy(); | |
| }); | |
| test('products_audit_log: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/products/audit-log/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_audit_log: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/products/audit-log/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_audit_log: nav link "Kartova reports strong Q1 2026"', async ({ page }) => { | |
| await page.goto('/products/audit-log/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova reports strong Q1 2026 growth, surpassing the \$100B ' || t.startsWith('Kartova reports strong Q1 2026 growth, surpassing the \$100B ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_audit_log: nav link "How machines see: the way comp"', async ({ page }) => { | |
| await page.goto('/products/audit-log/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How machines see: the way computer vision is reshaping moder' || t.startsWith('How machines see: the way computer vision is reshaping moder')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - products_b2b', () => { | |
| test('products_b2b: title matches GT', async ({ page }) => { | |
| await page.goto('/products/b2b/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('kartova b2b commerce suite'); | |
| }); | |
| test('products_b2b: h1 "Still stitching together B2B s"', async ({ page }) => { | |
| await page.goto('/products/b2b/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Still stitching together B2B sales with makeshift fixes? Let us help.' || t.startsWith('Still stitching together B2B sales with makeshift fixes? Let us help.'))).toBeTruthy(); | |
| }); | |
| test('products_b2b: h2 "Bring enterprise-grade eCommer"', async ({ page }) => { | |
| await page.goto('/products/b2b/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Bring enterprise-grade eCommerce quality to your B2B buyers today.' || t.startsWith('Bring enterprise-grade eCommerce quality to your B2B buyers today.'))).toBeTruthy(); | |
| }); | |
| test('products_b2b: h2 "A standout leader in the 2025 "', async ({ page }) => { | |
| await page.goto('/products/b2b/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'A standout leader in the 2025 Vantage B2B Benchmark Reports.' || t.startsWith('A standout leader in the 2025 Vantage B2B Benchmark Reports.'))).toBeTruthy(); | |
| }); | |
| test('products_b2b: h2 "Real results from our own cust"', async ({ page }) => { | |
| await page.goto('/products/b2b/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Real results from our own customers.' || t.startsWith('Real results from our own customers.'))).toBeTruthy(); | |
| }); | |
| test('products_b2b: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/products/b2b/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_b2b: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/products/b2b/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_b2b: nav link "Kartova posts strong Q1 2026 g"', async ({ page }) => { | |
| await page.goto('/products/b2b/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts strong Q1 2026 growth, sailing past the \$100B ' || t.startsWith('Kartova posts strong Q1 2026 growth, sailing past the \$100B ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_b2b: nav link "Seen through AI: how computer "', async ({ page }) => { | |
| await page.goto('/products/b2b/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seen through AI: how computer vision is transforming the ret' || t.startsWith('Seen through AI: how computer vision is transforming the ret')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - products_b2c', () => { | |
| test('products_b2c: title matches GT', async ({ page }) => { | |
| await page.goto('/products/b2c/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('b2c commerce for consumer brands'); | |
| }); | |
| test('products_b2c: h1 "Is your buying experience made"', async ({ page }) => { | |
| await page.goto('/products/b2c/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Is your buying experience made to stand out? We turn the ordinary into the outstanding.' || t.startsWith('Is your buying experience made to stand out? We turn the ordinary into the outstanding.'))).toBeTruthy(); | |
| }); | |
| test('products_b2c: h2 "Build remarkable buying journe"', async ({ page }) => { | |
| await page.goto('/products/b2c/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Build remarkable buying journeys, from first click to final delivery.' || t.startsWith('Build remarkable buying journeys, from first click to final delivery.'))).toBeTruthy(); | |
| }); | |
| test('products_b2c: h2 "Personalization that drives re"', async ({ page }) => { | |
| await page.goto('/products/b2c/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Personalization that drives revenue: Built into Kartova' || t.startsWith('Personalization that drives revenue: Built into Kartova'))).toBeTruthy(); | |
| }); | |
| test('products_b2c: h2 "Sharper pricing and promotions"', async ({ page }) => { | |
| await page.goto('/products/b2c/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sharper pricing and promotions powered by Kartova' || t.startsWith('Sharper pricing and promotions powered by Kartova'))).toBeTruthy(); | |
| }); | |
| test('products_b2c: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/products/b2c/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_b2c: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/products/b2c/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_b2c: nav link "Kartova posts robust Q1 2026 r"', async ({ page }) => { | |
| await page.goto('/products/b2c/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts robust Q1 2026 results, crossing the \$100B GMV' || t.startsWith('Kartova posts robust Q1 2026 results, crossing the \$100B GMV')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_b2c: nav link "Seen through AI: how computer "', async ({ page }) => { | |
| await page.goto('/products/b2c/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seen through AI: how computer vision is transforming modern ' || t.startsWith('Seen through AI: how computer vision is transforming modern ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - products_b2x_commerce', () => { | |
| test('products_b2x_commerce: title matches GT', async ({ page }) => { | |
| await page.goto('/products/b2x-commerce/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('kartova b2x commerce suite'); | |
| }); | |
| test('products_b2x_commerce: h1 "Every commerce model. One core"', async ({ page }) => { | |
| await page.goto('/products/b2x-commerce/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Every commerce model. One core. Zero friction.' || t.startsWith('Every commerce model. One core. Zero friction.'))).toBeTruthy(); | |
| }); | |
| test('products_b2x_commerce: h2 "At last, one commerce platform"', async ({ page }) => { | |
| await page.goto('/products/b2x-commerce/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'At last, one commerce platform built for every business model.' || t.startsWith('At last, one commerce platform built for every business model.'))).toBeTruthy(); | |
| }); | |
| test('products_b2x_commerce: h2 "Customers accelerating growth "', async ({ page }) => { | |
| await page.goto('/products/b2x-commerce/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers accelerating growth with B2X commerce.' || t.startsWith('Customers accelerating growth with B2X commerce.'))).toBeTruthy(); | |
| }); | |
| test('products_b2x_commerce: h2 "Run every B2X model without mi"', async ({ page }) => { | |
| await page.goto('/products/b2x-commerce/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Run every B2X model without missing a step.' || t.startsWith('Run every B2X model without missing a step.'))).toBeTruthy(); | |
| }); | |
| test('products_b2x_commerce: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/products/b2x-commerce/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_b2x_commerce: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/products/b2x-commerce/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_b2x_commerce: nav link "Kartova posts robust Q1 2026 r"', async ({ page }) => { | |
| await page.goto('/products/b2x-commerce/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts robust Q1 2026 results, crossing the \$100B GMV' || t.startsWith('Kartova posts robust Q1 2026 results, crossing the \$100B GMV')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_b2x_commerce: nav link "Seen by machines: how computer"', async ({ page }) => { | |
| await page.goto('/products/b2x-commerce/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seen by machines: how computer vision is reshaping modern re' || t.startsWith('Seen by machines: how computer vision is reshaping modern re')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - products_expert_services', () => { | |
| test('products_expert_services: title matches GT', async ({ page }) => { | |
| await page.goto('/products/expert-services/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('kartova expert services suite'); | |
| }); | |
| test('products_expert_services: h1 "Deep commerce expertise that s"', async ({ page }) => { | |
| await page.goto('/products/expert-services/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Deep commerce expertise that shortens your road to measurable value' || t.startsWith('Deep commerce expertise that shortens your road to measurable value'))).toBeTruthy(); | |
| }); | |
| test('products_expert_services: h2 "A quicker path to value for co"', async ({ page }) => { | |
| await page.goto('/products/expert-services/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'A quicker path to value for composable commerce' || t.startsWith('A quicker path to value for composable commerce'))).toBeTruthy(); | |
| }); | |
| test('products_expert_services: h2 "Technical onboarding that shar"', async ({ page }) => { | |
| await page.goto('/products/expert-services/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Technical onboarding that sharpens your implementation' || t.startsWith('Technical onboarding that sharpens your implementation'))).toBeTruthy(); | |
| }); | |
| test('products_expert_services: h2 "Quicker delivery at every stag"', async ({ page }) => { | |
| await page.goto('/products/expert-services/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quicker delivery at every stage of the journey' || t.startsWith('Quicker delivery at every stage of the journey'))).toBeTruthy(); | |
| }); | |
| test('products_expert_services: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/products/expert-services/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_expert_services: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/products/expert-services/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_expert_services: nav link "Kartova posts robust Q1 2026 g"', async ({ page }) => { | |
| await page.goto('/products/expert-services/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts robust Q1 2026 growth, pushing past the \$100B ' || t.startsWith('Kartova posts robust Q1 2026 growth, pushing past the \$100B ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_expert_services: nav link "Seeing through AI: how compute"', async ({ page }) => { | |
| await page.goto('/products/expert-services/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seeing through AI: how computer vision is transforming moder' || t.startsWith('Seeing through AI: how computer vision is transforming moder')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - products_frontend', () => { | |
| test('products_frontend: title matches GT', async ({ page }) => { | |
| await page.goto('/products/frontend/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('kartova frontend'); | |
| }); | |
| test('products_frontend: h1 "Beautiful digital storefronts,"', async ({ page }) => { | |
| await page.goto('/products/frontend/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Beautiful digital storefronts, launched at remarkable speed' || t.startsWith('Beautiful digital storefronts, launched at remarkable speed'))).toBeTruthy(); | |
| }); | |
| test('products_frontend: h2 "Speed, scale, flexibility. The"', async ({ page }) => { | |
| await page.goto('/products/frontend/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Speed, scale, flexibility. The ideal foundation for building your digital storefronts.' || t.startsWith('Speed, scale, flexibility. The ideal foundation for building your digital storefronts.'))).toBeTruthy(); | |
| }); | |
| test('products_frontend: h2 "Faster storefronts. Higher con"', async ({ page }) => { | |
| await page.goto('/products/frontend/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Faster storefronts. Higher conversions.' || t.startsWith('Faster storefronts. Higher conversions.'))).toBeTruthy(); | |
| }); | |
| test('products_frontend: h2 "Advantages that delight custom"', async ({ page }) => { | |
| await page.goto('/products/frontend/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Advantages that delight customers and teams.' || t.startsWith('Advantages that delight customers and teams.'))).toBeTruthy(); | |
| }); | |
| test('products_frontend: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/products/frontend/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_frontend: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/products/frontend/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_frontend: nav link "Kartova posts robust Q1 2026 m"', async ({ page }) => { | |
| await page.goto('/products/frontend/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts robust Q1 2026 momentum, breaking past the \$10' || t.startsWith('Kartova posts robust Q1 2026 momentum, breaking past the \$10')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_frontend: nav link "Seen through AI: How machine v"', async ({ page }) => { | |
| await page.goto('/products/frontend/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seen through AI: How machine vision is reshaping the retail ' || t.startsWith('Seen through AI: How machine vision is reshaping the retail ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - products_instore', () => { | |
| test('products_instore: title matches GT', async ({ page }) => { | |
| await page.goto('/products/instore/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('kartova instore'); | |
| }); | |
| test('products_instore: h1 "Merge online and in-store sell"', async ({ page }) => { | |
| await page.goto('/products/instore/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Merge online and in-store selling — and leave the constraints of legacy POS behind.' || t.startsWith('Merge online and in-store selling — and leave the constraints of legacy POS behind.'))).toBeTruthy(); | |
| }); | |
| test('products_instore: h2 "One connected commerce. A sing"', async ({ page }) => { | |
| await page.goto('/products/instore/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'One connected commerce. A single platform. Complete.' || t.startsWith('One connected commerce. A single platform. Complete.'))).toBeTruthy(); | |
| }); | |
| test('products_instore: h2 "What makes Kartova InStore dif"', async ({ page }) => { | |
| await page.goto('/products/instore/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'What makes Kartova InStore different' || t.startsWith('What makes Kartova InStore different'))).toBeTruthy(); | |
| }); | |
| test('products_instore: h2 "Advanced scenarios spanning bo"', async ({ page }) => { | |
| await page.goto('/products/instore/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Advanced scenarios spanning both in-store and digital channels.' || t.startsWith('Advanced scenarios spanning both in-store and digital channels.'))).toBeTruthy(); | |
| }); | |
| test('products_instore: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/products/instore/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_instore: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/products/instore/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_instore: nav link "Kartova posts robust Q1 2026 g"', async ({ page }) => { | |
| await page.goto('/products/instore/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts robust Q1 2026 growth, pushing past the \$100B ' || t.startsWith('Kartova posts robust Q1 2026 growth, pushing past the \$100B ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_instore: nav link "Seen through AI: the way compu"', async ({ page }) => { | |
| await page.goto('/products/instore/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seen through AI: the way computer vision is reshaping the re' || t.startsWith('Seen through AI: the way computer vision is reshaping the re')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - products_premium_support', () => { | |
| test('products_premium_support: title matches GT', async ({ page }) => { | |
| await page.goto('/products/premium-support/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('kartova enterprise'); | |
| }); | |
| test('products_premium_support: h1 "Deploy your next-generation st"', async ({ page }) => { | |
| await page.goto('/products/premium-support/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Deploy your next-generation storefront with far greater assurance.' || t.startsWith('Deploy your next-generation storefront with far greater assurance.'))).toBeTruthy(); | |
| }); | |
| test('products_premium_support: h2 "Your growth is our purpose."', async ({ page }) => { | |
| await page.goto('/products/premium-support/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Your growth is our purpose.' || t.startsWith('Your growth is our purpose.'))).toBeTruthy(); | |
| }); | |
| test('products_premium_support: h2 "What Premium Support delivers."', async ({ page }) => { | |
| await page.goto('/products/premium-support/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'What Premium Support delivers.' || t.startsWith('What Premium Support delivers.'))).toBeTruthy(); | |
| }); | |
| test('products_premium_support: h2 "And there\'s still more: contin"', async ({ page }) => { | |
| await page.goto('/products/premium-support/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'And there\'s still more: continuous load testing.' || t.startsWith('And there\'s still more: continuous load testing.'))).toBeTruthy(); | |
| }); | |
| test('products_premium_support: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/products/premium-support/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_premium_support: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/products/premium-support/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_premium_support: nav link "Kartova posts record Q1 2026 g"', async ({ page }) => { | |
| await page.goto('/products/premium-support/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts record Q1 2026 growth, crossing the \$100B GMV ' || t.startsWith('Kartova posts record Q1 2026 growth, crossing the \$100B GMV ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('products_premium_support: nav link "Seeing retail through AI: how "', async ({ page }) => { | |
| await page.goto('/products/premium-support/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seeing retail through AI: how computer vision reshapes the s' || t.startsWith('Seeing retail through AI: how computer vision reshapes the s')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - resources_report_access_center', () => { | |
| test('resources_report_access_center: title matches GT', async ({ page }) => { | |
| await page.goto('/resources/report-access-center/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('kartova analyst report access center hub'); | |
| }); | |
| test('resources_report_access_center: h1 "Your Analyst Insight Access Ce"', async ({ page }) => { | |
| await page.goto('/resources/report-access-center/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Your Analyst Insight Access Center' || t.startsWith('Your Analyst Insight Access Center'))).toBeTruthy(); | |
| }); | |
| test('resources_report_access_center: h2 "Vantik Reports"', async ({ page }) => { | |
| await page.goto('/resources/report-access-center/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Vantik Reports' || t.startsWith('Vantik Reports'))).toBeTruthy(); | |
| }); | |
| test('resources_report_access_center: h2 "Axiom B2B Faceoff Reports"', async ({ page }) => { | |
| await page.goto('/resources/report-access-center/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Axiom B2B Faceoff Reports' || t.startsWith('Axiom B2B Faceoff Reports'))).toBeTruthy(); | |
| }); | |
| test('resources_report_access_center: h2 "Corva Reports"', async ({ page }) => { | |
| await page.goto('/resources/report-access-center/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Corva Reports' || t.startsWith('Corva Reports'))).toBeTruthy(); | |
| }); | |
| test('resources_report_access_center: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/resources/report-access-center/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('resources_report_access_center: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/resources/report-access-center/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('resources_report_access_center: nav link "Kartova reports strong Q1 2026"', async ({ page }) => { | |
| await page.goto('/resources/report-access-center/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova reports strong Q1 2026 growth, surpassing the \$100B ' || t.startsWith('Kartova reports strong Q1 2026 growth, surpassing the \$100B ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('resources_report_access_center: nav link "Seen through AI: how computer "', async ({ page }) => { | |
| await page.goto('/resources/report-access-center/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seen through AI: how computer vision is reshaping modern ret' || t.startsWith('Seen through AI: how computer vision is reshaping modern ret')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - solutions_for_automotive_transportation', () => { | |
| test('solutions_for_automotive_transportation: title matches GT', async ({ page }) => { | |
| await page.goto('/solutions/for-automotive-transportation/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('kartova enterprise commerce solutions fo'); | |
| }); | |
| test('solutions_for_automotive_transportation: h1 "Supercharge your online auto a"', async ({ page }) => { | |
| await page.goto('/solutions/for-automotive-transportation/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Supercharge your online auto and parts commerce' || t.startsWith('Supercharge your online auto and parts commerce'))).toBeTruthy(); | |
| }); | |
| test('solutions_for_automotive_transportation: h2 "Fuel faster innovation"', async ({ page }) => { | |
| await page.goto('/solutions/for-automotive-transportation/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fuel faster innovation' || t.startsWith('Fuel faster innovation'))).toBeTruthy(); | |
| }); | |
| test('solutions_for_automotive_transportation: h2 "The powertrain built for peak "', async ({ page }) => { | |
| await page.goto('/solutions/for-automotive-transportation/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The powertrain built for peak performance' || t.startsWith('The powertrain built for peak performance'))).toBeTruthy(); | |
| }); | |
| test('solutions_for_automotive_transportation: h2 "Charting the road ahead for th"', async ({ page }) => { | |
| await page.goto('/solutions/for-automotive-transportation/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Charting the road ahead for the automotive industry' || t.startsWith('Charting the road ahead for the automotive industry'))).toBeTruthy(); | |
| }); | |
| test('solutions_for_automotive_transportation: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/solutions/for-automotive-transportation/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_for_automotive_transportation: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/solutions/for-automotive-transportation/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_for_automotive_transportation: nav link "Kartova posts strong Q1 2026 g"', async ({ page }) => { | |
| await page.goto('/solutions/for-automotive-transportation/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts strong Q1 2026 growth, surpassing the \$100B GM' || t.startsWith('Kartova posts strong Q1 2026 growth, surpassing the \$100B GM')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_for_automotive_transportation: nav link "In focus with AI: How computer"', async ({ page }) => { | |
| await page.goto('/solutions/for-automotive-transportation/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'In focus with AI: How computer vision is reshaping modern re' || t.startsWith('In focus with AI: How computer vision is reshaping modern re')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - solutions_for_fashion_lifestyle', () => { | |
| test('solutions_for_fashion_lifestyle: title matches GT', async ({ page }) => { | |
| await page.goto('/solutions/for-fashion-lifestyle/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('kartova enterprise solutions for fashion'); | |
| }); | |
| test('solutions_for_fashion_lifestyle: h1 "Tailored to keep pace with mod"', async ({ page }) => { | |
| await page.goto('/solutions/for-fashion-lifestyle/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Tailored to keep pace with modern style' || t.startsWith('Tailored to keep pace with modern style'))).toBeTruthy(); | |
| }); | |
| test('solutions_for_fashion_lifestyle: h2 "The lasting foundation for an "', async ({ page }) => { | |
| await page.goto('/solutions/for-fashion-lifestyle/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The lasting foundation for an industry in constant motion' || t.startsWith('The lasting foundation for an industry in constant motion'))).toBeTruthy(); | |
| }); | |
| test('solutions_for_fashion_lifestyle: h2 "Delighted shoppers turn into s"', async ({ page }) => { | |
| await page.goto('/solutions/for-fashion-lifestyle/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Delighted shoppers turn into stronger sales.' || t.startsWith('Delighted shoppers turn into stronger sales.'))).toBeTruthy(); | |
| }); | |
| test('solutions_for_fashion_lifestyle: h2 "Future-ready brands lead with "', async ({ page }) => { | |
| await page.goto('/solutions/for-fashion-lifestyle/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Future-ready brands lead with one clear focus. Customer experience' || t.startsWith('Future-ready brands lead with one clear focus. Customer experience'))).toBeTruthy(); | |
| }); | |
| test('solutions_for_fashion_lifestyle: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/solutions/for-fashion-lifestyle/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_for_fashion_lifestyle: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/solutions/for-fashion-lifestyle/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_for_fashion_lifestyle: nav link "Kartova posts robust Q1 2026 r"', async ({ page }) => { | |
| await page.goto('/solutions/for-fashion-lifestyle/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts robust Q1 2026 results, crossing the \$100B GMV' || t.startsWith('Kartova posts robust Q1 2026 results, crossing the \$100B GMV')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_for_fashion_lifestyle: nav link "Seen through AI: how computer "', async ({ page }) => { | |
| await page.goto('/solutions/for-fashion-lifestyle/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seen through AI: how computer vision is transforming the ret' || t.startsWith('Seen through AI: how computer vision is transforming the ret')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - solutions_for_food_grocery', () => { | |
| test('solutions_for_food_grocery: title matches GT', async ({ page }) => { | |
| await page.goto('/solutions/for-food-grocery/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('kartova enterprise solutions for food & '); | |
| }); | |
| test('solutions_for_food_grocery: h1 "Delight every online grocery s"', async ({ page }) => { | |
| await page.goto('/solutions/for-food-grocery/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Delight every online grocery shopper and turn browsing into loyalty.' || t.startsWith('Delight every online grocery shopper and turn browsing into loyalty.'))).toBeTruthy(); | |
| }); | |
| test('solutions_for_food_grocery: h2 "The blueprint for future-proof"', async ({ page }) => { | |
| await page.goto('/solutions/for-food-grocery/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The blueprint for future-proofing your commerce strategy.' || t.startsWith('The blueprint for future-proofing your commerce strategy.'))).toBeTruthy(); | |
| }); | |
| test('solutions_for_food_grocery: h2 "One commerce solution for ever"', async ({ page }) => { | |
| await page.goto('/solutions/for-food-grocery/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'One commerce solution for every digital opportunity.' || t.startsWith('One commerce solution for every digital opportunity.'))).toBeTruthy(); | |
| }); | |
| test('solutions_for_food_grocery: h2 "The gourmet eCommerce experien"', async ({ page }) => { | |
| await page.goto('/solutions/for-food-grocery/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The gourmet eCommerce experience built for grocery brands.' || t.startsWith('The gourmet eCommerce experience built for grocery brands.'))).toBeTruthy(); | |
| }); | |
| test('solutions_for_food_grocery: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/solutions/for-food-grocery/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_for_food_grocery: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/solutions/for-food-grocery/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_for_food_grocery: nav link "Kartova posts robust Q1 2026 m"', async ({ page }) => { | |
| await page.goto('/solutions/for-food-grocery/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts robust Q1 2026 momentum, crossing the \$100B GM' || t.startsWith('Kartova posts robust Q1 2026 momentum, crossing the \$100B GM')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_for_food_grocery: nav link "Seeing retail anew: how comput"', async ({ page }) => { | |
| await page.goto('/solutions/for-food-grocery/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seeing retail anew: how computer vision and AI are transform' || t.startsWith('Seeing retail anew: how computer vision and AI are transform')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - solutions_for_healthcare', () => { | |
| test('solutions_for_healthcare: title matches GT', async ({ page }) => { | |
| await page.goto('/solutions/for-healthcare/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('kartova enterprise commerce solutions fo'); | |
| }); | |
| test('solutions_for_healthcare: h1 "Connected patient journeys, de"', async ({ page }) => { | |
| await page.goto('/solutions/for-healthcare/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Connected patient journeys, delivered at the speed of care.' || t.startsWith('Connected patient journeys, delivered at the speed of care.'))).toBeTruthy(); | |
| }); | |
| test('solutions_for_healthcare: h2 "The commerce platform relied o"', async ({ page }) => { | |
| await page.goto('/solutions/for-healthcare/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The commerce platform relied on by 50+ healthcare organizations' || t.startsWith('The commerce platform relied on by 50+ healthcare organizations'))).toBeTruthy(); | |
| }); | |
| test('solutions_for_healthcare: h2 "Rethinking healthcare with mod"', async ({ page }) => { | |
| await page.goto('/solutions/for-healthcare/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Rethinking healthcare with modern digital commerce.' || t.startsWith('Rethinking healthcare with modern digital commerce.'))).toBeTruthy(); | |
| }); | |
| test('solutions_for_healthcare: h2 "A clean bill of technical heal"', async ({ page }) => { | |
| await page.goto('/solutions/for-healthcare/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'A clean bill of technical health. Powered by composable commerce.' || t.startsWith('A clean bill of technical health. Powered by composable commerce.'))).toBeTruthy(); | |
| }); | |
| test('solutions_for_healthcare: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/solutions/for-healthcare/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_for_healthcare: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/solutions/for-healthcare/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_for_healthcare: nav link "Kartova reports strong Q1 2026"', async ({ page }) => { | |
| await page.goto('/solutions/for-healthcare/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova reports strong Q1 2026 growth, surpassing the \$100B ' || t.startsWith('Kartova reports strong Q1 2026 growth, surpassing the \$100B ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_for_healthcare: nav link "Through the lens of AI: how co"', async ({ page }) => { | |
| await page.goto('/solutions/for-healthcare/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Through the lens of AI: how computer vision is transforming ' || t.startsWith('Through the lens of AI: how computer vision is transforming ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - solutions_for_retail', () => { | |
| test('solutions_for_retail: title matches GT', async ({ page }) => { | |
| await page.goto('/solutions/for-retail/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('kartova enterprise commerce solutions fo'); | |
| }); | |
| test('solutions_for_retail: h1 "Retail simply runs better on K"', async ({ page }) => { | |
| await page.goto('/solutions/for-retail/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Retail simply runs better on Kartova' || t.startsWith('Retail simply runs better on Kartova'))).toBeTruthy(); | |
| }); | |
| test('solutions_for_retail: h2 "We help retailers move ahead, "', async ({ page }) => { | |
| await page.goto('/solutions/for-retail/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'We help retailers move ahead, stand apart — and run their business smarter.' || t.startsWith('We help retailers move ahead, stand apart — and run their business smarter.'))).toBeTruthy(); | |
| }); | |
| test('solutions_for_retail: h2 "Retailers that reshaped what c"', async ({ page }) => { | |
| await page.goto('/solutions/for-retail/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Retailers that reshaped what commerce can be — and what it can deliver.' || t.startsWith('Retailers that reshaped what commerce can be — and what it can deliver.'))).toBeTruthy(); | |
| }); | |
| test('solutions_for_retail: h2 "Frostvale Foods"', async ({ page }) => { | |
| await page.goto('/solutions/for-retail/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Frostvale Foods' || t.startsWith('Frostvale Foods'))).toBeTruthy(); | |
| }); | |
| test('solutions_for_retail: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/solutions/for-retail/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_for_retail: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/solutions/for-retail/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_for_retail: nav link "Kartova posts robust Q1 2026 r"', async ({ page }) => { | |
| await page.goto('/solutions/for-retail/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts robust Q1 2026 results, crossing the \$100B GMV' || t.startsWith('Kartova posts robust Q1 2026 results, crossing the \$100B GMV')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_for_retail: nav link "Seen through AI: how computer "', async ({ page }) => { | |
| await page.goto('/solutions/for-retail/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seen through AI: how computer vision is transforming the mod' || t.startsWith('Seen through AI: how computer vision is transforming the mod')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - solutions_for_telecommunications', () => { | |
| test('solutions_for_telecommunications: title matches GT', async ({ page }) => { | |
| await page.goto('/solutions/for-telecommunications/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('kartova enterprise solutions for telecom'); | |
| }); | |
| test('solutions_for_telecommunications: h1 "Grow past connectivity with tr"', async ({ page }) => { | |
| await page.goto('/solutions/for-telecommunications/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Grow past connectivity with truly composable commerce' || t.startsWith('Grow past connectivity with truly composable commerce'))).toBeTruthy(); | |
| }); | |
| test('solutions_for_telecommunications: h2 "Time for a rethink"', async ({ page }) => { | |
| await page.goto('/solutions/for-telecommunications/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Time for a rethink' || t.startsWith('Time for a rethink'))).toBeTruthy(); | |
| }); | |
| test('solutions_for_telecommunications: h2 "A platform built for exactly w"', async ({ page }) => { | |
| await page.goto('/solutions/for-telecommunications/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'A platform built for exactly what telcos need' || t.startsWith('A platform built for exactly what telcos need'))).toBeTruthy(); | |
| }); | |
| test('solutions_for_telecommunications: h2 "Composable, and connected"', async ({ page }) => { | |
| await page.goto('/solutions/for-telecommunications/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Composable, and connected' || t.startsWith('Composable, and connected'))).toBeTruthy(); | |
| }); | |
| test('solutions_for_telecommunications: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/solutions/for-telecommunications/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_for_telecommunications: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/solutions/for-telecommunications/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_for_telecommunications: nav link "Kartova reports strong Q1 2026"', async ({ page }) => { | |
| await page.goto('/solutions/for-telecommunications/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova reports strong Q1 2026 growth, breaking past the \$10' || t.startsWith('Kartova reports strong Q1 2026 growth, breaking past the \$10')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_for_telecommunications: nav link "Seen through AI: how computer "', async ({ page }) => { | |
| await page.goto('/solutions/for-telecommunications/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seen through AI: how computer vision is transforming the mod' || t.startsWith('Seen through AI: how computer vision is transforming the mod')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - technology_trust_center', () => { | |
| test('technology_trust_center: title matches GT', async ({ page }) => { | |
| await page.goto('/technology/trust-center/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('trust center'); | |
| }); | |
| test('technology_trust_center: h1 "Your trust powers everything w"', async ({ page }) => { | |
| await page.goto('/technology/trust-center/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Your trust powers everything we build' || t.startsWith('Your trust powers everything we build'))).toBeTruthy(); | |
| }); | |
| test('technology_trust_center: h2 "Security Culture"', async ({ page }) => { | |
| await page.goto('/technology/trust-center/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Security Culture' || t.startsWith('Security Culture'))).toBeTruthy(); | |
| }); | |
| test('technology_trust_center: h2 "Business Continuity Management"', async ({ page }) => { | |
| await page.goto('/technology/trust-center/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Business Continuity Management (BCM)' || t.startsWith('Business Continuity Management (BCM)'))).toBeTruthy(); | |
| }); | |
| test('technology_trust_center: h2 "Performance Management"', async ({ page }) => { | |
| await page.goto('/technology/trust-center/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Performance Management' || t.startsWith('Performance Management'))).toBeTruthy(); | |
| }); | |
| test('technology_trust_center: nav link "Customers"', async ({ page }) => { | |
| await page.goto('/technology/trust-center/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('technology_trust_center: nav link "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/technology/trust-center/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('technology_trust_center: nav link "Kartova posts robust Q1 2026 r"', async ({ page }) => { | |
| await page.goto('/technology/trust-center/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Kartova posts robust Q1 2026 results, pushing past the \$100B' || t.startsWith('Kartova posts robust Q1 2026 results, pushing past the \$100B')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('technology_trust_center: nav link "Seen through AI: how computer "', async ({ page }) => { | |
| await page.goto('/technology/trust-center/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Seen through AI: how computer vision is turning retail on it' || t.startsWith('Seen through AI: how computer vision is turning retail on it')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - Routing', () => { | |
| test('navigate to press_releases_kartova_reports_strong_q1_2026 via "Kartova crosses \$100B GMV run-"', async ({ page }) => { | |
| await page.goto('/'); | |
| const link = page.locator('a[href*="kartova-reports-strong-q1-2026"]').first(); | |
| expect(await link.count(), 'nav link to press_releases_kartova_reports_strong_q1_2026 exists').toBeGreaterThan(0); | |
| await link.click(); | |
| await page.waitForTimeout(1200); | |
| expect(page.url().toLowerCase(), 'URL changed to destination').toContain('kartova-reports-strong-q1-2026'); | |
| const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); | |
| expect(bodyText, 'destination distinctive content shown').toContain('Kartova reports strong Q1 2026 growth, surpassing the \$100B '); | |
| }); | |
| test('navigate to customer_stories via "Customers"', async ({ page }) => { | |
| await page.goto('/'); | |
| const link = page.locator('a[href*="customer-stories"]').first(); | |
| expect(await link.count(), 'nav link to customer_stories exists').toBeGreaterThan(0); | |
| await link.click(); | |
| await page.waitForTimeout(1200); | |
| expect(page.url().toLowerCase(), 'URL changed to destination').toContain('customer-stories'); | |
| const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); | |
| expect(bodyText, 'destination distinctive content shown').toContain('Backed by industry leaders. Built to accelerate growth.'); | |
| }); | |
| test('navigate to free_trial via "Start Free Trial"', async ({ page }) => { | |
| await page.goto('/'); | |
| const link = page.locator('a[href*="free-trial"]').first(); | |
| expect(await link.count(), 'nav link to free_trial exists').toBeGreaterThan(0); | |
| await link.click(); | |
| await page.waitForTimeout(1200); | |
| expect(page.url().toLowerCase(), 'URL changed to destination').toContain('free-trial'); | |
| const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); | |
| expect(bodyText, 'destination distinctive content shown').toContain('Start building with Kartova, completely free'); | |
| }); | |
| }); | |