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('vaultera'); }); test('homepage: h1 "The Complete Power"', async ({ page }) => { await page.goto('/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Complete Power' || t.startsWith('The Complete Power'))).toBeTruthy(); }); test('homepage: h1 "Build on Vaultera"', async ({ page }) => { await page.goto('/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Build on Vaultera' || t.startsWith('Build on Vaultera'))).toBeTruthy(); }); test('homepage: h1 "Proven by Default"', async ({ page }) => { await page.goto('/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Proven by Default' || t.startsWith('Proven by Default'))).toBeTruthy(); }); test('homepage: nav link "Vaultera AppSavings for everyo"', 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 === 'Vaultera AppSavings for everyone.' || t.startsWith('Vaultera AppSavings for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('homepage: nav link "Vaultera ProV4The full power o"', 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 === 'Vaultera ProV4The full power of DeFi.' || t.startsWith('Vaultera ProV4The full power of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('homepage: nav link "Vaultera KitBuild with Vaulter"', 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 === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - about', () => { test('about: title matches GT', async ({ page }) => { await page.goto('/about/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('about us'); }); test('about: h1 "Delivering onchainwealth to ev"', async ({ page }) => { await page.goto('/about/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Delivering onchainwealth to everyone.' || t.startsWith('Delivering onchainwealth to everyone.'))).toBeTruthy(); }); test('about: h2 "Knowledge"', async ({ page }) => { await page.goto('/about/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Knowledge' || t.startsWith('Knowledge'))).toBeTruthy(); }); test('about: h2 "Builders"', async ({ page }) => { await page.goto('/about/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Builders' || t.startsWith('Builders'))).toBeTruthy(); }); test('about: h2 "Our journey."', async ({ page }) => { await page.goto('/about/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our journey.' || t.startsWith('Our journey.'))).toBeTruthy(); }); test('about: nav link "Vaultera AppSavings for everyo"', async ({ page }) => { await page.goto('/about/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppSavings for everyone.' || t.startsWith('Vaultera AppSavings for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('about: nav link "Vaultera ProV4The full power o"', async ({ page }) => { await page.goto('/about/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The full power of DeFi.' || t.startsWith('Vaultera ProV4The full power of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('about: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/about/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - app', () => { test('app: title matches GT', async ({ page }) => { await page.goto('/app/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('app'); }); test('app: h1 "Earn up to 6.50%on your stable"', async ({ page }) => { await page.goto('/app/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Earn up to 6.50%on your stablecoins.' || t.startsWith('Earn up to 6.50%on your stablecoins.'))).toBeTruthy(); }); test('app: h2 "Resources"', async ({ page }) => { await page.goto('/app/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('app: h2 "Developers"', async ({ page }) => { await page.goto('/app/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('app: h2 "Stronger rates. Best-in-class "', async ({ page }) => { await page.goto('/app/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stronger rates. Best-in-class protection.' || t.startsWith('Stronger rates. Best-in-class protection.'))).toBeTruthy(); }); test('app: nav link "Vaultera AppOnchain yield for "', async ({ page }) => { await page.goto('/app/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOnchain yield for all.' || t.startsWith('Vaultera AppOnchain yield for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('app: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/app/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its fullest.' || t.startsWith('Vaultera ProV4DeFi at its fullest.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('app: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/app/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog', () => { test('blog: title matches GT', async ({ page }) => { await page.goto('/blog/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('blog'); }); test('blog: h1 "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 === 'Blog' || t.startsWith('Blog'))).toBeTruthy(); }); test('blog: h2 "Resources"', 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 === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog: h2 "Developers"', 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 === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog: h2 "Vaultera Powers Everyday Oncha"', 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 === 'Vaultera Powers Everyday Onchain Spending Through a Global Card Network' || t.startsWith('Vaultera Powers Everyday Onchain Spending Through a Global Card Network'))).toBeTruthy(); }); test('blog: nav link "Vaultera AppYield for anyone."', 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 === 'Vaultera AppYield for anyone.' || t.startsWith('Vaultera AppYield for anyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog: nav link "Vaultera ProV4DeFi at full str"', 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 === 'Vaultera ProV4DeFi at full strength.' || t.startsWith('Vaultera ProV4DeFi at full strength.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog: nav link "Vaultera KitShip with Vaultera"', 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 === 'Vaultera KitShip with Vaultera.' || t.startsWith('Vaultera KitShip with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - brand', () => { test('brand: title matches GT', async ({ page }) => { await page.goto('/brand/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('brand'); }); test('brand: h1 "Vaultera Brand"', async ({ page }) => { await page.goto('/brand/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera Brand' || t.startsWith('Vaultera Brand'))).toBeTruthy(); }); test('brand: h2 "Resources"', async ({ page }) => { await page.goto('/brand/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('brand: h2 "Developers"', async ({ page }) => { await page.goto('/brand/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('brand: h2 "Logo"', async ({ page }) => { await page.goto('/brand/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Logo' || t.startsWith('Logo'))).toBeTruthy(); }); test('brand: nav link "Vaultera AppOnchain yield for "', async ({ page }) => { await page.goto('/brand/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOnchain yield for all.' || t.startsWith('Vaultera AppOnchain yield for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('brand: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/brand/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full strength.' || t.startsWith('Vaultera ProV4DeFi at its full strength.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('brand: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/brand/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - build', () => { test('build: title matches GT', async ({ page }) => { await page.goto('/build/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('build'); }); test('build: h1 "Build on the Vaultera Stack."', async ({ page }) => { await page.goto('/build/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Build on the Vaultera Stack.' || t.startsWith('Build on the Vaultera Stack.'))).toBeTruthy(); }); test('build: h1 "\$40B"', async ({ page }) => { await page.goto('/build/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '\$40B' || t.startsWith('\$40B'))).toBeTruthy(); }); test('build: h1 "56%"', async ({ page }) => { await page.goto('/build/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '56%' || t.startsWith('56%'))).toBeTruthy(); }); test('build: h1 "10x"', async ({ page }) => { await page.goto('/build/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '10x' || t.startsWith('10x'))).toBeTruthy(); }); test('build: nav link "Vaultera AppOpen savings for a"', async ({ page }) => { await page.goto('/build/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOpen savings for all.' || t.startsWith('Vaultera AppOpen savings for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('build: nav link "Vaultera ProV4The complete DeF"', async ({ page }) => { await page.goto('/build/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The complete DeFi toolkit.' || t.startsWith('Vaultera ProV4The complete DeFi toolkit.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('build: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/build/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - careers', () => { test('careers: title matches GT', async ({ page }) => { await page.goto('/careers/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('careers'); }); test('careers: h1 "Careers"', 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 === 'Careers' || t.startsWith('Careers'))).toBeTruthy(); }); test('careers: h2 "Resources"', 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 === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('careers: h2 "Developers"', 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 === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('careers: h2 "Onchain Builders Summit • Lisb"', 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 === 'Onchain Builders Summit • Lisbon 2025' || t.startsWith('Onchain Builders Summit • Lisbon 2025'))).toBeTruthy(); }); test('careers: nav link "Vaultera AppYield for everyone"', 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 === 'Vaultera AppYield for everyone.' || t.startsWith('Vaultera AppYield for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('careers: nav link "Vaultera ProV4The complete DeF"', 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 === 'Vaultera ProV4The complete DeFi toolkit.' || t.startsWith('Vaultera ProV4The complete DeFi toolkit.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('careers: nav link "Vaultera KitShip on Vaultera."', 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 === 'Vaultera KitShip on Vaultera.' || t.startsWith('Vaultera KitShip on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs', () => { test('docs: title matches GT', async ({ page }) => { await page.goto('/docs/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera protocol guide'); }); test('docs: h1 "Vaultera Documentation"', async ({ page }) => { await page.goto('/docs/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera Documentation' || t.startsWith('Vaultera Documentation'))).toBeTruthy(); }); test('docs: h2 "Get to Know Vaultera"', async ({ page }) => { await page.goto('/docs/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Get to Know Vaultera' || t.startsWith('Get to Know Vaultera'))).toBeTruthy(); }); test('docs: h2 "Integrate Vaultera"', async ({ page }) => { await page.goto('/docs/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Integrate Vaultera' || t.startsWith('Integrate Vaultera'))).toBeTruthy(); }); test('docs: h2 "Quick Links"', async ({ page }) => { await page.goto('/docs/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); }); test('docs: nav link "Vaultera AppEarning for everyo"', async ({ page }) => { await page.goto('/docs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning for everyone.' || t.startsWith('Vaultera AppEarning for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs: nav link "Vaultera ProV4The complete DeF"', async ({ page }) => { await page.goto('/docs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The complete DeFi toolkit.' || t.startsWith('Vaultera ProV4The complete DeFi toolkit.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs: nav link "BlogRecent news, notes and pos"', async ({ page }) => { await page.goto('/docs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogRecent news, notes and posts.' || t.startsWith('BlogRecent news, notes and posts.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - faq', () => { test('faq: title matches GT', async ({ page }) => { await page.goto('/faq/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('faq'); }); test('faq: h1 "FAQ"', async ({ page }) => { await page.goto('/faq/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'FAQ' || t.startsWith('FAQ'))).toBeTruthy(); }); test('faq: h2 "Resources"', async ({ page }) => { await page.goto('/faq/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('faq: h2 "Developers"', async ({ page }) => { await page.goto('/faq/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('faq: h2 "General"', async ({ page }) => { await page.goto('/faq/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'General' || t.startsWith('General'))).toBeTruthy(); }); test('faq: nav link "Vaultera AppOnchain savings fo"', async ({ page }) => { await page.goto('/faq/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOnchain savings for all.' || t.startsWith('Vaultera AppOnchain savings for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('faq: nav link "Vaultera ProV4The full reach o"', async ({ page }) => { await page.goto('/faq/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The full reach of DeFi.' || t.startsWith('Vaultera ProV4The full reach of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('faq: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/faq/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - help', () => { test('help: title matches GT', async ({ page }) => { await page.goto('/help/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('help center'); }); test('help: h1 "Help & Support"', async ({ page }) => { await page.goto('/help/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Help & Support' || t.startsWith('Help & Support'))).toBeTruthy(); }); test('help: h2 "Resources"', async ({ page }) => { await page.goto('/help/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('help: h2 "Developers"', async ({ page }) => { await page.goto('/help/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('help: h2 "Guides"', async ({ page }) => { await page.goto('/help/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Guides' || t.startsWith('Guides'))).toBeTruthy(); }); test('help: nav link "Web AppEarning for everyone."', async ({ page }) => { await page.goto('/help/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Web AppEarning for everyone.' || t.startsWith('Web AppEarning for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('help: nav link "Vaultera ProV4DeFi at full str"', async ({ page }) => { await page.goto('/help/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at full strength.' || t.startsWith('Vaultera ProV4DeFi at full strength.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('help: nav link "Vaultera KitBuild onchain."', async ({ page }) => { await page.goto('/help/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild onchain.' || t.startsWith('Vaultera KitBuild onchain.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - legal_podcast', () => { test('legal_podcast: title matches GT', async ({ page }) => { await page.goto('/legal/podcast/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('podcast disclosures'); }); test('legal_podcast: h1 "Vaultera Podcast Notices"', async ({ page }) => { await page.goto('/legal/podcast/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera Podcast Notices' || t.startsWith('Vaultera Podcast Notices'))).toBeTruthy(); }); test('legal_podcast: h2 "Resources"', async ({ page }) => { await page.goto('/legal/podcast/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('legal_podcast: h2 "Developers"', async ({ page }) => { await page.goto('/legal/podcast/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('legal_podcast: h3 "About"', async ({ page }) => { await page.goto('/legal/podcast/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About'))).toBeTruthy(); }); test('legal_podcast: nav link "Vaultera AppEarning, made simp"', async ({ page }) => { await page.goto('/legal/podcast/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning, made simple.' || t.startsWith('Vaultera AppEarning, made simple.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('legal_podcast: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/legal/podcast/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full scale.' || t.startsWith('Vaultera ProV4DeFi at its full scale.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('legal_podcast: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/legal/podcast/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - privacy_policy', () => { test('privacy_policy: title matches GT', async ({ page }) => { await page.goto('/privacy-policy/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('privacy policy'); }); test('privacy_policy: h1 "Privacy Policy"', async ({ page }) => { await page.goto('/privacy-policy/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Privacy Policy' || t.startsWith('Privacy Policy'))).toBeTruthy(); }); test('privacy_policy: h2 "Resources"', async ({ page }) => { await page.goto('/privacy-policy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('privacy_policy: h2 "Developers"', async ({ page }) => { await page.goto('/privacy-policy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('privacy_policy: h3 "About"', async ({ page }) => { await page.goto('/privacy-policy/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About'))).toBeTruthy(); }); test('privacy_policy: nav link "Vaultera AppEarning for everyo"', async ({ page }) => { await page.goto('/privacy-policy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning for everyone.' || t.startsWith('Vaultera AppEarning for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('privacy_policy: nav link "Vaultera ProV4All the power of"', async ({ page }) => { await page.goto('/privacy-policy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4All the power of DeFi.' || t.startsWith('Vaultera ProV4All the power of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('privacy_policy: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/privacy-policy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - security', () => { test('security: title matches GT', async ({ page }) => { await page.goto('/security/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('security'); }); test('security: h2 "Resources"', async ({ page }) => { await page.goto('/security/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('security: h2 "Developers"', async ({ page }) => { await page.goto('/security/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('security: h2 "Audits"', async ({ page }) => { await page.goto('/security/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Audits' || t.startsWith('Audits'))).toBeTruthy(); }); test('security: nav link "Vaultera AppOnchain yield for "', async ({ page }) => { await page.goto('/security/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOnchain yield for all.' || t.startsWith('Vaultera AppOnchain yield for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('security: nav link "Vaultera ProV4The next era of "', async ({ page }) => { await page.goto('/security/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The next era of DeFi.' || t.startsWith('Vaultera ProV4The next era of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('security: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/security/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - terms_of_service', () => { test('terms_of_service: title matches GT', async ({ page }) => { await page.goto('/terms-of-service/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera terms of service'); }); test('terms_of_service: h1 "Terms of Service"', async ({ page }) => { await page.goto('/terms-of-service/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Terms of Service' || t.startsWith('Terms of Service'))).toBeTruthy(); }); test('terms_of_service: h2 "Knowledge"', async ({ page }) => { await page.goto('/terms-of-service/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Knowledge' || t.startsWith('Knowledge'))).toBeTruthy(); }); test('terms_of_service: h2 "Builders"', async ({ page }) => { await page.goto('/terms-of-service/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Builders' || t.startsWith('Builders'))).toBeTruthy(); }); test('terms_of_service: h3 "Company"', async ({ page }) => { await page.goto('/terms-of-service/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Company' || t.startsWith('Company'))).toBeTruthy(); }); test('terms_of_service: nav link "Vaultera AppSimple yield, for "', async ({ page }) => { await page.goto('/terms-of-service/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppSimple yield, for all.' || t.startsWith('Vaultera AppSimple yield, for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('terms_of_service: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/terms-of-service/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full scale.' || t.startsWith('Vaultera ProV4DeFi at its full scale.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('terms_of_service: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/terms-of-service/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_vaultera_2025_recap', () => { test('blog_vaultera_2025_recap: title matches GT', async ({ page }) => { await page.goto('/blog/vaultera-2025-recap/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera 2025 recap'); }); test('blog_vaultera_2025_recap: h2 "Resources"', async ({ page }) => { await page.goto('/blog/vaultera-2025-recap/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_vaultera_2025_recap: h2 "Developers"', async ({ page }) => { await page.goto('/blog/vaultera-2025-recap/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_vaultera_2025_recap: h2 "Back to BlogVaultera 2025 in R"', async ({ page }) => { await page.goto('/blog/vaultera-2025-recap/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogVaultera 2025 in Review' || t.startsWith('Back to BlogVaultera 2025 in Review'))).toBeTruthy(); }); test('blog_vaultera_2025_recap: h2 "The Vaultera Effect"', async ({ page }) => { await page.goto('/blog/vaultera-2025-recap/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Vaultera Effect' || t.startsWith('The Vaultera Effect'))).toBeTruthy(); }); test('blog_vaultera_2025_recap: nav link "Vaultera AppEarnings for every"', async ({ page }) => { await page.goto('/blog/vaultera-2025-recap/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarnings for everyone.' || t.startsWith('Vaultera AppEarnings for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_2025_recap: nav link "Vaultera ProV4The full DeFi ex"', async ({ page }) => { await page.goto('/blog/vaultera-2025-recap/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The full DeFi experience.' || t.startsWith('Vaultera ProV4The full DeFi experience.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_2025_recap: nav link "Vaultera KitBuild with Vault."', async ({ page }) => { await page.goto('/blog/vaultera-2025-recap/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vault.' || t.startsWith('Vaultera KitBuild with Vault.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_vaultera_app_reimagines_defi_experience', () => { test('blog_vaultera_app_reimagines_defi_experience: title matches GT', async ({ page }) => { await page.goto('/blog/vaultera-app-reimagines-defi-experience/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how the vaultera app redefines the defi '); }); test('blog_vaultera_app_reimagines_defi_experience: h2 "Resources"', async ({ page }) => { await page.goto('/blog/vaultera-app-reimagines-defi-experience/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_vaultera_app_reimagines_defi_experience: h2 "Developers"', async ({ page }) => { await page.goto('/blog/vaultera-app-reimagines-defi-experience/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_vaultera_app_reimagines_defi_experience: h2 "Back to BlogHow Vaultera App R"', async ({ page }) => { await page.goto('/blog/vaultera-app-reimagines-defi-experience/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogHow Vaultera App Reinvents the DeFi Experience' || t.startsWith('Back to BlogHow Vaultera App Reinvents the DeFi Experience'))).toBeTruthy(); }); test('blog_vaultera_app_reimagines_defi_experience: h2 "The Modern Consumer Finance"', async ({ page }) => { await page.goto('/blog/vaultera-app-reimagines-defi-experience/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Modern Consumer Finance' || t.startsWith('The Modern Consumer Finance'))).toBeTruthy(); }); test('blog_vaultera_app_reimagines_defi_experience: nav link "Vaultera AppEarning made simpl"', async ({ page }) => { await page.goto('/blog/vaultera-app-reimagines-defi-experience/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning made simple.' || t.startsWith('Vaultera AppEarning made simple.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_app_reimagines_defi_experience: nav link "Vaultera ProV4DeFi at full str"', async ({ page }) => { await page.goto('/blog/vaultera-app-reimagines-defi-experience/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at full strength.' || t.startsWith('Vaultera ProV4DeFi at full strength.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_app_reimagines_defi_experience: nav link "Vaultera KitBuild on Vaultera."', async ({ page }) => { await page.goto('/blog/vaultera-app-reimagines-defi-experience/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild on Vaultera.' || t.startsWith('Vaultera KitBuild on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_vaultera_aptos', () => { test('blog_vaultera_aptos: title matches GT', async ({ page }) => { await page.goto('/blog/vaultera-aptos/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera v3 launches on movara'); }); test('blog_vaultera_aptos: h2 "Knowledge"', async ({ page }) => { await page.goto('/blog/vaultera-aptos/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Knowledge' || t.startsWith('Knowledge'))).toBeTruthy(); }); test('blog_vaultera_aptos: h2 "Developers"', async ({ page }) => { await page.goto('/blog/vaultera-aptos/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_vaultera_aptos: h2 "Back to BlogVaultera V3 Live o"', async ({ page }) => { await page.goto('/blog/vaultera-aptos/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogVaultera V3 Live on Movara' || t.startsWith('Back to BlogVaultera V3 Live on Movara'))).toBeTruthy(); }); test('blog_vaultera_aptos: h2 "Market Overview"', async ({ page }) => { await page.goto('/blog/vaultera-aptos/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Market Overview' || t.startsWith('Market Overview'))).toBeTruthy(); }); test('blog_vaultera_aptos: nav link "Vaultera AppSavings, open to a"', async ({ page }) => { await page.goto('/blog/vaultera-aptos/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppSavings, open to all.' || t.startsWith('Vaultera AppSavings, open to all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_aptos: nav link "Vaultera ProV4DeFi in its full"', async ({ page }) => { await page.goto('/blog/vaultera-aptos/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi in its fullest form.' || t.startsWith('Vaultera ProV4DeFi in its fullest form.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_aptos: nav link "Vaultera KitBuild on Vaultera."', async ({ page }) => { await page.goto('/blog/vaultera-aptos/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild on Vaultera.' || t.startsWith('Vaultera KitBuild on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_vaultera_arbitrum', () => { test('blog_vaultera_arbitrum: title matches GT', async ({ page }) => { await page.goto('/blog/vaultera-arbitrum/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('optira'); }); test('blog_vaultera_arbitrum: h2 "Resources"', async ({ page }) => { await page.goto('/blog/vaultera-arbitrum/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_vaultera_arbitrum: h2 "Developers"', async ({ page }) => { await page.goto('/blog/vaultera-arbitrum/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_vaultera_arbitrum: h2 "Back to BlogOptira"', async ({ page }) => { await page.goto('/blog/vaultera-arbitrum/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogOptira' || t.startsWith('Back to BlogOptira'))).toBeTruthy(); }); test('blog_vaultera_arbitrum: h2 "Background on Optira"', async ({ page }) => { await page.goto('/blog/vaultera-arbitrum/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background on Optira' || t.startsWith('Background on Optira'))).toBeTruthy(); }); test('blog_vaultera_arbitrum: nav link "Vaultera AppOnchain yield for "', async ({ page }) => { await page.goto('/blog/vaultera-arbitrum/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOnchain yield for all.' || t.startsWith('Vaultera AppOnchain yield for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_arbitrum: nav link "Vaultera ProV4The next era of "', async ({ page }) => { await page.goto('/blog/vaultera-arbitrum/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The next era of DeFi.' || t.startsWith('Vaultera ProV4The next era of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_arbitrum: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/blog/vaultera-arbitrum/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_vaultera_cow_swap', () => { test('blog_vaultera_cow_swap: title matches GT', async ({ page }) => { await page.goto('/blog/vaultera-cow-swap/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera partners with solvex'); }); test('blog_vaultera_cow_swap: h2 "Resources"', async ({ page }) => { await page.goto('/blog/vaultera-cow-swap/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_vaultera_cow_swap: h2 "Developers"', async ({ page }) => { await page.goto('/blog/vaultera-cow-swap/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_vaultera_cow_swap: h2 "Back to BlogVaultera Labs Part"', async ({ page }) => { await page.goto('/blog/vaultera-cow-swap/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogVaultera Labs Partners with SolveX' || t.startsWith('Back to BlogVaultera Labs Partners with SolveX'))).toBeTruthy(); }); test('blog_vaultera_cow_swap: h2 "Raising the Bar for DeFi UX"', async ({ page }) => { await page.goto('/blog/vaultera-cow-swap/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Raising the Bar for DeFi UX' || t.startsWith('Raising the Bar for DeFi UX'))).toBeTruthy(); }); test('blog_vaultera_cow_swap: nav link "Vaultera AppOnchain yield for "', async ({ page }) => { await page.goto('/blog/vaultera-cow-swap/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOnchain yield for all.' || t.startsWith('Vaultera AppOnchain yield for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_cow_swap: nav link "Vaultera ProV4The full force o"', async ({ page }) => { await page.goto('/blog/vaultera-cow-swap/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The full force of DeFi.' || t.startsWith('Vaultera ProV4The full force of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_cow_swap: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/blog/vaultera-cow-swap/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_vaultera_labs_soc2_attestation', () => { test('blog_vaultera_labs_soc2_attestation: title matches GT', async ({ page }) => { await page.goto('/blog/vaultera-labs-soc2-attestation/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera labs earns soc 2 type ii attest'); }); test('blog_vaultera_labs_soc2_attestation: h2 "Resources"', async ({ page }) => { await page.goto('/blog/vaultera-labs-soc2-attestation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_vaultera_labs_soc2_attestation: h2 "Developers"', async ({ page }) => { await page.goto('/blog/vaultera-labs-soc2-attestation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_vaultera_labs_soc2_attestation: h2 "Back to BlogVaultera Labs Earn"', async ({ page }) => { await page.goto('/blog/vaultera-labs-soc2-attestation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogVaultera Labs Earns SOC 2 Type II Attestation for Security, Availability, and Confidenti' || t.startsWith('Back to BlogVaultera Labs Earns SOC 2 Type II Attestation for Security, Availability, and Confidenti'))).toBeTruthy(); }); test('blog_vaultera_labs_soc2_attestation: h2 "Understanding SOC 2 Type"', async ({ page }) => { await page.goto('/blog/vaultera-labs-soc2-attestation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Understanding SOC 2 Type' || t.startsWith('Understanding SOC 2 Type'))).toBeTruthy(); }); test('blog_vaultera_labs_soc2_attestation: nav link "Vaultera AppSavings, made simp"', async ({ page }) => { await page.goto('/blog/vaultera-labs-soc2-attestation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppSavings, made simple.' || t.startsWith('Vaultera AppSavings, made simple.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_labs_soc2_attestation: nav link "Vaultera ProV4DeFi at full str"', async ({ page }) => { await page.goto('/blog/vaultera-labs-soc2-attestation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at full strength.' || t.startsWith('Vaultera ProV4DeFi at full strength.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_labs_soc2_attestation: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/blog/vaultera-labs-soc2-attestation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_vaultera_latam_stablecoin_revolution', () => { test('blog_vaultera_latam_stablecoin_revolution: title matches GT', async ({ page }) => { await page.goto('/blog/vaultera-latam-stablecoin-revolution/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how vaultera is powering latin america\'s'); }); test('blog_vaultera_latam_stablecoin_revolution: h2 "Resources"', async ({ page }) => { await page.goto('/blog/vaultera-latam-stablecoin-revolution/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_vaultera_latam_stablecoin_revolution: h2 "Developers"', async ({ page }) => { await page.goto('/blog/vaultera-latam-stablecoin-revolution/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_vaultera_latam_stablecoin_revolution: h2 "Back to BlogHow Vaultera Is Dr"', async ({ page }) => { await page.goto('/blog/vaultera-latam-stablecoin-revolution/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogHow Vaultera Is Driving Latin America\'s Stablecoin Surge' || t.startsWith('Back to BlogHow Vaultera Is Driving Latin America\'s Stablecoin Surge'))).toBeTruthy(); }); test('blog_vaultera_latam_stablecoin_revolution: h2 "LatAm Crypto Adoption Signals"', async ({ page }) => { await page.goto('/blog/vaultera-latam-stablecoin-revolution/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'LatAm Crypto Adoption Signals' || t.startsWith('LatAm Crypto Adoption Signals'))).toBeTruthy(); }); test('blog_vaultera_latam_stablecoin_revolution: nav link "Vaultera AppOnchain savings, f"', async ({ page }) => { await page.goto('/blog/vaultera-latam-stablecoin-revolution/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOnchain savings, for' || t.startsWith('Vaultera AppOnchain savings, for')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_latam_stablecoin_revolution: nav link "Vaultera ProV4The complete DeF"', async ({ page }) => { await page.goto('/blog/vaultera-latam-stablecoin-revolution/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The complete DeFi engine.' || t.startsWith('Vaultera ProV4The complete DeFi engine.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_latam_stablecoin_revolution: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/blog/vaultera-latam-stablecoin-revolution/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_vaultera_metamask_mastercard', () => { test('blog_vaultera_metamask_mastercard: title matches GT', async ({ page }) => { await page.goto('/blog/vaultera-metamask-mastercard/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera and keyring bring defi to every'); }); test('blog_vaultera_metamask_mastercard: h2 "Resources"', async ({ page }) => { await page.goto('/blog/vaultera-metamask-mastercard/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_vaultera_metamask_mastercard: h2 "Developers"', async ({ page }) => { await page.goto('/blog/vaultera-metamask-mastercard/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_vaultera_metamask_mastercard: h2 "Back to BlogVaultera and Keyri"', async ({ page }) => { await page.goto('/blog/vaultera-metamask-mastercard/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogVaultera and Keyring Bring DeFi to Everyday Payments with Cardova' || t.startsWith('Back to BlogVaultera and Keyring Bring DeFi to Everyday Payments with Cardova'))).toBeTruthy(); }); test('blog_vaultera_metamask_mastercard: h2 "Building the Keyring Card with"', async ({ page }) => { await page.goto('/blog/vaultera-metamask-mastercard/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Building the Keyring Card with Cardova' || t.startsWith('Building the Keyring Card with Cardova'))).toBeTruthy(); }); test('blog_vaultera_metamask_mastercard: nav link "Vaultera AppEarning made simpl"', async ({ page }) => { await page.goto('/blog/vaultera-metamask-mastercard/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning made simple.' || t.startsWith('Vaultera AppEarning made simple.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_metamask_mastercard: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/blog/vaultera-metamask-mastercard/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full strength.' || t.startsWith('Vaultera ProV4DeFi at its full strength.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_metamask_mastercard: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/blog/vaultera-metamask-mastercard/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_vaultera_micar_approval', () => { test('blog_vaultera_micar_approval: title matches GT', async ({ page }) => { await page.goto('/blog/vaultera-micar-approval/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera labs secures regulatory approva'); }); test('blog_vaultera_micar_approval: h2 "Resources"', async ({ page }) => { await page.goto('/blog/vaultera-micar-approval/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_vaultera_micar_approval: h2 "Developers"', async ({ page }) => { await page.goto('/blog/vaultera-micar-approval/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_vaultera_micar_approval: h2 "Back to BlogBeacon by Vaultera"', async ({ page }) => { await page.goto('/blog/vaultera-micar-approval/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogBeacon by Vaultera Labs Earns MiCAR Approval to Enable Zero Fee Stablecoin Onramping' || t.startsWith('Back to BlogBeacon by Vaultera Labs Earns MiCAR Approval to Enable Zero Fee Stablecoin Onramping'))).toBeTruthy(); }); test('blog_vaultera_micar_approval: h2 "Welcoming More People Onchain"', async ({ page }) => { await page.goto('/blog/vaultera-micar-approval/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Welcoming More People Onchain' || t.startsWith('Welcoming More People Onchain'))).toBeTruthy(); }); test('blog_vaultera_micar_approval: nav link "Vaultera AppEarning for everyo"', async ({ page }) => { await page.goto('/blog/vaultera-micar-approval/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning for everyone.' || t.startsWith('Vaultera AppEarning for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_micar_approval: nav link "Vaultera ProV4The complete DeF"', async ({ page }) => { await page.goto('/blog/vaultera-micar-approval/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The complete DeFi stack.' || t.startsWith('Vaultera ProV4The complete DeFi stack.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_micar_approval: nav link "Vaultera KitBuild with Core."', async ({ page }) => { await page.goto('/blog/vaultera-micar-approval/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Core.' || t.startsWith('Vaultera KitBuild with Core.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_vaultera_powers_metamask_stablecoin_earn', () => { test('blog_vaultera_powers_metamask_stablecoin_earn: title matches GT', async ({ page }) => { await page.goto('/blog/vaultera-powers-metamask-stablecoin-earn/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera powers zephyr\'s stablecoin earn'); }); test('blog_vaultera_powers_metamask_stablecoin_earn: h2 "Resources"', async ({ page }) => { await page.goto('/blog/vaultera-powers-metamask-stablecoin-earn/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_vaultera_powers_metamask_stablecoin_earn: h2 "Developers"', async ({ page }) => { await page.goto('/blog/vaultera-powers-metamask-stablecoin-earn/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_vaultera_powers_metamask_stablecoin_earn: h2 "Back to BlogVaultera Powers Ke"', async ({ page }) => { await page.goto('/blog/vaultera-powers-metamask-stablecoin-earn/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogVaultera Powers Keyring\'s Stablecoin Earn Product' || t.startsWith('Back to BlogVaultera Powers Keyring\'s Stablecoin Earn Product'))).toBeTruthy(); }); test('blog_vaultera_powers_metamask_stablecoin_earn: h2 "What Is Stablecoin Earn?"', async ({ page }) => { await page.goto('/blog/vaultera-powers-metamask-stablecoin-earn/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'What Is Stablecoin Earn?' || t.startsWith('What Is Stablecoin Earn?'))).toBeTruthy(); }); test('blog_vaultera_powers_metamask_stablecoin_earn: nav link "The AppEarning for everyone."', async ({ page }) => { await page.goto('/blog/vaultera-powers-metamask-stablecoin-earn/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The AppEarning for everyone.' || t.startsWith('The AppEarning for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_powers_metamask_stablecoin_earn: nav link "Vaultera ProV4The complete DeF"', async ({ page }) => { await page.goto('/blog/vaultera-powers-metamask-stablecoin-earn/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The complete DeFi stack.' || t.startsWith('Vaultera ProV4The complete DeFi stack.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_powers_metamask_stablecoin_earn: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/blog/vaultera-powers-metamask-stablecoin-earn/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_vaultera_pro_user_guide', () => { test('blog_vaultera_pro_user_guide: title matches GT', async ({ page }) => { await page.goto('/blog/vaultera-pro-user-guide/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera pro user guide'); }); test('blog_vaultera_pro_user_guide: h2 "Resources"', async ({ page }) => { await page.goto('/blog/vaultera-pro-user-guide/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_vaultera_pro_user_guide: h2 "Developers"', async ({ page }) => { await page.goto('/blog/vaultera-pro-user-guide/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_vaultera_pro_user_guide: h2 "Back to BlogVaultera Pro User "', async ({ page }) => { await page.goto('/blog/vaultera-pro-user-guide/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogVaultera Pro User Guide' || t.startsWith('Back to BlogVaultera Pro User Guide'))).toBeTruthy(); }); test('blog_vaultera_pro_user_guide: h2 "How Vaultera V4 Works"', async ({ page }) => { await page.goto('/blog/vaultera-pro-user-guide/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How Vaultera V4 Works' || t.startsWith('How Vaultera V4 Works'))).toBeTruthy(); }); test('blog_vaultera_pro_user_guide: nav link "Vaultera AppOnchain earning fo"', async ({ page }) => { await page.goto('/blog/vaultera-pro-user-guide/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOnchain earning for all.' || t.startsWith('Vaultera AppOnchain earning for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_pro_user_guide: nav link "Vaultera ProV4DeFi at full str"', async ({ page }) => { await page.goto('/blog/vaultera-pro-user-guide/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at full strength.' || t.startsWith('Vaultera ProV4DeFi at full strength.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_pro_user_guide: nav link "Vaultera KitBuild with us."', async ({ page }) => { await page.goto('/blog/vaultera-pro-user-guide/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with us.' || t.startsWith('Vaultera KitBuild with us.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_vaultera_v4_liquidations', () => { test('blog_vaultera_v4_liquidations: title matches GT', async ({ page }) => { await page.goto('/blog/vaultera-v4-liquidations/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera v4 liquidation engine'); }); test('blog_vaultera_v4_liquidations: h2 "Resources"', async ({ page }) => { await page.goto('/blog/vaultera-v4-liquidations/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_vaultera_v4_liquidations: h2 "Developers"', async ({ page }) => { await page.goto('/blog/vaultera-v4-liquidations/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_vaultera_v4_liquidations: h2 "Back to BlogVaultera V4\'s New "', async ({ page }) => { await page.goto('/blog/vaultera-v4-liquidations/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogVaultera V4\'s New Liquidation Engine' || t.startsWith('Back to BlogVaultera V4\'s New Liquidation Engine'))).toBeTruthy(); }); test('blog_vaultera_v4_liquidations: h2 "V3 Liquidations Today"', async ({ page }) => { await page.goto('/blog/vaultera-v4-liquidations/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'V3 Liquidations Today' || t.startsWith('V3 Liquidations Today'))).toBeTruthy(); }); test('blog_vaultera_v4_liquidations: nav link "Vaultera AppYield for every wa"', async ({ page }) => { await page.goto('/blog/vaultera-v4-liquidations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppYield for every wallet.' || t.startsWith('Vaultera AppYield for every wallet.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_v4_liquidations: nav link "Vaultera ProV4The complete DeF"', async ({ page }) => { await page.goto('/blog/vaultera-v4-liquidations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The complete DeFi toolkit.' || t.startsWith('Vaultera ProV4The complete DeFi toolkit.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_v4_liquidations: nav link "Vaultera KitShip on Vaultera."', async ({ page }) => { await page.goto('/blog/vaultera-v4-liquidations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitShip on Vaultera.' || t.startsWith('Vaultera KitShip on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_vaultera_v4_live_ethereum', () => { test('blog_vaultera_v4_live_ethereum: title matches GT', async ({ page }) => { await page.goto('/blog/vaultera-v4-live-ethereum/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera v4 live on ethereum'); }); test('blog_vaultera_v4_live_ethereum: h2 "Resources"', async ({ page }) => { await page.goto('/blog/vaultera-v4-live-ethereum/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_vaultera_v4_live_ethereum: h2 "Developers"', async ({ page }) => { await page.goto('/blog/vaultera-v4-live-ethereum/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_vaultera_v4_live_ethereum: h2 "Back to BlogVaultera V4 is Liv"', async ({ page }) => { await page.goto('/blog/vaultera-v4-live-ethereum/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogVaultera V4 is Live on Ethereum' || t.startsWith('Back to BlogVaultera V4 is Live on Ethereum'))).toBeTruthy(); }); test('blog_vaultera_v4_live_ethereum: h2 "Meet Vaultera V4"', async ({ page }) => { await page.goto('/blog/vaultera-v4-live-ethereum/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Meet Vaultera V4' || t.startsWith('Meet Vaultera V4'))).toBeTruthy(); }); test('blog_vaultera_v4_live_ethereum: nav link "Vaultera AppEarning for everyo"', async ({ page }) => { await page.goto('/blog/vaultera-v4-live-ethereum/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning for everyone.' || t.startsWith('Vaultera AppEarning for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_v4_live_ethereum: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/blog/vaultera-v4-live-ethereum/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full strength.' || t.startsWith('Vaultera ProV4DeFi at its full strength.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_v4_live_ethereum: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/blog/vaultera-v4-live-ethereum/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_vaultera_v4_public_testnet_and_code_release', () => { test('blog_vaultera_v4_public_testnet_and_code_release: title matches GT', async ({ page }) => { await page.goto('/blog/vaultera-v4-public-testnet-and-code-release/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera v4 public testnet & live code'); }); test('blog_vaultera_v4_public_testnet_and_code_release: h2 "Resources"', async ({ page }) => { await page.goto('/blog/vaultera-v4-public-testnet-and-code-release/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_vaultera_v4_public_testnet_and_code_release: h2 "Developers"', async ({ page }) => { await page.goto('/blog/vaultera-v4-public-testnet-and-code-release/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_vaultera_v4_public_testnet_and_code_release: h2 "Back to BlogVaultera V4 Testne"', async ({ page }) => { await page.goto('/blog/vaultera-v4-public-testnet-and-code-release/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogVaultera V4 Testnet and Full Code Release' || t.startsWith('Back to BlogVaultera V4 Testnet and Full Code Release'))).toBeTruthy(); }); test('blog_vaultera_v4_public_testnet_and_code_release: h2 "V4\'s New Architecture"', async ({ page }) => { await page.goto('/blog/vaultera-v4-public-testnet-and-code-release/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'V4\'s New Architecture' || t.startsWith('V4\'s New Architecture'))).toBeTruthy(); }); test('blog_vaultera_v4_public_testnet_and_code_release: nav link "Vaultera AppEarnings for every"', async ({ page }) => { await page.goto('/blog/vaultera-v4-public-testnet-and-code-release/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarnings for everyone.' || t.startsWith('Vaultera AppEarnings for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_v4_public_testnet_and_code_release: nav link "Vaultera ProV4DeFi, unlocked i"', async ({ page }) => { await page.goto('/blog/vaultera-v4-public-testnet-and-code-release/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi, unlocked in full.' || t.startsWith('Vaultera ProV4DeFi, unlocked in full.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_v4_public_testnet_and_code_release: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/blog/vaultera-v4-public-testnet-and-code-release/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_vaultera_v4_reinvestment_module', () => { test('blog_vaultera_v4_reinvestment_module: title matches GT', async ({ page }) => { await page.goto('/blog/vaultera-v4-reinvestment-module/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera v4 reinvestment module'); }); test('blog_vaultera_v4_reinvestment_module: h2 "Resources"', async ({ page }) => { await page.goto('/blog/vaultera-v4-reinvestment-module/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_vaultera_v4_reinvestment_module: h2 "Developers"', async ({ page }) => { await page.goto('/blog/vaultera-v4-reinvestment-module/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_vaultera_v4_reinvestment_module: h2 "Back to BlogVaultera V4\'s Rein"', async ({ page }) => { await page.goto('/blog/vaultera-v4-reinvestment-module/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogVaultera V4\'s Reinvestment Module' || t.startsWith('Back to BlogVaultera V4\'s Reinvestment Module'))).toBeTruthy(); }); test('blog_vaultera_v4_reinvestment_module: h2 "The Hidden Cost of Idle Liquid"', async ({ page }) => { await page.goto('/blog/vaultera-v4-reinvestment-module/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Hidden Cost of Idle Liquidity' || t.startsWith('The Hidden Cost of Idle Liquidity'))).toBeTruthy(); }); test('blog_vaultera_v4_reinvestment_module: nav link "Vaultera AppEarning made simpl"', async ({ page }) => { await page.goto('/blog/vaultera-v4-reinvestment-module/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning made simple.' || t.startsWith('Vaultera AppEarning made simple.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_v4_reinvestment_module: nav link "Vaultera ProV4The complete DeF"', async ({ page }) => { await page.goto('/blog/vaultera-v4-reinvestment-module/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The complete DeFi engine.' || t.startsWith('Vaultera ProV4The complete DeFi engine.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_v4_reinvestment_module: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/blog/vaultera-v4-reinvestment-module/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_vaultera_v4_risk_isolation', () => { test('blog_vaultera_v4_risk_isolation: title matches GT', async ({ page }) => { await page.goto('/blog/vaultera-v4-risk-isolation/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how vaultera v4 isolates risk without fr'); }); test('blog_vaultera_v4_risk_isolation: h2 "Resources"', async ({ page }) => { await page.goto('/blog/vaultera-v4-risk-isolation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_vaultera_v4_risk_isolation: h2 "Developers"', async ({ page }) => { await page.goto('/blog/vaultera-v4-risk-isolation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_vaultera_v4_risk_isolation: h2 "Back to BlogHow Vaultera V4 Co"', async ({ page }) => { await page.goto('/blog/vaultera-v4-risk-isolation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogHow Vaultera V4 Contains Risk Without Fragmenting Liquidity' || t.startsWith('Back to BlogHow Vaultera V4 Contains Risk Without Fragmenting Liquidity'))).toBeTruthy(); }); test('blog_vaultera_v4_risk_isolation: h2 "Vaultera V3 Tools for Managing"', async ({ page }) => { await page.goto('/blog/vaultera-v4-risk-isolation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera V3 Tools for Managing Risks' || t.startsWith('Vaultera V3 Tools for Managing Risks'))).toBeTruthy(); }); test('blog_vaultera_v4_risk_isolation: nav link "Vaultera AppSimple savings for"', async ({ page }) => { await page.goto('/blog/vaultera-v4-risk-isolation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppSimple savings for all.' || t.startsWith('Vaultera AppSimple savings for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_v4_risk_isolation: nav link "Vaultera ProV4DeFi at full str"', async ({ page }) => { await page.goto('/blog/vaultera-v4-risk-isolation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at full strength.' || t.startsWith('Vaultera ProV4DeFi at full strength.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_v4_risk_isolation: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/blog/vaultera-v4-risk-isolation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_vaultera_v4_risk_premiums', () => { test('blog_vaultera_v4_risk_premiums: title matches GT', async ({ page }) => { await page.goto('/blog/vaultera-v4-risk-premiums/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera v4 risk premiums'); }); test('blog_vaultera_v4_risk_premiums: h2 "Resources"', async ({ page }) => { await page.goto('/blog/vaultera-v4-risk-premiums/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_vaultera_v4_risk_premiums: h2 "Developers"', async ({ page }) => { await page.goto('/blog/vaultera-v4-risk-premiums/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_vaultera_v4_risk_premiums: h2 "Back to BlogVaultera V4 Risk"', async ({ page }) => { await page.goto('/blog/vaultera-v4-risk-premiums/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogVaultera V4 Risk' || t.startsWith('Back to BlogVaultera V4 Risk'))).toBeTruthy(); }); test('blog_vaultera_v4_risk_premiums: h2 "Vaultera V3\'s Flat Rates"', async ({ page }) => { await page.goto('/blog/vaultera-v4-risk-premiums/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera V3\'s Flat Rates' || t.startsWith('Vaultera V3\'s Flat Rates'))).toBeTruthy(); }); test('blog_vaultera_v4_risk_premiums: nav link "Vaultera AppYield for everyone"', async ({ page }) => { await page.goto('/blog/vaultera-v4-risk-premiums/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppYield for everyone.' || t.startsWith('Vaultera AppYield for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_v4_risk_premiums: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/blog/vaultera-v4-risk-premiums/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its fullest.' || t.startsWith('Vaultera ProV4DeFi at its fullest.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_v4_risk_premiums: nav link "Vaultera KitBuild on Vaultera."', async ({ page }) => { await page.goto('/blog/vaultera-v4-risk-premiums/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild on Vaultera.' || t.startsWith('Vaultera KitBuild on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_vaultera_v4_security_by_design', () => { test('blog_vaultera_v4_security_by_design: title matches GT', async ({ page }) => { await page.goto('/blog/vaultera-v4-security-by-design/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('security by design'); }); test('blog_vaultera_v4_security_by_design: h2 "Resources"', async ({ page }) => { await page.goto('/blog/vaultera-v4-security-by-design/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_vaultera_v4_security_by_design: h2 "Developers"', async ({ page }) => { await page.goto('/blog/vaultera-v4-security-by-design/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_vaultera_v4_security_by_design: h2 "Back to BlogSecurity by Design"', async ({ page }) => { await page.goto('/blog/vaultera-v4-security-by-design/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogSecurity by Design: Vaultera V4 Governance Security Update' || t.startsWith('Back to BlogSecurity by Design: Vaultera V4 Governance Security Update'))).toBeTruthy(); }); test('blog_vaultera_v4_security_by_design: h2 "How We Work"', async ({ page }) => { await page.goto('/blog/vaultera-v4-security-by-design/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How We Work' || t.startsWith('How We Work'))).toBeTruthy(); }); test('blog_vaultera_v4_security_by_design: nav link "Vaultera AppOnchain yield for "', async ({ page }) => { await page.goto('/blog/vaultera-v4-security-by-design/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOnchain yield for all.' || t.startsWith('Vaultera AppOnchain yield for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_v4_security_by_design: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/blog/vaultera-v4-security-by-design/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full scale.' || t.startsWith('Vaultera ProV4DeFi at its full scale.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_v4_security_by_design: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/blog/vaultera-v4-security-by-design/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_vaultera_v4_unified_liquidity_thesis', () => { test('blog_vaultera_v4_unified_liquidity_thesis: title matches GT', async ({ page }) => { await page.goto('/blog/vaultera-v4-unified-liquidity-thesis/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('unified liquidity in vaultera v4'); }); test('blog_vaultera_v4_unified_liquidity_thesis: h2 "Resources"', async ({ page }) => { await page.goto('/blog/vaultera-v4-unified-liquidity-thesis/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_vaultera_v4_unified_liquidity_thesis: h2 "Developers"', async ({ page }) => { await page.goto('/blog/vaultera-v4-unified-liquidity-thesis/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_vaultera_v4_unified_liquidity_thesis: h2 "Back to BlogVaultera V4 and th"', async ({ page }) => { await page.goto('/blog/vaultera-v4-unified-liquidity-thesis/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogVaultera V4 and the Unified Liquidity Thesis' || t.startsWith('Back to BlogVaultera V4 and the Unified Liquidity Thesis'))).toBeTruthy(); }); test('blog_vaultera_v4_unified_liquidity_thesis: h2 "Why Scattered Liquidity Holds "', async ({ page }) => { await page.goto('/blog/vaultera-v4-unified-liquidity-thesis/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Why Scattered Liquidity Holds DeFi Back' || t.startsWith('Why Scattered Liquidity Holds DeFi Back'))).toBeTruthy(); }); test('blog_vaultera_v4_unified_liquidity_thesis: nav link "Vaultera AppEarning for everyo"', async ({ page }) => { await page.goto('/blog/vaultera-v4-unified-liquidity-thesis/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning for everyone.' || t.startsWith('Vaultera AppEarning for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_v4_unified_liquidity_thesis: nav link "Vaultera ProV4The complete DeF"', async ({ page }) => { await page.goto('/blog/vaultera-v4-unified-liquidity-thesis/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The complete DeFi stack.' || t.startsWith('Vaultera ProV4The complete DeFi stack.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_vaultera_v4_unified_liquidity_thesis: nav link "Vaultera KitBuild on Vaultera."', async ({ page }) => { await page.goto('/blog/vaultera-v4-unified-liquidity-thesis/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild on Vaultera.' || t.startsWith('Vaultera KitBuild on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_avalanche', () => { test('blog_avalanche: title matches GT', async ({ page }) => { await page.goto('/blog/avalanche/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('glacio'); }); test('blog_avalanche: h2 "Resources"', async ({ page }) => { await page.goto('/blog/avalanche/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_avalanche: h2 "Developers"', async ({ page }) => { await page.goto('/blog/avalanche/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_avalanche: h2 "Back to BlogFrostline"', async ({ page }) => { await page.goto('/blog/avalanche/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogFrostline' || t.startsWith('Back to BlogFrostline'))).toBeTruthy(); }); test('blog_avalanche: h2 "Summary"', async ({ page }) => { await page.goto('/blog/avalanche/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Summary' || t.startsWith('Summary'))).toBeTruthy(); }); test('blog_avalanche: nav link "Vaultera AppEarning for everyo"', async ({ page }) => { await page.goto('/blog/avalanche/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning for everyone.' || t.startsWith('Vaultera AppEarning for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_avalanche: nav link "Vaultera ProV4The full force o"', async ({ page }) => { await page.goto('/blog/avalanche/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The full force of DeFi.' || t.startsWith('Vaultera ProV4The full force of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_avalanche: nav link "Vaultera KitBuild with Vault."', async ({ page }) => { await page.goto('/blog/avalanche/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vault.' || t.startsWith('Vaultera KitBuild with Vault.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_benchmark_rates_for_defi', () => { test('blog_benchmark_rates_for_defi: title matches GT', async ({ page }) => { await page.goto('/blog/benchmark-rates-for-defi/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how benchmark rates shape finance and de'); }); test('blog_benchmark_rates_for_defi: h2 "Resources"', async ({ page }) => { await page.goto('/blog/benchmark-rates-for-defi/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_benchmark_rates_for_defi: h2 "Developers"', async ({ page }) => { await page.goto('/blog/benchmark-rates-for-defi/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_benchmark_rates_for_defi: h2 "Back to BlogBenchmark Rates in"', async ({ page }) => { await page.goto('/blog/benchmark-rates-for-defi/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogBenchmark Rates in Finance and Vaultera\'s Rise as a DeFi Standard' || t.startsWith('Back to BlogBenchmark Rates in Finance and Vaultera\'s Rise as a DeFi Standard'))).toBeTruthy(); }); test('blog_benchmark_rates_for_defi: h2 "Reliability Comes From Scale"', async ({ page }) => { await page.goto('/blog/benchmark-rates-for-defi/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reliability Comes From Scale' || t.startsWith('Reliability Comes From Scale'))).toBeTruthy(); }); test('blog_benchmark_rates_for_defi: nav link "Vaultera AppEarning for everyo"', async ({ page }) => { await page.goto('/blog/benchmark-rates-for-defi/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning for everyone.' || t.startsWith('Vaultera AppEarning for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_benchmark_rates_for_defi: nav link "Vaultera ProV4The full force o"', async ({ page }) => { await page.goto('/blog/benchmark-rates-for-defi/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The full force of DeFi.' || t.startsWith('Vaultera ProV4The full force of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_benchmark_rates_for_defi: nav link "Vaultera KitBuild on Vaultera."', async ({ page }) => { await page.goto('/blog/benchmark-rates-for-defi/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild on Vaultera.' || t.startsWith('Vaultera KitBuild on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_blockdaemon', () => { test('blog_blockdaemon: title matches GT', async ({ page }) => { await page.goto('/blog/blockdaemon/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('chainforge'); }); test('blog_blockdaemon: h2 "Resources"', async ({ page }) => { await page.goto('/blog/blockdaemon/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_blockdaemon: h2 "Developers"', async ({ page }) => { await page.goto('/blog/blockdaemon/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_blockdaemon: h2 "Back to BlogChainforge"', async ({ page }) => { await page.goto('/blog/blockdaemon/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogChainforge' || t.startsWith('Back to BlogChainforge'))).toBeTruthy(); }); test('blog_blockdaemon: h2 "Overview"', async ({ page }) => { await page.goto('/blog/blockdaemon/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Overview' || t.startsWith('Overview'))).toBeTruthy(); }); test('blog_blockdaemon: nav link "Vaultera AppOnchain savings fo"', async ({ page }) => { await page.goto('/blog/blockdaemon/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOnchain savings for all.' || t.startsWith('Vaultera AppOnchain savings for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_blockdaemon: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/blog/blockdaemon/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full scale.' || t.startsWith('Vaultera ProV4DeFi at its full scale.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_blockdaemon: nav link "Vaultera KitBuild on Vaultera."', async ({ page }) => { await page.goto('/blog/blockdaemon/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild on Vaultera.' || t.startsWith('Vaultera KitBuild on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_btcs', () => { test('blog_btcs: title matches GT', async ({ page }) => { await page.goto('/blog/btcs/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('cindra'); }); test('blog_btcs: h2 "Resources"', async ({ page }) => { await page.goto('/blog/btcs/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_btcs: h2 "Developers"', async ({ page }) => { await page.goto('/blog/btcs/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_btcs: h2 "Back to BlogNOVA"', async ({ page }) => { await page.goto('/blog/btcs/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogNOVA' || t.startsWith('Back to BlogNOVA'))).toBeTruthy(); }); test('blog_btcs: h2 "Snapshot"', async ({ page }) => { await page.goto('/blog/btcs/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Snapshot' || t.startsWith('Snapshot'))).toBeTruthy(); }); test('blog_btcs: nav link "Vaultera AppYield for anyone."', async ({ page }) => { await page.goto('/blog/btcs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppYield for anyone.' || t.startsWith('Vaultera AppYield for anyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_btcs: nav link "Vaultera ProV4DeFi, at full sc"', async ({ page }) => { await page.goto('/blog/btcs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi, at full scale.' || t.startsWith('Vaultera ProV4DeFi, at full scale.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_btcs: nav link "Vaultera KitShip on Vaultera."', async ({ page }) => { await page.goto('/blog/btcs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitShip on Vaultera.' || t.startsWith('Vaultera KitShip on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_building_resilient_yields_beyond_fed_policy', () => { test('blog_building_resilient_yields_beyond_fed_policy: title matches GT', async ({ page }) => { await page.goto('/blog/building-resilient-yields-beyond-fed-policy/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('why defi yields will outrun tradfi'); }); test('blog_building_resilient_yields_beyond_fed_policy: h2 "Resources"', async ({ page }) => { await page.goto('/blog/building-resilient-yields-beyond-fed-policy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_building_resilient_yields_beyond_fed_policy: h2 "Developers"', async ({ page }) => { await page.goto('/blog/building-resilient-yields-beyond-fed-policy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_building_resilient_yields_beyond_fed_policy: h2 "Back to BlogHow DeFi Yields wi"', async ({ page }) => { await page.goto('/blog/building-resilient-yields-beyond-fed-policy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogHow DeFi Yields will Surpass TradFi' || t.startsWith('Back to BlogHow DeFi Yields will Surpass TradFi'))).toBeTruthy(); }); test('blog_building_resilient_yields_beyond_fed_policy: h2 "Primer: Why Fed Policy Ripples"', async ({ page }) => { await page.goto('/blog/building-resilient-yields-beyond-fed-policy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Primer: Why Fed Policy Ripples Into DeFi' || t.startsWith('Primer: Why Fed Policy Ripples Into DeFi'))).toBeTruthy(); }); test('blog_building_resilient_yields_beyond_fed_policy: nav link "Vaultera AppEarning for everyo"', async ({ page }) => { await page.goto('/blog/building-resilient-yields-beyond-fed-policy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning for everyone.' || t.startsWith('Vaultera AppEarning for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_building_resilient_yields_beyond_fed_policy: nav link "Vaultera ProV4The complete DeF"', async ({ page }) => { await page.goto('/blog/building-resilient-yields-beyond-fed-policy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The complete DeFi stack.' || t.startsWith('Vaultera ProV4The complete DeFi stack.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_building_resilient_yields_beyond_fed_policy: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/blog/building-resilient-yields-beyond-fed-policy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_cap', () => { test('blog_cap: title matches GT', async ({ page }) => { await page.goto('/blog/cap/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('corvex'); }); test('blog_cap: h2 "Resources"', async ({ page }) => { await page.goto('/blog/cap/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_cap: h2 "Developers"', async ({ page }) => { await page.goto('/blog/cap/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_cap: h2 "Back to BlogCorvex"', async ({ page }) => { await page.goto('/blog/cap/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogCorvex' || t.startsWith('Back to BlogCorvex'))).toBeTruthy(); }); test('blog_cap: h2 "Background"', async ({ page }) => { await page.goto('/blog/cap/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('blog_cap: nav link "Vaultera AppOnchain yield for "', async ({ page }) => { await page.goto('/blog/cap/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOnchain yield for all.' || t.startsWith('Vaultera AppOnchain yield for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_cap: nav link "Vaultera ProV4The next era of "', async ({ page }) => { await page.goto('/blog/cap/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The next era of DeFi.' || t.startsWith('Vaultera ProV4The next era of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_cap: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/blog/cap/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_case_studies', () => { test('blog_case_studies: title matches GT', async ({ page }) => { await page.goto('/blog/case-studies/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('blog'); }); test('blog_case_studies: h1 "Blog"', async ({ page }) => { await page.goto('/blog/case-studies/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Blog' || t.startsWith('Blog'))).toBeTruthy(); }); test('blog_case_studies: h2 "Resources"', async ({ page }) => { await page.goto('/blog/case-studies/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_case_studies: h2 "Developers"', async ({ page }) => { await page.goto('/blog/case-studies/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_case_studies: h2 "How Orbex Builds on Vaultera"', async ({ page }) => { await page.goto('/blog/case-studies/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How Orbex Builds on Vaultera' || t.startsWith('How Orbex Builds on Vaultera'))).toBeTruthy(); }); test('blog_case_studies: nav link "Vaultera AppYield for everyone"', async ({ page }) => { await page.goto('/blog/case-studies/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppYield for everyone.' || t.startsWith('Vaultera AppYield for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_case_studies: nav link "Vaultera ProV4DeFi at full str"', async ({ page }) => { await page.goto('/blog/case-studies/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at full strength.' || t.startsWith('Vaultera ProV4DeFi at full strength.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_case_studies: nav link "Vaultera KitBuild on Vaultera."', async ({ page }) => { await page.goto('/blog/case-studies/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild on Vaultera.' || t.startsWith('Vaultera KitBuild on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_crypto_backed_loans', () => { test('blog_crypto_backed_loans: title matches GT', async ({ page }) => { await page.goto('/blog/crypto-backed-loans/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('crypto'); }); test('blog_crypto_backed_loans: h2 "Resources"', async ({ page }) => { await page.goto('/blog/crypto-backed-loans/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_crypto_backed_loans: h2 "Developers"', async ({ page }) => { await page.goto('/blog/crypto-backed-loans/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_crypto_backed_loans: h2 "Back to BlogCrypto-backed Lend"', async ({ page }) => { await page.goto('/blog/crypto-backed-loans/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogCrypto-backed Lending' || t.startsWith('Back to BlogCrypto-backed Lending'))).toBeTruthy(); }); test('blog_crypto_backed_loans: h2 "The Advantages of Onchain Lend"', async ({ page }) => { await page.goto('/blog/crypto-backed-loans/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Advantages of Onchain Lending Over Legacy Loans' || t.startsWith('The Advantages of Onchain Lending Over Legacy Loans'))).toBeTruthy(); }); test('blog_crypto_backed_loans: nav link "Vaultera AppYield for all onch"', async ({ page }) => { await page.goto('/blog/crypto-backed-loans/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppYield for all onchain.' || t.startsWith('Vaultera AppYield for all onchain.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_crypto_backed_loans: nav link "Vaultera ProV4DeFi at full str"', async ({ page }) => { await page.goto('/blog/crypto-backed-loans/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at full strength.' || t.startsWith('Vaultera ProV4DeFi at full strength.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_crypto_backed_loans: nav link "Vaultera KitBuild with us."', async ({ page }) => { await page.goto('/blog/crypto-backed-loans/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with us.' || t.startsWith('Vaultera KitBuild with us.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_defi_os', () => { test('blog_defi_os: title matches GT', async ({ page }) => { await page.goto('/blog/defi-os/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('v4 and defi\'s onchain operating system'); }); test('blog_defi_os: h2 "Resources"', async ({ page }) => { await page.goto('/blog/defi-os/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_defi_os: h2 "Developers"', async ({ page }) => { await page.goto('/blog/defi-os/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_defi_os: h2 "Back to BlogHow V4 Makes Vault"', async ({ page }) => { await page.goto('/blog/defi-os/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogHow V4 Makes Vaultera DeFi\'s Operating System' || t.startsWith('Back to BlogHow V4 Makes Vaultera DeFi\'s Operating System'))).toBeTruthy(); }); test('blog_defi_os: h2 "How V4 Resolves It"', async ({ page }) => { await page.goto('/blog/defi-os/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How V4 Resolves It' || t.startsWith('How V4 Resolves It'))).toBeTruthy(); }); test('blog_defi_os: nav link "Vaultera AppEarning made simpl"', async ({ page }) => { await page.goto('/blog/defi-os/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning made simple.' || t.startsWith('Vaultera AppEarning made simple.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_defi_os: nav link "Vaultera ProV4DeFi at full str"', async ({ page }) => { await page.goto('/blog/defi-os/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at full strength.' || t.startsWith('Vaultera ProV4DeFi at full strength.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_defi_os: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/blog/defi-os/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_embedded_defi', () => { test('blog_embedded_defi: title matches GT', async ({ page }) => { await page.goto('/blog/embedded-defi/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('defi for fintechs'); }); test('blog_embedded_defi: h2 "Resources"', async ({ page }) => { await page.goto('/blog/embedded-defi/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_embedded_defi: h2 "Developers"', async ({ page }) => { await page.goto('/blog/embedded-defi/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_embedded_defi: h2 "Back to BlogDeFi for Neobanks"', async ({ page }) => { await page.goto('/blog/embedded-defi/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogDeFi for Neobanks' || t.startsWith('Back to BlogDeFi for Neobanks'))).toBeTruthy(); }); test('blog_embedded_defi: h2 "The Fintech Playbook"', async ({ page }) => { await page.goto('/blog/embedded-defi/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Fintech Playbook' || t.startsWith('The Fintech Playbook'))).toBeTruthy(); }); test('blog_embedded_defi: nav link "Vaultera AppYield within reach"', async ({ page }) => { await page.goto('/blog/embedded-defi/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppYield within reach.' || t.startsWith('Vaultera AppYield within reach.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_embedded_defi: nav link "Vaultera ProV4Every DeFi rail "', async ({ page }) => { await page.goto('/blog/embedded-defi/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4Every DeFi rail unlocked.' || t.startsWith('Vaultera ProV4Every DeFi rail unlocked.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_embedded_defi: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/blog/embedded-defi/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_ethena', () => { test('blog_ethena: title matches GT', async ({ page }) => { await page.goto('/blog/ethena/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('synthova'); }); test('blog_ethena: h2 "Resources"', async ({ page }) => { await page.goto('/blog/ethena/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_ethena: h2 "Developers"', async ({ page }) => { await page.goto('/blog/ethena/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_ethena: h2 "Back to BlogSynthova"', async ({ page }) => { await page.goto('/blog/ethena/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogSynthova' || t.startsWith('Back to BlogSynthova'))).toBeTruthy(); }); test('blog_ethena: h2 "Brief"', async ({ page }) => { await page.goto('/blog/ethena/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Brief' || t.startsWith('Brief'))).toBeTruthy(); }); test('blog_ethena: nav link "Vaultera AppYield for everyone"', async ({ page }) => { await page.goto('/blog/ethena/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppYield for everyone.' || t.startsWith('Vaultera AppYield for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_ethena: nav link "Vaultera ProV4The complete DeF"', async ({ page }) => { await page.goto('/blog/ethena/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The complete DeFi toolkit.' || t.startsWith('Vaultera ProV4The complete DeFi toolkit.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_ethena: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/blog/ethena/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_galaxy', () => { test('blog_galaxy: title matches GT', async ({ page }) => { await page.goto('/blog/galaxy/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('aster'); }); test('blog_galaxy: h2 "Materials"', async ({ page }) => { await page.goto('/blog/galaxy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Materials' || t.startsWith('Materials'))).toBeTruthy(); }); test('blog_galaxy: h2 "Developers"', async ({ page }) => { await page.goto('/blog/galaxy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_galaxy: h2 "Back to NewsNebula"', async ({ page }) => { await page.goto('/blog/galaxy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to NewsNebula' || t.startsWith('Back to NewsNebula'))).toBeTruthy(); }); test('blog_galaxy: h2 "Overview"', async ({ page }) => { await page.goto('/blog/galaxy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Overview' || t.startsWith('Overview'))).toBeTruthy(); }); test('blog_galaxy: nav link "Vaultera AppSavings within rea"', async ({ page }) => { await page.goto('/blog/galaxy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppSavings within reach.' || t.startsWith('Vaultera AppSavings within reach.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_galaxy: nav link "Vaultera ProV4DeFi in its pure"', async ({ page }) => { await page.goto('/blog/galaxy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi in its purest form.' || t.startsWith('Vaultera ProV4DeFi in its purest form.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_galaxy: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/blog/galaxy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_historical_liquidations', () => { test('blog_historical_liquidations: title matches GT', async ({ page }) => { await page.goto('/blog/historical-liquidations/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how vaultera liquidations behave during '); }); test('blog_historical_liquidations: h2 "Resources"', async ({ page }) => { await page.goto('/blog/historical-liquidations/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_historical_liquidations: h2 "Developers"', async ({ page }) => { await page.goto('/blog/historical-liquidations/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_historical_liquidations: h2 "Back to BlogHow Vaultera Liqui"', async ({ page }) => { await page.goto('/blog/historical-liquidations/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogHow Vaultera Liquidations Perform Under Volatile Conditions' || t.startsWith('Back to BlogHow Vaultera Liquidations Perform Under Volatile Conditions'))).toBeTruthy(); }); test('blog_historical_liquidations: h2 "Headline Aggregate Liquidation"', async ({ page }) => { await page.goto('/blog/historical-liquidations/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Headline Aggregate Liquidation Metrics' || t.startsWith('Headline Aggregate Liquidation Metrics'))).toBeTruthy(); }); test('blog_historical_liquidations: nav link "Vaultera AppYield for everyone"', async ({ page }) => { await page.goto('/blog/historical-liquidations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppYield for everyone.' || t.startsWith('Vaultera AppYield for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_historical_liquidations: nav link "Vaultera ProV4DeFi at full sca"', async ({ page }) => { await page.goto('/blog/historical-liquidations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at full scale.' || t.startsWith('Vaultera ProV4DeFi at full scale.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_historical_liquidations: nav link "Vaultera KitBuild on Vaultera."', async ({ page }) => { await page.goto('/blog/historical-liquidations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild on Vaultera.' || t.startsWith('Vaultera KitBuild on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_horizon_built_for_institutions', () => { test('blog_horizon_built_for_institutions: title matches GT', async ({ page }) => { await page.goto('/blog/horizon-built-for-institutions/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('why vaultera horizon is built for instit'); }); test('blog_horizon_built_for_institutions: h2 "Resources"', async ({ page }) => { await page.goto('/blog/horizon-built-for-institutions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_horizon_built_for_institutions: h2 "Developers"', async ({ page }) => { await page.goto('/blog/horizon-built-for-institutions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_horizon_built_for_institutions: h2 "Back to BlogHow Vaultera Horiz"', async ({ page }) => { await page.goto('/blog/horizon-built-for-institutions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogHow Vaultera Horizon is Built to Support Institutions' || t.startsWith('Back to BlogHow Vaultera Horizon is Built to Support Institutions'))).toBeTruthy(); }); test('blog_horizon_built_for_institutions: h2 "The RWA Challenge Facing DeFi"', async ({ page }) => { await page.goto('/blog/horizon-built-for-institutions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The RWA Challenge Facing DeFi' || t.startsWith('The RWA Challenge Facing DeFi'))).toBeTruthy(); }); test('blog_horizon_built_for_institutions: nav link "Vaultera AppOnchain yield for "', async ({ page }) => { await page.goto('/blog/horizon-built-for-institutions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOnchain yield for all.' || t.startsWith('Vaultera AppOnchain yield for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_horizon_built_for_institutions: nav link "Vaultera ProV4The next era of "', async ({ page }) => { await page.goto('/blog/horizon-built-for-institutions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The next era of DeFi.' || t.startsWith('Vaultera ProV4The next era of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_horizon_built_for_institutions: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/blog/horizon-built-for-institutions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_horizon_launch', () => { test('blog_horizon_launch: title matches GT', async ({ page }) => { await page.goto('/blog/horizon-launch/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('horizon launches'); }); test('blog_horizon_launch: h2 "Resources"', async ({ page }) => { await page.goto('/blog/horizon-launch/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_horizon_launch: h2 "Developers"', async ({ page }) => { await page.goto('/blog/horizon-launch/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_horizon_launch: h2 "Back to BlogVaultera Horizon L"', async ({ page }) => { await page.goto('/blog/horizon-launch/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogVaultera Horizon Launches' || t.startsWith('Back to BlogVaultera Horizon Launches'))).toBeTruthy(); }); test('blog_horizon_launch: h2 "Why Pick Horizon"', async ({ page }) => { await page.goto('/blog/horizon-launch/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Why Pick Horizon' || t.startsWith('Why Pick Horizon'))).toBeTruthy(); }); test('blog_horizon_launch: nav link "Vaultera AppOnchain yield for "', async ({ page }) => { await page.goto('/blog/horizon-launch/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOnchain yield for all.' || t.startsWith('Vaultera AppOnchain yield for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_horizon_launch: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/blog/horizon-launch/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its fullest.' || t.startsWith('Vaultera ProV4DeFi at its fullest.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_horizon_launch: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/blog/horizon-launch/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_horizon_vaneck_vbill', () => { test('blog_horizon_vaneck_vbill: title matches GT', async ({ page }) => { await page.goto('/blog/horizon-vaneck-vbill/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera horizon adds meridell tokenized'); }); test('blog_horizon_vaneck_vbill: h2 "Learn"', async ({ page }) => { await page.goto('/blog/horizon-vaneck-vbill/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); }); test('blog_horizon_vaneck_vbill: h2 "Builders"', async ({ page }) => { await page.goto('/blog/horizon-vaneck-vbill/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Builders' || t.startsWith('Builders'))).toBeTruthy(); }); test('blog_horizon_vaneck_vbill: h2 "Back to JournalVaultera Horizo"', async ({ page }) => { await page.goto('/blog/horizon-vaneck-vbill/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to JournalVaultera Horizon Adds Meridell\'s Tokenized Treasury Fund MTREAS' || t.startsWith('Back to JournalVaultera Horizon Adds Meridell\'s Tokenized Treasury Fund MTREAS'))).toBeTruthy(); }); test('blog_horizon_vaneck_vbill: h2 "Why Vaultera RWA"', async ({ page }) => { await page.goto('/blog/horizon-vaneck-vbill/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Why Vaultera RWA' || t.startsWith('Why Vaultera RWA'))).toBeTruthy(); }); test('blog_horizon_vaneck_vbill: nav link "Vaultera AppEarning for everyo"', async ({ page }) => { await page.goto('/blog/horizon-vaneck-vbill/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning for everyone.' || t.startsWith('Vaultera AppEarning for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_horizon_vaneck_vbill: nav link "Vaultera ProV4The full force o"', async ({ page }) => { await page.goto('/blog/horizon-vaneck-vbill/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The full force of DeFi.' || t.startsWith('Vaultera ProV4The full force of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_horizon_vaneck_vbill: nav link "Vaultera KitBuild on Vaultera."', async ({ page }) => { await page.goto('/blog/horizon-vaneck-vbill/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild on Vaultera.' || t.startsWith('Vaultera KitBuild on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_introducing_vaultera_app_smarter_way_to_save', () => { test('blog_introducing_vaultera_app_smarter_way_to_save: title matches GT', async ({ page }) => { await page.goto('/blog/introducing-vaultera-app-smarter-way-to-save/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera app'); }); test('blog_introducing_vaultera_app_smarter_way_to_save: h2 "Resources"', async ({ page }) => { await page.goto('/blog/introducing-vaultera-app-smarter-way-to-save/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_introducing_vaultera_app_smarter_way_to_save: h2 "Developers"', async ({ page }) => { await page.goto('/blog/introducing-vaultera-app-smarter-way-to-save/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_introducing_vaultera_app_smarter_way_to_save: h2 "Back to BlogMeet the Vaultera "', async ({ page }) => { await page.goto('/blog/introducing-vaultera-app-smarter-way-to-save/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogMeet the Vaultera App: Saving, Reimagined' || t.startsWith('Back to BlogMeet the Vaultera App: Saving, Reimagined'))).toBeTruthy(); }); test('blog_introducing_vaultera_app_smarter_way_to_save: h2 "A Smarter Way to Save"', async ({ page }) => { await page.goto('/blog/introducing-vaultera-app-smarter-way-to-save/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'A Smarter Way to Save' || t.startsWith('A Smarter Way to Save'))).toBeTruthy(); }); test('blog_introducing_vaultera_app_smarter_way_to_save: nav link "Vaultera AppEarning for everyo"', async ({ page }) => { await page.goto('/blog/introducing-vaultera-app-smarter-way-to-save/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning for everyone.' || t.startsWith('Vaultera AppEarning for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_introducing_vaultera_app_smarter_way_to_save: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/blog/introducing-vaultera-app-smarter-way-to-save/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full strength.' || t.startsWith('Vaultera ProV4DeFi at its full strength.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_introducing_vaultera_app_smarter_way_to_save: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/blog/introducing-vaultera-app-smarter-way-to-save/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_kinexys_jpmorgan', () => { test('blog_kinexys_jpmorgan: title matches GT', async ({ page }) => { await page.goto('/blog/kinexys-jpmorgan/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('aureon by veranth'); }); test('blog_kinexys_jpmorgan: h2 "Resources"', async ({ page }) => { await page.goto('/blog/kinexys-jpmorgan/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_kinexys_jpmorgan: h2 "Developers"', async ({ page }) => { await page.goto('/blog/kinexys-jpmorgan/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_kinexys_jpmorgan: h2 "Back to BlogLedgerworks by Hal"', async ({ page }) => { await page.goto('/blog/kinexys-jpmorgan/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogLedgerworks by Halvorg Bank' || t.startsWith('Back to BlogLedgerworks by Halvorg Bank'))).toBeTruthy(); }); test('blog_kinexys_jpmorgan: h2 "Vaultera for Institutions: Les"', async ({ page }) => { await page.goto('/blog/kinexys-jpmorgan/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera for Institutions: Lessons from the Sentinel Sandbox Pilot' || t.startsWith('Vaultera for Institutions: Lessons from the Sentinel Sandbox Pilot'))).toBeTruthy(); }); test('blog_kinexys_jpmorgan: nav link "Vaultera AppEarning, made simp"', async ({ page }) => { await page.goto('/blog/kinexys-jpmorgan/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning, made simple.' || t.startsWith('Vaultera AppEarning, made simple.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_kinexys_jpmorgan: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/blog/kinexys-jpmorgan/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full strength.' || t.startsWith('Vaultera ProV4DeFi at its full strength.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_kinexys_jpmorgan: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/blog/kinexys-jpmorgan/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_kraken_defi_earn', () => { test('blog_kraken_defi_earn: title matches GT', async ({ page }) => { await page.goto('/blog/kraken-defi-earn/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('coinhaven debuts defi earn on vaultera'); }); test('blog_kraken_defi_earn: h2 "Resources"', async ({ page }) => { await page.goto('/blog/kraken-defi-earn/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_kraken_defi_earn: h2 "Developers"', async ({ page }) => { await page.goto('/blog/kraken-defi-earn/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_kraken_defi_earn: h2 "Back to BlogCoinhaven Launches"', async ({ page }) => { await page.goto('/blog/kraken-defi-earn/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogCoinhaven Launches DeFi Earn, Powered by Vaultera' || t.startsWith('Back to BlogCoinhaven Launches DeFi Earn, Powered by Vaultera'))).toBeTruthy(); }); test('blog_kraken_defi_earn: h2 "Why Vaultera"', async ({ page }) => { await page.goto('/blog/kraken-defi-earn/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Why Vaultera' || t.startsWith('Why Vaultera'))).toBeTruthy(); }); test('blog_kraken_defi_earn: nav link "Vaultera AppEarning for everyo"', async ({ page }) => { await page.goto('/blog/kraken-defi-earn/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning for everyone.' || t.startsWith('Vaultera AppEarning for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_kraken_defi_earn: nav link "Vaultera ProV4Everything DeFi "', async ({ page }) => { await page.goto('/blog/kraken-defi-earn/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4Everything DeFi can offer.' || t.startsWith('Vaultera ProV4Everything DeFi can offer.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_kraken_defi_earn: nav link "Vaultera KitShip on Vaultera."', async ({ page }) => { await page.goto('/blog/kraken-defi-earn/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitShip on Vaultera.' || t.startsWith('Vaultera KitShip on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_kraken_ink', () => { test('blog_kraken_ink: title matches GT', async ({ page }) => { await page.goto('/blog/kraken-ink/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how ora & nexa use vaultera'); }); test('blog_kraken_ink: h2 "Resources"', async ({ page }) => { await page.goto('/blog/kraken-ink/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_kraken_ink: h2 "Developers"', async ({ page }) => { await page.goto('/blog/kraken-ink/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_kraken_ink: h2 "Back to BlogHow Quill and Cors"', async ({ page }) => { await page.goto('/blog/kraken-ink/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogHow Quill and Corsair Use Vaultera' || t.startsWith('Back to BlogHow Quill and Corsair Use Vaultera'))).toBeTruthy(); }); test('blog_kraken_ink: h2 "Background"', async ({ page }) => { await page.goto('/blog/kraken-ink/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Background' || t.startsWith('Background'))).toBeTruthy(); }); test('blog_kraken_ink: nav link "Vaultera AppYield for everyone"', async ({ page }) => { await page.goto('/blog/kraken-ink/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppYield for everyone.' || t.startsWith('Vaultera AppYield for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_kraken_ink: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/blog/kraken-ink/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its fullest.' || t.startsWith('Vaultera ProV4DeFi at its fullest.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_kraken_ink: nav link "Vaultera KitShip on Vaultera."', async ({ page }) => { await page.goto('/blog/kraken-ink/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitShip on Vaultera.' || t.startsWith('Vaultera KitShip on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_lido_vaultera_case_study', () => { test('blog_lido_vaultera_case_study: title matches GT', async ({ page }) => { await page.goto('/blog/lido-vaultera-case-study/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('stara'); }); test('blog_lido_vaultera_case_study: h2 "Resources"', async ({ page }) => { await page.goto('/blog/lido-vaultera-case-study/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_lido_vaultera_case_study: h2 "Developers"', async ({ page }) => { await page.goto('/blog/lido-vaultera-case-study/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_lido_vaultera_case_study: h2 "Back to BlogStara"', async ({ page }) => { await page.goto('/blog/lido-vaultera-case-study/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogStara' || t.startsWith('Back to BlogStara'))).toBeTruthy(); }); test('blog_lido_vaultera_case_study: h2 "Stara: A Reliable Leader in Li"', async ({ page }) => { await page.goto('/blog/lido-vaultera-case-study/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stara: A Reliable Leader in Liquid Staking Infrastructure' || t.startsWith('Stara: A Reliable Leader in Liquid Staking Infrastructure'))).toBeTruthy(); }); test('blog_lido_vaultera_case_study: nav link "Vaultera AppEarning for everyo"', async ({ page }) => { await page.goto('/blog/lido-vaultera-case-study/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning for everyone.' || t.startsWith('Vaultera AppEarning for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_lido_vaultera_case_study: nav link "Vaultera ProV4All the power of"', async ({ page }) => { await page.goto('/blog/lido-vaultera-case-study/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4All the power of DeFi.' || t.startsWith('Vaultera ProV4All the power of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_lido_vaultera_case_study: nav link "Vaultera KitBuild on Vault."', async ({ page }) => { await page.goto('/blog/lido-vaultera-case-study/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild on Vault.' || t.startsWith('Vaultera KitBuild on Vault.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_metamask', () => { test('blog_metamask: title matches GT', async ({ page }) => { await page.goto('/blog/metamask/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('zephyr'); }); test('blog_metamask: h2 "Resources"', async ({ page }) => { await page.goto('/blog/metamask/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_metamask: h2 "Developers"', async ({ page }) => { await page.goto('/blog/metamask/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_metamask: h2 "Back to BlogZephyr"', async ({ page }) => { await page.goto('/blog/metamask/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogZephyr' || t.startsWith('Back to BlogZephyr'))).toBeTruthy(); }); test('blog_metamask: h2 "Overview"', async ({ page }) => { await page.goto('/blog/metamask/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Overview' || t.startsWith('Overview'))).toBeTruthy(); }); test('blog_metamask: nav link "Vaultera AppOpen savings for a"', async ({ page }) => { await page.goto('/blog/metamask/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOpen savings for all.' || t.startsWith('Vaultera AppOpen savings for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_metamask: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/blog/metamask/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full strength.' || t.startsWith('Vaultera ProV4DeFi at its full strength.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_metamask: nav link "Vaultera KitBuild with Vault."', async ({ page }) => { await page.goto('/blog/metamask/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vault.' || t.startsWith('Vaultera KitBuild with Vault.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_stable_acquire', () => { test('blog_stable_acquire: title matches GT', async ({ page }) => { await page.goto('/blog/stable-acquire/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera labs acquires ledgerly finance'); }); test('blog_stable_acquire: h2 "Resources"', async ({ page }) => { await page.goto('/blog/stable-acquire/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_stable_acquire: h2 "Developers"', async ({ page }) => { await page.goto('/blog/stable-acquire/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_stable_acquire: h2 "Back to BlogVaultera Labs Acqu"', async ({ page }) => { await page.goto('/blog/stable-acquire/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogVaultera Labs Acquires Ledgerly' || t.startsWith('Back to BlogVaultera Labs Acquires Ledgerly'))).toBeTruthy(); }); test('blog_stable_acquire: h2 "About Vaultera"', async ({ page }) => { await page.goto('/blog/stable-acquire/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About Vaultera' || t.startsWith('About Vaultera'))).toBeTruthy(); }); test('blog_stable_acquire: nav link "Vaultera AppOnchain savings fo"', async ({ page }) => { await page.goto('/blog/stable-acquire/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOnchain savings for all.' || t.startsWith('Vaultera AppOnchain savings for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_stable_acquire: nav link "Vaultera ProV4The full DeFi ex"', async ({ page }) => { await page.goto('/blog/stable-acquire/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The full DeFi experience.' || t.startsWith('Vaultera ProV4The full DeFi experience.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_stable_acquire: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/blog/stable-acquire/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_stablecoin_infrastructure', () => { test('blog_stablecoin_infrastructure: title matches GT', async ({ page }) => { await page.goto('/blog/stablecoin-infrastructure/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera is infrastructure for scaling s'); }); test('blog_stablecoin_infrastructure: h2 "Resources"', async ({ page }) => { await page.goto('/blog/stablecoin-infrastructure/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_stablecoin_infrastructure: h2 "Developers"', async ({ page }) => { await page.goto('/blog/stablecoin-infrastructure/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_stablecoin_infrastructure: h2 "Back to BlogVaultera: The Back"', async ({ page }) => { await page.goto('/blog/stablecoin-infrastructure/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogVaultera: The Backbone for Scaling Stablecoins' || t.startsWith('Back to BlogVaultera: The Backbone for Scaling Stablecoins'))).toBeTruthy(); }); test('blog_stablecoin_infrastructure: h2 "Stablecoins on Vaultera"', async ({ page }) => { await page.goto('/blog/stablecoin-infrastructure/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stablecoins on Vaultera' || t.startsWith('Stablecoins on Vaultera'))).toBeTruthy(); }); test('blog_stablecoin_infrastructure: nav link "Vaultera AppEarning for everyo"', async ({ page }) => { await page.goto('/blog/stablecoin-infrastructure/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning for everyone.' || t.startsWith('Vaultera AppEarning for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_stablecoin_infrastructure: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/blog/stablecoin-infrastructure/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full strength.' || t.startsWith('Vaultera ProV4DeFi at its full strength.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_stablecoin_infrastructure: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/blog/stablecoin-infrastructure/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_tangem', () => { test('blog_tangem: title matches GT', async ({ page }) => { await page.goto('/blog/tangem/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('cerra'); }); test('blog_tangem: h2 "Resources"', async ({ page }) => { await page.goto('/blog/tangem/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_tangem: h2 "Developers"', async ({ page }) => { await page.goto('/blog/tangem/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_tangem: h2 "Back to BlogSteelkey"', async ({ page }) => { await page.goto('/blog/tangem/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogSteelkey' || t.startsWith('Back to BlogSteelkey'))).toBeTruthy(); }); test('blog_tangem: h2 "Summary"', async ({ page }) => { await page.goto('/blog/tangem/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Summary' || t.startsWith('Summary'))).toBeTruthy(); }); test('blog_tangem: nav link "Vaultera AppEarning, open to a"', async ({ page }) => { await page.goto('/blog/tangem/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning, open to all.' || t.startsWith('Vaultera AppEarning, open to all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_tangem: nav link "Vaultera ProV4Every DeFi capab"', async ({ page }) => { await page.goto('/blog/tangem/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4Every DeFi capability.' || t.startsWith('Vaultera ProV4Every DeFi capability.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_tangem: nav link "Vaultera KitBuild on Vaultera."', async ({ page }) => { await page.goto('/blog/tangem/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild on Vaultera.' || t.startsWith('Vaultera KitBuild on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_understanding_vaultera_v4s_architecture', () => { test('blog_understanding_vaultera_v4s_architecture: title matches GT', async ({ page }) => { await page.goto('/blog/understanding-vaultera-v4s-architecture/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('inside vaultera v4\'s architecture'); }); test('blog_understanding_vaultera_v4s_architecture: h2 "Resources"', async ({ page }) => { await page.goto('/blog/understanding-vaultera-v4s-architecture/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('blog_understanding_vaultera_v4s_architecture: h2 "Developers"', async ({ page }) => { await page.goto('/blog/understanding-vaultera-v4s-architecture/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('blog_understanding_vaultera_v4s_architecture: h2 "Back to BlogUnderstanding Vaul"', async ({ page }) => { await page.goto('/blog/understanding-vaultera-v4s-architecture/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to BlogUnderstanding Vaultera V4’s Architecture' || t.startsWith('Back to BlogUnderstanding Vaultera V4’s Architecture'))).toBeTruthy(); }); test('blog_understanding_vaultera_v4s_architecture: h2 "V3 Fundamentals"', async ({ page }) => { await page.goto('/blog/understanding-vaultera-v4s-architecture/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'V3 Fundamentals' || t.startsWith('V3 Fundamentals'))).toBeTruthy(); }); test('blog_understanding_vaultera_v4s_architecture: nav link "Vaultera AppYield for everyone"', async ({ page }) => { await page.goto('/blog/understanding-vaultera-v4s-architecture/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppYield for everyone.' || t.startsWith('Vaultera AppYield for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_understanding_vaultera_v4s_architecture: nav link "Vaultera ProV4All the power of"', async ({ page }) => { await page.goto('/blog/understanding-vaultera-v4s-architecture/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4All the power of DeFi.' || t.startsWith('Vaultera ProV4All the power of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_understanding_vaultera_v4s_architecture: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/blog/understanding-vaultera-v4s-architecture/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - blog_whop_vaultera_treasury', () => { test('blog_whop_vaultera_treasury: title matches GT', async ({ page }) => { await page.goto('/blog/whop-vaultera-treasury/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera yield for merchly\'s 21m+ users'); }); test('blog_whop_vaultera_treasury: h2 "Knowledge"', async ({ page }) => { await page.goto('/blog/whop-vaultera-treasury/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Knowledge' || t.startsWith('Knowledge'))).toBeTruthy(); }); test('blog_whop_vaultera_treasury: h2 "Builders"', async ({ page }) => { await page.goto('/blog/whop-vaultera-treasury/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Builders' || t.startsWith('Builders'))).toBeTruthy(); }); test('blog_whop_vaultera_treasury: h2 "Back to PostsVaultera Powers Y"', async ({ page }) => { await page.goto('/blog/whop-vaultera-treasury/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Back to PostsVaultera Powers Yield for Merchly\'s 21M+ Users' || t.startsWith('Back to PostsVaultera Powers Yield for Merchly\'s 21M+ Users'))).toBeTruthy(); }); test('blog_whop_vaultera_treasury: h2 "How It Runs"', async ({ page }) => { await page.goto('/blog/whop-vaultera-treasury/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How It Runs' || t.startsWith('How It Runs'))).toBeTruthy(); }); test('blog_whop_vaultera_treasury: nav link "Vaultera AppEarnings for every"', async ({ page }) => { await page.goto('/blog/whop-vaultera-treasury/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarnings for everyone.' || t.startsWith('Vaultera AppEarnings for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('blog_whop_vaultera_treasury: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/blog/whop-vaultera-treasury/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full strength.' || t.startsWith('Vaultera ProV4DeFi at its full strength.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('blog_whop_vaultera_treasury: nav link "Vaultera KitShip on Vaultera."', async ({ page }) => { await page.goto('/blog/whop-vaultera-treasury/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitShip on Vaultera.' || t.startsWith('Vaultera KitShip on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - careers_dream_job_7017db1b_5cb8_440f_916f_f2e0fe5137a9', () => { test('careers_dream_job_7017db1b_5cb8_440f_916f_f2e0fe5137a9: title matches GT', async ({ page }) => { await page.goto('/careers/dream-job-7017db1b-5cb8-440f-916f-f2e0fe5137a9/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('dream job'); }); test('careers_dream_job_7017db1b_5cb8_440f_916f_f2e0fe5137a9: h1 "Dream Job"', async ({ page }) => { await page.goto('/careers/dream-job-7017db1b-5cb8-440f-916f-f2e0fe5137a9/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Dream Job' || t.startsWith('Dream Job'))).toBeTruthy(); }); test('careers_dream_job_7017db1b_5cb8_440f_916f_f2e0fe5137a9: h2 "Resources"', async ({ page }) => { await page.goto('/careers/dream-job-7017db1b-5cb8-440f-916f-f2e0fe5137a9/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('careers_dream_job_7017db1b_5cb8_440f_916f_f2e0fe5137a9: h2 "Developers"', async ({ page }) => { await page.goto('/careers/dream-job-7017db1b-5cb8-440f-916f-f2e0fe5137a9/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('careers_dream_job_7017db1b_5cb8_440f_916f_f2e0fe5137a9: h2 "Be the first to hear about Vau"', async ({ page }) => { await page.goto('/careers/dream-job-7017db1b-5cb8-440f-916f-f2e0fe5137a9/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Be the first to hear about Vaultera news.' || t.startsWith('Be the first to hear about Vaultera news.'))).toBeTruthy(); }); test('careers_dream_job_7017db1b_5cb8_440f_916f_f2e0fe5137a9: nav link "Vaultera AppEarning made simpl"', async ({ page }) => { await page.goto('/careers/dream-job-7017db1b-5cb8-440f-916f-f2e0fe5137a9/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning made simple.' || t.startsWith('Vaultera AppEarning made simple.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('careers_dream_job_7017db1b_5cb8_440f_916f_f2e0fe5137a9: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/careers/dream-job-7017db1b-5cb8-440f-916f-f2e0fe5137a9/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its fullest.' || t.startsWith('Vaultera ProV4DeFi at its fullest.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('careers_dream_job_7017db1b_5cb8_440f_916f_f2e0fe5137a9: nav link "Vaultera KitBuild on Vaultera."', async ({ page }) => { await page.goto('/careers/dream-job-7017db1b-5cb8-440f-916f-f2e0fe5137a9/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild on Vaultera.' || t.startsWith('Vaultera KitBuild on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - careers_finance_director_push_825915e9_d435_426f_bc4e_22654de57882', () => { test('careers_finance_director_push_825915e9_d435_426f_bc4e_22654de57882: title matches GT', async ({ page }) => { await page.goto('/careers/finance-director-push-825915e9-d435-426f-bc4e-22654de57882/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('finance lead, ramp'); }); test('careers_finance_director_push_825915e9_d435_426f_bc4e_22654de57882: h1 "Finance Director, Growth"', async ({ page }) => { await page.goto('/careers/finance-director-push-825915e9-d435-426f-bc4e-22654de57882/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Finance Director, Growth' || t.startsWith('Finance Director, Growth'))).toBeTruthy(); }); test('careers_finance_director_push_825915e9_d435_426f_bc4e_22654de57882: h2 "Resources"', async ({ page }) => { await page.goto('/careers/finance-director-push-825915e9-d435-426f-bc4e-22654de57882/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('careers_finance_director_push_825915e9_d435_426f_bc4e_22654de57882: h2 "Developers"', async ({ page }) => { await page.goto('/careers/finance-director-push-825915e9-d435-426f-bc4e-22654de57882/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('careers_finance_director_push_825915e9_d435_426f_bc4e_22654de57882: h2 "Stay in the loop on Vaultera L"', async ({ page }) => { await page.goto('/careers/finance-director-push-825915e9-d435-426f-bc4e-22654de57882/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Stay in the loop on Vaultera Labs updates.' || t.startsWith('Stay in the loop on Vaultera Labs updates.'))).toBeTruthy(); }); test('careers_finance_director_push_825915e9_d435_426f_bc4e_22654de57882: nav link "Vaultera AppYield for everyone"', async ({ page }) => { await page.goto('/careers/finance-director-push-825915e9-d435-426f-bc4e-22654de57882/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppYield for everyone.' || t.startsWith('Vaultera AppYield for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('careers_finance_director_push_825915e9_d435_426f_bc4e_22654de57882: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/careers/finance-director-push-825915e9-d435-426f-bc4e-22654de57882/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its fullest.' || t.startsWith('Vaultera ProV4DeFi at its fullest.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('careers_finance_director_push_825915e9_d435_426f_bc4e_22654de57882: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/careers/finance-director-push-825915e9-d435-426f-bc4e-22654de57882/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - careers_growth_associate_assets_chains_d8abd786_370b_4948_8bbc_58108daabc04', () => { test('careers_growth_associate_assets_chains_d8abd786_370b_4948_8bbc_58108daabc04: title matches GT', async ({ page }) => { await page.goto('/careers/growth-associate-assets--chains-d8abd786-370b-4948-8bbc-58108daabc04/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('growth associate, assets & chains'); }); test('careers_growth_associate_assets_chains_d8abd786_370b_4948_8bbc_58108daabc04: h1 "Growth Associate, Markets & Ch"', async ({ page }) => { await page.goto('/careers/growth-associate-assets--chains-d8abd786-370b-4948-8bbc-58108daabc04/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Growth Associate, Markets & Chains' || t.startsWith('Growth Associate, Markets & Chains'))).toBeTruthy(); }); test('careers_growth_associate_assets_chains_d8abd786_370b_4948_8bbc_58108daabc04: h2 "Resources"', async ({ page }) => { await page.goto('/careers/growth-associate-assets--chains-d8abd786-370b-4948-8bbc-58108daabc04/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('careers_growth_associate_assets_chains_d8abd786_370b_4948_8bbc_58108daabc04: h2 "Developers"', async ({ page }) => { await page.goto('/careers/growth-associate-assets--chains-d8abd786-370b-4948-8bbc-58108daabc04/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('careers_growth_associate_assets_chains_d8abd786_370b_4948_8bbc_58108daabc04: h2 "Be the first to catch the late"', async ({ page }) => { await page.goto('/careers/growth-associate-assets--chains-d8abd786-370b-4948-8bbc-58108daabc04/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Be the first to catch the latest Vaultera news.' || t.startsWith('Be the first to catch the latest Vaultera news.'))).toBeTruthy(); }); test('careers_growth_associate_assets_chains_d8abd786_370b_4948_8bbc_58108daabc04: nav link "Vaultera AppEarn onchain, simp"', async ({ page }) => { await page.goto('/careers/growth-associate-assets--chains-d8abd786-370b-4948-8bbc-58108daabc04/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarn onchain, simply.' || t.startsWith('Vaultera AppEarn onchain, simply.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('careers_growth_associate_assets_chains_d8abd786_370b_4948_8bbc_58108daabc04: nav link "Vaultera ProV4Every DeFi tool,"', async ({ page }) => { await page.goto('/careers/growth-associate-assets--chains-d8abd786-370b-4948-8bbc-58108daabc04/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4Every DeFi tool, unified.' || t.startsWith('Vaultera ProV4Every DeFi tool, unified.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('careers_growth_associate_assets_chains_d8abd786_370b_4948_8bbc_58108daabc04: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/careers/growth-associate-assets--chains-d8abd786-370b-4948-8bbc-58108daabc04/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - careers_growth_relations_manager_liquidity_d1e0b4c1_5997_4785_8b64_123c2128570d', () => { test('careers_growth_relations_manager_liquidity_d1e0b4c1_5997_4785_8b64_123c2128570d: title matches GT', async ({ page }) => { await page.goto('/careers/growth-relations-manager-liquidity-d1e0b4c1-5997-4785-8b64-123c2128570d/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('growth relations manager, liquidity'); }); test('careers_growth_relations_manager_liquidity_d1e0b4c1_5997_4785_8b64_123c2128570d: h1 "Partnerships Lead, Liquidity M"', async ({ page }) => { await page.goto('/careers/growth-relations-manager-liquidity-d1e0b4c1-5997-4785-8b64-123c2128570d/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Partnerships Lead, Liquidity Markets' || t.startsWith('Partnerships Lead, Liquidity Markets'))).toBeTruthy(); }); test('careers_growth_relations_manager_liquidity_d1e0b4c1_5997_4785_8b64_123c2128570d: h2 "Resources"', async ({ page }) => { await page.goto('/careers/growth-relations-manager-liquidity-d1e0b4c1-5997-4785-8b64-123c2128570d/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('careers_growth_relations_manager_liquidity_d1e0b4c1_5997_4785_8b64_123c2128570d: h2 "Developers"', async ({ page }) => { await page.goto('/careers/growth-relations-manager-liquidity-d1e0b4c1-5997-4785-8b64-123c2128570d/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('careers_growth_relations_manager_liquidity_d1e0b4c1_5997_4785_8b64_123c2128570d: h2 "Be the first to hear about Vau"', async ({ page }) => { await page.goto('/careers/growth-relations-manager-liquidity-d1e0b4c1-5997-4785-8b64-123c2128570d/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Be the first to hear about Vaultera news.' || t.startsWith('Be the first to hear about Vaultera news.'))).toBeTruthy(); }); test('careers_growth_relations_manager_liquidity_d1e0b4c1_5997_4785_8b64_123c2128570d: nav link "Vaultera AppEarning made simpl"', async ({ page }) => { await page.goto('/careers/growth-relations-manager-liquidity-d1e0b4c1-5997-4785-8b64-123c2128570d/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning made simple.' || t.startsWith('Vaultera AppEarning made simple.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('careers_growth_relations_manager_liquidity_d1e0b4c1_5997_4785_8b64_123c2128570d: nav link "Vaultera ProV4DeFi at full str"', async ({ page }) => { await page.goto('/careers/growth-relations-manager-liquidity-d1e0b4c1-5997-4785-8b64-123c2128570d/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at full strength.' || t.startsWith('Vaultera ProV4DeFi at full strength.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('careers_growth_relations_manager_liquidity_d1e0b4c1_5997_4785_8b64_123c2128570d: nav link "Vaultera KitBuild with us."', async ({ page }) => { await page.goto('/careers/growth-relations-manager-liquidity-d1e0b4c1-5997-4785-8b64-123c2128570d/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with us.' || t.startsWith('Vaultera KitBuild with us.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - careers_head_of_risk_20e91ff4_0fef_4c08_9e43_3f719d4a3b8b', () => { test('careers_head_of_risk_20e91ff4_0fef_4c08_9e43_3f719d4a3b8b: title matches GT', async ({ page }) => { await page.goto('/careers/head-of-risk-20e91ff4-0fef-4c08-9e43-3f719d4a3b8b/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('head of risk'); }); test('careers_head_of_risk_20e91ff4_0fef_4c08_9e43_3f719d4a3b8b: h1 "Head of Risk"', async ({ page }) => { await page.goto('/careers/head-of-risk-20e91ff4-0fef-4c08-9e43-3f719d4a3b8b/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Head of Risk' || t.startsWith('Head of Risk'))).toBeTruthy(); }); test('careers_head_of_risk_20e91ff4_0fef_4c08_9e43_3f719d4a3b8b: h2 "Materials"', async ({ page }) => { await page.goto('/careers/head-of-risk-20e91ff4-0fef-4c08-9e43-3f719d4a3b8b/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Materials' || t.startsWith('Materials'))).toBeTruthy(); }); test('careers_head_of_risk_20e91ff4_0fef_4c08_9e43_3f719d4a3b8b: h2 "Developers"', async ({ page }) => { await page.goto('/careers/head-of-risk-20e91ff4-0fef-4c08-9e43-3f719d4a3b8b/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('careers_head_of_risk_20e91ff4_0fef_4c08_9e43_3f719d4a3b8b: h2 "Be the first to hear about Vau"', async ({ page }) => { await page.goto('/careers/head-of-risk-20e91ff4-0fef-4c08-9e43-3f719d4a3b8b/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Be the first to hear about Vaultera news.' || t.startsWith('Be the first to hear about Vaultera news.'))).toBeTruthy(); }); test('careers_head_of_risk_20e91ff4_0fef_4c08_9e43_3f719d4a3b8b: nav link "Vaultera AppSavings, made simp"', async ({ page }) => { await page.goto('/careers/head-of-risk-20e91ff4-0fef-4c08-9e43-3f719d4a3b8b/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppSavings, made simple.' || t.startsWith('Vaultera AppSavings, made simple.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('careers_head_of_risk_20e91ff4_0fef_4c08_9e43_3f719d4a3b8b: nav link "Vaultera ProV4The full force o"', async ({ page }) => { await page.goto('/careers/head-of-risk-20e91ff4-0fef-4c08-9e43-3f719d4a3b8b/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The full force of DeFi.' || t.startsWith('Vaultera ProV4The full force of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('careers_head_of_risk_20e91ff4_0fef_4c08_9e43_3f719d4a3b8b: nav link "Vaultera KitBuild on Vaultera."', async ({ page }) => { await page.goto('/careers/head-of-risk-20e91ff4-0fef-4c08-9e43-3f719d4a3b8b/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild on Vaultera.' || t.startsWith('Vaultera KitBuild on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - careers_sales_engineer_8d4c6dd8_6246_4c22_a0f3_968b0f46cb9f', () => { test('careers_sales_engineer_8d4c6dd8_6246_4c22_a0f3_968b0f46cb9f: title matches GT', async ({ page }) => { await page.goto('/careers/sales-engineer-8d4c6dd8-6246-4c22-a0f3-968b0f46cb9f/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sales engineer'); }); test('careers_sales_engineer_8d4c6dd8_6246_4c22_a0f3_968b0f46cb9f: h1 "Sales Engineer"', async ({ page }) => { await page.goto('/careers/sales-engineer-8d4c6dd8-6246-4c22-a0f3-968b0f46cb9f/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sales Engineer' || t.startsWith('Sales Engineer'))).toBeTruthy(); }); test('careers_sales_engineer_8d4c6dd8_6246_4c22_a0f3_968b0f46cb9f: h2 "Resources"', async ({ page }) => { await page.goto('/careers/sales-engineer-8d4c6dd8-6246-4c22-a0f3-968b0f46cb9f/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('careers_sales_engineer_8d4c6dd8_6246_4c22_a0f3_968b0f46cb9f: h2 "Developers"', async ({ page }) => { await page.goto('/careers/sales-engineer-8d4c6dd8-6246-4c22-a0f3-968b0f46cb9f/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('careers_sales_engineer_8d4c6dd8_6246_4c22_a0f3_968b0f46cb9f: h2 "Be the first to hear about Vau"', async ({ page }) => { await page.goto('/careers/sales-engineer-8d4c6dd8-6246-4c22-a0f3-968b0f46cb9f/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Be the first to hear about Vaultera news.' || t.startsWith('Be the first to hear about Vaultera news.'))).toBeTruthy(); }); test('careers_sales_engineer_8d4c6dd8_6246_4c22_a0f3_968b0f46cb9f: nav link "Vaultera AppYield for all."', async ({ page }) => { await page.goto('/careers/sales-engineer-8d4c6dd8-6246-4c22-a0f3-968b0f46cb9f/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppYield for all.' || t.startsWith('Vaultera AppYield for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('careers_sales_engineer_8d4c6dd8_6246_4c22_a0f3_968b0f46cb9f: nav link "Vaultera ProV4The full power o"', async ({ page }) => { await page.goto('/careers/sales-engineer-8d4c6dd8-6246-4c22-a0f3-968b0f46cb9f/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The full power of DeFi.' || t.startsWith('Vaultera ProV4The full power of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('careers_sales_engineer_8d4c6dd8_6246_4c22_a0f3_968b0f46cb9f: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/careers/sales-engineer-8d4c6dd8-6246-4c22-a0f3-968b0f46cb9f/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - careers_senior_devops_engineer_247defe5_b696_48ea_a6b1_123376a4a24d', () => { test('careers_senior_devops_engineer_247defe5_b696_48ea_a6b1_123376a4a24d: title matches GT', async ({ page }) => { await page.goto('/careers/senior-devops-engineer-247defe5-b696-48ea-a6b1-123376a4a24d/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('senior devops engineer'); }); test('careers_senior_devops_engineer_247defe5_b696_48ea_a6b1_123376a4a24d: h1 "Senior DevOps Engineer"', async ({ page }) => { await page.goto('/careers/senior-devops-engineer-247defe5-b696-48ea-a6b1-123376a4a24d/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Senior DevOps Engineer' || t.startsWith('Senior DevOps Engineer'))).toBeTruthy(); }); test('careers_senior_devops_engineer_247defe5_b696_48ea_a6b1_123376a4a24d: h2 "Resources"', async ({ page }) => { await page.goto('/careers/senior-devops-engineer-247defe5-b696-48ea-a6b1-123376a4a24d/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('careers_senior_devops_engineer_247defe5_b696_48ea_a6b1_123376a4a24d: h2 "Developers"', async ({ page }) => { await page.goto('/careers/senior-devops-engineer-247defe5-b696-48ea-a6b1-123376a4a24d/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('careers_senior_devops_engineer_247defe5_b696_48ea_a6b1_123376a4a24d: h2 "Be the first to catch the late"', async ({ page }) => { await page.goto('/careers/senior-devops-engineer-247defe5-b696-48ea-a6b1-123376a4a24d/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Be the first to catch the latest Vaultera news.' || t.startsWith('Be the first to catch the latest Vaultera news.'))).toBeTruthy(); }); test('careers_senior_devops_engineer_247defe5_b696_48ea_a6b1_123376a4a24d: nav link "Vaultera AppSavings, made onch"', async ({ page }) => { await page.goto('/careers/senior-devops-engineer-247defe5-b696-48ea-a6b1-123376a4a24d/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppSavings, made onchain.' || t.startsWith('Vaultera AppSavings, made onchain.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('careers_senior_devops_engineer_247defe5_b696_48ea_a6b1_123376a4a24d: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/careers/senior-devops-engineer-247defe5-b696-48ea-a6b1-123376a4a24d/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full scale.' || t.startsWith('Vaultera ProV4DeFi at its full scale.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('careers_senior_devops_engineer_247defe5_b696_48ea_a6b1_123376a4a24d: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/careers/senior-devops-engineer-247defe5-b696-48ea-a6b1-123376a4a24d/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - careers_staff_design_engineer_47be1573_6daa_468c_b765_c75069de33d7', () => { test('careers_staff_design_engineer_47be1573_6daa_468c_b765_c75069de33d7: title matches GT', async ({ page }) => { await page.goto('/careers/staff-design-engineer-47be1573-6daa-468c-b765-c75069de33d7/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('staff design engineer'); }); test('careers_staff_design_engineer_47be1573_6daa_468c_b765_c75069de33d7: h1 "Staff Design Engineer"', async ({ page }) => { await page.goto('/careers/staff-design-engineer-47be1573-6daa-468c-b765-c75069de33d7/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Staff Design Engineer' || t.startsWith('Staff Design Engineer'))).toBeTruthy(); }); test('careers_staff_design_engineer_47be1573_6daa_468c_b765_c75069de33d7: h2 "Resources"', async ({ page }) => { await page.goto('/careers/staff-design-engineer-47be1573-6daa-468c-b765-c75069de33d7/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('careers_staff_design_engineer_47be1573_6daa_468c_b765_c75069de33d7: h2 "Developers"', async ({ page }) => { await page.goto('/careers/staff-design-engineer-47be1573-6daa-468c-b765-c75069de33d7/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('careers_staff_design_engineer_47be1573_6daa_468c_b765_c75069de33d7: h2 "Be the first to hear about Vau"', async ({ page }) => { await page.goto('/careers/staff-design-engineer-47be1573-6daa-468c-b765-c75069de33d7/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Be the first to hear about Vaultera news.' || t.startsWith('Be the first to hear about Vaultera news.'))).toBeTruthy(); }); test('careers_staff_design_engineer_47be1573_6daa_468c_b765_c75069de33d7: nav link "Vaultera AppEarnings for every"', async ({ page }) => { await page.goto('/careers/staff-design-engineer-47be1573-6daa-468c-b765-c75069de33d7/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarnings for everyone.' || t.startsWith('Vaultera AppEarnings for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('careers_staff_design_engineer_47be1573_6daa_468c_b765_c75069de33d7: nav link "Vaultera ProV4The full scale o"', async ({ page }) => { await page.goto('/careers/staff-design-engineer-47be1573-6daa-468c-b765-c75069de33d7/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The full scale of DeFi.' || t.startsWith('Vaultera ProV4The full scale of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('careers_staff_design_engineer_47be1573_6daa_468c_b765_c75069de33d7: nav link "Vaultera KitBuild with Vault."', async ({ page }) => { await page.goto('/careers/staff-design-engineer-47be1573-6daa-468c-b765-c75069de33d7/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vault.' || t.startsWith('Vaultera KitBuild with Vault.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - careers_staff_ios_engineer_f7bc5336_1c9f_4583_9813_03f1501c8883', () => { test('careers_staff_ios_engineer_f7bc5336_1c9f_4583_9813_03f1501c8883: title matches GT', async ({ page }) => { await page.goto('/careers/staff-ios-engineer-f7bc5336-1c9f-4583-9813-03f1501c8883/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('staff ios engineer'); }); test('careers_staff_ios_engineer_f7bc5336_1c9f_4583_9813_03f1501c8883: h1 "Staff iOS Engineer"', async ({ page }) => { await page.goto('/careers/staff-ios-engineer-f7bc5336-1c9f-4583-9813-03f1501c8883/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Staff iOS Engineer' || t.startsWith('Staff iOS Engineer'))).toBeTruthy(); }); test('careers_staff_ios_engineer_f7bc5336_1c9f_4583_9813_03f1501c8883: h2 "Knowledge"', async ({ page }) => { await page.goto('/careers/staff-ios-engineer-f7bc5336-1c9f-4583-9813-03f1501c8883/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Knowledge' || t.startsWith('Knowledge'))).toBeTruthy(); }); test('careers_staff_ios_engineer_f7bc5336_1c9f_4583_9813_03f1501c8883: h2 "Builders"', async ({ page }) => { await page.goto('/careers/staff-ios-engineer-f7bc5336-1c9f-4583-9813-03f1501c8883/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Builders' || t.startsWith('Builders'))).toBeTruthy(); }); test('careers_staff_ios_engineer_f7bc5336_1c9f_4583_9813_03f1501c8883: h2 "Be the first to hear about Vau"', async ({ page }) => { await page.goto('/careers/staff-ios-engineer-f7bc5336-1c9f-4583-9813-03f1501c8883/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Be the first to hear about Vaultera Labs news.' || t.startsWith('Be the first to hear about Vaultera Labs news.'))).toBeTruthy(); }); test('careers_staff_ios_engineer_f7bc5336_1c9f_4583_9813_03f1501c8883: nav link "Vaultera AppSavings for everyo"', async ({ page }) => { await page.goto('/careers/staff-ios-engineer-f7bc5336-1c9f-4583-9813-03f1501c8883/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppSavings for everyone.' || t.startsWith('Vaultera AppSavings for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('careers_staff_ios_engineer_f7bc5336_1c9f_4583_9813_03f1501c8883: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/careers/staff-ios-engineer-f7bc5336-1c9f-4583-9813-03f1501c8883/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its fullest.' || t.startsWith('Vaultera ProV4DeFi at its fullest.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('careers_staff_ios_engineer_f7bc5336_1c9f_4583_9813_03f1501c8883: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/careers/staff-ios-engineer-f7bc5336-1c9f-4583-9813-03f1501c8883/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - careers_staff_quant_strategist_engineer_1f03ca00_f94e_4ac3_a06d_6088267941ec', () => { test('careers_staff_quant_strategist_engineer_1f03ca00_f94e_4ac3_a06d_6088267941ec: title matches GT', async ({ page }) => { await page.goto('/careers/staff-quant-strategist-engineer-1f03ca00-f94e-4ac3-a06d-6088267941ec/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('staff quant strategist engineer'); }); test('careers_staff_quant_strategist_engineer_1f03ca00_f94e_4ac3_a06d_6088267941ec: h1 "Staff Quant Strategy Engineer"', async ({ page }) => { await page.goto('/careers/staff-quant-strategist-engineer-1f03ca00-f94e-4ac3-a06d-6088267941ec/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Staff Quant Strategy Engineer' || t.startsWith('Staff Quant Strategy Engineer'))).toBeTruthy(); }); test('careers_staff_quant_strategist_engineer_1f03ca00_f94e_4ac3_a06d_6088267941ec: h2 "Resources"', async ({ page }) => { await page.goto('/careers/staff-quant-strategist-engineer-1f03ca00-f94e-4ac3-a06d-6088267941ec/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('careers_staff_quant_strategist_engineer_1f03ca00_f94e_4ac3_a06d_6088267941ec: h2 "Developers"', async ({ page }) => { await page.goto('/careers/staff-quant-strategist-engineer-1f03ca00-f94e-4ac3-a06d-6088267941ec/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('careers_staff_quant_strategist_engineer_1f03ca00_f94e_4ac3_a06d_6088267941ec: h2 "Be the first to hear about Vau"', async ({ page }) => { await page.goto('/careers/staff-quant-strategist-engineer-1f03ca00-f94e-4ac3-a06d-6088267941ec/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Be the first to hear about Vaultera news.' || t.startsWith('Be the first to hear about Vaultera news.'))).toBeTruthy(); }); test('careers_staff_quant_strategist_engineer_1f03ca00_f94e_4ac3_a06d_6088267941ec: nav link "Vaultera AppSavings for everyo"', async ({ page }) => { await page.goto('/careers/staff-quant-strategist-engineer-1f03ca00-f94e-4ac3-a06d-6088267941ec/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppSavings for everyone.' || t.startsWith('Vaultera AppSavings for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('careers_staff_quant_strategist_engineer_1f03ca00_f94e_4ac3_a06d_6088267941ec: nav link "Vaultera ProV4The full power o"', async ({ page }) => { await page.goto('/careers/staff-quant-strategist-engineer-1f03ca00-f94e-4ac3-a06d-6088267941ec/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The full power of DeFi.' || t.startsWith('Vaultera ProV4The full power of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('careers_staff_quant_strategist_engineer_1f03ca00_f94e_4ac3_a06d_6088267941ec: nav link "Vaultera KitBuild with us."', async ({ page }) => { await page.goto('/careers/staff-quant-strategist-engineer-1f03ca00-f94e-4ac3-a06d-6088267941ec/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with us.' || t.startsWith('Vaultera KitBuild with us.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - careers_staff_smart_contract_engineer_a3f47e26_ab0a_403d_8e59_ca2d7e5b4fe7', () => { test('careers_staff_smart_contract_engineer_a3f47e26_ab0a_403d_8e59_ca2d7e5b4fe7: title matches GT', async ({ page }) => { await page.goto('/careers/staff-smart-contract-engineer-a3f47e26-ab0a-403d-8e59-ca2d7e5b4fe7/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('staff smart contract engineer'); }); test('careers_staff_smart_contract_engineer_a3f47e26_ab0a_403d_8e59_ca2d7e5b4fe7: h2 "Resources"', async ({ page }) => { await page.goto('/careers/staff-smart-contract-engineer-a3f47e26-ab0a-403d-8e59-ca2d7e5b4fe7/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('careers_staff_smart_contract_engineer_a3f47e26_ab0a_403d_8e59_ca2d7e5b4fe7: h2 "Developers"', async ({ page }) => { await page.goto('/careers/staff-smart-contract-engineer-a3f47e26-ab0a-403d-8e59-ca2d7e5b4fe7/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('careers_staff_smart_contract_engineer_a3f47e26_ab0a_403d_8e59_ca2d7e5b4fe7: h2 "Be first to get the latest Vau"', async ({ page }) => { await page.goto('/careers/staff-smart-contract-engineer-a3f47e26-ab0a-403d-8e59-ca2d7e5b4fe7/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Be first to get the latest Vaultera Labs news.' || t.startsWith('Be first to get the latest Vaultera Labs news.'))).toBeTruthy(); }); test('careers_staff_smart_contract_engineer_a3f47e26_ab0a_403d_8e59_ca2d7e5b4fe7: nav link "Vaultera AppYield for all."', async ({ page }) => { await page.goto('/careers/staff-smart-contract-engineer-a3f47e26-ab0a-403d-8e59-ca2d7e5b4fe7/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppYield for all.' || t.startsWith('Vaultera AppYield for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('careers_staff_smart_contract_engineer_a3f47e26_ab0a_403d_8e59_ca2d7e5b4fe7: nav link "Vaultera ProV4The full power o"', async ({ page }) => { await page.goto('/careers/staff-smart-contract-engineer-a3f47e26-ab0a-403d-8e59-ca2d7e5b4fe7/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The full power of DeFi.' || t.startsWith('Vaultera ProV4The full power of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('careers_staff_smart_contract_engineer_a3f47e26_ab0a_403d_8e59_ca2d7e5b4fe7: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/careers/staff-smart-contract-engineer-a3f47e26-ab0a-403d-8e59-ca2d7e5b4fe7/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - careers_strategy_business_development_associate_1cefa248_b9e7_4f28_b603_4e731bd2a5fb', () => { test('careers_strategy_business_development_associate_1cefa248_b9e7_4f28_b603_4e731bd2a5fb: title matches GT', async ({ page }) => { await page.goto('/careers/strategy--business-development-associate-1cefa248-b9e7-4f28-b603-4e731bd2a5fb/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('strategy & business development associat'); }); test('careers_strategy_business_development_associate_1cefa248_b9e7_4f28_b603_4e731bd2a5fb: h1 "Strategy & Ecosystem Developme"', async ({ page }) => { await page.goto('/careers/strategy--business-development-associate-1cefa248-b9e7-4f28-b603-4e731bd2a5fb/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Strategy & Ecosystem Development Associate' || t.startsWith('Strategy & Ecosystem Development Associate'))).toBeTruthy(); }); test('careers_strategy_business_development_associate_1cefa248_b9e7_4f28_b603_4e731bd2a5fb: h2 "Resources"', async ({ page }) => { await page.goto('/careers/strategy--business-development-associate-1cefa248-b9e7-4f28-b603-4e731bd2a5fb/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('careers_strategy_business_development_associate_1cefa248_b9e7_4f28_b603_4e731bd2a5fb: h2 "Developers"', async ({ page }) => { await page.goto('/careers/strategy--business-development-associate-1cefa248-b9e7-4f28-b603-4e731bd2a5fb/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('careers_strategy_business_development_associate_1cefa248_b9e7_4f28_b603_4e731bd2a5fb: h2 "Be the first to hear about Vau"', async ({ page }) => { await page.goto('/careers/strategy--business-development-associate-1cefa248-b9e7-4f28-b603-4e731bd2a5fb/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Be the first to hear about Vaultera news today.' || t.startsWith('Be the first to hear about Vaultera news today.'))).toBeTruthy(); }); test('careers_strategy_business_development_associate_1cefa248_b9e7_4f28_b603_4e731bd2a5fb: nav link "Vaultera AppYield for everyone"', async ({ page }) => { await page.goto('/careers/strategy--business-development-associate-1cefa248-b9e7-4f28-b603-4e731bd2a5fb/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppYield for everyone.' || t.startsWith('Vaultera AppYield for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('careers_strategy_business_development_associate_1cefa248_b9e7_4f28_b603_4e731bd2a5fb: nav link "Vaultera ProV4Everything DeFi "', async ({ page }) => { await page.goto('/careers/strategy--business-development-associate-1cefa248-b9e7-4f28-b603-4e731bd2a5fb/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4Everything DeFi can do.' || t.startsWith('Vaultera ProV4Everything DeFi can do.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('careers_strategy_business_development_associate_1cefa248_b9e7_4f28_b603_4e731bd2a5fb: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/careers/strategy--business-development-associate-1cefa248-b9e7-4f28-b603-4e731bd2a5fb/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_101', () => { test('docs_vaultera_101: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-101/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera 101'); }); test('docs_vaultera_101: h1 "Vaultera 101"', async ({ page }) => { await page.goto('/docs/vaultera-101/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera 101' || t.startsWith('Vaultera 101'))).toBeTruthy(); }); test('docs_vaultera_101: h2 "Self-Custody"', async ({ page }) => { await page.goto('/docs/vaultera-101/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Self-Custody' || t.startsWith('Self-Custody'))).toBeTruthy(); }); test('docs_vaultera_101: h2 "How Vaultera Works"', async ({ page }) => { await page.goto('/docs/vaultera-101/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How Vaultera Works' || t.startsWith('How Vaultera Works'))).toBeTruthy(); }); test('docs_vaultera_101: h2 "Decentralised Governance"', async ({ page }) => { await page.goto('/docs/vaultera-101/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Decentralised Governance' || t.startsWith('Decentralised Governance'))).toBeTruthy(); }); test('docs_vaultera_101: nav link "Vaultera AppEarning for everyo"', async ({ page }) => { await page.goto('/docs/vaultera-101/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning for everyone.' || t.startsWith('Vaultera AppEarning for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_101: nav link "Vaultera ProV4The full power o"', async ({ page }) => { await page.goto('/docs/vaultera-101/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The full power onchain.' || t.startsWith('Vaultera ProV4The full power onchain.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_101: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/vaultera-101/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_101: nav link "BlogFresh insights and release"', async ({ page }) => { await page.goto('/docs/vaultera-101/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogFresh insights and releases.' || t.startsWith('BlogFresh insights and releases.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v4', () => { test('docs_vaultera_v4: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v4/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera v4 overview'); }); test('docs_vaultera_v4: h1 "Vaultera v4"', async ({ page }) => { await page.goto('/docs/vaultera-v4/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera v4' || t.startsWith('Vaultera v4'))).toBeTruthy(); }); test('docs_vaultera_v4: h2 "Liquidity Hubs"', async ({ page }) => { await page.goto('/docs/vaultera-v4/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Liquidity Hubs' || t.startsWith('Liquidity Hubs'))).toBeTruthy(); }); test('docs_vaultera_v4: h2 "Hub Assets"', async ({ page }) => { await page.goto('/docs/vaultera-v4/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Hub Assets' || t.startsWith('Hub Assets'))).toBeTruthy(); }); test('docs_vaultera_v4: h2 "Spokes"', async ({ page }) => { await page.goto('/docs/vaultera-v4/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Spokes' || t.startsWith('Spokes'))).toBeTruthy(); }); test('docs_vaultera_v4: nav link "Vaultera AppEarn onchain, free"', async ({ page }) => { await page.goto('/docs/vaultera-v4/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarn onchain, freely.' || t.startsWith('Vaultera AppEarn onchain, freely.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/docs/vaultera-v4/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full scale.' || t.startsWith('Vaultera ProV4DeFi at its full scale.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4: nav link "Vaultera KitBuild with Vault."', async ({ page }) => { await page.goto('/docs/vaultera-v4/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vault.' || t.startsWith('Vaultera KitBuild with Vault.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4: nav link "BlogThe latest news and releas"', async ({ page }) => { await page.goto('/docs/vaultera-v4/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogThe latest news and releases.' || t.startsWith('BlogThe latest news and releases.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v4_getting_started_graphql', () => { test('docs_vaultera_v4_getting_started_graphql: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/graphql/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultkit api v4'); }); test('docs_vaultera_v4_getting_started_graphql: h1 "GraphQL"', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/graphql/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'GraphQL' || t.startsWith('GraphQL'))).toBeTruthy(); }); test('docs_vaultera_v4_getting_started_graphql: h2 "Getting Started"', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/graphql/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Getting Started' || t.startsWith('Getting Started'))).toBeTruthy(); }); test('docs_vaultera_v4_getting_started_graphql: h2 "Query Operations"', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/graphql/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Query Operations' || t.startsWith('Query Operations'))).toBeTruthy(); }); test('docs_vaultera_v4_getting_started_graphql: h2 "Monitoring Transactions"', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/graphql/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Monitoring Transactions' || t.startsWith('Monitoring Transactions'))).toBeTruthy(); }); test('docs_vaultera_v4_getting_started_graphql: nav link "Vaultera AppOnchain yield for "', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/graphql/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOnchain yield for all.' || t.startsWith('Vaultera AppOnchain yield for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_getting_started_graphql: nav link "Vaultera ProV4The full scope o"', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/graphql/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The full scope of DeFi.' || t.startsWith('Vaultera ProV4The full scope of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_getting_started_graphql: nav link "Vaultera KitBuild with Vault."', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/graphql/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vault.' || t.startsWith('Vaultera KitBuild with Vault.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_getting_started_graphql: nav link "BlogThe latest news and releas"', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/graphql/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogThe latest news and releases.' || t.startsWith('BlogThe latest news and releases.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v4_getting_started_react', () => { test('docs_vaultera_v4_getting_started_react: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/react/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaulterakit vela v4'); }); test('docs_vaultera_v4_getting_started_react: h1 "Vela"', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/react/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vela' || t.startsWith('Vela'))).toBeTruthy(); }); test('docs_vaultera_v4_getting_started_react: h2 "Getting Started"', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/react/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Getting Started' || t.startsWith('Getting Started'))).toBeTruthy(); }); test('docs_vaultera_v4_getting_started_react: h2 "Declarative Hooks"', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/react/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Declarative Hooks' || t.startsWith('Declarative Hooks'))).toBeTruthy(); }); test('docs_vaultera_v4_getting_started_react: h2 "Imperative Hooks"', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/react/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Imperative Hooks' || t.startsWith('Imperative Hooks'))).toBeTruthy(); }); test('docs_vaultera_v4_getting_started_react: nav link "Vaultera AppYield for everyone"', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/react/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppYield for everyone.' || t.startsWith('Vaultera AppYield for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_getting_started_react: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/react/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full strength.' || t.startsWith('Vaultera ProV4DeFi at its full strength.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_getting_started_react: nav link "Vaultera KitBuild on Vaultera."', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/react/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild on Vaultera.' || t.startsWith('Vaultera KitBuild on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_getting_started_react: nav link "BlogThe latest news and releas"', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/react/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogThe latest news and releases.' || t.startsWith('BlogThe latest news and releases.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v4_getting_started_solidity', () => { test('docs_vaultera_v4_getting_started_solidity: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/solidity/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera solidity integrations'); }); test('docs_vaultera_v4_getting_started_solidity: h1 "Solidity"', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/solidity/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Solidity' || t.startsWith('Solidity'))).toBeTruthy(); }); test('docs_vaultera_v4_getting_started_solidity: h2 "Clone the Repository"', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/solidity/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Clone the Repository' || t.startsWith('Clone the Repository'))).toBeTruthy(); }); test('docs_vaultera_v4_getting_started_solidity: h2 "Install Dependencies"', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/solidity/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Install Dependencies' || t.startsWith('Install Dependencies'))).toBeTruthy(); }); test('docs_vaultera_v4_getting_started_solidity: h2 "Set Up Environment"', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/solidity/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Set Up Environment' || t.startsWith('Set Up Environment'))).toBeTruthy(); }); test('docs_vaultera_v4_getting_started_solidity: nav link "Vaultera AppEarn onchain, simp"', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/solidity/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarn onchain, simply.' || t.startsWith('Vaultera AppEarn onchain, simply.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_getting_started_solidity: nav link "Vaultera ProV4Advanced DeFi, u"', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/solidity/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4Advanced DeFi, unlocked.' || t.startsWith('Vaultera ProV4Advanced DeFi, unlocked.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_getting_started_solidity: nav link "Vaultera KitBuild on Vaultera."', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/solidity/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild on Vaultera.' || t.startsWith('Vaultera KitBuild on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_getting_started_solidity: nav link "BlogNews, updates, and release"', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/solidity/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogNews, updates, and releases.' || t.startsWith('BlogNews, updates, and releases.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v4_getting_started_typescript', () => { test('docs_vaultera_v4_getting_started_typescript: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/typescript/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultkit typescript v4'); }); test('docs_vaultera_v4_getting_started_typescript: h1 "TypeScript"', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/typescript/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TypeScript' || t.startsWith('TypeScript'))).toBeTruthy(); }); test('docs_vaultera_v4_getting_started_typescript: h2 "Getting Started"', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/typescript/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Getting Started' || t.startsWith('Getting Started'))).toBeTruthy(); }); test('docs_vaultera_v4_getting_started_typescript: h2 "Server-Side Hydration"', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/typescript/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Server-Side Hydration' || t.startsWith('Server-Side Hydration'))).toBeTruthy(); }); test('docs_vaultera_v4_getting_started_typescript: h2 "The Result Type"', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/typescript/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Result Type' || t.startsWith('The Result Type'))).toBeTruthy(); }); test('docs_vaultera_v4_getting_started_typescript: nav link "Vaultera AppYield for everyone"', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/typescript/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppYield for everyone.' || t.startsWith('Vaultera AppYield for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_getting_started_typescript: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/typescript/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full' || t.startsWith('Vaultera ProV4DeFi at its full')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_getting_started_typescript: nav link "Vaultera KitBuild on Vaultera."', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/typescript/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild on Vaultera.' || t.startsWith('Vaultera KitBuild on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_getting_started_typescript: nav link "BlogFresh news and product upd"', async ({ page }) => { await page.goto('/docs/vaultera-v4/getting-started/typescript/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogFresh news and product updates.' || t.startsWith('BlogFresh news and product updates.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v4_liquidity', () => { test('docs_vaultera_v4_liquidity: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera v4 liquidity model'); }); test('docs_vaultera_v4_liquidity: h1 "Liquidity Design"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Liquidity Design' || t.startsWith('Liquidity Design'))).toBeTruthy(); }); test('docs_vaultera_v4_liquidity: h2 "Liquidity Hubs"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Liquidity Hubs' || t.startsWith('Liquidity Hubs'))).toBeTruthy(); }); test('docs_vaultera_v4_liquidity: h2 "Spokes"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Spokes' || t.startsWith('Spokes'))).toBeTruthy(); }); test('docs_vaultera_v4_liquidity: h2 "Reserves"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reserves' || t.startsWith('Reserves'))).toBeTruthy(); }); test('docs_vaultera_v4_liquidity: nav link "Vaultera AppEarnings for every"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarnings for everyone.' || t.startsWith('Vaultera AppEarnings for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_liquidity: nav link "Vaultera ProV4The complete DeF"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The complete DeFi engine.' || t.startsWith('Vaultera ProV4The complete DeFi engine.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_liquidity: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_liquidity: nav link "BlogNews, updates and releases"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogNews, updates and releases.' || t.startsWith('BlogNews, updates and releases.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v4_liquidity_assets', () => { test('docs_vaultera_v4_liquidity_assets: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/assets/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera v4 supported assets'); }); test('docs_vaultera_v4_liquidity_assets: h1 "Assets"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/assets/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Assets' || t.startsWith('Assets'))).toBeTruthy(); }); test('docs_vaultera_v4_liquidity_assets: h2 "Asset Data Structure"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/assets/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Asset Data Structure' || t.startsWith('Asset Data Structure'))).toBeTruthy(); }); test('docs_vaultera_v4_liquidity_assets: h2 "Fetching Asset Information"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/assets/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Fetching Asset Information' || t.startsWith('Fetching Asset Information'))).toBeTruthy(); }); test('docs_vaultera_v4_liquidity_assets: h2 "Asset Price History"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/assets/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Asset Price History' || t.startsWith('Asset Price History'))).toBeTruthy(); }); test('docs_vaultera_v4_liquidity_assets: nav link "Vaultera AppOnchain yield for "', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/assets/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOnchain yield for all.' || t.startsWith('Vaultera AppOnchain yield for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_liquidity_assets: nav link "Vaultera ProV4All the power of"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/assets/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4All the power of DeFi.' || t.startsWith('Vaultera ProV4All the power of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_liquidity_assets: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/assets/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_liquidity_assets: nav link "BlogLatest announcements and n"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/assets/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogLatest announcements and news.' || t.startsWith('BlogLatest announcements and news.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v4_liquidity_chains', () => { test('docs_vaultera_v4_liquidity_chains: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/chains/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera supported chains'); }); test('docs_vaultera_v4_liquidity_chains: h1 "Chains"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/chains/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Chains' || t.startsWith('Chains'))).toBeTruthy(); }); test('docs_vaultera_v4_liquidity_chains: h2 "Chain Data Model"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/chains/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Chain Data Model' || t.startsWith('Chain Data Model'))).toBeTruthy(); }); test('docs_vaultera_v4_liquidity_chains: h2 "Listing Available Chains"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/chains/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Listing Available Chains' || t.startsWith('Listing Available Chains'))).toBeTruthy(); }); test('docs_vaultera_v4_liquidity_chains: h2 "Querying a Single Chain"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/chains/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Querying a Single Chain' || t.startsWith('Querying a Single Chain'))).toBeTruthy(); }); test('docs_vaultera_v4_liquidity_chains: nav link "Vaultera AppEarning for everyo"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/chains/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning for everyone.' || t.startsWith('Vaultera AppEarning for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_liquidity_chains: nav link "Vaultera ProV4The full depth o"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/chains/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The full depth of DeFi.' || t.startsWith('Vaultera ProV4The full depth of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_liquidity_chains: nav link "Vaultera KitBuild on Vaultera."', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/chains/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild on Vaultera.' || t.startsWith('Vaultera KitBuild on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_liquidity_chains: nav link "BlogThe latest news and releas"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/chains/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogThe latest news and releases.' || t.startsWith('BlogThe latest news and releases.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v4_liquidity_hubs', () => { test('docs_vaultera_v4_liquidity_hubs: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/hubs/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera liquidity hubs'); }); test('docs_vaultera_v4_liquidity_hubs: h1 "Liquidity Hubs"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/hubs/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Liquidity Hubs' || t.startsWith('Liquidity Hubs'))).toBeTruthy(); }); test('docs_vaultera_v4_liquidity_hubs: h2 "Hub Structure"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/hubs/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Hub Structure' || t.startsWith('Hub Structure'))).toBeTruthy(); }); test('docs_vaultera_v4_liquidity_hubs: h2 "Querying Available Hubs"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/hubs/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Querying Available Hubs' || t.startsWith('Querying Available Hubs'))).toBeTruthy(); }); test('docs_vaultera_v4_liquidity_hubs: h2 "Reading a Single Hub"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/hubs/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reading a Single Hub' || t.startsWith('Reading a Single Hub'))).toBeTruthy(); }); test('docs_vaultera_v4_liquidity_hubs: nav link "Vaultera AppEarning for everyo"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/hubs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning for everyone.' || t.startsWith('Vaultera AppEarning for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_liquidity_hubs: nav link "Vaultera ProV4The full strengt"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/hubs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The full strength of DeFi.' || t.startsWith('Vaultera ProV4The full strength of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_liquidity_hubs: nav link "Vaultera KitShip on Vaultera."', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/hubs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitShip on Vaultera.' || t.startsWith('Vaultera KitShip on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_liquidity_hubs: nav link "BlogFresh news, updates, and m"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/hubs/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogFresh news, updates, and more.' || t.startsWith('BlogFresh news, updates, and more.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v4_liquidity_incentives', () => { test('docs_vaultera_v4_liquidity_incentives: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/incentives/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera v4 incentive programs'); }); test('docs_vaultera_v4_liquidity_incentives: h1 "Earning Incentives"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/incentives/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Earning Incentives' || t.startsWith('Earning Incentives'))).toBeTruthy(); }); test('docs_vaultera_v4_liquidity_incentives: h2 "Reward Types"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/incentives/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reward Types' || t.startsWith('Reward Types'))).toBeTruthy(); }); test('docs_vaultera_v4_liquidity_incentives: h2 "Matured Rewards"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/incentives/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Matured Rewards' || t.startsWith('Matured Rewards'))).toBeTruthy(); }); test('docs_vaultera_v4_liquidity_incentives: h3 "Supply Rewards"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/incentives/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Supply Rewards' || t.startsWith('Supply Rewards'))).toBeTruthy(); }); test('docs_vaultera_v4_liquidity_incentives: nav link "Vaultera AppOnchain yield for "', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/incentives/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOnchain yield for all.' || t.startsWith('Vaultera AppOnchain yield for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_liquidity_incentives: nav link "Vaultera ProV4The complete DeF"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/incentives/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The complete DeFi toolkit.' || t.startsWith('Vaultera ProV4The complete DeFi toolkit.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_liquidity_incentives: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/incentives/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_liquidity_incentives: nav link "BlogRecent news and product up"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/incentives/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogRecent news and product updates.' || t.startsWith('BlogRecent news and product updates.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v4_liquidity_reserves', () => { test('docs_vaultera_v4_liquidity_reserves: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/reserves/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera reserves'); }); test('docs_vaultera_v4_liquidity_reserves: h1 "Reserves"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/reserves/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reserves' || t.startsWith('Reserves'))).toBeTruthy(); }); test('docs_vaultera_v4_liquidity_reserves: h2 "Reserve Data Structure"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/reserves/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reserve Data Structure' || t.startsWith('Reserve Data Structure'))).toBeTruthy(); }); test('docs_vaultera_v4_liquidity_reserves: h2 "Enumerating Available"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/reserves/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Enumerating Available' || t.startsWith('Enumerating Available'))).toBeTruthy(); }); test('docs_vaultera_v4_liquidity_reserves: h2 "Reading a Single Reserve"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/reserves/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reading a Single Reserve' || t.startsWith('Reading a Single Reserve'))).toBeTruthy(); }); test('docs_vaultera_v4_liquidity_reserves: nav link "Vaultera AppYield for everyone"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/reserves/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppYield for everyone.' || t.startsWith('Vaultera AppYield for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_liquidity_reserves: nav link "Vaultera ProV4The complete DeF"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/reserves/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The complete DeFi toolkit.' || t.startsWith('Vaultera ProV4The complete DeFi toolkit.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_liquidity_reserves: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/reserves/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_liquidity_reserves: nav link "BlogThe newest posts and relea"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/reserves/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogThe newest posts and releases.' || t.startsWith('BlogThe newest posts and releases.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v4_liquidity_spokes', () => { test('docs_vaultera_v4_liquidity_spokes: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/spokes/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera spokes'); }); test('docs_vaultera_v4_liquidity_spokes: h1 "Spokes"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/spokes/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Spokes' || t.startsWith('Spokes'))).toBeTruthy(); }); test('docs_vaultera_v4_liquidity_spokes: h2 "Spoke Data Structure"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/spokes/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Spoke Data Structure' || t.startsWith('Spoke Data Structure'))).toBeTruthy(); }); test('docs_vaultera_v4_liquidity_spokes: h2 "Listing Available Spokes"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/spokes/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Listing Available Spokes' || t.startsWith('Listing Available Spokes'))).toBeTruthy(); }); test('docs_vaultera_v4_liquidity_spokes: h2 "Querying a Single Spoke"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/spokes/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Querying a Single Spoke' || t.startsWith('Querying a Single Spoke'))).toBeTruthy(); }); test('docs_vaultera_v4_liquidity_spokes: nav link "Vaultera AppEarning made simpl"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/spokes/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning made simple.' || t.startsWith('Vaultera AppEarning made simple.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_liquidity_spokes: nav link "Vaultera ProV4DeFi in its full"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/spokes/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi in its fullest form.' || t.startsWith('Vaultera ProV4DeFi in its fullest form.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_liquidity_spokes: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/spokes/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_liquidity_spokes: nav link "BlogFresh news and product upd"', async ({ page }) => { await page.goto('/docs/vaultera-v4/liquidity/spokes/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogFresh news and product updates.' || t.startsWith('BlogFresh news and product updates.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v4_positions', () => { test('docs_vaultera_v4_positions: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera v4 user positions'); }); test('docs_vaultera_v4_positions: h1 "User Positions"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'User Positions' || t.startsWith('User Positions'))).toBeTruthy(); }); test('docs_vaultera_v4_positions: h2 "User Supplies"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'User Supplies' || t.startsWith('User Supplies'))).toBeTruthy(); }); test('docs_vaultera_v4_positions: h2 "User Borrows"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'User Borrows' || t.startsWith('User Borrows'))).toBeTruthy(); }); test('docs_vaultera_v4_positions: h2 "Health Factor"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Health Factor' || t.startsWith('Health Factor'))).toBeTruthy(); }); test('docs_vaultera_v4_positions: nav link "Vaultera AppSavings, open to a"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppSavings, open to all.' || t.startsWith('Vaultera AppSavings, open to all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_positions: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full power.' || t.startsWith('Vaultera ProV4DeFi at its full power.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_positions: nav link "Vaultera KitBuild on Vaultera."', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild on Vaultera.' || t.startsWith('Vaultera KitBuild on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_positions: nav link "BlogFresh news and release not"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogFresh news and release notes.' || t.startsWith('BlogFresh news and release notes.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v4_positions_borrow', () => { test('docs_vaultera_v4_positions_borrow: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/borrow/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('borrowing assets'); }); test('docs_vaultera_v4_positions_borrow: h1 "Borrow Funds"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/borrow/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borrow Funds' || t.startsWith('Borrow Funds'))).toBeTruthy(); }); test('docs_vaultera_v4_positions_borrow: h2 "Borrow Flow"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/borrow/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borrow Flow' || t.startsWith('Borrow Flow'))).toBeTruthy(); }); test('docs_vaultera_v4_positions_borrow: h2 "Advanced Topics"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/borrow/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Advanced Topics' || t.startsWith('Advanced Topics'))).toBeTruthy(); }); test('docs_vaultera_v4_positions_borrow: h3 "Locate the Reserve"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/borrow/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Locate the Reserve' || t.startsWith('Locate the Reserve'))).toBeTruthy(); }); test('docs_vaultera_v4_positions_borrow: nav link "Vaultera AppSavings, made simp"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/borrow/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppSavings, made simple.' || t.startsWith('Vaultera AppSavings, made simple.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_positions_borrow: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/borrow/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full scale.' || t.startsWith('Vaultera ProV4DeFi at its full scale.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_positions_borrow: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/borrow/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_positions_borrow: nav link "BlogFresh news and product upd"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/borrow/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogFresh news and product updates.' || t.startsWith('BlogFresh news and product updates.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v4_positions_fetch', () => { test('docs_vaultera_v4_positions_fetch: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/fetch/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera open positions'); }); test('docs_vaultera_v4_positions_fetch: h1 "User Positions"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/fetch/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'User Positions' || t.startsWith('User Positions'))).toBeTruthy(); }); test('docs_vaultera_v4_positions_fetch: h2 "Supply Positions"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/fetch/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Supply Positions' || t.startsWith('Supply Positions'))).toBeTruthy(); }); test('docs_vaultera_v4_positions_fetch: h2 "User Borrows"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/fetch/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'User Borrows' || t.startsWith('User Borrows'))).toBeTruthy(); }); test('docs_vaultera_v4_positions_fetch: h2 "User Overview"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/fetch/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'User Overview' || t.startsWith('User Overview'))).toBeTruthy(); }); test('docs_vaultera_v4_positions_fetch: nav link "Vaultera AppEarn onchain, for "', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/fetch/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarn onchain, for all.' || t.startsWith('Vaultera AppEarn onchain, for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_positions_fetch: nav link "Vaultera ProV4The complete DeF"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/fetch/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The complete DeFi engine.' || t.startsWith('Vaultera ProV4The complete DeFi engine.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_positions_fetch: nav link "Vaultera KitBuild on Vaultera."', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/fetch/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild on Vaultera.' || t.startsWith('Vaultera KitBuild on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_positions_fetch: nav link "BlogFresh updates and news pos"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/fetch/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogFresh updates and news posts.' || t.startsWith('BlogFresh updates and news posts.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v4_positions_repay', () => { test('docs_vaultera_v4_positions_repay: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/repay/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('settle a loan'); }); test('docs_vaultera_v4_positions_repay: h1 "Repay Loans"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/repay/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Repay Loans' || t.startsWith('Repay Loans'))).toBeTruthy(); }); test('docs_vaultera_v4_positions_repay: h2 "Repaying"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/repay/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Repaying' || t.startsWith('Repaying'))).toBeTruthy(); }); test('docs_vaultera_v4_positions_repay: h2 "Advanced Options"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/repay/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Advanced Options' || t.startsWith('Advanced Options'))).toBeTruthy(); }); test('docs_vaultera_v4_positions_repay: h3 "Locate the Borrow Position"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/repay/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Locate the Borrow Position' || t.startsWith('Locate the Borrow Position'))).toBeTruthy(); }); test('docs_vaultera_v4_positions_repay: nav link "Vaultera AppEarning made simpl"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/repay/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning made simple.' || t.startsWith('Vaultera AppEarning made simple.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_positions_repay: nav link "Vaultera ProV4DeFi without any"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/repay/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi without any limits.' || t.startsWith('Vaultera ProV4DeFi without any limits.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_positions_repay: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/repay/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_positions_repay: nav link "BlogFresh announcements and ne"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/repay/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogFresh announcements and news.' || t.startsWith('BlogFresh announcements and news.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v4_positions_supply', () => { test('docs_vaultera_v4_positions_supply: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/supply/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('provide liquidity'); }); test('docs_vaultera_v4_positions_supply: h1 "Deposit Assets"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/supply/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Deposit Assets' || t.startsWith('Deposit Assets'))).toBeTruthy(); }); test('docs_vaultera_v4_positions_supply: h2 "Supplying"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/supply/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Supplying' || t.startsWith('Supplying'))).toBeTruthy(); }); test('docs_vaultera_v4_positions_supply: h2 "Collateral Controls"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/supply/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Collateral Controls' || t.startsWith('Collateral Controls'))).toBeTruthy(); }); test('docs_vaultera_v4_positions_supply: h2 "Advanced Topics"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/supply/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Advanced Topics' || t.startsWith('Advanced Topics'))).toBeTruthy(); }); test('docs_vaultera_v4_positions_supply: nav link "Vaultera AppEarn onchain, simp"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/supply/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarn onchain, simply.' || t.startsWith('Vaultera AppEarn onchain, simply.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_positions_supply: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/supply/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full power.' || t.startsWith('Vaultera ProV4DeFi at its full power.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_positions_supply: nav link "Vaultera KitBuild with Vault."', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/supply/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vault.' || t.startsWith('Vaultera KitBuild with Vault.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_positions_supply: nav link "BlogThe newest stories and upd"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/supply/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogThe newest stories and updates.' || t.startsWith('BlogThe newest stories and updates.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v4_positions_withdraw', () => { test('docs_vaultera_v4_positions_withdraw: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/withdraw/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('withdraw assets'); }); test('docs_vaultera_v4_positions_withdraw: h1 "Withdraw Funds"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/withdraw/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Withdraw Funds' || t.startsWith('Withdraw Funds'))).toBeTruthy(); }); test('docs_vaultera_v4_positions_withdraw: h2 "Withdrawals"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/withdraw/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Withdrawals' || t.startsWith('Withdrawals'))).toBeTruthy(); }); test('docs_vaultera_v4_positions_withdraw: h2 "Advanced Topics"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/withdraw/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Advanced Topics' || t.startsWith('Advanced Topics'))).toBeTruthy(); }); test('docs_vaultera_v4_positions_withdraw: h3 "Locate the Supply Position"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/withdraw/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Locate the Supply Position' || t.startsWith('Locate the Supply Position'))).toBeTruthy(); }); test('docs_vaultera_v4_positions_withdraw: nav link "Vaultera AppOnchain earning fo"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/withdraw/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOnchain earning for all.' || t.startsWith('Vaultera AppOnchain earning for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_positions_withdraw: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/withdraw/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full scale.' || t.startsWith('Vaultera ProV4DeFi at its full scale.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_positions_withdraw: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/withdraw/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v4_positions_withdraw: nav link "BlogThe newest drops and updat"', async ({ page }) => { await page.goto('/docs/vaultera-v4/positions/withdraw/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogThe newest drops and updates.' || t.startsWith('BlogThe newest drops and updates.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_concepts_risks', () => { test('docs_concepts_risks: title matches GT', async ({ page }) => { await page.goto('/docs/concepts/risks/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('risks'); }); test('docs_concepts_risks: h1 "Risks"', async ({ page }) => { await page.goto('/docs/concepts/risks/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Risks' || t.startsWith('Risks'))).toBeTruthy(); }); test('docs_concepts_risks: h2 "Smart Contract Risk"', async ({ page }) => { await page.goto('/docs/concepts/risks/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Smart Contract Risk' || t.startsWith('Smart Contract Risk'))).toBeTruthy(); }); test('docs_concepts_risks: h2 "Oracle Risk"', async ({ page }) => { await page.goto('/docs/concepts/risks/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Oracle Risk' || t.startsWith('Oracle Risk'))).toBeTruthy(); }); test('docs_concepts_risks: h2 "Collateral Risk"', async ({ page }) => { await page.goto('/docs/concepts/risks/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Collateral Risk' || t.startsWith('Collateral Risk'))).toBeTruthy(); }); test('docs_concepts_risks: nav link "Vaultera AppOnchain yield for "', async ({ page }) => { await page.goto('/docs/concepts/risks/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOnchain yield for all.' || t.startsWith('Vaultera AppOnchain yield for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_concepts_risks: nav link "Vaultera ProV4The next era of "', async ({ page }) => { await page.goto('/docs/concepts/risks/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The next era of DeFi.' || t.startsWith('Vaultera ProV4The next era of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_concepts_risks: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/concepts/risks/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_concepts_risks: nav link "BlogFresh insights and release"', async ({ page }) => { await page.goto('/docs/concepts/risks/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogFresh insights and releases.' || t.startsWith('BlogFresh insights and releases.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_developers_vaultera_v3_vaults_overview', () => { test('docs_developers_vaultera_v3_vaults_overview: title matches GT', async ({ page }) => { await page.goto('/docs/developers/vaultera-v3/vaults/overview/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera earn'); }); test('docs_developers_vaultera_v3_vaults_overview: h1 "Vaultera Earn"', async ({ page }) => { await page.goto('/docs/developers/vaultera-v3/vaults/overview/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera Earn' || t.startsWith('Vaultera Earn'))).toBeTruthy(); }); test('docs_developers_vaultera_v3_vaults_overview: h2 "Vaultera ERC-4626 Vaults"', async ({ page }) => { await page.goto('/docs/developers/vaultera-v3/vaults/overview/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ERC-4626 Vaults' || t.startsWith('Vaultera ERC-4626 Vaults'))).toBeTruthy(); }); test('docs_developers_vaultera_v3_vaults_overview: h3 "Overview"', async ({ page }) => { await page.goto('/docs/developers/vaultera-v3/vaults/overview/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Overview' || t.startsWith('Overview'))).toBeTruthy(); }); test('docs_developers_vaultera_v3_vaults_overview: h3 "Architecture"', async ({ page }) => { await page.goto('/docs/developers/vaultera-v3/vaults/overview/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Architecture' || t.startsWith('Architecture'))).toBeTruthy(); }); test('docs_developers_vaultera_v3_vaults_overview: nav link "Vaultera AppEarn onchain, open"', async ({ page }) => { await page.goto('/docs/developers/vaultera-v3/vaults/overview/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarn onchain, openly.' || t.startsWith('Vaultera AppEarn onchain, openly.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_developers_vaultera_v3_vaults_overview: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/docs/developers/vaultera-v3/vaults/overview/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full scale.' || t.startsWith('Vaultera ProV4DeFi at its full scale.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_developers_vaultera_v3_vaults_overview: nav link "Vaultera KitShip on Vaultera."', async ({ page }) => { await page.goto('/docs/developers/vaultera-v3/vaults/overview/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitShip on Vaultera.' || t.startsWith('Vaultera KitShip on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_developers_vaultera_v3_vaults_overview: nav link "BlogThe newest posts and relea"', async ({ page }) => { await page.goto('/docs/developers/vaultera-v3/vaults/overview/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogThe newest posts and releases.' || t.startsWith('BlogThe newest posts and releases.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_developers_gho', () => { test('docs_developers_gho: title matches GT', async ({ page }) => { await page.goto('/docs/developers/gho/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vusd'); }); test('docs_developers_gho: h1 "VUSD"', async ({ page }) => { await page.goto('/docs/developers/gho/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'VUSD' || t.startsWith('VUSD'))).toBeTruthy(); }); test('docs_developers_gho: h2 "VUSD Token"', async ({ page }) => { await page.goto('/docs/developers/gho/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'VUSD Token' || t.startsWith('VUSD Token'))).toBeTruthy(); }); test('docs_developers_gho: h2 "Facilitators"', async ({ page }) => { await page.goto('/docs/developers/gho/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Facilitators' || t.startsWith('Facilitators'))).toBeTruthy(); }); test('docs_developers_gho: h2 "VUSD Liquidity Committee"', async ({ page }) => { await page.goto('/docs/developers/gho/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'VUSD Liquidity Committee' || t.startsWith('VUSD Liquidity Committee'))).toBeTruthy(); }); test('docs_developers_gho: nav link "Vaultera AppOnchain savings fo"', async ({ page }) => { await page.goto('/docs/developers/gho/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOnchain savings for all.' || t.startsWith('Vaultera AppOnchain savings for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_developers_gho: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/docs/developers/gho/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full strength.' || t.startsWith('Vaultera ProV4DeFi at its full strength.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_developers_gho: nav link "Vaultera KitBuild on Vaultera."', async ({ page }) => { await page.goto('/docs/developers/gho/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild on Vaultera.' || t.startsWith('Vaultera KitBuild on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_developers_gho: nav link "BlogRecent news and product up"', async ({ page }) => { await page.goto('/docs/developers/gho/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogRecent news and product updates.' || t.startsWith('BlogRecent news and product updates.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_resources_parameters', () => { test('docs_resources_parameters: title matches GT', async ({ page }) => { await page.goto('/docs/resources/parameters/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('parameters dashboard'); }); test('docs_resources_parameters: h1 "Vaultera Protocol Parameter Da"', async ({ page }) => { await page.goto('/docs/resources/parameters/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera Protocol Parameter Dashboard' || t.startsWith('Vaultera Protocol Parameter Dashboard'))).toBeTruthy(); }); test('docs_resources_parameters: nav link "Vaultera AppYield for everyone"', async ({ page }) => { await page.goto('/docs/resources/parameters/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppYield for everyone.' || t.startsWith('Vaultera AppYield for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_resources_parameters: nav link "Vaultera ProV4DeFi at full cap"', async ({ page }) => { await page.goto('/docs/resources/parameters/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at full capacity.' || t.startsWith('Vaultera ProV4DeFi at full capacity.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_resources_parameters: nav link "Vaultera KitBuild on Vaultera."', async ({ page }) => { await page.goto('/docs/resources/parameters/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild on Vaultera.' || t.startsWith('Vaultera KitBuild on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_resources_parameters: nav link "BlogFresh releases and insight"', async ({ page }) => { await page.goto('/docs/resources/parameters/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogFresh releases and insights.' || t.startsWith('BlogFresh releases and insights.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - help_vaultera_101', () => { test('help_vaultera_101: title matches GT', async ({ page }) => { await page.goto('/help/vaultera-101/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('101'); }); test('help_vaultera_101: h2 "Resources"', async ({ page }) => { await page.goto('/help/vaultera-101/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('help_vaultera_101: h2 "Developers"', async ({ page }) => { await page.goto('/help/vaultera-101/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('help_vaultera_101: h2 "Popular Articles"', async ({ page }) => { await page.goto('/help/vaultera-101/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Popular Articles' || t.startsWith('Popular Articles'))).toBeTruthy(); }); test('help_vaultera_101: nav link "Vaultera AppEarn on your terms"', async ({ page }) => { await page.goto('/help/vaultera-101/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarn on your terms.' || t.startsWith('Vaultera AppEarn on your terms.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('help_vaultera_101: nav link "Vaultera ProV4Every DeFi tool,"', async ({ page }) => { await page.goto('/help/vaultera-101/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4Every DeFi tool, unified.' || t.startsWith('Vaultera ProV4Every DeFi tool, unified.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('help_vaultera_101: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/help/vaultera-101/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - help_borrowing', () => { test('help_borrowing: title matches GT', async ({ page }) => { await page.goto('/help/borrowing/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('borrowing'); }); test('help_borrowing: h2 "Resources"', async ({ page }) => { await page.goto('/help/borrowing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('help_borrowing: h2 "Developers"', async ({ page }) => { await page.goto('/help/borrowing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('help_borrowing: h2 "Popular Articles"', async ({ page }) => { await page.goto('/help/borrowing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Popular Articles' || t.startsWith('Popular Articles'))).toBeTruthy(); }); test('help_borrowing: nav link "Vaultera AppSavings within rea"', async ({ page }) => { await page.goto('/help/borrowing/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppSavings within reach.' || t.startsWith('Vaultera AppSavings within reach.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('help_borrowing: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/help/borrowing/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full scale.' || t.startsWith('Vaultera ProV4DeFi at its full scale.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('help_borrowing: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/help/borrowing/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - help_gho_stablecoin', () => { test('help_gho_stablecoin: title matches GT', async ({ page }) => { await page.goto('/help/gho-stablecoin/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vusd coin'); }); test('help_gho_stablecoin: h1 "VUSD Stablecoin"', async ({ page }) => { await page.goto('/help/gho-stablecoin/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'VUSD Stablecoin' || t.startsWith('VUSD Stablecoin'))).toBeTruthy(); }); test('help_gho_stablecoin: h2 "Resources"', async ({ page }) => { await page.goto('/help/gho-stablecoin/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('help_gho_stablecoin: h2 "Developers"', async ({ page }) => { await page.goto('/help/gho-stablecoin/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('help_gho_stablecoin: h2 "Popular Articles"', async ({ page }) => { await page.goto('/help/gho-stablecoin/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Popular Articles' || t.startsWith('Popular Articles'))).toBeTruthy(); }); test('help_gho_stablecoin: nav link "Vaultera AppOnchain yield for "', async ({ page }) => { await page.goto('/help/gho-stablecoin/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOnchain yield for all.' || t.startsWith('Vaultera AppOnchain yield for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('help_gho_stablecoin: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/help/gho-stablecoin/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full scale.' || t.startsWith('Vaultera ProV4DeFi at its full scale.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('help_gho_stablecoin: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/help/gho-stablecoin/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - help_governance', () => { test('help_governance: title matches GT', async ({ page }) => { await page.goto('/help/governance/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('governance'); }); test('help_governance: h2 "Resources"', async ({ page }) => { await page.goto('/help/governance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('help_governance: h2 "Developers"', async ({ page }) => { await page.goto('/help/governance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('help_governance: h2 "Popular Articles"', async ({ page }) => { await page.goto('/help/governance/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Popular Articles' || t.startsWith('Popular Articles'))).toBeTruthy(); }); test('help_governance: nav link "Vaultera AppYield within reach"', async ({ page }) => { await page.goto('/help/governance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppYield within reach.' || t.startsWith('Vaultera AppYield within reach.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('help_governance: nav link "Vaultera ProV4DeFi at full sca"', async ({ page }) => { await page.goto('/help/governance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at full scale.' || t.startsWith('Vaultera ProV4DeFi at full scale.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('help_governance: nav link "Vaultera KitShip on Vaultera."', async ({ page }) => { await page.goto('/help/governance/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitShip on Vaultera.' || t.startsWith('Vaultera KitShip on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - help_supplying', () => { test('help_supplying: title matches GT', async ({ page }) => { await page.goto('/help/supplying/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('supplying'); }); test('help_supplying: h1 "Supplying"', async ({ page }) => { await page.goto('/help/supplying/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Supplying' || t.startsWith('Supplying'))).toBeTruthy(); }); test('help_supplying: h2 "Reference Hub"', async ({ page }) => { await page.goto('/help/supplying/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reference Hub' || t.startsWith('Reference Hub'))).toBeTruthy(); }); test('help_supplying: h2 "Builders"', async ({ page }) => { await page.goto('/help/supplying/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Builders' || t.startsWith('Builders'))).toBeTruthy(); }); test('help_supplying: h2 "Trending Articles"', async ({ page }) => { await page.goto('/help/supplying/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Trending Articles' || t.startsWith('Trending Articles'))).toBeTruthy(); }); test('help_supplying: nav link "Vaultera AppOnchain yield for "', async ({ page }) => { await page.goto('/help/supplying/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOnchain yield for all.' || t.startsWith('Vaultera AppOnchain yield for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('help_supplying: nav link "Vaultera ProV4The full power o"', async ({ page }) => { await page.goto('/help/supplying/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The full power of onchain.' || t.startsWith('Vaultera ProV4The full power of onchain.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('help_supplying: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/help/supplying/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - help_umbrella', () => { test('help_umbrella: title matches GT', async ({ page }) => { await page.goto('/help/umbrella/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('umbrella'); }); test('help_umbrella: h1 "Guardian"', async ({ page }) => { await page.goto('/help/umbrella/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Guardian' || t.startsWith('Guardian'))).toBeTruthy(); }); test('help_umbrella: h2 "Resources"', async ({ page }) => { await page.goto('/help/umbrella/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('help_umbrella: h2 "Developers"', async ({ page }) => { await page.goto('/help/umbrella/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('help_umbrella: h2 "Popular Articles"', async ({ page }) => { await page.goto('/help/umbrella/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Popular Articles' || t.startsWith('Popular Articles'))).toBeTruthy(); }); test('help_umbrella: nav link "Vaultera AppOpen savings, onch"', async ({ page }) => { await page.goto('/help/umbrella/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOpen savings, onchain.' || t.startsWith('Vaultera AppOpen savings, onchain.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('help_umbrella: nav link "Vaultera ProV4DeFi at full str"', async ({ page }) => { await page.goto('/help/umbrella/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at full strength.' || t.startsWith('Vaultera ProV4DeFi at full strength.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('help_umbrella: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/help/umbrella/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - help_web3', () => { test('help_web3: title matches GT', async ({ page }) => { await page.goto('/help/web3/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('web3'); }); test('help_web3: h1 "Web3"', async ({ page }) => { await page.goto('/help/web3/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Web3' || t.startsWith('Web3'))).toBeTruthy(); }); test('help_web3: h2 "Resources"', async ({ page }) => { await page.goto('/help/web3/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('help_web3: h2 "Developers"', async ({ page }) => { await page.goto('/help/web3/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('help_web3: h2 "Trending Articles"', async ({ page }) => { await page.goto('/help/web3/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Trending Articles' || t.startsWith('Trending Articles'))).toBeTruthy(); }); test('help_web3: nav link "Vaultera AppOnchain yield for "', async ({ page }) => { await page.goto('/help/web3/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOnchain yield for all.' || t.startsWith('Vaultera AppOnchain yield for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('help_web3: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/help/web3/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full strength.' || t.startsWith('Vaultera ProV4DeFi at its full strength.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('help_web3: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/help/web3/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - legal_app_terms_of_service', () => { test('legal_app_terms_of_service: title matches GT', async ({ page }) => { await page.goto('/legal/app/terms-of-service/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera app terms of service'); }); test('legal_app_terms_of_service: h1 "Vaultera App Terms"', async ({ page }) => { await page.goto('/legal/app/terms-of-service/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera App Terms' || t.startsWith('Vaultera App Terms'))).toBeTruthy(); }); test('legal_app_terms_of_service: h2 "Resources"', async ({ page }) => { await page.goto('/legal/app/terms-of-service/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('legal_app_terms_of_service: h2 "Developers"', async ({ page }) => { await page.goto('/legal/app/terms-of-service/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Developers' || t.startsWith('Developers'))).toBeTruthy(); }); test('legal_app_terms_of_service: h3 "About"', async ({ page }) => { await page.goto('/legal/app/terms-of-service/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About' || t.startsWith('About'))).toBeTruthy(); }); test('legal_app_terms_of_service: nav link "Vaultera AppYield for everyone"', async ({ page }) => { await page.goto('/legal/app/terms-of-service/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppYield for everyone.' || t.startsWith('Vaultera AppYield for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('legal_app_terms_of_service: nav link "Vaultera ProV4The complete DeF"', async ({ page }) => { await page.goto('/legal/app/terms-of-service/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The complete DeFi toolkit.' || t.startsWith('Vaultera ProV4The complete DeFi toolkit.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('legal_app_terms_of_service: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/legal/app/terms-of-service/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_aptos', () => { test('docs_vaultera_v3_aptos: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/aptos/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('movara'); }); test('docs_vaultera_v3_aptos: h1 "Vaultera v3 on Movara"', async ({ page }) => { await page.goto('/docs/vaultera-v3/aptos/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera v3 on Movara' || t.startsWith('Vaultera v3 on Movara'))).toBeTruthy(); }); test('docs_vaultera_v3_aptos: h2 "Overview"', async ({ page }) => { await page.goto('/docs/vaultera-v3/aptos/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Overview' || t.startsWith('Overview'))).toBeTruthy(); }); test('docs_vaultera_v3_aptos: h2 "Smart Contracts"', async ({ page }) => { await page.goto('/docs/vaultera-v3/aptos/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Smart Contracts' || t.startsWith('Smart Contracts'))).toBeTruthy(); }); test('docs_vaultera_v3_aptos: h2 "Integrations"', async ({ page }) => { await page.goto('/docs/vaultera-v3/aptos/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Integrations' || t.startsWith('Integrations'))).toBeTruthy(); }); test('docs_vaultera_v3_aptos: nav link "Vaultera AppSavings for everyo"', async ({ page }) => { await page.goto('/docs/vaultera-v3/aptos/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppSavings for everyone.' || t.startsWith('Vaultera AppSavings for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_aptos: nav link "Vaultera ProV4The complete DeF"', async ({ page }) => { await page.goto('/docs/vaultera-v3/aptos/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The complete DeFi toolkit.' || t.startsWith('Vaultera ProV4The complete DeFi toolkit.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_aptos: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/vaultera-v3/aptos/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_aptos: nav link "BlogFresh news and updates."', async ({ page }) => { await page.goto('/docs/vaultera-v3/aptos/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogFresh news and updates.' || t.startsWith('BlogFresh news and updates.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_horizon', () => { test('docs_vaultera_v3_horizon: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/horizon/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera arc'); }); test('docs_vaultera_v3_horizon: h1 "Vaultera Horizon RWA Market"', async ({ page }) => { await page.goto('/docs/vaultera-v3/horizon/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera Horizon RWA Market' || t.startsWith('Vaultera Horizon RWA Market'))).toBeTruthy(); }); test('docs_vaultera_v3_horizon: h2 "Integrations"', async ({ page }) => { await page.goto('/docs/vaultera-v3/horizon/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Integrations' || t.startsWith('Integrations'))).toBeTruthy(); }); test('docs_vaultera_v3_horizon: h3 "Supplying RWA Collateral"', async ({ page }) => { await page.goto('/docs/vaultera-v3/horizon/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Supplying RWA Collateral' || t.startsWith('Supplying RWA Collateral'))).toBeTruthy(); }); test('docs_vaultera_v3_horizon: h3 "Borrowing Stablecoins"', async ({ page }) => { await page.goto('/docs/vaultera-v3/horizon/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borrowing Stablecoins' || t.startsWith('Borrowing Stablecoins'))).toBeTruthy(); }); test('docs_vaultera_v3_horizon: nav link "Web AppEarning made simple."', async ({ page }) => { await page.goto('/docs/vaultera-v3/horizon/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Web AppEarning made simple.' || t.startsWith('Web AppEarning made simple.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_horizon: nav link "Vaultera ProV4The full force o"', async ({ page }) => { await page.goto('/docs/vaultera-v3/horizon/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The full force of DeFi.' || t.startsWith('Vaultera ProV4The full force of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_horizon: nav link "Vaultera KitBuild with Core."', async ({ page }) => { await page.goto('/docs/vaultera-v3/horizon/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Core.' || t.startsWith('Vaultera KitBuild with Core.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_horizon: nav link "BlogThe latest drops and updat"', async ({ page }) => { await page.goto('/docs/vaultera-v3/horizon/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogThe latest drops and updates.' || t.startsWith('BlogThe latest drops and updates.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_overview', () => { test('docs_vaultera_v3_overview: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/overview/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera v3 overview'); }); test('docs_vaultera_v3_overview: h1 "Vaultera v3"', async ({ page }) => { await page.goto('/docs/vaultera-v3/overview/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera v3' || t.startsWith('Vaultera v3'))).toBeTruthy(); }); test('docs_vaultera_v3_overview: h2 "Supply"', async ({ page }) => { await page.goto('/docs/vaultera-v3/overview/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Supply' || t.startsWith('Supply'))).toBeTruthy(); }); test('docs_vaultera_v3_overview: h2 "Borrow"', async ({ page }) => { await page.goto('/docs/vaultera-v3/overview/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borrow' || t.startsWith('Borrow'))).toBeTruthy(); }); test('docs_vaultera_v3_overview: h2 "Interest Rates"', async ({ page }) => { await page.goto('/docs/vaultera-v3/overview/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Interest Rates' || t.startsWith('Interest Rates'))).toBeTruthy(); }); test('docs_vaultera_v3_overview: nav link "Vaultera AppEarning for everyo"', async ({ page }) => { await page.goto('/docs/vaultera-v3/overview/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning for everyone.' || t.startsWith('Vaultera AppEarning for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_overview: nav link "Vaultera ProV4The full scope o"', async ({ page }) => { await page.goto('/docs/vaultera-v3/overview/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The full scope of DeFi.' || t.startsWith('Vaultera ProV4The full scope of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_overview: nav link "Vaultera KitBuild on Vaultera."', async ({ page }) => { await page.goto('/docs/vaultera-v3/overview/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild on Vaultera.' || t.startsWith('Vaultera KitBuild on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_overview: nav link "BlogThe latest posts and updat"', async ({ page }) => { await page.goto('/docs/vaultera-v3/overview/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogThe latest posts and updates.' || t.startsWith('BlogThe latest posts and updates.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_smart_contracts', () => { test('docs_vaultera_v3_smart_contracts: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('smart contracts'); }); test('docs_vaultera_v3_smart_contracts: h1 "Smart Contracts"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Smart Contracts' || t.startsWith('Smart Contracts'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts: h2 "Pool"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pool' || t.startsWith('Pool'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts: h2 "Protocol Setup"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Protocol Setup' || t.startsWith('Protocol Setup'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts: h2 "Logic"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Logic' || t.startsWith('Logic'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts: nav link "Vaultera AppYield for everyone"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppYield for everyone.' || t.startsWith('Vaultera AppYield for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts: nav link "Vaultera ProV4DeFi at full str"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at full strength.' || t.startsWith('Vaultera ProV4DeFi at full strength.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts: nav link "BlogFresh news and product upd"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogFresh news and product updates.' || t.startsWith('BlogFresh news and product updates.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_aptos_overview', () => { test('docs_vaultera_v3_aptos_overview: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/aptos/overview/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('overview'); }); test('docs_vaultera_v3_aptos_overview: h1 "Movara Overview"', async ({ page }) => { await page.goto('/docs/vaultera-v3/aptos/overview/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Movara Overview' || t.startsWith('Movara Overview'))).toBeTruthy(); }); test('docs_vaultera_v3_aptos_overview: h2 "Vaultera v3.3 on Movara: Imple"', async ({ page }) => { await page.goto('/docs/vaultera-v3/aptos/overview/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera v3.3 on Movara: Implementation Overview' || t.startsWith('Vaultera v3.3 on Movara: Implementation Overview'))).toBeTruthy(); }); test('docs_vaultera_v3_aptos_overview: h3 "Core Features"', async ({ page }) => { await page.goto('/docs/vaultera-v3/aptos/overview/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Core Features' || t.startsWith('Core Features'))).toBeTruthy(); }); test('docs_vaultera_v3_aptos_overview: h3 "How the Movara Move Port Was B"', async ({ page }) => { await page.goto('/docs/vaultera-v3/aptos/overview/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How the Movara Move Port Was Built' || t.startsWith('How the Movara Move Port Was Built'))).toBeTruthy(); }); test('docs_vaultera_v3_aptos_overview: nav link "Vaultera AppEarnings for every"', async ({ page }) => { await page.goto('/docs/vaultera-v3/aptos/overview/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarnings for everyone.' || t.startsWith('Vaultera AppEarnings for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_aptos_overview: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/docs/vaultera-v3/aptos/overview/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full scale.' || t.startsWith('Vaultera ProV4DeFi at its full scale.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_aptos_overview: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/vaultera-v3/aptos/overview/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_aptos_overview: nav link "BlogFresh updates and releases"', async ({ page }) => { await page.goto('/docs/vaultera-v3/aptos/overview/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogFresh updates and releases.' || t.startsWith('BlogFresh updates and releases.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_aptos_smart_contracts', () => { test('docs_vaultera_v3_aptos_smart_contracts: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/aptos/smart-contracts/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('smart contracts'); }); test('docs_vaultera_v3_aptos_smart_contracts: h1 "Smart Contracts"', async ({ page }) => { await page.goto('/docs/vaultera-v3/aptos/smart-contracts/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Smart Contracts' || t.startsWith('Smart Contracts'))).toBeTruthy(); }); test('docs_vaultera_v3_aptos_smart_contracts: h2 "Modules"', async ({ page }) => { await page.goto('/docs/vaultera-v3/aptos/smart-contracts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Modules' || t.startsWith('Modules'))).toBeTruthy(); }); test('docs_vaultera_v3_aptos_smart_contracts: h3 "@vaultera-pool"', async ({ page }) => { await page.goto('/docs/vaultera-v3/aptos/smart-contracts/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '@vaultera-pool' || t.startsWith('@vaultera-pool'))).toBeTruthy(); }); test('docs_vaultera_v3_aptos_smart_contracts: h3 "@vaultera-acl"', async ({ page }) => { await page.goto('/docs/vaultera-v3/aptos/smart-contracts/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '@vaultera-acl' || t.startsWith('@vaultera-acl'))).toBeTruthy(); }); test('docs_vaultera_v3_aptos_smart_contracts: nav link "Vaultera AppLending made simpl"', async ({ page }) => { await page.goto('/docs/vaultera-v3/aptos/smart-contracts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppLending made simple.' || t.startsWith('Vaultera AppLending made simple.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_aptos_smart_contracts: nav link "Vaultera ProV4DeFi at full str"', async ({ page }) => { await page.goto('/docs/vaultera-v3/aptos/smart-contracts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at full strength.' || t.startsWith('Vaultera ProV4DeFi at full strength.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_aptos_smart_contracts: nav link "Vaultera KitTools for builders"', async ({ page }) => { await page.goto('/docs/vaultera-v3/aptos/smart-contracts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitTools for builders.' || t.startsWith('Vaultera KitTools for builders.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_aptos_smart_contracts: nav link "BlogNews, releases, and insigh"', async ({ page }) => { await page.goto('/docs/vaultera-v3/aptos/smart-contracts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogNews, releases, and insights.' || t.startsWith('BlogNews, releases, and insights.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_concepts_incentives', () => { test('docs_vaultera_v3_concepts_incentives: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/concepts/incentives/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('incentives'); }); test('docs_vaultera_v3_concepts_incentives: h1 "Incentives"', async ({ page }) => { await page.goto('/docs/vaultera-v3/concepts/incentives/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Incentives' || t.startsWith('Incentives'))).toBeTruthy(); }); test('docs_vaultera_v3_concepts_incentives: h2 "Liquidity Pool Rewards"', async ({ page }) => { await page.goto('/docs/vaultera-v3/concepts/incentives/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Liquidity Pool Rewards' || t.startsWith('Liquidity Pool Rewards'))).toBeTruthy(); }); test('docs_vaultera_v3_concepts_incentives: h2 "Safety Reserve"', async ({ page }) => { await page.goto('/docs/vaultera-v3/concepts/incentives/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Safety Reserve' || t.startsWith('Safety Reserve'))).toBeTruthy(); }); test('docs_vaultera_v3_concepts_incentives: h2 "Boost Program"', async ({ page }) => { await page.goto('/docs/vaultera-v3/concepts/incentives/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Boost Program' || t.startsWith('Boost Program'))).toBeTruthy(); }); test('docs_vaultera_v3_concepts_incentives: nav link "Vaultera AppEarning for everyo"', async ({ page }) => { await page.goto('/docs/vaultera-v3/concepts/incentives/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning for everyone.' || t.startsWith('Vaultera AppEarning for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_concepts_incentives: nav link "Vaultera ProV4DeFi unlocked, i"', async ({ page }) => { await page.goto('/docs/vaultera-v3/concepts/incentives/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi unlocked, in full.' || t.startsWith('Vaultera ProV4DeFi unlocked, in full.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_concepts_incentives: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/vaultera-v3/concepts/incentives/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_concepts_incentives: nav link "BlogFresh insights and release"', async ({ page }) => { await page.goto('/docs/vaultera-v3/concepts/incentives/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogFresh insights and releases.' || t.startsWith('BlogFresh insights and releases.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_concepts_liquidity_pool', () => { test('docs_vaultera_v3_concepts_liquidity_pool: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/concepts/liquidity-pool/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('liquiditypool'); }); test('docs_vaultera_v3_concepts_liquidity_pool: h1 "Liquidity Pool"', async ({ page }) => { await page.goto('/docs/vaultera-v3/concepts/liquidity-pool/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Liquidity Pool' || t.startsWith('Liquidity Pool'))).toBeTruthy(); }); test('docs_vaultera_v3_concepts_liquidity_pool: h2 "Supply"', async ({ page }) => { await page.goto('/docs/vaultera-v3/concepts/liquidity-pool/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Supply' || t.startsWith('Supply'))).toBeTruthy(); }); test('docs_vaultera_v3_concepts_liquidity_pool: h2 "Withdraw"', async ({ page }) => { await page.goto('/docs/vaultera-v3/concepts/liquidity-pool/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Withdraw' || t.startsWith('Withdraw'))).toBeTruthy(); }); test('docs_vaultera_v3_concepts_liquidity_pool: h2 "Borrow"', async ({ page }) => { await page.goto('/docs/vaultera-v3/concepts/liquidity-pool/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borrow' || t.startsWith('Borrow'))).toBeTruthy(); }); test('docs_vaultera_v3_concepts_liquidity_pool: nav link "Vaultera AppSavings, made simp"', async ({ page }) => { await page.goto('/docs/vaultera-v3/concepts/liquidity-pool/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppSavings, made simple.' || t.startsWith('Vaultera AppSavings, made simple.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_concepts_liquidity_pool: nav link "Vaultera ProV4The full force o"', async ({ page }) => { await page.goto('/docs/vaultera-v3/concepts/liquidity-pool/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The full force of DeFi.' || t.startsWith('Vaultera ProV4The full force of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_concepts_liquidity_pool: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/vaultera-v3/concepts/liquidity-pool/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_concepts_liquidity_pool: nav link "BlogLatest news, straight to y"', async ({ page }) => { await page.goto('/docs/vaultera-v3/concepts/liquidity-pool/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogLatest news, straight to you.' || t.startsWith('BlogLatest news, straight to you.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_concepts_reserve', () => { test('docs_vaultera_v3_concepts_reserve: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/concepts/reserve/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('reserve'); }); test('docs_vaultera_v3_concepts_reserve: h1 "Reserve"', async ({ page }) => { await page.goto('/docs/vaultera-v3/concepts/reserve/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reserve' || t.startsWith('Reserve'))).toBeTruthy(); }); test('docs_vaultera_v3_concepts_reserve: h2 "Core Reserve Parameters"', async ({ page }) => { await page.goto('/docs/vaultera-v3/concepts/reserve/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Core Reserve Parameters' || t.startsWith('Core Reserve Parameters'))).toBeTruthy(); }); test('docs_vaultera_v3_concepts_reserve: h2 "Evolving Parameters and Govern"', async ({ page }) => { await page.goto('/docs/vaultera-v3/concepts/reserve/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Evolving Parameters and Governance' || t.startsWith('Evolving Parameters and Governance'))).toBeTruthy(); }); test('docs_vaultera_v3_concepts_reserve: nav link "Vaultera AppEarning for everyo"', async ({ page }) => { await page.goto('/docs/vaultera-v3/concepts/reserve/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning for everyone.' || t.startsWith('Vaultera AppEarning for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_concepts_reserve: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/docs/vaultera-v3/concepts/reserve/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full scale.' || t.startsWith('Vaultera ProV4DeFi at its full scale.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_concepts_reserve: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/vaultera-v3/concepts/reserve/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_concepts_reserve: nav link "BlogThe latest news and releas"', async ({ page }) => { await page.goto('/docs/vaultera-v3/concepts/reserve/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogThe latest news and releases.' || t.startsWith('BlogThe latest news and releases.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_getting_started_graphql', () => { test('docs_vaultera_v3_getting_started_graphql: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/getting-started/graphql/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaulterakit api v3'); }); test('docs_vaultera_v3_getting_started_graphql: h1 "GraphQL"', async ({ page }) => { await page.goto('/docs/vaultera-v3/getting-started/graphql/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'GraphQL' || t.startsWith('GraphQL'))).toBeTruthy(); }); test('docs_vaultera_v3_getting_started_graphql: h2 "Initial Setup"', async ({ page }) => { await page.goto('/docs/vaultera-v3/getting-started/graphql/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Initial Setup' || t.startsWith('Initial Setup'))).toBeTruthy(); }); test('docs_vaultera_v3_getting_started_graphql: h2 "Query Categories"', async ({ page }) => { await page.goto('/docs/vaultera-v3/getting-started/graphql/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Query Categories' || t.startsWith('Query Categories'))).toBeTruthy(); }); test('docs_vaultera_v3_getting_started_graphql: h2 "Tracking Transactions"', async ({ page }) => { await page.goto('/docs/vaultera-v3/getting-started/graphql/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Tracking Transactions' || t.startsWith('Tracking Transactions'))).toBeTruthy(); }); test('docs_vaultera_v3_getting_started_graphql: nav link "Vaultera AppEarnings for every"', async ({ page }) => { await page.goto('/docs/vaultera-v3/getting-started/graphql/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarnings for everyone.' || t.startsWith('Vaultera AppEarnings for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_getting_started_graphql: nav link "Vaultera ProV4The complete DeF"', async ({ page }) => { await page.goto('/docs/vaultera-v3/getting-started/graphql/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The complete DeFi engine.' || t.startsWith('Vaultera ProV4The complete DeFi engine.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_getting_started_graphql: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/vaultera-v3/getting-started/graphql/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_getting_started_graphql: nav link "BlogFresh news and protocol up"', async ({ page }) => { await page.goto('/docs/vaultera-v3/getting-started/graphql/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogFresh news and protocol updates.' || t.startsWith('BlogFresh news and protocol updates.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_getting_started_react', () => { test('docs_vaultera_v3_getting_started_react: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/getting-started/react/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaulterakit vela v3'); }); test('docs_vaultera_v3_getting_started_react: h1 "Vela"', async ({ page }) => { await page.goto('/docs/vaultera-v3/getting-started/react/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vela' || t.startsWith('Vela'))).toBeTruthy(); }); test('docs_vaultera_v3_getting_started_react: h2 "Getting Started"', async ({ page }) => { await page.goto('/docs/vaultera-v3/getting-started/react/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Getting Started' || t.startsWith('Getting Started'))).toBeTruthy(); }); test('docs_vaultera_v3_getting_started_react: h2 "Compatibility"', async ({ page }) => { await page.goto('/docs/vaultera-v3/getting-started/react/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Compatibility' || t.startsWith('Compatibility'))).toBeTruthy(); }); test('docs_vaultera_v3_getting_started_react: h2 "Query Hooks"', async ({ page }) => { await page.goto('/docs/vaultera-v3/getting-started/react/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Query Hooks' || t.startsWith('Query Hooks'))).toBeTruthy(); }); test('docs_vaultera_v3_getting_started_react: nav link "Vaultera AppEarn onchain, simp"', async ({ page }) => { await page.goto('/docs/vaultera-v3/getting-started/react/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarn onchain, simply.' || t.startsWith('Vaultera AppEarn onchain, simply.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_getting_started_react: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/docs/vaultera-v3/getting-started/react/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its fullest scale.' || t.startsWith('Vaultera ProV4DeFi at its fullest scale.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_getting_started_react: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/vaultera-v3/getting-started/react/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_getting_started_react: nav link "BlogFresh insights and release"', async ({ page }) => { await page.goto('/docs/vaultera-v3/getting-started/react/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogFresh insights and releases.' || t.startsWith('BlogFresh insights and releases.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_getting_started_typescript', () => { test('docs_vaultera_v3_getting_started_typescript: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/getting-started/typescript/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaulterakit typescript v3'); }); test('docs_vaultera_v3_getting_started_typescript: h1 "TypeScript"', async ({ page }) => { await page.goto('/docs/vaultera-v3/getting-started/typescript/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'TypeScript' || t.startsWith('TypeScript'))).toBeTruthy(); }); test('docs_vaultera_v3_getting_started_typescript: h2 "Getting Started"', async ({ page }) => { await page.goto('/docs/vaultera-v3/getting-started/typescript/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Getting Started' || t.startsWith('Getting Started'))).toBeTruthy(); }); test('docs_vaultera_v3_getting_started_typescript: h2 "Action Result Types"', async ({ page }) => { await page.goto('/docs/vaultera-v3/getting-started/typescript/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Action Result Types' || t.startsWith('Action Result Types'))).toBeTruthy(); }); test('docs_vaultera_v3_getting_started_typescript: h2 "Integrations"', async ({ page }) => { await page.goto('/docs/vaultera-v3/getting-started/typescript/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Integrations' || t.startsWith('Integrations'))).toBeTruthy(); }); test('docs_vaultera_v3_getting_started_typescript: nav link "Vaultera AppEarn onchain for a"', async ({ page }) => { await page.goto('/docs/vaultera-v3/getting-started/typescript/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarn onchain for all.' || t.startsWith('Vaultera AppEarn onchain for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_getting_started_typescript: nav link "Vaultera ProV4The full stack o"', async ({ page }) => { await page.goto('/docs/vaultera-v3/getting-started/typescript/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The full stack of DeFi.' || t.startsWith('Vaultera ProV4The full stack of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_getting_started_typescript: nav link "Vaultera KitBuild with Vault."', async ({ page }) => { await page.goto('/docs/vaultera-v3/getting-started/typescript/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vault.' || t.startsWith('Vaultera KitBuild with Vault.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_getting_started_typescript: nav link "BlogNews, updates and releases"', async ({ page }) => { await page.goto('/docs/vaultera-v3/getting-started/typescript/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogNews, updates and releases.' || t.startsWith('BlogNews, updates and releases.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_guides_credit_delegation', () => { test('docs_vaultera_v3_guides_credit_delegation: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/guides/credit-delegation/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('credit delegation'); }); test('docs_vaultera_v3_guides_credit_delegation: h1 "Delegating Credit"', async ({ page }) => { await page.goto('/docs/vaultera-v3/guides/credit-delegation/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Delegating Credit' || t.startsWith('Delegating Credit'))).toBeTruthy(); }); test('docs_vaultera_v3_guides_credit_delegation: h2 "Granting the delegation"', async ({ page }) => { await page.goto('/docs/vaultera-v3/guides/credit-delegation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Granting the delegation' || t.startsWith('Granting the delegation'))).toBeTruthy(); }); test('docs_vaultera_v3_guides_credit_delegation: h2 "Drawing on the credit"', async ({ page }) => { await page.goto('/docs/vaultera-v3/guides/credit-delegation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Drawing on the credit' || t.startsWith('Drawing on the credit'))).toBeTruthy(); }); test('docs_vaultera_v3_guides_credit_delegation: h2 "Settling the credit"', async ({ page }) => { await page.goto('/docs/vaultera-v3/guides/credit-delegation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Settling the credit' || t.startsWith('Settling the credit'))).toBeTruthy(); }); test('docs_vaultera_v3_guides_credit_delegation: nav link "Vaultera AppYield for everyone"', async ({ page }) => { await page.goto('/docs/vaultera-v3/guides/credit-delegation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppYield for everyone.' || t.startsWith('Vaultera AppYield for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_guides_credit_delegation: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/docs/vaultera-v3/guides/credit-delegation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full scale.' || t.startsWith('Vaultera ProV4DeFi at its full scale.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_guides_credit_delegation: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/vaultera-v3/guides/credit-delegation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_guides_credit_delegation: nav link "BlogFresh releases and stories"', async ({ page }) => { await page.goto('/docs/vaultera-v3/guides/credit-delegation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogFresh releases and stories.' || t.startsWith('BlogFresh releases and stories.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_guides_flash_loans', () => { test('docs_vaultera_v3_guides_flash_loans: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/guides/flash-loans/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('flash loans'); }); test('docs_vaultera_v3_guides_flash_loans: h1 "Flash Loans"', async ({ page }) => { await page.goto('/docs/vaultera-v3/guides/flash-loans/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Flash Loans' || t.startsWith('Flash Loans'))).toBeTruthy(); }); test('docs_vaultera_v3_guides_flash_loans: h2 "Overview"', async ({ page }) => { await page.goto('/docs/vaultera-v3/guides/flash-loans/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Overview' || t.startsWith('Overview'))).toBeTruthy(); }); test('docs_vaultera_v3_guides_flash_loans: h2 "The workflow"', async ({ page }) => { await page.goto('/docs/vaultera-v3/guides/flash-loans/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The workflow' || t.startsWith('The workflow'))).toBeTruthy(); }); test('docs_vaultera_v3_guides_flash_loans: h3 "Execution Flow"', async ({ page }) => { await page.goto('/docs/vaultera-v3/guides/flash-loans/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Execution Flow' || t.startsWith('Execution Flow'))).toBeTruthy(); }); test('docs_vaultera_v3_guides_flash_loans: nav link "Vaultera AppYield for everyone"', async ({ page }) => { await page.goto('/docs/vaultera-v3/guides/flash-loans/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppYield for everyone.' || t.startsWith('Vaultera AppYield for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_guides_flash_loans: nav link "Vaultera ProV4The complete pow"', async ({ page }) => { await page.goto('/docs/vaultera-v3/guides/flash-loans/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The complete power of' || t.startsWith('Vaultera ProV4The complete power of')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_guides_flash_loans: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/vaultera-v3/guides/flash-loans/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_guides_flash_loans: nav link "BlogFresh insights and release"', async ({ page }) => { await page.goto('/docs/vaultera-v3/guides/flash-loans/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogFresh insights and release' || t.startsWith('BlogFresh insights and release')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_guides_sgho', () => { test('docs_vaultera_v3_guides_sgho: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/guides/sgho/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('savings vusd (svusd)'); }); test('docs_vaultera_v3_guides_sgho: h1 "Savings VUSD (sVUSD)"', async ({ page }) => { await page.goto('/docs/vaultera-v3/guides/sgho/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Savings VUSD (sVUSD)' || t.startsWith('Savings VUSD (sVUSD)'))).toBeTruthy(); }); test('docs_vaultera_v3_guides_sgho: h2 "Deposit"', async ({ page }) => { await page.goto('/docs/vaultera-v3/guides/sgho/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Deposit' || t.startsWith('Deposit'))).toBeTruthy(); }); test('docs_vaultera_v3_guides_sgho: h2 "Balance"', async ({ page }) => { await page.goto('/docs/vaultera-v3/guides/sgho/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Balance' || t.startsWith('Balance'))).toBeTruthy(); }); test('docs_vaultera_v3_guides_sgho: h2 "Cash"', async ({ page }) => { await page.goto('/docs/vaultera-v3/guides/sgho/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Cash' || t.startsWith('Cash'))).toBeTruthy(); }); test('docs_vaultera_v3_guides_sgho: nav link "Vaultera AppSavings, open to a"', async ({ page }) => { await page.goto('/docs/vaultera-v3/guides/sgho/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppSavings, open to all.' || t.startsWith('Vaultera AppSavings, open to all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_guides_sgho: nav link "Vaultera ProV4All the power of"', async ({ page }) => { await page.goto('/docs/vaultera-v3/guides/sgho/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4All the power of DeFi.' || t.startsWith('Vaultera ProV4All the power of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_guides_sgho: nav link "Vaultera KitBuild with Vault."', async ({ page }) => { await page.goto('/docs/vaultera-v3/guides/sgho/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vault.' || t.startsWith('Vaultera KitBuild with Vault.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_guides_sgho: nav link "BlogRecent stories and updates"', async ({ page }) => { await page.goto('/docs/vaultera-v3/guides/sgho/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogRecent stories and updates.' || t.startsWith('BlogRecent stories and updates.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_markets_advanced', () => { test('docs_vaultera_v3_markets_advanced: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/advanced/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('advanced features'); }); test('docs_vaultera_v3_markets_advanced: h1 "Advanced Features"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/advanced/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Advanced Features' || t.startsWith('Advanced Features'))).toBeTruthy(); }); test('docs_vaultera_v3_markets_advanced: h2 "User Transaction History"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/advanced/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'User Transaction History' || t.startsWith('User Transaction History'))).toBeTruthy(); }); test('docs_vaultera_v3_markets_advanced: h2 "Correlated Mode (eMode)"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/advanced/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Correlated Mode (eMode)' || t.startsWith('Correlated Mode (eMode)'))).toBeTruthy(); }); test('docs_vaultera_v3_markets_advanced: h2 "Liquidations"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/advanced/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Liquidations' || t.startsWith('Liquidations'))).toBeTruthy(); }); test('docs_vaultera_v3_markets_advanced: nav link "Vaultera AppOnchain savings fo"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/advanced/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOnchain savings for all.' || t.startsWith('Vaultera AppOnchain savings for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_markets_advanced: nav link "Vaultera ProV4Complete DeFi, u"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/advanced/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4Complete DeFi, unlocked.' || t.startsWith('Vaultera ProV4Complete DeFi, unlocked.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_markets_advanced: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/advanced/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_markets_advanced: nav link "BlogThe latest protocol update"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/advanced/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogThe latest protocol updates.' || t.startsWith('BlogThe latest protocol updates.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_markets_data', () => { test('docs_vaultera_v3_markets_data: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/data/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera market data'); }); test('docs_vaultera_v3_markets_data: h1 "Markets Data"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/data/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Markets Data' || t.startsWith('Markets Data'))).toBeTruthy(); }); test('docs_vaultera_v3_markets_data: h2 "Market Structure"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/data/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Market Structure' || t.startsWith('Market Structure'))).toBeTruthy(); }); test('docs_vaultera_v3_markets_data: h2 "Reserve Structure"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/data/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reserve Structure' || t.startsWith('Reserve Structure'))).toBeTruthy(); }); test('docs_vaultera_v3_markets_data: h2 "Fetching Available Markets"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/data/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Fetching Available Markets' || t.startsWith('Fetching Available Markets'))).toBeTruthy(); }); test('docs_vaultera_v3_markets_data: nav link "Vaultera AppYield for everyone"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/data/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppYield for everyone.' || t.startsWith('Vaultera AppYield for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_markets_data: nav link "Vaultera ProV4The full reach o"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/data/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The full reach of DeFi.' || t.startsWith('Vaultera ProV4The full reach of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_markets_data: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/data/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_markets_data: nav link "BlogRecent news and announceme"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/data/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogRecent news and announcements.' || t.startsWith('BlogRecent news and announcements.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_markets_incentives', () => { test('docs_vaultera_v3_markets_incentives: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/incentives/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera incentive programs'); }); test('docs_vaultera_v3_markets_incentives: h1 "Incentive Programs"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/incentives/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Incentive Programs' || t.startsWith('Incentive Programs'))).toBeTruthy(); }); test('docs_vaultera_v3_markets_incentives: h2 "Incentive Types"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/incentives/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Incentive Types' || t.startsWith('Incentive Types'))).toBeTruthy(); }); test('docs_vaultera_v3_markets_incentives: h2 "Claim Merit Rewards"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/incentives/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Claim Merit Rewards' || t.startsWith('Claim Merit Rewards'))).toBeTruthy(); }); test('docs_vaultera_v3_markets_incentives: h3 "Merit Programs"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/incentives/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Merit Programs' || t.startsWith('Merit Programs'))).toBeTruthy(); }); test('docs_vaultera_v3_markets_incentives: nav link "Vaultera AppEarning for everyo"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/incentives/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning for everyone.' || t.startsWith('Vaultera AppEarning for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_markets_incentives: nav link "Vaultera ProV4The full force o"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/incentives/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The full force of DeFi.' || t.startsWith('Vaultera ProV4The full force of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_markets_incentives: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/incentives/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_markets_incentives: nav link "BlogThe latest news and releas"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/incentives/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogThe latest news and releases.' || t.startsWith('BlogThe latest news and releases.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_markets_operations', () => { test('docs_vaultera_v3_markets_operations: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/operations/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('market operations'); }); test('docs_vaultera_v3_markets_operations: h1 "Core Market Actions"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/operations/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Core Market Actions' || t.startsWith('Core Market Actions'))).toBeTruthy(); }); test('docs_vaultera_v3_markets_operations: h2 "Permit Basics"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/operations/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Permit Basics' || t.startsWith('Permit Basics'))).toBeTruthy(); }); test('docs_vaultera_v3_markets_operations: h2 "Deposit Assets"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/operations/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Deposit Assets' || t.startsWith('Deposit Assets'))).toBeTruthy(); }); test('docs_vaultera_v3_markets_operations: h2 "Collateral Controls"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/operations/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Collateral Controls' || t.startsWith('Collateral Controls'))).toBeTruthy(); }); test('docs_vaultera_v3_markets_operations: nav link "Vaultera AppYield for everyone"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/operations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppYield for everyone.' || t.startsWith('Vaultera AppYield for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_markets_operations: nav link "Vaultera ProV4The full scope o"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/operations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The full scope of DeFi.' || t.startsWith('Vaultera ProV4The full scope of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_markets_operations: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/operations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_markets_operations: nav link "BlogThe newest stories and upd"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/operations/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogThe newest stories and updates.' || t.startsWith('BlogThe newest stories and updates.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_markets_overview', () => { test('docs_vaultera_v3_markets_overview: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/overview/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('vaultera markets'); }); test('docs_vaultera_v3_markets_overview: h1 "Vaultera Markets"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/overview/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera Markets' || t.startsWith('Vaultera Markets'))).toBeTruthy(); }); test('docs_vaultera_v3_markets_overview: nav link "Vaultera AppOnchain yield for "', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/overview/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOnchain yield for all.' || t.startsWith('Vaultera AppOnchain yield for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_markets_overview: nav link "Vaultera ProV4DeFi at full str"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/overview/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at full strength.' || t.startsWith('Vaultera ProV4DeFi at full strength.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_markets_overview: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/overview/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_markets_overview: nav link "BlogFresh releases and insight"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/overview/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogFresh releases and insights.' || t.startsWith('BlogFresh releases and insights.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_markets_positions', () => { test('docs_vaultera_v3_markets_positions: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/positions/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('user positions'); }); test('docs_vaultera_v3_markets_positions: h1 "User Positions"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/positions/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'User Positions' || t.startsWith('User Positions'))).toBeTruthy(); }); test('docs_vaultera_v3_markets_positions: h2 "Account Health"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/positions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Account Health' || t.startsWith('Account Health'))).toBeTruthy(); }); test('docs_vaultera_v3_markets_positions: h5 "Loading State"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/positions/'); const texts = (await page.locator('h5').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Loading State' || t.startsWith('Loading State'))).toBeTruthy(); }); test('docs_vaultera_v3_markets_positions: h5 "Vela Suspense"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/positions/'); const texts = (await page.locator('h5').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vela Suspense' || t.startsWith('Vela Suspense'))).toBeTruthy(); }); test('docs_vaultera_v3_markets_positions: nav link "Vaultera AppSimple savings onc"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/positions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppSimple savings onchain.' || t.startsWith('Vaultera AppSimple savings onchain.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_markets_positions: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/positions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full power.' || t.startsWith('Vaultera ProV4DeFi at its full power.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_markets_positions: nav link "Vaultera KitBuild with Vault."', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/positions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vault.' || t.startsWith('Vaultera KitBuild with Vault.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_markets_positions: nav link "BlogThe latest news and storie"', async ({ page }) => { await page.goto('/docs/vaultera-v3/markets/positions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogThe latest news and stories.' || t.startsWith('BlogThe latest news and stories.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_smart_contracts_acl_manager', () => { test('docs_vaultera_v3_smart_contracts_acl_manager: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/acl-manager/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('acl manager'); }); test('docs_vaultera_v3_smart_contracts_acl_manager: h1 "ACLManager"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/acl-manager/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ACLManager' || t.startsWith('ACLManager'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_acl_manager: h2 "Roles"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/acl-manager/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Roles' || t.startsWith('Roles'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_acl_manager: h2 "Write Actions"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/acl-manager/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Write Actions' || t.startsWith('Write Actions'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_acl_manager: h2 "Query Methods"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/acl-manager/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Query Methods' || t.startsWith('Query Methods'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_acl_manager: nav link "Vaultera AppOnchain yield for "', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/acl-manager/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOnchain yield for all.' || t.startsWith('Vaultera AppOnchain yield for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_acl_manager: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/acl-manager/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full scale.' || t.startsWith('Vaultera ProV4DeFi at its full scale.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_acl_manager: nav link "Vaultera KitShip on Vaultera."', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/acl-manager/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitShip on Vaultera.' || t.startsWith('Vaultera KitShip on Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_acl_manager: nav link "BlogFresh news and release not"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/acl-manager/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogFresh news and release notes.' || t.startsWith('BlogFresh news and release notes.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_smart_contracts_incentives', () => { test('docs_vaultera_v3_smart_contracts_incentives: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/incentives/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('incentives'); }); test('docs_vaultera_v3_smart_contracts_incentives: h1 "Incentives"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/incentives/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Incentives' || t.startsWith('Incentives'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_incentives: h1 "RewardsController"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/incentives/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'RewardsController' || t.startsWith('RewardsController'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_incentives: h2 "Write Methods"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/incentives/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Write Methods' || t.startsWith('Write Methods'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_incentives: h2 "View Methods"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/incentives/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View Methods' || t.startsWith('View Methods'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_incentives: nav link "Vaultera AppEveryday onchain"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/incentives/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEveryday onchain' || t.startsWith('Vaultera AppEveryday onchain')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_incentives: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/incentives/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full' || t.startsWith('Vaultera ProV4DeFi at its full')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_incentives: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/incentives/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_incentives: nav link "BlogFresh releases and insight"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/incentives/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogFresh releases and insights.' || t.startsWith('BlogFresh releases and insights.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_smart_contracts_interest_rate_strategy', () => { test('docs_vaultera_v3_smart_contracts_interest_rate_strategy: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/interest-rate-strategy/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('interest rate strategy'); }); test('docs_vaultera_v3_smart_contracts_interest_rate_strategy: h1 "Interest Rate Strategy"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/interest-rate-strategy/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Interest Rate Strategy' || t.startsWith('Interest Rate Strategy'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_interest_rate_strategy: h2 "View Methods"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/interest-rate-strategy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View Methods' || t.startsWith('View Methods'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_interest_rate_strategy: h3 "getVariableRateSlope1"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/interest-rate-strategy/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'getVariableRateSlope1' || t.startsWith('getVariableRateSlope1'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_interest_rate_strategy: h3 "getVariableRateSlope2"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/interest-rate-strategy/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'getVariableRateSlope2' || t.startsWith('getVariableRateSlope2'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_interest_rate_strategy: nav link "Vaultera AppYield for every wa"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/interest-rate-strategy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppYield for every wallet.' || t.startsWith('Vaultera AppYield for every wallet.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_interest_rate_strategy: nav link "Vaultera ProV4The complete DeF"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/interest-rate-strategy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The complete DeFi toolkit.' || t.startsWith('Vaultera ProV4The complete DeFi toolkit.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_interest_rate_strategy: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/interest-rate-strategy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_interest_rate_strategy: nav link "BlogFresh news and product upd"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/interest-rate-strategy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogFresh news and product updates.' || t.startsWith('BlogFresh news and product updates.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_smart_contracts_l2_pool', () => { test('docs_vaultera_v3_smart_contracts_l2_pool: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/l2-pool/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('l2 pool'); }); test('docs_vaultera_v3_smart_contracts_l2_pool: h1 "L2Pool"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/l2-pool/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'L2Pool' || t.startsWith('L2Pool'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_l2_pool: h2 "Methods"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/l2-pool/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Methods' || t.startsWith('Methods'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_l2_pool: h3 "supply"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/l2-pool/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'supply' || t.startsWith('supply'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_l2_pool: h3 "supplyWithPermit"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/l2-pool/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'supplyWithPermit' || t.startsWith('supplyWithPermit'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_l2_pool: nav link "Vaultera AppOnchain savings fo"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/l2-pool/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOnchain savings for all.' || t.startsWith('Vaultera AppOnchain savings for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_l2_pool: nav link "Vaultera ProV4DeFi in its full"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/l2-pool/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi in its fullest form.' || t.startsWith('Vaultera ProV4DeFi in its fullest form.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_l2_pool: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/l2-pool/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_l2_pool: nav link "BlogNews, releases and updates"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/l2-pool/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogNews, releases and updates.' || t.startsWith('BlogNews, releases and updates.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_smart_contracts_oracles', () => { test('docs_vaultera_v3_smart_contracts_oracles: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/oracles/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('oracles'); }); test('docs_vaultera_v3_smart_contracts_oracles: h1 "VaulteraOracle"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/oracles/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'VaulteraOracle' || t.startsWith('VaulteraOracle'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_oracles: h1 "PriceOracleSentinel"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/oracles/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'PriceOracleSentinel' || t.startsWith('PriceOracleSentinel'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_oracles: h2 "Write Methods"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/oracles/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Write Methods' || t.startsWith('Write Methods'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_oracles: h2 "View Methods"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/oracles/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View Methods' || t.startsWith('View Methods'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_oracles: nav link "Vaultera AppEarning made simpl"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/oracles/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning made simple.' || t.startsWith('Vaultera AppEarning made simple.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_oracles: nav link "Vaultera ProV4DeFi at its full"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/oracles/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi at its full strength.' || t.startsWith('Vaultera ProV4DeFi at its full strength.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_oracles: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/oracles/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_oracles: nav link "BlogFresh news and product upd"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/oracles/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogFresh news and product updates.' || t.startsWith('BlogFresh news and product updates.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_smart_contracts_pool', () => { test('docs_vaultera_v3_smart_contracts_pool: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/pool/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('pool'); }); test('docs_vaultera_v3_smart_contracts_pool: h1 "Pool"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/pool/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pool' || t.startsWith('Pool'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_pool: h2 "Write Methods"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/pool/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Write Methods' || t.startsWith('Write Methods'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_pool: h2 "View Methods"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/pool/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View Methods' || t.startsWith('View Methods'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_pool: h2 "Pure Methods"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/pool/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pure Methods' || t.startsWith('Pure Methods'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_pool: nav link "Vaultera AppOnchain yield, for"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/pool/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppOnchain yield, for all.' || t.startsWith('Vaultera AppOnchain yield, for all.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_pool: nav link "Vaultera ProV4The next chapter"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/pool/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The next chapter of DeFi.' || t.startsWith('Vaultera ProV4The next chapter of DeFi.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_pool: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/pool/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_pool: nav link "BlogFresh insights and release"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/pool/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogFresh insights and releases.' || t.startsWith('BlogFresh insights and releases.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_smart_contracts_pool_addresses_provider', () => { test('docs_vaultera_v3_smart_contracts_pool_addresses_provider: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/pool-addresses-provider/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('pool addresses provider'); }); test('docs_vaultera_v3_smart_contracts_pool_addresses_provider: h1 "PoolAddressesProvider"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/pool-addresses-provider/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'PoolAddressesProvider' || t.startsWith('PoolAddressesProvider'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_pool_addresses_provider: h2 "Write Methods"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/pool-addresses-provider/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Write Methods' || t.startsWith('Write Methods'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_pool_addresses_provider: h2 "View Methods"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/pool-addresses-provider/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'View Methods' || t.startsWith('View Methods'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_pool_addresses_provider: h3 "setMarketId"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/pool-addresses-provider/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'setMarketId' || t.startsWith('setMarketId'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_pool_addresses_provider: nav link "Vaultera AppEarn onchain, anyt"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/pool-addresses-provider/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarn onchain, anytime.' || t.startsWith('Vaultera AppEarn onchain, anytime.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_pool_addresses_provider: nav link "Vaultera ProV4DeFi in its pure"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/pool-addresses-provider/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4DeFi in its purest form.' || t.startsWith('Vaultera ProV4DeFi in its purest form.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_pool_addresses_provider: nav link "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/pool-addresses-provider/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vaultera.' || t.startsWith('Vaultera KitBuild with Vaultera.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_pool_addresses_provider: nav link "BlogThe latest news and releas"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/pool-addresses-provider/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogThe latest news and releases.' || t.startsWith('BlogThe latest news and releases.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_smart_contracts_pool_configurator', () => { test('docs_vaultera_v3_smart_contracts_pool_configurator: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/pool-configurator/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('pool configurator'); }); test('docs_vaultera_v3_smart_contracts_pool_configurator: h1 "Pool Configurator"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/pool-configurator/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pool Configurator' || t.startsWith('Pool Configurator'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_pool_configurator: h2 "Write Methods"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/pool-configurator/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Write Methods' || t.startsWith('Write Methods'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_pool_configurator: h2 "Only Asset Listing Or Pool Adm"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/pool-configurator/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Only Asset Listing Or Pool Admins Methods' || t.startsWith('Only Asset Listing Or Pool Admins Methods'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_pool_configurator: h2 "Emergency Admin-Only Methods"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/pool-configurator/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Emergency Admin-Only Methods' || t.startsWith('Emergency Admin-Only Methods'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_pool_configurator: nav link "Vaultera AppYield for everyone"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/pool-configurator/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppYield for everyone.' || t.startsWith('Vaultera AppYield for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_pool_configurator: nav link "Vaultera ProV4The complete DeF"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/pool-configurator/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The complete DeFi stack.' || t.startsWith('Vaultera ProV4The complete DeFi stack.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_pool_configurator: nav link "Vaultera KitBuild with Vault."', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/pool-configurator/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vault.' || t.startsWith('Vaultera KitBuild with Vault.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_pool_configurator: nav link "BlogFresh insights and release"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/pool-configurator/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogFresh insights and releases.' || t.startsWith('BlogFresh insights and releases.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_smart_contracts_swap_features', () => { test('docs_vaultera_v3_smart_contracts_swap_features: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/swap-features/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('swap features'); }); test('docs_vaultera_v3_smart_contracts_swap_features: h1 "Swap Features"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/swap-features/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Swap Features' || t.startsWith('Swap Features'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_swap_features: h2 "Swap Tokens"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/swap-features/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Swap Tokens' || t.startsWith('Swap Tokens'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_swap_features: h2 "Swap Adapter Contracts"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/swap-features/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Swap Adapter Contracts' || t.startsWith('Swap Adapter Contracts'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_swap_features: h2 "Repay Using Collateral"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/swap-features/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Repay Using Collateral' || t.startsWith('Repay Using Collateral'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_swap_features: nav link "Vaultera AppEarning for everyo"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/swap-features/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarning for everyone.' || t.startsWith('Vaultera AppEarning for everyone.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_swap_features: nav link "Vaultera ProV4The complete DeF"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/swap-features/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4The complete DeFi toolkit.' || t.startsWith('Vaultera ProV4The complete DeFi toolkit.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_swap_features: nav link "Vaultera KitBuild with Vault."', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/swap-features/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Vault.' || t.startsWith('Vaultera KitBuild with Vault.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_swap_features: nav link "BlogFresh news and product upd"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/swap-features/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogFresh news and product updates.' || t.startsWith('BlogFresh news and product updates.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - docs_vaultera_v3_smart_contracts_testing_and_debugging', () => { test('docs_vaultera_v3_smart_contracts_testing_and_debugging: title matches GT', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/testing-and-debugging/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('testing & debugging'); }); test('docs_vaultera_v3_smart_contracts_testing_and_debugging: h1 "Testing & Debugging"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/testing-and-debugging/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Testing & Debugging' || t.startsWith('Testing & Debugging'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_testing_and_debugging: h2 "Testing"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/testing-and-debugging/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Testing' || t.startsWith('Testing'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_testing_and_debugging: h2 "Debugging"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/testing-and-debugging/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Debugging' || t.startsWith('Debugging'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_testing_and_debugging: h3 "Testnet"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/testing-and-debugging/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Testnet' || t.startsWith('Testnet'))).toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_testing_and_debugging: nav link "Vaultera AppEarn onchain, simp"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/testing-and-debugging/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera AppEarn onchain, simply.' || t.startsWith('Vaultera AppEarn onchain, simply.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('app')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_testing_and_debugging: nav link "Vaultera ProV4Advanced DeFi, u"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/testing-and-debugging/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera ProV4Advanced DeFi, unlocked.' || t.startsWith('Vaultera ProV4Advanced DeFi, unlocked.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('pro')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_testing_and_debugging: nav link "Vaultera KitBuild with Core."', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/testing-and-debugging/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Vaultera KitBuild with Core.' || t.startsWith('Vaultera KitBuild with Core.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('build')), 'href fragment present').toBeTruthy(); }); test('docs_vaultera_v3_smart_contracts_testing_and_debugging: nav link "BlogRecent updates and stories"', async ({ page }) => { await page.goto('/docs/vaultera-v3/smart-contracts/testing-and-debugging/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BlogRecent updates and stories.' || t.startsWith('BlogRecent updates and stories.')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - Routing', () => { test('navigate to privacy_policy via "Cookie Policy"', async ({ page }) => { await page.goto('/'); const link = page.locator('a[href*="privacy-policy#5-cookies-policy"]').first(); expect(await link.count(), 'nav link to privacy_policy exists').toBeGreaterThan(0); await link.click(); await page.waitForTimeout(1200); expect(page.url().toLowerCase(), 'URL changed to destination').toContain('privacy-policy#5-cookies-policy'); const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); expect(bodyText, 'destination distinctive content shown').toContain('Privacy Policy'); }); test('navigate to app via "Vaultera AppSavings for everyo"', async ({ page }) => { await page.goto('/'); const link = page.locator('a[href*="app"]').first(); expect(await link.count(), 'nav link to app exists').toBeGreaterThan(0); await link.click(); await page.waitForTimeout(1200); expect(page.url().toLowerCase(), 'URL changed to destination').toContain('app'); const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); expect(bodyText, 'destination distinctive content shown').toContain('Earn up to 6.50%on your stablecoins.'); }); test('navigate to build via "Vaultera KitBuild with Vaulter"', async ({ page }) => { await page.goto('/'); const link = page.locator('a[href*="build"]').first(); expect(await link.count(), 'nav link to build exists').toBeGreaterThan(0); await link.click(); await page.waitForTimeout(1200); expect(page.url().toLowerCase(), 'URL changed to destination').toContain('build'); const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); expect(bodyText, 'destination distinctive content shown').toContain('Build on the Vaultera Stack.'); }); });