Datasets:
Download web/fynora.example/tests/static/content.scripted.spec.ts from Qwen/RecreationBench: direct link, hf CLI and curl.
- Browser
- Download file 227 kB
-
https://huggingface.co/datasets/Qwen/RecreationBench/resolve/main/web/fynora.example/tests/static/content.scripted.spec.ts
- Command line
-
hf download hf://datasets/Qwen/RecreationBench/web/fynora.example/tests/static/content.scripted.spec.ts
-
curl -L -o content.scripted.spec.ts https://huggingface.co/datasets/Qwen/RecreationBench/resolve/main/web/fynora.example/tests/static/content.scripted.spec.ts
227 kB
| import { test, expect } from '@playwright/test'; | |
| test.describe('Functional - homepage', () => { | |
| test('homepage: title matches GT', async ({ page }) => { | |
| await page.goto('/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('fynora'); | |
| }); | |
| test('homepage: h1 "Meet Fynora. Your AI-powered f"', async ({ page }) => { | |
| await page.goto('/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Meet Fynora. Your AI-powered financial operations platform.' || t.startsWith('Meet Fynora. Your AI-powered financial operations platform.'))).toBeTruthy(); | |
| }); | |
| test('homepage: h2 "Features"', async ({ page }) => { | |
| await page.goto('/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Features' || t.startsWith('Features'))).toBeTruthy(); | |
| }); | |
| test('homepage: h2 "Cut hours from payments with A"', async ({ page }) => { | |
| await page.goto('/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cut hours from payments with AI-enhanced AP automation' || t.startsWith('Cut hours from payments with AI-enhanced AP automation'))).toBeTruthy(); | |
| }); | |
| test('homepage: h2 "Improve cash flow with credit,"', async ({ page }) => { | |
| await page.goto('/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Improve cash flow with credit, guardrails, and AI-powered expense precision' || t.startsWith('Improve cash flow with credit, guardrails, and AI-powered expense precision'))).toBeTruthy(); | |
| }); | |
| test('homepage: nav link "Accounts Payable"', 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 === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('homepage: nav link "Accounts Receivable"', 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 === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('homepage: nav link "Cash Flow Forecasting"', 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 === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('homepage: nav link "Integrations"', 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 === 'Integrations' || t.startsWith('Integrations')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_us', () => { | |
| test('about_us: title matches GT', async ({ page }) => { | |
| await page.goto('/about-us/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('about us'); | |
| }); | |
| test('about_us: h1 "Reinventing the financial back"', async ({ page }) => { | |
| await page.goto('/about-us/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Reinventing the financial back office for teams' || t.startsWith('Reinventing the financial back office for teams'))).toBeTruthy(); | |
| }); | |
| test('about_us: h2 "Our mission is to make it effo"', async ({ page }) => { | |
| await page.goto('/about-us/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Our mission is to make it effortless to connect and get paid.' || t.startsWith('Our mission is to make it effortless to connect and get paid.'))).toBeTruthy(); | |
| }); | |
| test('about_us: h2 "Tackling a huge problem"', async ({ page }) => { | |
| await page.goto('/about-us/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Tackling a huge problem' || t.startsWith('Tackling a huge problem'))).toBeTruthy(); | |
| }); | |
| test('about_us: h2 "Helping businesses grow faster"', async ({ page }) => { | |
| await page.goto('/about-us/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Helping businesses grow faster' || t.startsWith('Helping businesses grow faster'))).toBeTruthy(); | |
| }); | |
| test('about_us: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/about-us/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_us: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/about-us/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_us: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/about-us/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_us: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/about-us/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog', () => { | |
| test('blog: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('the fynora 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 "Featured"', async ({ page }) => { | |
| await page.goto('/blog/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Featured' || t.startsWith('Featured'))).toBeTruthy(); | |
| }); | |
| test('blog: h2 "More Blogs"', 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 === 'More Blogs' || t.startsWith('More Blogs'))).toBeTruthy(); | |
| }); | |
| test('blog: h2 "Latest Posts"', async ({ page }) => { | |
| await page.goto('/blog/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy(); | |
| }); | |
| test('blog: nav link "Accounts Payable"', 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 === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog: nav link "Accounts Receivable"', 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 === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog: nav link "Cash Flow Forecasting"', 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 === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/blog/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - business_templates', () => { | |
| test('business_templates: title matches GT', async ({ page }) => { | |
| await page.goto('/business-templates/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('free business templates for modern finan'); | |
| }); | |
| test('business_templates: h1 "Business Templates"', async ({ page }) => { | |
| await page.goto('/business-templates/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Business Templates' || t.startsWith('Business Templates'))).toBeTruthy(); | |
| }); | |
| test('business_templates: h2 "Balance sheet template"', async ({ page }) => { | |
| await page.goto('/business-templates/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Balance sheet template' || t.startsWith('Balance sheet template'))).toBeTruthy(); | |
| }); | |
| test('business_templates: h2 "Payment receipt template"', async ({ page }) => { | |
| await page.goto('/business-templates/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Payment receipt template' || t.startsWith('Payment receipt template'))).toBeTruthy(); | |
| }); | |
| test('business_templates: h3 "Budget proposal template"', async ({ page }) => { | |
| await page.goto('/business-templates/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Budget proposal template' || t.startsWith('Budget proposal template'))).toBeTruthy(); | |
| }); | |
| test('business_templates: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/business-templates/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('business_templates: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/business-templates/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('business_templates: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/business-templates/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('business_templates: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/business-templates/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - case_study', () => { | |
| test('case_study: title matches GT', async ({ page }) => { | |
| await page.goto('/case-study/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('customer stories'); | |
| }); | |
| test('case_study: h1 "Customer Stories"', async ({ page }) => { | |
| await page.goto('/case-study/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customer Stories' || t.startsWith('Customer Stories'))).toBeTruthy(); | |
| }); | |
| test('case_study: h1 "How Northpeak scales expense m"', async ({ page }) => { | |
| await page.goto('/case-study/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How Northpeak scales expense management while earning rewards' || t.startsWith('How Northpeak scales expense management while earning rewards'))).toBeTruthy(); | |
| }); | |
| test('case_study: h2 "Most Recent"', async ({ page }) => { | |
| await page.goto('/case-study/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Most Recent' || t.startsWith('Most Recent'))).toBeTruthy(); | |
| }); | |
| test('case_study: h2 "MedSync Simplified Their Finan"', async ({ page }) => { | |
| await page.goto('/case-study/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'MedSync Simplified Their Financial Workflows' || t.startsWith('MedSync Simplified Their Financial Workflows'))).toBeTruthy(); | |
| }); | |
| test('case_study: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/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 === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('case_study: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/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 === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('case_study: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/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 === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('case_study: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/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 === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - compare', () => { | |
| test('compare: title matches GT', async ({ page }) => { | |
| await page.goto('/compare/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('compare fynora features against competit'); | |
| }); | |
| test('compare: h1 "See how Fynora stacks up again"', async ({ page }) => { | |
| await page.goto('/compare/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'See how Fynora stacks up against other finance platforms' || t.startsWith('See how Fynora stacks up against other finance platforms'))).toBeTruthy(); | |
| }); | |
| test('compare: h1 "Discover a whole new level of "', async ({ page }) => { | |
| await page.goto('/compare/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Discover a whole new level of efficiency' || t.startsWith('Discover a whole new level of efficiency'))).toBeTruthy(); | |
| }); | |
| test('compare: h2 "Which solution is the right fi"', async ({ page }) => { | |
| await page.goto('/compare/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Which solution is the right fit for your team?' || t.startsWith('Which solution is the right fit for your team?'))).toBeTruthy(); | |
| }); | |
| test('compare: h2 "Your heading here"', async ({ page }) => { | |
| await page.goto('/compare/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Your heading here' || t.startsWith('Your heading here'))).toBeTruthy(); | |
| }); | |
| test('compare: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/compare/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('compare: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/compare/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('compare: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/compare/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('compare: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/compare/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - console_signup', () => { | |
| test('console_signup: title matches GT', async ({ page }) => { | |
| await page.goto('/console-signup/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('accountant sign up'); | |
| }); | |
| test('console_signup: h1 "Deliver what clients want most"', async ({ page }) => { | |
| await page.goto('/console-signup/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Deliver what clients want most. Clarity and command.' || t.startsWith('Deliver what clients want most. Clarity and command.'))).toBeTruthy(); | |
| }); | |
| test('console_signup: h2 "Begin today with a zero-risk t"', async ({ page }) => { | |
| await page.goto('/console-signup/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Begin today with a zero-risk trial' || t.startsWith('Begin today with a zero-risk trial'))).toBeTruthy(); | |
| }); | |
| test('console_signup: h2 "Built for smoother financial w"', async ({ page }) => { | |
| await page.goto('/console-signup/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Built for smoother financial workflows' || t.startsWith('Built for smoother financial workflows'))).toBeTruthy(); | |
| }); | |
| test('console_signup: h5 "Create your account to begin e"', async ({ page }) => { | |
| await page.goto('/console-signup/'); | |
| const texts = (await page.locator('h5').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Create your account to begin exploring, and our team will follow up with answers.' || t.startsWith('Create your account to begin exploring, and our team will follow up with answers.'))).toBeTruthy(); | |
| }); | |
| test('console_signup: nav link "AP & AR"', async ({ page }) => { | |
| await page.goto('/console-signup/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AP & AR' || t.startsWith('AP & AR')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('terms-of-service')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('console_signup: nav link "Spend & Expense"', async ({ page }) => { | |
| await page.goto('/console-signup/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Spend & Expense' || t.startsWith('Spend & Expense')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('spend-expense-terms-of-service')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - contact_us', () => { | |
| test('contact_us: title matches GT', async ({ page }) => { | |
| await page.goto('/contact-us/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('talk to us'); | |
| }); | |
| test('contact_us: h1 "Reach out"', async ({ page }) => { | |
| await page.goto('/contact-us/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Reach out' || t.startsWith('Reach out'))).toBeTruthy(); | |
| }); | |
| test('contact_us: h2 "Have a question about your acc"', async ({ page }) => { | |
| await page.goto('/contact-us/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Have a question about your account or a payment?' || t.startsWith('Have a question about your account or a payment?'))).toBeTruthy(); | |
| }); | |
| test('contact_us: h2 "Reach our sales experts"', async ({ page }) => { | |
| await page.goto('/contact-us/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Reach our sales experts' || t.startsWith('Reach our sales experts'))).toBeTruthy(); | |
| }); | |
| test('contact_us: h2 "Other requests"', async ({ page }) => { | |
| await page.goto('/contact-us/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Other requests' || t.startsWith('Other requests'))).toBeTruthy(); | |
| }); | |
| test('contact_us: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/contact-us/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('contact_us: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/contact-us/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('contact_us: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/contact-us/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('contact_us: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/contact-us/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - for_accountants', () => { | |
| test('for_accountants: title matches GT', async ({ page }) => { | |
| await page.goto('/for-accountants/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('accounting automation platform for accou'); | |
| }); | |
| test('for_accountants: h1 "Accounting automation software"', async ({ page }) => { | |
| await page.goto('/for-accountants/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounting automation software for stronger client relationships' || t.startsWith('Accounting automation software for stronger client relationships'))).toBeTruthy(); | |
| }); | |
| test('for_accountants: h2 "Request a live demo"', async ({ page }) => { | |
| await page.goto('/for-accountants/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Request a live demo' || t.startsWith('Request a live demo'))).toBeTruthy(); | |
| }); | |
| test('for_accountants: h2 "Schedule a live demo"', async ({ page }) => { | |
| await page.goto('/for-accountants/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Schedule a live demo' || t.startsWith('Schedule a live demo'))).toBeTruthy(); | |
| }); | |
| test('for_accountants: h2 "Book your live demo"', async ({ page }) => { | |
| await page.goto('/for-accountants/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Book your live demo' || t.startsWith('Book your live demo'))).toBeTruthy(); | |
| }); | |
| test('for_accountants: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/for-accountants/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('for_accountants: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/for-accountants/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('for_accountants: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/for-accountants/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('for_accountants: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/for-accountants/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - guides', () => { | |
| test('guides: title matches GT', async ({ page }) => { | |
| await page.goto('/guides/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('fynora guides'); | |
| }); | |
| test('guides: h1 "Guides"', async ({ page }) => { | |
| await page.goto('/guides/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Guides' || t.startsWith('Guides'))).toBeTruthy(); | |
| }); | |
| test('guides: h2 "Featured"', async ({ page }) => { | |
| await page.goto('/guides/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Featured' || t.startsWith('Featured'))).toBeTruthy(); | |
| }); | |
| test('guides: h2 "More Guides"', async ({ page }) => { | |
| await page.goto('/guides/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'More Guides' || t.startsWith('More Guides'))).toBeTruthy(); | |
| }); | |
| test('guides: h2 "Latest Reads"', async ({ page }) => { | |
| await page.goto('/guides/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Latest Reads' || t.startsWith('Latest Reads'))).toBeTruthy(); | |
| }); | |
| test('guides: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/guides/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('guides: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/guides/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('guides: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/guides/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('guides: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/guides/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - integrations', () => { | |
| test('integrations: title matches GT', async ({ page }) => { | |
| await page.goto('/integrations/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('fynora accounting software integrations'); | |
| }); | |
| test('integrations: h1 "Integrations built to keep you"', async ({ page }) => { | |
| await page.goto('/integrations/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations built to keep your business moving' || t.startsWith('Integrations built to keep your business moving'))).toBeTruthy(); | |
| }); | |
| test('integrations: h2 "Deep syncs that lead the field"', async ({ page }) => { | |
| await page.goto('/integrations/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Deep syncs that lead the field' || t.startsWith('Deep syncs that lead the field'))).toBeTruthy(); | |
| }); | |
| test('integrations: h2 "Extend your integrations with "', async ({ page }) => { | |
| await page.goto('/integrations/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Extend your integrations with Fynora' || t.startsWith('Extend your integrations with Fynora'))).toBeTruthy(); | |
| }); | |
| test('integrations: h2 "Heading goes here"', async ({ page }) => { | |
| await page.goto('/integrations/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Heading goes here' || t.startsWith('Heading goes here'))).toBeTruthy(); | |
| }); | |
| test('integrations: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/integrations/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('integrations: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/integrations/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('integrations: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/integrations/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('integrations: nav link "Integrations"', async ({ page }) => { | |
| await page.goto('/integrations/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations' || t.startsWith('Integrations')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - jobs', () => { | |
| test('jobs: title matches GT', async ({ page }) => { | |
| await page.goto('/jobs/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('careers at fynora'); | |
| }); | |
| test('jobs: h1 "Current openings at Fynora"', async ({ page }) => { | |
| await page.goto('/jobs/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Current openings at Fynora' || t.startsWith('Current openings at Fynora'))).toBeTruthy(); | |
| }); | |
| test('jobs: h2 "Engineering (4)"', async ({ page }) => { | |
| await page.goto('/jobs/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Engineering (4)' || t.startsWith('Engineering (4)'))).toBeTruthy(); | |
| }); | |
| test('jobs: h2 "Product & Design (2)"', async ({ page }) => { | |
| await page.goto('/jobs/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Product & Design (2)' || t.startsWith('Product & Design (2)'))).toBeTruthy(); | |
| }); | |
| test('jobs: h2 "Finance & Operations (2)"', async ({ page }) => { | |
| await page.goto('/jobs/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Finance & Operations (2)' || t.startsWith('Finance & Operations (2)'))).toBeTruthy(); | |
| }); | |
| test('jobs: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/jobs/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('jobs: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/jobs/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('jobs: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/jobs/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('jobs: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/jobs/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - leadership', () => { | |
| test('leadership: title matches GT', async ({ page }) => { | |
| await page.goto('/leadership/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('our leadership team'); | |
| }); | |
| test('leadership: h1 "Leadership"', async ({ page }) => { | |
| await page.goto('/leadership/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Leadership' || t.startsWith('Leadership'))).toBeTruthy(); | |
| }); | |
| test('leadership: h2 "Board of Directors"', async ({ page }) => { | |
| await page.goto('/leadership/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Board of Directors' || t.startsWith('Board of Directors'))).toBeTruthy(); | |
| }); | |
| test('leadership: h2 "Emeritus"', async ({ page }) => { | |
| await page.goto('/leadership/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Emeritus' || t.startsWith('Emeritus'))).toBeTruthy(); | |
| }); | |
| test('leadership: h2 "Follow Fynora to stay in the k"', async ({ page }) => { | |
| await page.goto('/leadership/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Follow Fynora to stay in the know' || t.startsWith('Follow Fynora to stay in the know'))).toBeTruthy(); | |
| }); | |
| test('leadership: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/leadership/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('leadership: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/leadership/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('leadership: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/leadership/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('leadership: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/leadership/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learning', () => { | |
| test('learning: title matches GT', async ({ page }) => { | |
| await page.goto('/learning/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('learning center'); | |
| }); | |
| test('learning: h1 "Resource Center"', async ({ page }) => { | |
| await page.goto('/learning/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Resource Center' || t.startsWith('Resource Center'))).toBeTruthy(); | |
| }); | |
| test('learning: h2 "Latest Posts"', async ({ page }) => { | |
| await page.goto('/learning/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy(); | |
| }); | |
| test('learning: h2 "Understand tax compliance"', async ({ page }) => { | |
| await page.goto('/learning/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Understand tax compliance' || t.startsWith('Understand tax compliance'))).toBeTruthy(); | |
| }); | |
| test('learning: h3 "What is a DUNS number and why "', async ({ page }) => { | |
| await page.goto('/learning/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'What is a DUNS number and why should your business care?' || t.startsWith('What is a DUNS number and why should your business care?'))).toBeTruthy(); | |
| }); | |
| test('learning: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/learning/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('learning: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/learning/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('learning: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/learning/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('learning: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/learning/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - legal', () => { | |
| test('legal: title matches GT', async ({ page }) => { | |
| await page.goto('/legal/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('legal'); | |
| }); | |
| test('legal: h1 "Legal Agreements, Policies & D"', async ({ page }) => { | |
| await page.goto('/legal/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Legal Agreements, Policies & Disclosures' || t.startsWith('Legal Agreements, Policies & Disclosures'))).toBeTruthy(); | |
| }); | |
| test('legal: h2 "Fynora AP & AR"', async ({ page }) => { | |
| await page.goto('/legal/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fynora AP & AR' || t.startsWith('Fynora AP & AR'))).toBeTruthy(); | |
| }); | |
| test('legal: h2 "Fynora Spend & Expense"', async ({ page }) => { | |
| await page.goto('/legal/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fynora Spend & Expense' || t.startsWith('Fynora Spend & Expense'))).toBeTruthy(); | |
| }); | |
| test('legal: h2 "Invoxa Go"', async ({ page }) => { | |
| await page.goto('/legal/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Invoxa Go' || t.startsWith('Invoxa Go'))).toBeTruthy(); | |
| }); | |
| test('legal: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/legal/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('legal: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/legal/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('legal: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/legal/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('legal: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/legal/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - partner_referral', () => { | |
| test('partner_referral: title matches GT', async ({ page }) => { | |
| await page.goto('/partner-referral/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('referral program'); | |
| }); | |
| test('partner_referral: h1 "Fynora Spend & Expense Partner"', async ({ page }) => { | |
| await page.goto('/partner-referral/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fynora Spend & Expense Partner Referral Portal' || t.startsWith('Fynora Spend & Expense Partner Referral Portal'))).toBeTruthy(); | |
| }); | |
| test('partner_referral: h2 "Fynora demo referral link"', async ({ page }) => { | |
| await page.goto('/partner-referral/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fynora demo referral link' || t.startsWith('Fynora demo referral link'))).toBeTruthy(); | |
| }); | |
| test('partner_referral: h2 "Fynora self-start application "', async ({ page }) => { | |
| await page.goto('/partner-referral/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fynora self-start application referral link' || t.startsWith('Fynora self-start application referral link'))).toBeTruthy(); | |
| }); | |
| test('partner_referral: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/partner-referral/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('partner_referral: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/partner-referral/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('partner_referral: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/partner-referral/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('partner_referral: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/partner-referral/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - press_release', () => { | |
| test('press_release: title matches GT', async ({ page }) => { | |
| await page.goto('/press-release/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('press releases'); | |
| }); | |
| test('press_release: h1 "Press Releases"', async ({ page }) => { | |
| await page.goto('/press-release/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Press Releases' || t.startsWith('Press Releases'))).toBeTruthy(); | |
| }); | |
| test('press_release: h2 "Latest press releases"', async ({ page }) => { | |
| await page.goto('/press-release/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Latest press releases' || t.startsWith('Latest press releases'))).toBeTruthy(); | |
| }); | |
| test('press_release: h2 "Follow Fynora to stay in the l"', async ({ page }) => { | |
| await page.goto('/press-release/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Follow Fynora to stay in the loop' || t.startsWith('Follow Fynora to stay in the loop'))).toBeTruthy(); | |
| }); | |
| test('press_release: h3 "Fynora Names New Senior Leader"', async ({ page }) => { | |
| await page.goto('/press-release/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fynora Names New Senior Leaders and Rolls Out Team Structure Changes to Fuel Its Next Chapter of Exp' || t.startsWith('Fynora Names New Senior Leaders and Rolls Out Team Structure Changes to Fuel Its Next Chapter of Exp'))).toBeTruthy(); | |
| }); | |
| test('press_release: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/press-release/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('press_release: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/press-release/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('press_release: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/press-release/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('press_release: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/press-release/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - product', () => { | |
| test('product: title matches GT', async ({ page }) => { | |
| await page.goto('/product/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('the fynora financial operations platform'); | |
| }); | |
| test('product: h1 "Run AP, AR, spend, and expense"', async ({ page }) => { | |
| await page.goto('/product/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Run AP, AR, spend, and expense—in one place' || t.startsWith('Run AP, AR, spend, and expense—in one place'))).toBeTruthy(); | |
| }); | |
| test('product: h2 "Automate and steer your busine"', async ({ page }) => { | |
| await page.goto('/product/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Automate and steer your business with the unified financial operations platform built by Fynora' || t.startsWith('Automate and steer your business with the unified financial operations platform built by Fynora'))).toBeTruthy(); | |
| }); | |
| test('product: h2 "Fynora Accounts Payable and Fy"', async ({ page }) => { | |
| await page.goto('/product/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fynora Accounts Payable and Fynora Accounts Receivable' || t.startsWith('Fynora Accounts Payable and Fynora Accounts Receivable'))).toBeTruthy(); | |
| }); | |
| test('product: h2 "Accounts payable and accounts "', async ({ page }) => { | |
| await page.goto('/product/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts payable and accounts receivable capabilities' || t.startsWith('Accounts payable and accounts receivable capabilities'))).toBeTruthy(); | |
| }); | |
| test('product: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/product/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/product/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/product/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/product/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - product_accounts_payable', () => { | |
| test('product_accounts_payable: title matches GT', async ({ page }) => { | |
| await page.goto('/product/accounts-payable/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('accounts payable platform'); | |
| }); | |
| test('product_accounts_payable: h1 "Accelerate accounts payable wi"', async ({ page }) => { | |
| await page.goto('/product/accounts-payable/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accelerate accounts payable with Fynora' || t.startsWith('Accelerate accounts payable with Fynora'))).toBeTruthy(); | |
| }); | |
| test('product_accounts_payable: h2 "Schedule a live demo"', async ({ page }) => { | |
| await page.goto('/product/accounts-payable/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Schedule a live demo' || t.startsWith('Schedule a live demo'))).toBeTruthy(); | |
| }); | |
| test('product_accounts_payable: h2 "Book your live demo"', async ({ page }) => { | |
| await page.goto('/product/accounts-payable/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Book your live demo' || t.startsWith('Book your live demo'))).toBeTruthy(); | |
| }); | |
| test('product_accounts_payable: h2 "Book a demo to get started"', async ({ page }) => { | |
| await page.goto('/product/accounts-payable/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Book a demo to get started' || t.startsWith('Book a demo to get started'))).toBeTruthy(); | |
| }); | |
| test('product_accounts_payable: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/product/accounts-payable/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_accounts_payable: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/product/accounts-payable/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_accounts_payable: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/product/accounts-payable/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_accounts_payable: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/product/accounts-payable/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - dl_best_practices_for_automating_business_finances', () => { | |
| test('dl_best_practices_for_automating_business_finances: title matches GT', async ({ page }) => { | |
| await page.goto('/dl/best-practices-for-automating-business-finances/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('smart strategies for automating your fin'); | |
| }); | |
| test('dl_best_practices_for_automating_business_finances: h1 "Smart strategies for automatin"', async ({ page }) => { | |
| await page.goto('/dl/best-practices-for-automating-business-finances/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Smart strategies for automating your finances' || t.startsWith('Smart strategies for automating your finances'))).toBeTruthy(); | |
| }); | |
| test('dl_best_practices_for_automating_business_finances: h2 "Stories from our clients"', async ({ page }) => { | |
| await page.goto('/dl/best-practices-for-automating-business-finances/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Stories from our clients' || t.startsWith('Stories from our clients'))).toBeTruthy(); | |
| }); | |
| test('dl_best_practices_for_automating_business_finances: h2 "Watch the platform at work"', async ({ page }) => { | |
| await page.goto('/dl/best-practices-for-automating-business-finances/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Watch the platform at work' || t.startsWith('Watch the platform at work'))).toBeTruthy(); | |
| }); | |
| test('dl_best_practices_for_automating_business_finances: h2 "See what finance teams are say"', async ({ page }) => { | |
| await page.goto('/dl/best-practices-for-automating-business-finances/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'See what finance teams are saying' || t.startsWith('See what finance teams are saying'))).toBeTruthy(); | |
| }); | |
| test('dl_best_practices_for_automating_business_finances: nav link "AP & AR"', async ({ page }) => { | |
| await page.goto('/dl/best-practices-for-automating-business-finances/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AP & AR' || t.startsWith('AP & AR')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('terms-of-service')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('dl_best_practices_for_automating_business_finances: nav link "Spend & Expense"', async ({ page }) => { | |
| await page.goto('/dl/best-practices-for-automating-business-finances/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Spend & Expense' || t.startsWith('Spend & Expense')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('spend-expense-terms-of-service')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - integrations_microsoft_dynamics', () => { | |
| test('integrations_microsoft_dynamics: title matches GT', async ({ page }) => { | |
| await page.goto('/integrations/microsoft-dynamics/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('corveto erp integration'); | |
| }); | |
| test('integrations_microsoft_dynamics: h1 "Fynora + Corveth Dynamics: Sma"', async ({ page }) => { | |
| await page.goto('/integrations/microsoft-dynamics/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fynora + Corveth Dynamics: Smarter AP, AR, spend, and expense management for teams' || t.startsWith('Fynora + Corveth Dynamics: Smarter AP, AR, spend, and expense management for teams'))).toBeTruthy(); | |
| }); | |
| test('integrations_microsoft_dynamics: h2 "Own your finance operations wi"', async ({ page }) => { | |
| await page.goto('/integrations/microsoft-dynamics/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Own your finance operations with Fynora + Corveth Dynamics' || t.startsWith('Own your finance operations with Fynora + Corveth Dynamics'))).toBeTruthy(); | |
| }); | |
| test('integrations_microsoft_dynamics: h2 "Section title here"', async ({ page }) => { | |
| await page.goto('/integrations/microsoft-dynamics/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Section title here' || t.startsWith('Section title here'))).toBeTruthy(); | |
| }); | |
| test('integrations_microsoft_dynamics: h2 "Drive your finance workflows w"', async ({ page }) => { | |
| await page.goto('/integrations/microsoft-dynamics/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Drive your finance workflows with a best-in-class integration' || t.startsWith('Drive your finance workflows with a best-in-class integration'))).toBeTruthy(); | |
| }); | |
| test('integrations_microsoft_dynamics: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/integrations/microsoft-dynamics/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('integrations_microsoft_dynamics: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/integrations/microsoft-dynamics/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('integrations_microsoft_dynamics: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/integrations/microsoft-dynamics/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('integrations_microsoft_dynamics: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/integrations/microsoft-dynamics/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - integrations_netsuite', () => { | |
| test('integrations_netsuite: title matches GT', async ({ page }) => { | |
| await page.goto('/integrations/netsuite/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('corevance erp integration'); | |
| }); | |
| test('integrations_netsuite: h1 "Fynora + Orbisuite: Smarter AP"', async ({ page }) => { | |
| await page.goto('/integrations/netsuite/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fynora + Orbisuite: Smarter AP, AR, spend, and expense management' || t.startsWith('Fynora + Orbisuite: Smarter AP, AR, spend, and expense management'))).toBeTruthy(); | |
| }); | |
| test('integrations_netsuite: h2 "Own your finance operations wi"', async ({ page }) => { | |
| await page.goto('/integrations/netsuite/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Own your finance operations with Fynora + Orbisuite' || t.startsWith('Own your finance operations with Fynora + Orbisuite'))).toBeTruthy(); | |
| }); | |
| test('integrations_netsuite: h2 "Why teams choose us"', async ({ page }) => { | |
| await page.goto('/integrations/netsuite/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Why teams choose us' || t.startsWith('Why teams choose us'))).toBeTruthy(); | |
| }); | |
| test('integrations_netsuite: h2 "Fuel your financial workflows "', async ({ page }) => { | |
| await page.goto('/integrations/netsuite/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fuel your financial workflows with a truly best-in-class integration' || t.startsWith('Fuel your financial workflows with a truly best-in-class integration'))).toBeTruthy(); | |
| }); | |
| test('integrations_netsuite: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/integrations/netsuite/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('integrations_netsuite: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/integrations/netsuite/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('integrations_netsuite: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/integrations/netsuite/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('integrations_netsuite: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/integrations/netsuite/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - newsroom_media', () => { | |
| test('newsroom_media: title matches GT', async ({ page }) => { | |
| await page.goto('/newsroom/media/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('in the news'); | |
| }); | |
| test('newsroom_media: h1 "In the Press"', async ({ page }) => { | |
| await page.goto('/newsroom/media/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'In the Press' || t.startsWith('In the Press'))).toBeTruthy(); | |
| }); | |
| test('newsroom_media: h2 "Recent media coverage"', async ({ page }) => { | |
| await page.goto('/newsroom/media/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Recent media coverage' || t.startsWith('Recent media coverage'))).toBeTruthy(); | |
| }); | |
| test('newsroom_media: h2 "Additional coverage"', async ({ page }) => { | |
| await page.goto('/newsroom/media/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Additional coverage' || t.startsWith('Additional coverage'))).toBeTruthy(); | |
| }); | |
| test('newsroom_media: h2 "Follow Fynora to stay in the k"', async ({ page }) => { | |
| await page.goto('/newsroom/media/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Follow Fynora to stay in the know' || t.startsWith('Follow Fynora to stay in the know'))).toBeTruthy(); | |
| }); | |
| test('newsroom_media: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/newsroom/media/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('newsroom_media: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/newsroom/media/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('newsroom_media: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/newsroom/media/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('newsroom_media: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/newsroom/media/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - partners_affiliates', () => { | |
| test('partners_affiliates: title matches GT', async ({ page }) => { | |
| await page.goto('/partners/affiliates/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('affiliates'); | |
| }); | |
| test('partners_affiliates: h1 "Built for affiliate growth"', async ({ page }) => { | |
| await page.goto('/partners/affiliates/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Built for affiliate growth' || t.startsWith('Built for affiliate growth'))).toBeTruthy(); | |
| }); | |
| test('partners_affiliates: h2 "Who should apply?"', async ({ page }) => { | |
| await page.goto('/partners/affiliates/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Who should apply?' || t.startsWith('Who should apply?'))).toBeTruthy(); | |
| }); | |
| test('partners_affiliates: h2 "What we offer"', async ({ page }) => { | |
| await page.goto('/partners/affiliates/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'What we offer' || t.startsWith('What we offer'))).toBeTruthy(); | |
| }); | |
| test('partners_affiliates: h2 "Join now and begin earning rew"', async ({ page }) => { | |
| await page.goto('/partners/affiliates/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Join now and begin earning rewards' || t.startsWith('Join now and begin earning rewards'))).toBeTruthy(); | |
| }); | |
| test('partners_affiliates: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/partners/affiliates/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('partners_affiliates: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/partners/affiliates/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('partners_affiliates: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/partners/affiliates/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('partners_affiliates: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/partners/affiliates/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - partners_banks', () => { | |
| test('partners_banks: title matches GT', async ({ page }) => { | |
| await page.goto('/partners/banks/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('the intelligent business payments platfo'); | |
| }); | |
| test('partners_banks: h1 "Make your bank the heart of ev"', async ({ page }) => { | |
| await page.goto('/partners/banks/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Make your bank the heart of every business payment' || t.startsWith('Make your bank the heart of every business payment'))).toBeTruthy(); | |
| }); | |
| test('partners_banks: h2 "Move past basic online invoice"', async ({ page }) => { | |
| await page.goto('/partners/banks/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Move past basic online invoice pay for your SMB clients' || t.startsWith('Move past basic online invoice pay for your SMB clients'))).toBeTruthy(); | |
| }); | |
| test('partners_banks: h2 "A full-cycle payments platform"', async ({ page }) => { | |
| await page.goto('/partners/banks/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'A full-cycle payments platform that keeps your clients\' cash flow steady' || t.startsWith('A full-cycle payments platform that keeps your clients\' cash flow steady'))).toBeTruthy(); | |
| }); | |
| test('partners_banks: h2 "Growing customer value at your"', async ({ page }) => { | |
| await page.goto('/partners/banks/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Growing customer value at your bank' || t.startsWith('Growing customer value at your bank'))).toBeTruthy(); | |
| }); | |
| test('partners_banks: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/partners/banks/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('partners_banks: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/partners/banks/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('partners_banks: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/partners/banks/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('partners_banks: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/partners/banks/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - product_accountant_console', () => { | |
| test('product_accountant_console: title matches GT', async ({ page }) => { | |
| await page.goto('/product/accountant-console/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('the fynora accountant console'); | |
| }); | |
| test('product_accountant_console: h1 "Streamline operations and driv"', async ({ page }) => { | |
| await page.goto('/product/accountant-console/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Streamline operations and drive your firm\'s growth' || t.startsWith('Streamline operations and drive your firm\'s growth'))).toBeTruthy(); | |
| }); | |
| test('product_accountant_console: h2 "Schedule a live demo"', async ({ page }) => { | |
| await page.goto('/product/accountant-console/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Schedule a live demo' || t.startsWith('Schedule a live demo'))).toBeTruthy(); | |
| }); | |
| test('product_accountant_console: h2 "Book your live demo"', async ({ page }) => { | |
| await page.goto('/product/accountant-console/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Book your live demo' || t.startsWith('Book your live demo'))).toBeTruthy(); | |
| }); | |
| test('product_accountant_console: h2 "Book a demo to get started"', async ({ page }) => { | |
| await page.goto('/product/accountant-console/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Book a demo to get started' || t.startsWith('Book a demo to get started'))).toBeTruthy(); | |
| }); | |
| test('product_accountant_console: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/product/accountant-console/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_accountant_console: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/product/accountant-console/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_accountant_console: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/product/accountant-console/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_accountant_console: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/product/accountant-console/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - product_accounts_payable_controls', () => { | |
| test('product_accounts_payable_controls: title matches GT', async ({ page }) => { | |
| await page.goto('/product/accounts-payable-controls/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('accounts payable controls'); | |
| }); | |
| test('product_accounts_payable_controls: h1 "Sharper visibility and control"', async ({ page }) => { | |
| await page.goto('/product/accounts-payable-controls/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sharper visibility and control for total confidence' || t.startsWith('Sharper visibility and control for total confidence'))).toBeTruthy(); | |
| }); | |
| test('product_accounts_payable_controls: h2 "Strengthen AP controls through"', async ({ page }) => { | |
| await page.goto('/product/accounts-payable-controls/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Strengthen AP controls through tailored user roles, permissions, and approvals' || t.startsWith('Strengthen AP controls through tailored user roles, permissions, and approvals'))).toBeTruthy(); | |
| }); | |
| test('product_accounts_payable_controls: h2 "Deeper visibility across your "', async ({ page }) => { | |
| await page.goto('/product/accounts-payable-controls/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Deeper visibility across your AP workflow' || t.startsWith('Deeper visibility across your AP workflow'))).toBeTruthy(); | |
| }); | |
| test('product_accounts_payable_controls: h2 "Stronger security for your bus"', async ({ page }) => { | |
| await page.goto('/product/accounts-payable-controls/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Stronger security for your business' || t.startsWith('Stronger security for your business'))).toBeTruthy(); | |
| }); | |
| test('product_accounts_payable_controls: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/product/accounts-payable-controls/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_accounts_payable_controls: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/product/accounts-payable-controls/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_accounts_payable_controls: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/product/accounts-payable-controls/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_accounts_payable_controls: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/product/accounts-payable-controls/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - product_accounts_receivable', () => { | |
| test('product_accounts_receivable: title matches GT', async ({ page }) => { | |
| await page.goto('/product/accounts-receivable/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('accounts receivable automation software'); | |
| }); | |
| test('product_accounts_receivable: h1 "Sign up and send your very fir"', async ({ page }) => { | |
| await page.goto('/product/accounts-receivable/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sign up and send your very first invoice in minutes' || t.startsWith('Sign up and send your very first invoice in minutes'))).toBeTruthy(); | |
| }); | |
| test('product_accounts_receivable: h2 "Streamline invoicing in four s"', async ({ page }) => { | |
| await page.goto('/product/accounts-receivable/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Streamline invoicing in four steps' || t.startsWith('Streamline invoicing in four steps'))).toBeTruthy(); | |
| }); | |
| test('product_accounts_receivable: h2 "Build polished, on-brand invoi"', async ({ page }) => { | |
| await page.goto('/product/accounts-receivable/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Build polished, on-brand invoices' || t.startsWith('Build polished, on-brand invoices'))).toBeTruthy(); | |
| }); | |
| test('product_accounts_receivable: h2 "Deliver on your terms"', async ({ page }) => { | |
| await page.goto('/product/accounts-receivable/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Deliver on your terms' || t.startsWith('Deliver on your terms'))).toBeTruthy(); | |
| }); | |
| test('product_accounts_receivable: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/product/accounts-receivable/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_accounts_receivable: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/product/accounts-receivable/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_accounts_receivable: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/product/accounts-receivable/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_accounts_receivable: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/product/accounts-receivable/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - product_ach_payment_processing', () => { | |
| test('product_ach_payment_processing: title matches GT', async ({ page }) => { | |
| await page.goto('/product/ach-payment-processing/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('ach payment processing for businesses'); | |
| }); | |
| test('product_ach_payment_processing: h1 "ACH payment processing for eve"', async ({ page }) => { | |
| await page.goto('/product/ach-payment-processing/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'ACH payment processing for every business' || t.startsWith('ACH payment processing for every business'))).toBeTruthy(); | |
| }); | |
| test('product_ach_payment_processing: h2 "Why teams are choosing ACH"', async ({ page }) => { | |
| await page.goto('/product/ach-payment-processing/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Why teams are choosing ACH' || t.startsWith('Why teams are choosing ACH'))).toBeTruthy(); | |
| }); | |
| test('product_ach_payment_processing: h2 "More time, more savings, and l"', async ({ page }) => { | |
| await page.goto('/product/ach-payment-processing/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'More time, more savings, and less worry with ACH payments and Fynora' || t.startsWith('More time, more savings, and less worry with ACH payments and Fynora'))).toBeTruthy(); | |
| }); | |
| test('product_ach_payment_processing: h2 "Send vendor payments by ACH an"', async ({ page }) => { | |
| await page.goto('/product/ach-payment-processing/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Send vendor payments by ACH and let automation handle the rest.' || t.startsWith('Send vendor payments by ACH and let automation handle the rest.'))).toBeTruthy(); | |
| }); | |
| test('product_ach_payment_processing: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/product/ach-payment-processing/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_ach_payment_processing: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/product/ach-payment-processing/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_ach_payment_processing: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/product/ach-payment-processing/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_ach_payment_processing: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/product/ach-payment-processing/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - product_ai', () => { | |
| test('product_ai: title matches GT', async ({ page }) => { | |
| await page.goto('/product/ai/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('boost efficiency & accuracy with fynora '); | |
| }); | |
| test('product_ai: h1 "AI precision shaped by a trill"', async ({ page }) => { | |
| await page.goto('/product/ai/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI precision shaped by a trillion dollars of data' || t.startsWith('AI precision shaped by a trillion dollars of data'))).toBeTruthy(); | |
| }); | |
| test('product_ai: h2 "Fynora AI agents in action"', async ({ page }) => { | |
| await page.goto('/product/ai/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fynora AI agents in action' || t.startsWith('Fynora AI agents in action'))).toBeTruthy(); | |
| }); | |
| test('product_ai: h2 "More AI, more control"', async ({ page }) => { | |
| await page.goto('/product/ai/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'More AI, more control' || t.startsWith('More AI, more control'))).toBeTruthy(); | |
| }); | |
| test('product_ai: h2 "Fynora has relied on AI for ye"', async ({ page }) => { | |
| await page.goto('/product/ai/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fynora has relied on AI for years to drive financial automation' || t.startsWith('Fynora has relied on AI for years to drive financial automation'))).toBeTruthy(); | |
| }); | |
| test('product_ai: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/product/ai/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_ai: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/product/ai/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_ai: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/product/ai/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_ai: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/product/ai/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - product_api', () => { | |
| test('product_api: title matches GT', async ({ page }) => { | |
| await page.goto('/product/api/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('fynora api'); | |
| }); | |
| test('product_api: h1 "Connect. Automate. Scale. All "', async ({ page }) => { | |
| await page.goto('/product/api/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Connect. Automate. Scale. All on the Fynora API Platform.' || t.startsWith('Connect. Automate. Scale. All on the Fynora API Platform.'))).toBeTruthy(); | |
| }); | |
| test('product_api: h2 "Master your financial workflow"', async ({ page }) => { | |
| await page.goto('/product/api/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Master your financial workflows with the right API integration' || t.startsWith('Master your financial workflows with the right API integration'))).toBeTruthy(); | |
| }); | |
| test('product_api: h2 "Slash manual effort with an ac"', async ({ page }) => { | |
| await page.goto('/product/api/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Slash manual effort with an accounts payable API' || t.startsWith('Slash manual effort with an accounts payable API'))).toBeTruthy(); | |
| }); | |
| test('product_api: h2 "Clear cash flow bottlenecks fa"', async ({ page }) => { | |
| await page.goto('/product/api/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Clear cash flow bottlenecks fast with an invoicing and payment API' || t.startsWith('Clear cash flow bottlenecks fast with an invoicing and payment API'))).toBeTruthy(); | |
| }); | |
| test('product_api: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/product/api/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_api: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/product/api/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_api: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/product/api/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_api: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/product/api/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - product_fynora_balance', () => { | |
| test('product_fynora_balance: title matches GT', async ({ page }) => { | |
| await page.goto('/product/fynora-balance/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('explore balance'); | |
| }); | |
| test('product_fynora_balance: h1 "Turn on Fynora balance"', async ({ page }) => { | |
| await page.goto('/product/fynora-balance/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Turn on Fynora balance' || t.startsWith('Turn on Fynora balance'))).toBeTruthy(); | |
| }); | |
| test('product_fynora_balance: h2 "Fynora balance is a smarter wa"', async ({ page }) => { | |
| await page.goto('/product/fynora-balance/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fynora balance is a smarter way to manage your money' || t.startsWith('Fynora balance is a smarter way to manage your money'))).toBeTruthy(); | |
| }); | |
| test('product_fynora_balance: h2 "How it works"', async ({ page }) => { | |
| await page.goto('/product/fynora-balance/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How it works' || t.startsWith('How it works'))).toBeTruthy(); | |
| }); | |
| test('product_fynora_balance: h2 "Pay bills faster than ever wit"', async ({ page }) => { | |
| await page.goto('/product/fynora-balance/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Pay bills faster than ever with Fynora balance' || t.startsWith('Pay bills faster than ever with Fynora balance'))).toBeTruthy(); | |
| }); | |
| test('product_fynora_balance: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/product/fynora-balance/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_fynora_balance: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/product/fynora-balance/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_fynora_balance: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/product/fynora-balance/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_fynora_balance: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/product/fynora-balance/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - product_budgets', () => { | |
| test('product_budgets: title matches GT', async ({ page }) => { | |
| await page.goto('/product/budgets/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('business budget management software'); | |
| }); | |
| test('product_budgets: h1 "Fine-tune every business budge"', async ({ page }) => { | |
| await page.goto('/product/budgets/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fine-tune every business budget' || t.startsWith('Fine-tune every business budget'))).toBeTruthy(); | |
| }); | |
| test('product_budgets: h2 "Schedule a live demo"', async ({ page }) => { | |
| await page.goto('/product/budgets/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Schedule a live demo' || t.startsWith('Schedule a live demo'))).toBeTruthy(); | |
| }); | |
| test('product_budgets: h2 "Book your live demo"', async ({ page }) => { | |
| await page.goto('/product/budgets/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Book your live demo' || t.startsWith('Book your live demo'))).toBeTruthy(); | |
| }); | |
| test('product_budgets: h2 "See Fynora in action"', async ({ page }) => { | |
| await page.goto('/product/budgets/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'See Fynora in action' || t.startsWith('See Fynora in action'))).toBeTruthy(); | |
| }); | |
| test('product_budgets: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/product/budgets/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_budgets: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/product/budgets/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_budgets: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/product/budgets/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_budgets: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/product/budgets/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - product_credit', () => { | |
| test('product_credit: title matches GT', async ({ page }) => { | |
| await page.goto('/product/credit/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('flexible business credit lines'); | |
| }); | |
| test('product_credit: h1 "Quick and flexible business cr"', async ({ page }) => { | |
| await page.goto('/product/credit/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick and flexible business credit' || t.startsWith('Quick and flexible business credit'))).toBeTruthy(); | |
| }); | |
| test('product_credit: h2 "Schedule a live demo"', async ({ page }) => { | |
| await page.goto('/product/credit/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Schedule a live demo' || t.startsWith('Schedule a live demo'))).toBeTruthy(); | |
| }); | |
| test('product_credit: h2 "Book your live demo"', async ({ page }) => { | |
| await page.goto('/product/credit/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Book your live demo' || t.startsWith('Book your live demo'))).toBeTruthy(); | |
| }); | |
| test('product_credit: h2 "Schedule a demo to begin today"', async ({ page }) => { | |
| await page.goto('/product/credit/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Schedule a demo to begin today' || t.startsWith('Schedule a demo to begin today'))).toBeTruthy(); | |
| }); | |
| test('product_credit: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/product/credit/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_credit: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/product/credit/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_credit: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/product/credit/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_credit: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/product/credit/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - product_download', () => { | |
| test('product_download: title matches GT', async ({ page }) => { | |
| await page.goto('/product/download/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('fynora spend & expense app'); | |
| }); | |
| test('product_download: h1 "The Fynora Spend & Expense App"', async ({ page }) => { | |
| await page.goto('/product/download/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The Fynora Spend & Expense App' || t.startsWith('The Fynora Spend & Expense App'))).toBeTruthy(); | |
| }); | |
| test('product_download: h2 "Standout capabilities"', async ({ page }) => { | |
| await page.goto('/product/download/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Standout capabilities' || t.startsWith('Standout capabilities'))).toBeTruthy(); | |
| }); | |
| test('product_download: h2 "Manage every dollar from start"', async ({ page }) => { | |
| await page.goto('/product/download/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Manage every dollar from start to finish in the app' || t.startsWith('Manage every dollar from start to finish in the app'))).toBeTruthy(); | |
| }); | |
| test('product_download: h2 "Get the Fynora Spend & Expense"', async ({ page }) => { | |
| await page.goto('/product/download/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get the Fynora Spend & Expense app' || t.startsWith('Get the Fynora Spend & Expense app'))).toBeTruthy(); | |
| }); | |
| test('product_download: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/product/download/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_download: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/product/download/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_download: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/product/download/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_download: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/product/download/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - product_expenses', () => { | |
| test('product_expenses: title matches GT', async ({ page }) => { | |
| await page.goto('/product/expenses/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('smart expense management software for mo'); | |
| }); | |
| test('product_expenses: h1 "Expense management software th"', async ({ page }) => { | |
| await page.goto('/product/expenses/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Expense management software that runs on autopilot' || t.startsWith('Expense management software that runs on autopilot'))).toBeTruthy(); | |
| }); | |
| test('product_expenses: h2 "Schedule a live demo"', async ({ page }) => { | |
| await page.goto('/product/expenses/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Schedule a live demo' || t.startsWith('Schedule a live demo'))).toBeTruthy(); | |
| }); | |
| test('product_expenses: h2 "Book your live demo"', async ({ page }) => { | |
| await page.goto('/product/expenses/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Book your live demo' || t.startsWith('Book your live demo'))).toBeTruthy(); | |
| }); | |
| test('product_expenses: h2 "Get a guided live demo"', async ({ page }) => { | |
| await page.goto('/product/expenses/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get a guided live demo' || t.startsWith('Get a guided live demo'))).toBeTruthy(); | |
| }); | |
| test('product_expenses: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/product/expenses/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_expenses: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/product/expenses/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_expenses: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/product/expenses/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_expenses: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/product/expenses/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - product_instant_transfer', () => { | |
| test('product_instant_transfer: title matches GT', async ({ page }) => { | |
| await page.goto('/product/instant-transfer/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('instant transfer'); | |
| }); | |
| test('product_instant_transfer: h1 "Get paid in minutes with exped"', async ({ page }) => { | |
| await page.goto('/product/instant-transfer/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get paid in minutes with expedited transfers' || t.startsWith('Get paid in minutes with expedited transfers'))).toBeTruthy(); | |
| }); | |
| test('product_instant_transfer: h2 "Why use it?"', async ({ page }) => { | |
| await page.goto('/product/instant-transfer/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Why use it?' || t.startsWith('Why use it?'))).toBeTruthy(); | |
| }); | |
| test('product_instant_transfer: h2 "What our customers are saying"', async ({ page }) => { | |
| await page.goto('/product/instant-transfer/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'What our customers are saying' || t.startsWith('What our customers are saying'))).toBeTruthy(); | |
| }); | |
| test('product_instant_transfer: h2 "Your money, right on time"', async ({ page }) => { | |
| await page.goto('/product/instant-transfer/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Your money, right on time' || t.startsWith('Your money, right on time'))).toBeTruthy(); | |
| }); | |
| test('product_instant_transfer: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/product/instant-transfer/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_instant_transfer: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/product/instant-transfer/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_instant_transfer: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/product/instant-transfer/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_instant_transfer: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/product/instant-transfer/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - product_international_payments', () => { | |
| test('product_international_payments: title matches GT', async ({ page }) => { | |
| await page.goto('/product/international-payments/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('international payments'); | |
| }); | |
| test('product_international_payments: h1 "Send international payments ac"', async ({ page }) => { | |
| await page.goto('/product/international-payments/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Send international payments across more than 130 countries' || t.startsWith('Send international payments across more than 130 countries'))).toBeTruthy(); | |
| }); | |
| test('product_international_payments: h2 "Request a live demo"', async ({ page }) => { | |
| await page.goto('/product/international-payments/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Request a live demo' || t.startsWith('Request a live demo'))).toBeTruthy(); | |
| }); | |
| test('product_international_payments: h2 "Book your live demo"', async ({ page }) => { | |
| await page.goto('/product/international-payments/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Book your live demo' || t.startsWith('Book your live demo'))).toBeTruthy(); | |
| }); | |
| test('product_international_payments: h2 "Schedule a demo to get started"', async ({ page }) => { | |
| await page.goto('/product/international-payments/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Schedule a demo to get started' || t.startsWith('Schedule a demo to get started'))).toBeTruthy(); | |
| }); | |
| test('product_international_payments: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/product/international-payments/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_international_payments: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/product/international-payments/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_international_payments: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/product/international-payments/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_international_payments: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/product/international-payments/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - product_invoice_financing_software', () => { | |
| test('product_invoice_financing_software: title matches GT', async ({ page }) => { | |
| await page.goto('/product/invoice-financing-software/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('invoice financing software'); | |
| }); | |
| test('product_invoice_financing_software: h1 "Get funded faster with Invoice"', async ({ page }) => { | |
| await page.goto('/product/invoice-financing-software/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get funded faster with Invoice Financing' || t.startsWith('Get funded faster with Invoice Financing'))).toBeTruthy(); | |
| }); | |
| test('product_invoice_financing_software: h2 "Why choose Invoice Financing?"', async ({ page }) => { | |
| await page.goto('/product/invoice-financing-software/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Why choose Invoice Financing?' || t.startsWith('Why choose Invoice Financing?'))).toBeTruthy(); | |
| }); | |
| test('product_invoice_financing_software: h2 "What our clients say about us"', async ({ page }) => { | |
| await page.goto('/product/invoice-financing-software/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'What our clients say about us' || t.startsWith('What our clients say about us'))).toBeTruthy(); | |
| }); | |
| test('product_invoice_financing_software: h2 "Pull cash from your unpaid inv"', async ({ page }) => { | |
| await page.goto('/product/invoice-financing-software/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Pull cash from your unpaid invoices' || t.startsWith('Pull cash from your unpaid invoices'))).toBeTruthy(); | |
| }); | |
| test('product_invoice_financing_software: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/product/invoice-financing-software/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_invoice_financing_software: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/product/invoice-financing-software/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_invoice_financing_software: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/product/invoice-financing-software/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_invoice_financing_software: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/product/invoice-financing-software/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - product_mobile_app', () => { | |
| test('product_mobile_app: title matches GT', async ({ page }) => { | |
| await page.goto('/product/mobile-app/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('fynora app'); | |
| }); | |
| test('product_mobile_app: h1 "Download the Fynora AP & AR ap"', async ({ page }) => { | |
| await page.goto('/product/mobile-app/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Download the Fynora AP & AR app' || t.startsWith('Download the Fynora AP & AR app'))).toBeTruthy(); | |
| }); | |
| test('product_mobile_app: h2 "Handle AP in a snap"', async ({ page }) => { | |
| await page.goto('/product/mobile-app/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Handle AP in a snap' || t.startsWith('Handle AP in a snap'))).toBeTruthy(); | |
| }); | |
| test('product_mobile_app: h2 "Handle AR and get paid faster"', async ({ page }) => { | |
| await page.goto('/product/mobile-app/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Handle AR and get paid faster' || t.startsWith('Handle AR and get paid faster'))).toBeTruthy(); | |
| }); | |
| test('product_mobile_app: h2 "Teams always on the move love "', async ({ page }) => { | |
| await page.goto('/product/mobile-app/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Teams always on the move love the Fynora app' || t.startsWith('Teams always on the move love the Fynora app'))).toBeTruthy(); | |
| }); | |
| test('product_mobile_app: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/product/mobile-app/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_mobile_app: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/product/mobile-app/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_mobile_app: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/product/mobile-app/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_mobile_app: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/product/mobile-app/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - product_network_payments', () => { | |
| test('product_network_payments: title matches GT', async ({ page }) => { | |
| await page.goto('/product/network-payments/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('network payments'); | |
| }); | |
| test('product_network_payments: h1 "Put the Fynora network to work"', async ({ page }) => { | |
| await page.goto('/product/network-payments/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Put the Fynora network to work for your payments' || t.startsWith('Put the Fynora network to work for your payments'))).toBeTruthy(); | |
| }); | |
| test('product_network_payments: h2 "Reach millions of connected ve"', async ({ page }) => { | |
| await page.goto('/product/network-payments/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Reach millions of connected vendors for fast, effortless payments' || t.startsWith('Reach millions of connected vendors for fast, effortless payments'))).toBeTruthy(); | |
| }); | |
| test('product_network_payments: h2 "Value for you and your vendors"', async ({ page }) => { | |
| await page.goto('/product/network-payments/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Value for you and your vendors' || t.startsWith('Value for you and your vendors'))).toBeTruthy(); | |
| }); | |
| test('product_network_payments: h2 "Your suppliers are waiting on "', async ({ page }) => { | |
| await page.goto('/product/network-payments/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Your suppliers are waiting on you' || t.startsWith('Your suppliers are waiting on you'))).toBeTruthy(); | |
| }); | |
| test('product_network_payments: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/product/network-payments/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_network_payments: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/product/network-payments/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_network_payments: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/product/network-payments/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_network_payments: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/product/network-payments/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - product_overview_video', () => { | |
| test('product_overview_video: title matches GT', async ({ page }) => { | |
| await page.goto('/product/overview-video/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('spend and expense video overview'); | |
| }); | |
| test('product_overview_video: h1 "Watch this overview of the Fyn"', async ({ page }) => { | |
| await page.goto('/product/overview-video/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Watch this overview of the Fynora spend and expense platform' || t.startsWith('Watch this overview of the Fynora spend and expense platform'))).toBeTruthy(); | |
| }); | |
| test('product_overview_video: h2 "You might also find value in t"', async ({ page }) => { | |
| await page.goto('/product/overview-video/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'You might also find value in these related resources' || t.startsWith('You might also find value in these related resources'))).toBeTruthy(); | |
| }); | |
| test('product_overview_video: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/product/overview-video/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_overview_video: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/product/overview-video/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_overview_video: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/product/overview-video/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_overview_video: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/product/overview-video/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - product_pay_by_card', () => { | |
| test('product_pay_by_card: title matches GT', async ({ page }) => { | |
| await page.goto('/product/pay-by-card/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('pay by card'); | |
| }); | |
| test('product_pay_by_card: h1 "Pay any vendor with a credit c"', async ({ page }) => { | |
| await page.goto('/product/pay-by-card/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Pay any vendor with a credit card' || t.startsWith('Pay any vendor with a credit card'))).toBeTruthy(); | |
| }); | |
| test('product_pay_by_card: h2 "Why settle vendor bills with a"', async ({ page }) => { | |
| await page.goto('/product/pay-by-card/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Why settle vendor bills with a card?' || t.startsWith('Why settle vendor bills with a card?'))).toBeTruthy(); | |
| }); | |
| test('product_pay_by_card: h2 "How paying by card works"', async ({ page }) => { | |
| await page.goto('/product/pay-by-card/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How paying by card works' || t.startsWith('How paying by card works'))).toBeTruthy(); | |
| }); | |
| test('product_pay_by_card: h2 "Savings calculator"', async ({ page }) => { | |
| await page.goto('/product/pay-by-card/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Savings calculator' || t.startsWith('Savings calculator'))).toBeTruthy(); | |
| }); | |
| test('product_pay_by_card: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/product/pay-by-card/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_pay_by_card: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/product/pay-by-card/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_pay_by_card: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/product/pay-by-card/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_pay_by_card: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/product/pay-by-card/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - product_payment_approvals', () => { | |
| test('product_payment_approvals: title matches GT', async ({ page }) => { | |
| await page.goto('/product/payment-approvals/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('effortless, automated payment approvals'); | |
| }); | |
| test('product_payment_approvals: h1 "Streamline, speed up, and gove"', async ({ page }) => { | |
| await page.goto('/product/payment-approvals/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Streamline, speed up, and govern your payment approval workflow' || t.startsWith('Streamline, speed up, and govern your payment approval workflow'))).toBeTruthy(); | |
| }); | |
| test('product_payment_approvals: h2 "Deeper visibility and firmer c"', async ({ page }) => { | |
| await page.goto('/product/payment-approvals/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Deeper visibility and firmer control over your AP process' || t.startsWith('Deeper visibility and firmer control over your AP process'))).toBeTruthy(); | |
| }); | |
| test('product_payment_approvals: h2 "Approvals cleared 2-3x sooner"', async ({ page }) => { | |
| await page.goto('/product/payment-approvals/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Approvals cleared 2-3x sooner' || t.startsWith('Approvals cleared 2-3x sooner'))).toBeTruthy(); | |
| }); | |
| test('product_payment_approvals: h2 "Approval rules shaped around h"', async ({ page }) => { | |
| await page.goto('/product/payment-approvals/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Approval rules shaped around how you operate' || t.startsWith('Approval rules shaped around how you operate'))).toBeTruthy(); | |
| }); | |
| test('product_payment_approvals: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/product/payment-approvals/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_payment_approvals: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/product/payment-approvals/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_payment_approvals: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/product/payment-approvals/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_payment_approvals: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/product/payment-approvals/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - product_payments', () => { | |
| test('product_payments: title matches GT', async ({ page }) => { | |
| await page.goto('/product/payments/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('b2b payments'); | |
| }); | |
| test('product_payments: h1 "Fast. Simple. Secure. That\'s p"', async ({ page }) => { | |
| await page.goto('/product/payments/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fast. Simple. Secure. That\'s payments with Fynora.' || t.startsWith('Fast. Simple. Secure. That\'s payments with Fynora.'))).toBeTruthy(); | |
| }); | |
| test('product_payments: h2 "Move money faster"', async ({ page }) => { | |
| await page.goto('/product/payments/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Move money faster' || t.startsWith('Move money faster'))).toBeTruthy(); | |
| }); | |
| test('product_payments: h2 "Every payment method you need,"', async ({ page }) => { | |
| await page.goto('/product/payments/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Every payment method you need, right when you need it' || t.startsWith('Every payment method you need, right when you need it'))).toBeTruthy(); | |
| }); | |
| test('product_payments: h2 "Payments kept in control"', async ({ page }) => { | |
| await page.goto('/product/payments/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Payments kept in control' || t.startsWith('Payments kept in control'))).toBeTruthy(); | |
| }); | |
| test('product_payments: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/product/payments/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_payments: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/product/payments/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_payments: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/product/payments/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_payments: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/product/payments/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - product_payments_services', () => { | |
| test('product_payments_services: title matches GT', async ({ page }) => { | |
| await page.goto('/product/payments-services/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('payments services'); | |
| }); | |
| test('product_payments_services: h1 "Meet the new Payments Services"', async ({ page }) => { | |
| await page.goto('/product/payments-services/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Meet the new Payments Services' || t.startsWith('Meet the new Payments Services'))).toBeTruthy(); | |
| }); | |
| test('product_payments_services: h2 "Request a live demo"', async ({ page }) => { | |
| await page.goto('/product/payments-services/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Request a live demo' || t.startsWith('Request a live demo'))).toBeTruthy(); | |
| }); | |
| test('product_payments_services: h2 "Schedule a live demo"', async ({ page }) => { | |
| await page.goto('/product/payments-services/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Schedule a live demo' || t.startsWith('Schedule a live demo'))).toBeTruthy(); | |
| }); | |
| test('product_payments_services: h2 "Book your live demo"', async ({ page }) => { | |
| await page.goto('/product/payments-services/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Book your live demo' || t.startsWith('Book your live demo'))).toBeTruthy(); | |
| }); | |
| test('product_payments_services: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/product/payments-services/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_payments_services: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/product/payments-services/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_payments_services: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/product/payments-services/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_payments_services: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/product/payments-services/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - product_pricing', () => { | |
| test('product_pricing: title matches GT', async ({ page }) => { | |
| await page.goto('/product/pricing/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('plans & pricing'); | |
| }); | |
| test('product_pricing: h1 "Our pricing plans"', async ({ page }) => { | |
| await page.goto('/product/pricing/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Our pricing plans' || t.startsWith('Our pricing plans'))).toBeTruthy(); | |
| }); | |
| test('product_pricing: h2 "Chat and phone support include"', async ({ page }) => { | |
| await page.goto('/product/pricing/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Chat and phone support included on every plan' || t.startsWith('Chat and phone support included on every plan'))).toBeTruthy(); | |
| }); | |
| test('product_pricing: h2 "Questions we hear most often"', async ({ page }) => { | |
| await page.goto('/product/pricing/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Questions we hear most often' || t.startsWith('Questions we hear most often'))).toBeTruthy(); | |
| }); | |
| test('product_pricing: h2 "Live chat and phone support on"', async ({ page }) => { | |
| await page.goto('/product/pricing/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Live chat and phone support on every plan' || t.startsWith('Live chat and phone support on every plan'))).toBeTruthy(); | |
| }); | |
| test('product_pricing: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/product/pricing/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_pricing: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/product/pricing/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_pricing: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/product/pricing/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('product_pricing: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/product/pricing/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - solutions_construction', () => { | |
| test('solutions_construction: title matches GT', async ({ page }) => { | |
| await page.goto('/solutions/construction/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('construction spend management'); | |
| }); | |
| test('solutions_construction: h1 "Smarter money workflows built "', async ({ page }) => { | |
| await page.goto('/solutions/construction/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Smarter money workflows built for builders' || t.startsWith('Smarter money workflows built for builders'))).toBeTruthy(); | |
| }); | |
| test('solutions_construction: h2 "Fynora Accounts Payable and Fy"', async ({ page }) => { | |
| await page.goto('/solutions/construction/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fynora Accounts Payable and Fynora Accounts Receivable' || t.startsWith('Fynora Accounts Payable and Fynora Accounts Receivable'))).toBeTruthy(); | |
| }); | |
| test('solutions_construction: h2 "Fynora Spend & Expense"', async ({ page }) => { | |
| await page.goto('/solutions/construction/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fynora Spend & Expense' || t.startsWith('Fynora Spend & Expense'))).toBeTruthy(); | |
| }); | |
| test('solutions_construction: h2 "Automated spend controls for p"', async ({ page }) => { | |
| await page.goto('/solutions/construction/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Automated spend controls for plumbing & HVAC teams' || t.startsWith('Automated spend controls for plumbing & HVAC teams'))).toBeTruthy(); | |
| }); | |
| test('solutions_construction: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/solutions/construction/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_construction: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/solutions/construction/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_construction: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/solutions/construction/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_construction: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/solutions/construction/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - solutions_education', () => { | |
| test('solutions_education: title matches GT', async ({ page }) => { | |
| await page.goto('/solutions/education/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('fynora for schools and educational organ'); | |
| }); | |
| test('solutions_education: h1 "Smart financial operations bui"', async ({ page }) => { | |
| await page.goto('/solutions/education/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Smart financial operations built for educators' || t.startsWith('Smart financial operations built for educators'))).toBeTruthy(); | |
| }); | |
| test('solutions_education: h2 "Fynora Accounts Payable and Fy"', async ({ page }) => { | |
| await page.goto('/solutions/education/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fynora Accounts Payable and Fynora Accounts Receivable' || t.startsWith('Fynora Accounts Payable and Fynora Accounts Receivable'))).toBeTruthy(); | |
| }); | |
| test('solutions_education: h2 "Fynora Spend & Expense"', async ({ page }) => { | |
| await page.goto('/solutions/education/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fynora Spend & Expense' || t.startsWith('Fynora Spend & Expense'))).toBeTruthy(); | |
| }); | |
| test('solutions_education: h2 "What our customers are saying"', async ({ page }) => { | |
| await page.goto('/solutions/education/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'What our customers are saying' || t.startsWith('What our customers are saying'))).toBeTruthy(); | |
| }); | |
| test('solutions_education: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/solutions/education/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_education: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/solutions/education/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_education: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/solutions/education/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_education: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/solutions/education/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - solutions_healthcare', () => { | |
| test('solutions_healthcare: title matches GT', async ({ page }) => { | |
| await page.goto('/solutions/healthcare/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('fynora for healthcare organizations'); | |
| }); | |
| test('solutions_healthcare: h1 "Smart financial operations bui"', async ({ page }) => { | |
| await page.goto('/solutions/healthcare/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Smart financial operations built for healthcare teams' || t.startsWith('Smart financial operations built for healthcare teams'))).toBeTruthy(); | |
| }); | |
| test('solutions_healthcare: h2 "Relied on by 500k+ businesses"', async ({ page }) => { | |
| await page.goto('/solutions/healthcare/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Relied on by 500k+ businesses' || t.startsWith('Relied on by 500k+ businesses'))).toBeTruthy(); | |
| }); | |
| test('solutions_healthcare: h2 "Fynora Accounts Payable and Fy"', async ({ page }) => { | |
| await page.goto('/solutions/healthcare/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fynora Accounts Payable and Fynora Accounts Receivable' || t.startsWith('Fynora Accounts Payable and Fynora Accounts Receivable'))).toBeTruthy(); | |
| }); | |
| test('solutions_healthcare: h2 "Fynora Spend & Expense"', async ({ page }) => { | |
| await page.goto('/solutions/healthcare/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fynora Spend & Expense' || t.startsWith('Fynora Spend & Expense'))).toBeTruthy(); | |
| }); | |
| test('solutions_healthcare: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/solutions/healthcare/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_healthcare: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/solutions/healthcare/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_healthcare: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/solutions/healthcare/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_healthcare: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/solutions/healthcare/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - solutions_hospitality', () => { | |
| test('solutions_hospitality: title matches GT', async ({ page }) => { | |
| await page.goto('/solutions/hospitality/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('fynora for hospitality companies'); | |
| }); | |
| test('solutions_hospitality: h1 "Finance automation made for ho"', async ({ page }) => { | |
| await page.goto('/solutions/hospitality/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Finance automation made for hospitality brands' || t.startsWith('Finance automation made for hospitality brands'))).toBeTruthy(); | |
| }); | |
| test('solutions_hospitality: h2 "Fynora Accounts Payable and Fy"', async ({ page }) => { | |
| await page.goto('/solutions/hospitality/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fynora Accounts Payable and Fynora Accounts Receivable' || t.startsWith('Fynora Accounts Payable and Fynora Accounts Receivable'))).toBeTruthy(); | |
| }); | |
| test('solutions_hospitality: h2 "Fynora Spend & Expense"', async ({ page }) => { | |
| await page.goto('/solutions/hospitality/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fynora Spend & Expense' || t.startsWith('Fynora Spend & Expense'))).toBeTruthy(); | |
| }); | |
| test('solutions_hospitality: h2 "What our clients are saying"', async ({ page }) => { | |
| await page.goto('/solutions/hospitality/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'What our clients are saying' || t.startsWith('What our clients are saying'))).toBeTruthy(); | |
| }); | |
| test('solutions_hospitality: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/solutions/hospitality/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_hospitality: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/solutions/hospitality/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_hospitality: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/solutions/hospitality/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_hospitality: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/solutions/hospitality/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - solutions_manufacturing', () => { | |
| test('solutions_manufacturing: title matches GT', async ({ page }) => { | |
| await page.goto('/solutions/manufacturing/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('fynora for manufacturing'); | |
| }); | |
| test('solutions_manufacturing: h1 "Automate financial operations "', async ({ page }) => { | |
| await page.goto('/solutions/manufacturing/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Automate financial operations for manufacturing teams' || t.startsWith('Automate financial operations for manufacturing teams'))).toBeTruthy(); | |
| }); | |
| test('solutions_manufacturing: h2 "Fynora Accounts Payable and Fy"', async ({ page }) => { | |
| await page.goto('/solutions/manufacturing/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fynora Accounts Payable and Fynora Accounts Receivable' || t.startsWith('Fynora Accounts Payable and Fynora Accounts Receivable'))).toBeTruthy(); | |
| }); | |
| test('solutions_manufacturing: h2 "Fynora Spend & Expense"', async ({ page }) => { | |
| await page.goto('/solutions/manufacturing/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fynora Spend & Expense' || t.startsWith('Fynora Spend & Expense'))).toBeTruthy(); | |
| }); | |
| test('solutions_manufacturing: h2 "What our customers tell us"', async ({ page }) => { | |
| await page.goto('/solutions/manufacturing/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'What our customers tell us' || t.startsWith('What our customers tell us'))).toBeTruthy(); | |
| }); | |
| test('solutions_manufacturing: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/solutions/manufacturing/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_manufacturing: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/solutions/manufacturing/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_manufacturing: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/solutions/manufacturing/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_manufacturing: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/solutions/manufacturing/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - solutions_mid_sized_companies', () => { | |
| test('solutions_mid_sized_companies: title matches GT', async ({ page }) => { | |
| await page.goto('/solutions/mid-sized-companies/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('for mid'); | |
| }); | |
| test('solutions_mid_sized_companies: h1 "Fuel expansion with smarter fi"', async ({ page }) => { | |
| await page.goto('/solutions/mid-sized-companies/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fuel expansion with smarter financial operations' || t.startsWith('Fuel expansion with smarter financial operations'))).toBeTruthy(); | |
| }); | |
| test('solutions_mid_sized_companies: h2 "Fynora connects effortlessly w"', async ({ page }) => { | |
| await page.goto('/solutions/mid-sized-companies/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fynora connects effortlessly with your accounting tools' || t.startsWith('Fynora connects effortlessly with your accounting tools'))).toBeTruthy(); | |
| }); | |
| test('solutions_mid_sized_companies: h2 "Scalable AP and AR automation "', async ({ page }) => { | |
| await page.goto('/solutions/mid-sized-companies/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Scalable AP and AR automation built for growing, midsize teams' || t.startsWith('Scalable AP and AR automation built for growing, midsize teams'))).toBeTruthy(); | |
| }); | |
| test('solutions_mid_sized_companies: h2 "Heading goes here"', async ({ page }) => { | |
| await page.goto('/solutions/mid-sized-companies/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Heading goes here' || t.startsWith('Heading goes here'))).toBeTruthy(); | |
| }); | |
| test('solutions_mid_sized_companies: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/solutions/mid-sized-companies/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_mid_sized_companies: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/solutions/mid-sized-companies/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_mid_sized_companies: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/solutions/mid-sized-companies/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_mid_sized_companies: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/solutions/mid-sized-companies/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - solutions_nonprofits', () => { | |
| test('solutions_nonprofits: title matches GT', async ({ page }) => { | |
| await page.goto('/solutions/nonprofits/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('fynora for nonprofits'); | |
| }); | |
| test('solutions_nonprofits: h1 "Smart finance made for mission"', async ({ page }) => { | |
| await page.goto('/solutions/nonprofits/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Smart finance made for mission teams' || t.startsWith('Smart finance made for mission teams'))).toBeTruthy(); | |
| }); | |
| test('solutions_nonprofits: h2 "Fynora Accounts Payable and Fy"', async ({ page }) => { | |
| await page.goto('/solutions/nonprofits/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fynora Accounts Payable and Fynora Accounts Receivable' || t.startsWith('Fynora Accounts Payable and Fynora Accounts Receivable'))).toBeTruthy(); | |
| }); | |
| test('solutions_nonprofits: h2 "Fynora Spend & Expense"', async ({ page }) => { | |
| await page.goto('/solutions/nonprofits/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fynora Spend & Expense' || t.startsWith('Fynora Spend & Expense'))).toBeTruthy(); | |
| }); | |
| test('solutions_nonprofits: h2 "Built for faith communities th"', async ({ page }) => { | |
| await page.goto('/solutions/nonprofits/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Built for faith communities that need audit-ready books' || t.startsWith('Built for faith communities that need audit-ready books'))).toBeTruthy(); | |
| }); | |
| test('solutions_nonprofits: nav link "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/solutions/nonprofits/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_nonprofits: nav link "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/solutions/nonprofits/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_nonprofits: nav link "Cash Flow Forecasting"', async ({ page }) => { | |
| await page.goto('/solutions/nonprofits/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('solutions_nonprofits: nav link "Integrations Overview"', async ({ page }) => { | |
| await page.goto('/solutions/nonprofits/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - Routing', () => { | |
| test('navigate to product_accounts_payable via "Accounts Payable"', async ({ page }) => { | |
| await page.goto('/'); | |
| const link = page.locator('a[href*="accounts-payable"]').first(); | |
| expect(await link.count(), 'nav link to product_accounts_payable exists').toBeGreaterThan(0); | |
| await link.click(); | |
| await page.waitForTimeout(1200); | |
| expect(page.url().toLowerCase(), 'URL changed to destination').toContain('accounts-payable'); | |
| const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); | |
| expect(bodyText, 'destination distinctive content shown').toContain('Accelerate accounts payable with Fynora'); | |
| }); | |
| test('navigate to product_accounts_receivable via "Accounts Receivable"', async ({ page }) => { | |
| await page.goto('/'); | |
| const link = page.locator('a[href*="accounts-receivable"]').first(); | |
| expect(await link.count(), 'nav link to product_accounts_receivable exists').toBeGreaterThan(0); | |
| await link.click(); | |
| await page.waitForTimeout(1200); | |
| expect(page.url().toLowerCase(), 'URL changed to destination').toContain('accounts-receivable'); | |
| const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); | |
| expect(bodyText, 'destination distinctive content shown').toContain('Sign up and send your very first invoice in minutes'); | |
| }); | |
| test('navigate to integrations via "Integrations"', async ({ page }) => { | |
| await page.goto('/'); | |
| const link = page.locator('a[href*="integrations"]').first(); | |
| expect(await link.count(), 'nav link to integrations exists').toBeGreaterThan(0); | |
| await link.click(); | |
| await page.waitForTimeout(1200); | |
| expect(page.url().toLowerCase(), 'URL changed to destination').toContain('integrations'); | |
| const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); | |
| expect(bodyText, 'destination distinctive content shown').toContain('Integrations built to keep your business moving'); | |
| }); | |
| }); | |