import { test, expect } from '@playwright/test'; test.describe('Functional - homepage', () => { test('homepage: h1 "Money that moves wherever you "', async ({ page }) => { await page.goto('/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Money that moves wherever you do' || t.startsWith('Money that moves wherever you do'))).toBeTruthy(); }); test('homepage: nav link "Borvia"', 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 === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); }); test('homepage: nav link "Personal"', 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 === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('homepage: nav link "Business"', 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 === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('homepage: nav link "Platform"', async ({ page }) => { await page.goto('/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - cookie_policy', () => { test('cookie_policy: title matches GT', async ({ page }) => { await page.goto('/cookie-policy/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('cookies and related technologies policy'); }); test('cookie_policy: h2 "Company and team"', async ({ page }) => { await page.goto('/cookie-policy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Company and team' || t.startsWith('Company and team'))).toBeTruthy(); }); test('cookie_policy: h2 "Borvia Products"', async ({ page }) => { await page.goto('/cookie-policy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia Products' || t.startsWith('Borvia Products'))).toBeTruthy(); }); test('cookie_policy: h2 "Resources"', async ({ page }) => { await page.goto('/cookie-policy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('cookie_policy: nav link "Borvia"', async ({ page }) => { await page.goto('/cookie-policy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); }); test('cookie_policy: nav link "Personal"', async ({ page }) => { await page.goto('/cookie-policy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('cookie_policy: nav link "Business"', async ({ page }) => { await page.goto('/cookie-policy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('cookie_policy: nav link "Platform"', async ({ page }) => { await page.goto('/cookie-policy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - help', () => { test('help: title matches GT', async ({ page }) => { await page.goto('/help/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how can we help?'); }); test('help: h1 "How can we help you?"', async ({ page }) => { await page.goto('/help/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How can we help you?' || t.startsWith('How can we help you?'))).toBeTruthy(); }); test('help: h2 "About our company"', async ({ page }) => { await page.goto('/help/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About our company' || t.startsWith('About our company'))).toBeTruthy(); }); test('help: h2 "Borvia Products"', async ({ page }) => { await page.goto('/help/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia Products' || t.startsWith('Borvia Products'))).toBeTruthy(); }); test('help: h2 "Resources"', async ({ page }) => { await page.goto('/help/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('help: header link "Register"', async ({ page }) => { await page.goto('/help/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Register' || t.startsWith('Register')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('help: footer link "BBorvia"', async ({ page }) => { await page.goto('/help/'); const links = page.locator('footer a, [role="contentinfo"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BBorvia' || t.startsWith('BBorvia')), 'link text in footer').toBeTruthy(); }); test('help: footer link "About our company"', async ({ page }) => { await page.goto('/help/'); const links = page.locator('footer a, [role="contentinfo"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About our company' || t.startsWith('About our company')), 'link text in footer').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('our-story')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - login', () => { test('login: title matches GT', async ({ page }) => { await page.goto('/login/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('welcome back'); }); }); test.describe('Functional - owners', () => { test('owners: title matches GT', async ({ page }) => { await page.goto('/owners/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('borvia plc owners'); }); test('owners: h1 "Owner Relations"', async ({ page }) => { await page.goto('/owners/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Owner Relations' || t.startsWith('Owner Relations'))).toBeTruthy(); }); test('owners: h1 "A FEW FINANCIAL HIGHLIGHTS"', async ({ page }) => { await page.goto('/owners/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'A FEW FINANCIAL HIGHLIGHTS' || t.startsWith('A FEW FINANCIAL HIGHLIGHTS'))).toBeTruthy(); }); test('owners: h2 "2025 AGM"', async ({ page }) => { await page.goto('/owners/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '2025 AGM' || t.startsWith('2025 AGM'))).toBeTruthy(); }); test('owners: h2 "Upcoming Trading Updates & Eve"', async ({ page }) => { await page.goto('/owners/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Upcoming Trading Updates & Events' || t.startsWith('Upcoming Trading Updates & Events'))).toBeTruthy(); }); test('owners: nav link "Borvia"', async ({ page }) => { await page.goto('/owners/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); }); test('owners: nav link "Personal"', async ({ page }) => { await page.goto('/owners/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('owners: nav link "Business"', async ({ page }) => { await page.goto('/owners/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('owners: nav link "Platform"', async ({ page }) => { await page.goto('/owners/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - platform', () => { test('platform: title matches GT', async ({ page }) => { await page.goto('/platform/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('borvia platform'); }); test('platform: h1 "infrastructure to power the wo"', async ({ page }) => { await page.goto('/platform/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'infrastructure to power the world’s money' || t.startsWith('infrastructure to power the world’s money'))).toBeTruthy(); }); test('platform: h2 "Relied on by leading organisat"', async ({ page }) => { await page.goto('/platform/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Relied on by leading organisations worldwide' || t.startsWith('Relied on by leading organisations worldwide'))).toBeTruthy(); }); test('platform: h2 "We move £145BN of global FX vo"', async ({ page }) => { await page.goto('/platform/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'We move £145BN of global FX volumes – and climbing...' || t.startsWith('We move £145BN of global FX volumes – and climbing...'))).toBeTruthy(); }); test('platform: h2 "Real time, dependable correspo"', async ({ page }) => { await page.goto('/platform/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Real time, dependable correspondent services' || t.startsWith('Real time, dependable correspondent services'))).toBeTruthy(); }); test('platform: nav link "Borvia"', async ({ page }) => { await page.goto('/platform/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); test('platform: nav link "Personal"', async ({ page }) => { await page.goto('/platform/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('platform: nav link "Business"', async ({ page }) => { await page.goto('/platform/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('platform: nav link "Platform"', async ({ page }) => { await page.goto('/platform/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - platform_cards', () => { test('platform_cards: title matches GT', async ({ page }) => { await page.goto('/platform/cards/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('link up smoothly with our in'); }); test('platform_cards: h1 "ISSUE BRANDED DEBIT CARDS ACRO"', async ({ page }) => { await page.goto('/platform/cards/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'ISSUE BRANDED DEBIT CARDS ACROSS THE GLOBE' || t.startsWith('ISSUE BRANDED DEBIT CARDS ACROSS THE GLOBE'))).toBeTruthy(); }); test('platform_cards: h2 "Rely on high card issuing succ"', async ({ page }) => { await page.goto('/platform/cards/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Rely on high card issuing success rates' || t.startsWith('Rely on high card issuing success rates'))).toBeTruthy(); }); test('platform_cards: h2 "Tap into robust fraud detectio"', async ({ page }) => { await page.goto('/platform/cards/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Tap into robust fraud detection capabilities' || t.startsWith('Tap into robust fraud detection capabilities'))).toBeTruthy(); }); test('platform_cards: h2 "Manage costs with intelligent "', async ({ page }) => { await page.goto('/platform/cards/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Manage costs with intelligent settlements' || t.startsWith('Manage costs with intelligent settlements'))).toBeTruthy(); }); test('platform_cards: nav link "Borvia"', async ({ page }) => { await page.goto('/platform/cards/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); test('platform_cards: nav link "Personal"', async ({ page }) => { await page.goto('/platform/cards/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('platform_cards: nav link "Business"', async ({ page }) => { await page.goto('/platform/cards/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('platform_cards: nav link "Platform"', async ({ page }) => { await page.goto('/platform/cards/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - platform_education', () => { test('platform_education: title matches GT', async ({ page }) => { await page.goto('/platform/education/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('global payments infrastructure for sendi'); }); test('platform_education: h1 "SMOOTH EDUCATION PAYMENTS THAT"', async ({ page }) => { await page.goto('/platform/education/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SMOOTH EDUCATION PAYMENTS THAT HELP CUT COSTS' || t.startsWith('SMOOTH EDUCATION PAYMENTS THAT HELP CUT COSTS'))).toBeTruthy(); }); test('platform_education: h2 "Free up time and resources on "', async ({ page }) => { await page.goto('/platform/education/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Free up time and resources on reconciliation' || t.startsWith('Free up time and resources on reconciliation'))).toBeTruthy(); }); test('platform_education: h2 "Build experiences that help lo"', async ({ page }) => { await page.goto('/platform/education/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Build experiences that help lower your CS costs' || t.startsWith('Build experiences that help lower your CS costs'))).toBeTruthy(); }); test('platform_education: h2 "Plug in the products designed "', async ({ page }) => { await page.goto('/platform/education/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plug in the products designed to cut costs and build lasting loyalty' || t.startsWith('Plug in the products designed to cut costs and build lasting loyalty'))).toBeTruthy(); }); test('platform_education: nav link "Borvia"', async ({ page }) => { await page.goto('/platform/education/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); test('platform_education: nav link "Personal"', async ({ page }) => { await page.goto('/platform/education/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('platform_education: nav link "Business"', async ({ page }) => { await page.goto('/platform/education/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('platform_education: nav link "Platform"', async ({ page }) => { await page.goto('/platform/education/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - platform_financial_institutions', () => { test('platform_financial_institutions: title matches GT', async ({ page }) => { await page.goto('/platform/financial-institutions/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('cross'); }); test('platform_financial_institutions: h1 "REAL-TIME, RELIABLE CORRESPOND"', async ({ page }) => { await page.goto('/platform/financial-institutions/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'REAL-TIME, RELIABLE CORRESPONDENT PAYMENTS' || t.startsWith('REAL-TIME, RELIABLE CORRESPONDENT PAYMENTS'))).toBeTruthy(); }); test('platform_financial_institutions: h2 "Relied on by leading organisat"', async ({ page }) => { await page.goto('/platform/financial-institutions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Relied on by leading organisations worldwide' || t.startsWith('Relied on by leading organisations worldwide'))).toBeTruthy(); }); test('platform_financial_institutions: h2 "Reinvent your global payments "', async ({ page }) => { await page.goto('/platform/financial-institutions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reinvent your global payments experience' || t.startsWith('Reinvent your global payments experience'))).toBeTruthy(); }); test('platform_financial_institutions: h2 "Effortlessly optimise your glo"', async ({ page }) => { await page.goto('/platform/financial-institutions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Effortlessly optimise your global payments network' || t.startsWith('Effortlessly optimise your global payments network'))).toBeTruthy(); }); test('platform_financial_institutions: nav link "Borvia"', async ({ page }) => { await page.goto('/platform/financial-institutions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); test('platform_financial_institutions: nav link "Personal"', async ({ page }) => { await page.goto('/platform/financial-institutions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('platform_financial_institutions: nav link "Business"', async ({ page }) => { await page.goto('/platform/financial-institutions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('platform_financial_institutions: nav link "Platform"', async ({ page }) => { await page.goto('/platform/financial-institutions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - platform_marketplaces', () => { test('platform_marketplaces: title matches GT', async ({ page }) => { await page.goto('/platform/marketplaces/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('connect sellers on your marketplace to f'); }); test('platform_marketplaces: h1 "INSTANT WORLDWIDE PAYOUTS THAT"', async ({ page }) => { await page.goto('/platform/marketplaces/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'INSTANT WORLDWIDE PAYOUTS THAT KEEP SELLERS LOYAL' || t.startsWith('INSTANT WORLDWIDE PAYOUTS THAT KEEP SELLERS LOYAL'))).toBeTruthy(); }); test('platform_marketplaces: h2 "Turn up payment visibility and"', async ({ page }) => { await page.goto('/platform/marketplaces/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Turn up payment visibility and strip out the complexity' || t.startsWith('Turn up payment visibility and strip out the complexity'))).toBeTruthy(); }); test('platform_marketplaces: h2 "Deliver an experience that fue"', async ({ page }) => { await page.goto('/platform/marketplaces/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Deliver an experience that fuels lasting seller loyalty' || t.startsWith('Deliver an experience that fuels lasting seller loyalty'))).toBeTruthy(); }); test('platform_marketplaces: h2 "Plug in products built to cut "', async ({ page }) => { await page.goto('/platform/marketplaces/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plug in products built to cut costs and grow customer loyalty' || t.startsWith('Plug in products built to cut costs and grow customer loyalty'))).toBeTruthy(); }); test('platform_marketplaces: nav link "Borvia"', async ({ page }) => { await page.goto('/platform/marketplaces/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); test('platform_marketplaces: nav link "Personal"', async ({ page }) => { await page.goto('/platform/marketplaces/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('platform_marketplaces: nav link "Business"', async ({ page }) => { await page.goto('/platform/marketplaces/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('platform_marketplaces: nav link "Platform"', async ({ page }) => { await page.goto('/platform/marketplaces/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - platform_multi_currency_accounts', () => { test('platform_multi_currency_accounts: title matches GT', async ({ page }) => { await page.goto('/platform/multi-currency-accounts/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('plug in our multi'); }); test('platform_multi_currency_accounts: h1 "PLUG IN AN ACCOUNT BUILT FOR M"', async ({ page }) => { await page.goto('/platform/multi-currency-accounts/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'PLUG IN AN ACCOUNT BUILT FOR MONEY WORLDWIDE' || t.startsWith('PLUG IN AN ACCOUNT BUILT FOR MONEY WORLDWIDE'))).toBeTruthy(); }); test('platform_multi_currency_accounts: h2 "Trusted by leading organisatio"', async ({ page }) => { await page.goto('/platform/multi-currency-accounts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Trusted by leading organisations worldwide' || t.startsWith('Trusted by leading organisations worldwide'))).toBeTruthy(); }); test('platform_multi_currency_accounts: h2 "Send fast, reliable and transp"', async ({ page }) => { await page.goto('/platform/multi-currency-accounts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Send fast, reliable and transparent payouts worldwide' || t.startsWith('Send fast, reliable and transparent payouts worldwide'))).toBeTruthy(); }); test('platform_multi_currency_accounts: h2 "Easily plug into worldwide pay"', async ({ page }) => { await page.goto('/platform/multi-currency-accounts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Easily plug into worldwide pay-in coverage' || t.startsWith('Easily plug into worldwide pay-in coverage'))).toBeTruthy(); }); test('platform_multi_currency_accounts: nav link "Borvia"', async ({ page }) => { await page.goto('/platform/multi-currency-accounts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); test('platform_multi_currency_accounts: nav link "Personal"', async ({ page }) => { await page.goto('/platform/multi-currency-accounts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('platform_multi_currency_accounts: nav link "Business"', async ({ page }) => { await page.goto('/platform/multi-currency-accounts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('platform_multi_currency_accounts: nav link "Platform"', async ({ page }) => { await page.goto('/platform/multi-currency-accounts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - platform_receive', () => { test('platform_receive: title matches GT', async ({ page }) => { await page.goto('/platform/receive/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('plug effortlessly into our worldwide rec'); }); test('platform_receive: h1 "DISCOVER FRESH WAYS TO RECEIVE"', async ({ page }) => { await page.goto('/platform/receive/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'DISCOVER FRESH WAYS TO RECEIVE GLOBAL PAYMENTS' || t.startsWith('DISCOVER FRESH WAYS TO RECEIVE GLOBAL PAYMENTS'))).toBeTruthy(); }); test('platform_receive: h2 "Relied on by leading organisat"', async ({ page }) => { await page.goto('/platform/receive/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Relied on by leading organisations worldwide' || t.startsWith('Relied on by leading organisations worldwide'))).toBeTruthy(); }); test('platform_receive: h2 "Get paid globally with speed a"', async ({ page }) => { await page.goto('/platform/receive/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Get paid globally with speed and reliability' || t.startsWith('Get paid globally with speed and reliability'))).toBeTruthy(); }); test('platform_receive: h2 "Connect one webhook to gain wo"', async ({ page }) => { await page.goto('/platform/receive/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Connect one webhook to gain worldwide coverage' || t.startsWith('Connect one webhook to gain worldwide coverage'))).toBeTruthy(); }); test('platform_receive: nav link "Borvia"', async ({ page }) => { await page.goto('/platform/receive/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); test('platform_receive: nav link "Personal"', async ({ page }) => { await page.goto('/platform/receive/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('platform_receive: nav link "Business"', async ({ page }) => { await page.goto('/platform/receive/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('platform_receive: nav link "Platform"', async ({ page }) => { await page.goto('/platform/receive/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - platform_send', () => { test('platform_send: title matches GT', async ({ page }) => { await page.goto('/platform/send/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('plug effortlessly into our global send p'); }); test('platform_send: h1 "EXCEED CUSTOMER EXPECTATIONS, "', async ({ page }) => { await page.goto('/platform/send/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'EXCEED CUSTOMER EXPECTATIONS, SEND REAL-TIME PAYMENTS' || t.startsWith('EXCEED CUSTOMER EXPECTATIONS, SEND REAL-TIME PAYMENTS'))).toBeTruthy(); }); test('platform_send: h2 "Relied on by leading organisat"', async ({ page }) => { await page.goto('/platform/send/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Relied on by leading organisations worldwide' || t.startsWith('Relied on by leading organisations worldwide'))).toBeTruthy(); }); test('platform_send: h2 "Tap into dedicated global cove"', async ({ page }) => { await page.goto('/platform/send/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Tap into dedicated global coverage' || t.startsWith('Tap into dedicated global coverage'))).toBeTruthy(); }); test('platform_send: h2 "Move money as fast as your cus"', async ({ page }) => { await page.goto('/platform/send/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Move money as fast as your customers expect' || t.startsWith('Move money as fast as your customers expect'))).toBeTruthy(); }); test('platform_send: nav link "Borvia"', async ({ page }) => { await page.goto('/platform/send/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); test('platform_send: nav link "Personal"', async ({ page }) => { await page.goto('/platform/send/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('platform_send: nav link "Business"', async ({ page }) => { await page.goto('/platform/send/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('platform_send: nav link "Platform"', async ({ page }) => { await page.goto('/platform/send/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - platform_spend_management', () => { test('platform_spend_management: title matches GT', async ({ page }) => { await page.goto('/platform/spend-management/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('worldwide payments infrastructure for cr'); }); test('platform_spend_management: h1 "SWIFT, SEAMLESS GLOBAL BUSINES"', async ({ page }) => { await page.goto('/platform/spend-management/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'SWIFT, SEAMLESS GLOBAL BUSINESS PAYOUTS' || t.startsWith('SWIFT, SEAMLESS GLOBAL BUSINESS PAYOUTS'))).toBeTruthy(); }); test('platform_spend_management: h2 "Chosen by leading organisation"', async ({ page }) => { await page.goto('/platform/spend-management/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Chosen by leading organisations worldwide' || t.startsWith('Chosen by leading organisations worldwide'))).toBeTruthy(); }); test('platform_spend_management: h2 "Fund and reimburse with ease, "', async ({ page }) => { await page.goto('/platform/spend-management/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Fund and reimburse with ease, in every currency' || t.startsWith('Fund and reimburse with ease, in every currency'))).toBeTruthy(); }); test('platform_spend_management: h2 "Deliver bill-pay experiences t"', async ({ page }) => { await page.goto('/platform/spend-management/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Deliver bill-pay experiences that meet expectations' || t.startsWith('Deliver bill-pay experiences that meet expectations'))).toBeTruthy(); }); test('platform_spend_management: nav link "Borvia"', async ({ page }) => { await page.goto('/platform/spend-management/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); test('platform_spend_management: nav link "Personal"', async ({ page }) => { await page.goto('/platform/spend-management/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('platform_spend_management: nav link "Business"', async ({ page }) => { await page.goto('/platform/spend-management/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('platform_spend_management: nav link "Platform"', async ({ page }) => { await page.goto('/platform/spend-management/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - platform_travel', () => { test('platform_travel: title matches GT', async ({ page }) => { await page.goto('/platform/travel/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('plug in payments infrastructure for trav'); }); test('platform_travel: h1 "PLUG-IN PAYOUTS FOR SMOOTH, EF"', async ({ page }) => { await page.goto('/platform/travel/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'PLUG-IN PAYOUTS FOR SMOOTH, EFFICIENT TRAVEL OPERATIONS' || t.startsWith('PLUG-IN PAYOUTS FOR SMOOTH, EFFICIENT TRAVEL OPERATIONS'))).toBeTruthy(); }); test('platform_travel: h2 "Reclaim time and resources on "', async ({ page }) => { await page.goto('/platform/travel/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Reclaim time and resources on reconciliation' || t.startsWith('Reclaim time and resources on reconciliation'))).toBeTruthy(); }); test('platform_travel: h2 "Plug in payout experiences wit"', async ({ page }) => { await page.goto('/platform/travel/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plug in payout experiences with a positive CS impact' || t.startsWith('Plug in payout experiences with a positive CS impact'))).toBeTruthy(); }); test('platform_travel: h2 "Plug in the products built to "', async ({ page }) => { await page.goto('/platform/travel/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plug in the products built to lower costs and grow loyalty' || t.startsWith('Plug in the products built to lower costs and grow loyalty'))).toBeTruthy(); }); test('platform_travel: nav link "Borvia"', async ({ page }) => { await page.goto('/platform/travel/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); test('platform_travel: nav link "Personal"', async ({ page }) => { await page.goto('/platform/travel/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('platform_travel: nav link "Business"', async ({ page }) => { await page.goto('/platform/travel/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('platform_travel: nav link "Platform"', async ({ page }) => { await page.goto('/platform/travel/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - platform_workforce_platforms', () => { test('platform_workforce_platforms: title matches GT', async ({ page }) => { await page.goto('/platform/workforce-platforms/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('global payout infrastructure for payroll'); }); test('platform_workforce_platforms: h1 "PAYOUTS THAT TRIM COSTS AND SH"', async ({ page }) => { await page.goto('/platform/workforce-platforms/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'PAYOUTS THAT TRIM COSTS AND SHARPEN OPERATIONS' || t.startsWith('PAYOUTS THAT TRIM COSTS AND SHARPEN OPERATIONS'))).toBeTruthy(); }); test('platform_workforce_platforms: h2 "Chosen by top organisations ar"', async ({ page }) => { await page.goto('/platform/workforce-platforms/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Chosen by top organisations around the world' || t.startsWith('Chosen by top organisations around the world'))).toBeTruthy(); }); test('platform_workforce_platforms: h2 "Turn payout visibility up, tur"', async ({ page }) => { await page.goto('/platform/workforce-platforms/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Turn payout visibility up, turn friction down' || t.startsWith('Turn payout visibility up, turn friction down'))).toBeTruthy(); }); test('platform_workforce_platforms: h2 "Elevate your whole payroll"', async ({ page }) => { await page.goto('/platform/workforce-platforms/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Elevate your whole payroll' || t.startsWith('Elevate your whole payroll'))).toBeTruthy(); }); test('platform_workforce_platforms: nav link "Borvia"', async ({ page }) => { await page.goto('/platform/workforce-platforms/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); test('platform_workforce_platforms: nav link "Personal"', async ({ page }) => { await page.goto('/platform/workforce-platforms/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('platform_workforce_platforms: nav link "Business"', async ({ page }) => { await page.goto('/platform/workforce-platforms/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('platform_workforce_platforms: nav link "Platform"', async ({ page }) => { await page.goto('/platform/workforce-platforms/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sg_account', () => { test('sg_account: title matches GT', async ({ page }) => { await page.goto('/sg/account/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('borvia account'); }); test('sg_account: h1 "One account for every currency"', async ({ page }) => { await page.goto('/sg/account/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'One account for every currency you\'ll ever need' || t.startsWith('One account for every currency you\'ll ever need'))).toBeTruthy(); }); test('sg_account: h2 "Manage your money anywhere you"', async ({ page }) => { await page.goto('/sg/account/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Manage your money anywhere you go' || t.startsWith('Manage your money anywhere you go'))).toBeTruthy(); }); test('sg_account: h2 "More than just travel money"', async ({ page }) => { await page.goto('/sg/account/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'More than just travel money' || t.startsWith('More than just travel money'))).toBeTruthy(); }); test('sg_account: h2 "Send money abroad and save on "', async ({ page }) => { await page.goto('/sg/account/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Send money abroad and save on fees' || t.startsWith('Send money abroad and save on fees'))).toBeTruthy(); }); test('sg_account: nav link "Borvia"', async ({ page }) => { await page.goto('/sg/account/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); }); test('sg_account: nav link "Personal"', async ({ page }) => { await page.goto('/sg/account/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('sg_account: nav link "Business"', async ({ page }) => { await page.goto('/sg/account/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('sg_account: nav link "Platform"', async ({ page }) => { await page.goto('/sg/account/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sg_business', () => { test('sg_business: title matches GT', async ({ page }) => { await page.goto('/sg/business/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('borvia business'); }); test('sg_business: h1 "The business account made for "', async ({ page }) => { await page.goto('/sg/business/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The business account made for going global' || t.startsWith('The business account made for going global'))).toBeTruthy(); }); test('sg_business: h1 "Discover more features to help"', async ({ page }) => { await page.goto('/sg/business/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Discover more features to help grow your business' || t.startsWith('Discover more features to help grow your business'))).toBeTruthy(); }); test('sg_business: h2 "Get paid in all the currencies"', async ({ page }) => { await page.goto('/sg/business/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Get paid in all the currencies you need' || t.startsWith('Get paid in all the currencies you need'))).toBeTruthy(); }); test('sg_business: h2 "Move your money worldwide"', async ({ page }) => { await page.goto('/sg/business/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Move your money worldwide' || t.startsWith('Move your money worldwide'))).toBeTruthy(); }); test('sg_business: nav link "Borvia"', async ({ page }) => { await page.goto('/sg/business/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); }); test('sg_business: nav link "Personal"', async ({ page }) => { await page.goto('/sg/business/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('sg_business: nav link "Business"', async ({ page }) => { await page.goto('/sg/business/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('sg_business: nav link "Platform"', async ({ page }) => { await page.goto('/sg/business/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sg_card', () => { test('sg_card: title matches GT', async ({ page }) => { await page.goto('/sg/card/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('multi'); }); test('sg_card: h1 "The most international debit c"', async ({ page }) => { await page.goto('/sg/card/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The most international debit card you can own' || t.startsWith('The most international debit card you can own'))).toBeTruthy(); }); test('sg_card: h2 "Withdraw cash overseas for fre"', async ({ page }) => { await page.goto('/sg/card/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Withdraw cash overseas for free' || t.startsWith('Withdraw cash overseas for free'))).toBeTruthy(); }); test('sg_card: h2 "Use your mobile wallet straigh"', async ({ page }) => { await page.goto('/sg/card/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Use your mobile wallet straight away' || t.startsWith('Use your mobile wallet straight away'))).toBeTruthy(); }); test('sg_card: h2 "Say hello to your digital card"', async ({ page }) => { await page.goto('/sg/card/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Say hello to your digital card' || t.startsWith('Say hello to your digital card'))).toBeTruthy(); }); test('sg_card: nav link "Borvia"', async ({ page }) => { await page.goto('/sg/card/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); }); test('sg_card: nav link "Personal"', async ({ page }) => { await page.goto('/sg/card/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('sg_card: nav link "Business"', async ({ page }) => { await page.goto('/sg/card/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('sg_card: nav link "Platform"', async ({ page }) => { await page.goto('/sg/card/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sg_interest', () => { test('sg_interest: title matches GT', async ({ page }) => { await page.goto('/sg/interest/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('meet borvia interest'); }); test('sg_interest: h1 "Give your balance a lift, up t"', async ({ page }) => { await page.goto('/sg/interest/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Give your balance a lift, up to 3.45%' || t.startsWith('Give your balance a lift, up to 3.45%'))).toBeTruthy(); }); test('sg_interest: h2 "How Interest works"', async ({ page }) => { await page.goto('/sg/interest/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How Interest works' || t.startsWith('How Interest works'))).toBeTruthy(); }); test('sg_interest: h2 "The rates you\'ll earn with us"', async ({ page }) => { await page.goto('/sg/interest/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The rates you\'ll earn with us' || t.startsWith('The rates you\'ll earn with us'))).toBeTruthy(); }); test('sg_interest: h2 "Keeping your money secure"', async ({ page }) => { await page.goto('/sg/interest/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Keeping your money secure' || t.startsWith('Keeping your money secure'))).toBeTruthy(); }); test('sg_interest: nav link "Borvia"', async ({ page }) => { await page.goto('/sg/interest/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); }); test('sg_interest: nav link "Personal"', async ({ page }) => { await page.goto('/sg/interest/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('sg_interest: nav link "Business"', async ({ page }) => { await page.goto('/sg/interest/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('sg_interest: nav link "Platform"', async ({ page }) => { await page.goto('/sg/interest/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sg_large_amounts', () => { test('sg_large_amounts: title matches GT', async ({ page }) => { await page.goto('/sg/large-amounts/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('send large amounts internationally'); }); test('sg_large_amounts: h1 "Large transfers need more than"', async ({ page }) => { await page.goto('/sg/large-amounts/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Large transfers need more than a good rate' || t.startsWith('Large transfers need more than a good rate'))).toBeTruthy(); }); test('sg_large_amounts: h2 "See how much you\'ll save when "', async ({ page }) => { await page.goto('/sg/large-amounts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'See how much you\'ll save when you compare fees' || t.startsWith('See how much you\'ll save when you compare fees'))).toBeTruthy(); }); test('sg_large_amounts: h2 "2-factor authentication"', async ({ page }) => { await page.goto('/sg/large-amounts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '2-factor authentication' || t.startsWith('2-factor authentication'))).toBeTruthy(); }); test('sg_large_amounts: h2 "Once you reach 30,000 SGD, you"', async ({ page }) => { await page.goto('/sg/large-amounts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Once you reach 30,000 SGD, you\'ll save on transfers for the rest of the month. It resets on the firs' || t.startsWith('Once you reach 30,000 SGD, you\'ll save on transfers for the rest of the month. It resets on the firs'))).toBeTruthy(); }); test('sg_large_amounts: nav link "Borvia"', async ({ page }) => { await page.goto('/sg/large-amounts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); }); test('sg_large_amounts: nav link "Personal"', async ({ page }) => { await page.goto('/sg/large-amounts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('sg_large_amounts: nav link "Business"', async ({ page }) => { await page.goto('/sg/large-amounts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('sg_large_amounts: nav link "Platform"', async ({ page }) => { await page.goto('/sg/large-amounts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sg_receive_money', () => { test('sg_receive_money: h1 "Request and collect money from"', async ({ page }) => { await page.goto('/sg/receive-money/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Request and collect money from all across the globe' || t.startsWith('Request and collect money from all across the globe'))).toBeTruthy(); }); test('sg_receive_money: h2 "Be paid like a local using acc"', async ({ page }) => { await page.goto('/sg/receive-money/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Be paid like a local using account details' || t.startsWith('Be paid like a local using account details'))).toBeTruthy(); }); test('sg_receive_money: h2 "Settle up quicker between frie"', async ({ page }) => { await page.goto('/sg/receive-money/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Settle up quicker between friends' || t.startsWith('Settle up quicker between friends'))).toBeTruthy(); }); test('sg_receive_money: h2 "Plenty of ways to get paid"', async ({ page }) => { await page.goto('/sg/receive-money/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Plenty of ways to get paid' || t.startsWith('Plenty of ways to get paid'))).toBeTruthy(); }); test('sg_receive_money: nav link "Borvia"', async ({ page }) => { await page.goto('/sg/receive-money/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); }); test('sg_receive_money: nav link "Personal"', async ({ page }) => { await page.goto('/sg/receive-money/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('sg_receive_money: nav link "Business"', async ({ page }) => { await page.goto('/sg/receive-money/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('sg_receive_money: nav link "Platform"', async ({ page }) => { await page.goto('/sg/receive-money/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sg_safety_and_security', () => { test('sg_safety_and_security: title matches GT', async ({ page }) => { await page.goto('/sg/safety-and-security/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how borvia keeps your money safe and you'); }); test('sg_safety_and_security: h1 "Your money, kept genuinely saf"', async ({ page }) => { await page.goto('/sg/safety-and-security/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Your money, kept genuinely safe' || t.startsWith('Your money, kept genuinely safe'))).toBeTruthy(); }); test('sg_safety_and_security: h2 "End-to-end security"', async ({ page }) => { await page.goto('/sg/safety-and-security/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'End-to-end security' || t.startsWith('End-to-end security'))).toBeTruthy(); }); test('sg_safety_and_security: h2 "Always available"', async ({ page }) => { await page.goto('/sg/safety-and-security/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Always available' || t.startsWith('Always available'))).toBeTruthy(); }); test('sg_safety_and_security: h2 "Regulated, exactly as you’d wa"', async ({ page }) => { await page.goto('/sg/safety-and-security/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Regulated, exactly as you’d want' || t.startsWith('Regulated, exactly as you’d want'))).toBeTruthy(); }); test('sg_safety_and_security: nav link "Borvia"', async ({ page }) => { await page.goto('/sg/safety-and-security/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); }); test('sg_safety_and_security: nav link "Personal"', async ({ page }) => { await page.goto('/sg/safety-and-security/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('sg_safety_and_security: nav link "Business"', async ({ page }) => { await page.goto('/sg/safety-and-security/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('sg_safety_and_security: nav link "Platform"', async ({ page }) => { await page.goto('/sg/safety-and-security/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - terms_and_conditions', () => { test('terms_and_conditions: title matches GT', async ({ page }) => { await page.goto('/terms-and-conditions/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('borvia customer agreements'); }); test('terms_and_conditions: h1 "The agreements you accept"', async ({ page }) => { await page.goto('/terms-and-conditions/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The agreements you accept' || t.startsWith('The agreements you accept'))).toBeTruthy(); }); test('terms_and_conditions: h2 "1. Where you live"', async ({ page }) => { await page.goto('/terms-and-conditions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '1. Where you live' || t.startsWith('1. Where you live'))).toBeTruthy(); }); test('terms_and_conditions: h2 "2. Additional activities"', async ({ page }) => { await page.goto('/terms-and-conditions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '2. Additional activities' || t.startsWith('2. Additional activities'))).toBeTruthy(); }); test('terms_and_conditions: h2 "3. Privacy Notices"', async ({ page }) => { await page.goto('/terms-and-conditions/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '3. Privacy Notices' || t.startsWith('3. Privacy Notices'))).toBeTruthy(); }); test('terms_and_conditions: nav link "Borvia"', async ({ page }) => { await page.goto('/terms-and-conditions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); }); test('terms_and_conditions: nav link "Personal"', async ({ page }) => { await page.goto('/terms-and-conditions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('terms_and_conditions: nav link "Business"', async ({ page }) => { await page.goto('/terms-and-conditions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('terms_and_conditions: nav link "Platform"', async ({ page }) => { await page.goto('/terms-and-conditions/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - gb_business_tools', () => { test('gb_business_tools: title matches GT', async ({ page }) => { await page.goto('/gb/business-tools/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('business calculators'); }); test('gb_business_tools: h1 "Business calculators"', async ({ page }) => { await page.goto('/gb/business-tools/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business calculators' || t.startsWith('Business calculators'))).toBeTruthy(); }); test('gb_business_tools: h2 "Kickstart your business with B"', async ({ page }) => { await page.goto('/gb/business-tools/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Kickstart your business with Borvia.' || t.startsWith('Kickstart your business with Borvia.'))).toBeTruthy(); }); test('gb_business_tools: h2 "Business Calculators"', async ({ page }) => { await page.goto('/gb/business-tools/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business Calculators' || t.startsWith('Business Calculators'))).toBeTruthy(); }); test('gb_business_tools: h2 "Check the VAT rate in another "', async ({ page }) => { await page.goto('/gb/business-tools/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Check the VAT rate in another country' || t.startsWith('Check the VAT rate in another country'))).toBeTruthy(); }); test('gb_business_tools: nav link "Borvia"', async ({ page }) => { await page.goto('/gb/business-tools/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); }); test('gb_business_tools: nav link "Personal"', async ({ page }) => { await page.goto('/gb/business-tools/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('gb_business_tools: nav link "Business"', async ({ page }) => { await page.goto('/gb/business-tools/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('gb_business_tools: nav link "Platform"', async ({ page }) => { await page.goto('/gb/business-tools/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - gb_company_formation', () => { test('gb_company_formation: title matches GT', async ({ page }) => { await page.goto('/gb/company-formation/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('uk company formation'); }); test('gb_company_formation: h1 "Form your limited company in t"', async ({ page }) => { await page.goto('/gb/company-formation/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Form your limited company in the UK' || t.startsWith('Form your limited company in the UK'))).toBeTruthy(); }); test('gb_company_formation: h2 "Why choose Borvia when forming"', async ({ page }) => { await page.goto('/gb/company-formation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Why choose Borvia when forming a limited company?' || t.startsWith('Why choose Borvia when forming a limited company?'))).toBeTruthy(); }); test('gb_company_formation: h2 "Open a Borvia Business account"', async ({ page }) => { await page.goto('/gb/company-formation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Open a Borvia Business account.' || t.startsWith('Open a Borvia Business account.'))).toBeTruthy(); }); test('gb_company_formation: h2 "What you\'ll need to set up a U"', async ({ page }) => { await page.goto('/gb/company-formation/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'What you\'ll need to set up a UK company.' || t.startsWith('What you\'ll need to set up a UK company.'))).toBeTruthy(); }); test('gb_company_formation: nav link "Borvia"', async ({ page }) => { await page.goto('/gb/company-formation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); }); test('gb_company_formation: nav link "Personal"', async ({ page }) => { await page.goto('/gb/company-formation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('gb_company_formation: nav link "Business"', async ({ page }) => { await page.goto('/gb/company-formation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('gb_company_formation: nav link "Platform"', async ({ page }) => { await page.goto('/gb/company-formation/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - p_research_privacy_policy', () => { test('p_research_privacy_policy: h1 "Research Privacy Policy"', async ({ page }) => { await page.goto('/p/research-privacy-policy/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Research Privacy Policy' || t.startsWith('Research Privacy Policy'))).toBeTruthy(); }); test('p_research_privacy_policy: h2 "Company and team"', async ({ page }) => { await page.goto('/p/research-privacy-policy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Company and team' || t.startsWith('Company and team'))).toBeTruthy(); }); test('p_research_privacy_policy: h2 "Borvia Products"', async ({ page }) => { await page.goto('/p/research-privacy-policy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia Products' || t.startsWith('Borvia Products'))).toBeTruthy(); }); test('p_research_privacy_policy: h2 "Resources"', async ({ page }) => { await page.goto('/p/research-privacy-policy/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('p_research_privacy_policy: nav link "Borvia"', async ({ page }) => { await page.goto('/p/research-privacy-policy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); }); test('p_research_privacy_policy: nav link "Personal"', async ({ page }) => { await page.goto('/p/research-privacy-policy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('p_research_privacy_policy: nav link "Business"', async ({ page }) => { await page.goto('/p/research-privacy-policy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('p_research_privacy_policy: nav link "Platform"', async ({ page }) => { await page.goto('/p/research-privacy-policy/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sg_blog', () => { test('sg_blog: title matches GT', async ({ page }) => { await page.goto('/sg/blog/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('singapore blog'); }); test('sg_blog: h1 "News"', async ({ page }) => { await page.goto('/sg/blog/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'News' || t.startsWith('News'))).toBeTruthy(); }); test('sg_blog: h1 "Personal Finance"', async ({ page }) => { await page.goto('/sg/blog/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal Finance' || t.startsWith('Personal Finance'))).toBeTruthy(); }); test('sg_blog: h1 "Living Abroad"', async ({ page }) => { await page.goto('/sg/blog/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Living Abroad' || t.startsWith('Living Abroad'))).toBeTruthy(); }); test('sg_blog: h1 "Travel Tips"', async ({ page }) => { await page.goto('/sg/blog/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Travel Tips' || t.startsWith('Travel Tips'))).toBeTruthy(); }); test('sg_blog: header link "Borvia"', async ({ page }) => { await page.goto('/sg/blog/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('sg')), 'href fragment present').toBeTruthy(); }); test('sg_blog: nav link "Blog"', async ({ page }) => { await page.goto('/sg/blog/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); test('sg_blog: nav link "Comparison"', async ({ page }) => { await page.goto('/sg/blog/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Comparison' || t.startsWith('Comparison')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('transferwise-news-comparison')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sg_compare', () => { test('sg_compare: title matches GT', async ({ page }) => { await page.goto('/sg/compare/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('money transfer comparison'); }); test('sg_compare: h1 "Compare the best exchange rate"', async ({ page }) => { await page.goto('/sg/compare/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Compare the best exchange rates' || t.startsWith('Compare the best exchange rates'))).toBeTruthy(); }); test('sg_compare: h2 "Compare money transfers by pro"', async ({ page }) => { await page.goto('/sg/compare/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Compare money transfers by provider' || t.startsWith('Compare money transfers by provider'))).toBeTruthy(); }); test('sg_compare: h2 "Download our Currency Converte"', async ({ page }) => { await page.goto('/sg/compare/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download our Currency Converter app' || t.startsWith('Download our Currency Converter app'))).toBeTruthy(); }); test('sg_compare: h2 "4.3/5 ON TRUSTLINE FROM 203,00"', async ({ page }) => { await page.goto('/sg/compare/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '4.3/5 ON TRUSTLINE FROM 203,000+ REVIEWS' || t.startsWith('4.3/5 ON TRUSTLINE FROM 203,000+ REVIEWS'))).toBeTruthy(); }); test('sg_compare: header link "BBorvia"', async ({ page }) => { await page.goto('/sg/compare/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BBorvia' || t.startsWith('BBorvia')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('sg')), 'href fragment present').toBeTruthy(); }); test('sg_compare: nav link "Personal"', async ({ page }) => { await page.goto('/sg/compare/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('sg')), 'href fragment present').toBeTruthy(); }); test('sg_compare: nav link "Business"', async ({ page }) => { await page.goto('/sg/compare/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('sg_compare: nav link "Platform"', async ({ page }) => { await page.goto('/sg/compare/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sg_currency_converter', () => { test('sg_currency_converter: title matches GT', async ({ page }) => { await page.goto('/sg/currency-converter/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('currency converter'); }); test('sg_currency_converter: h2 "Save when you spend, send, and"', async ({ page }) => { await page.goto('/sg/currency-converter/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Save when you spend, send, and get paid' || t.startsWith('Save when you spend, send, and get paid'))).toBeTruthy(); }); test('sg_currency_converter: h2 "No hidden fees"', async ({ page }) => { await page.goto('/sg/currency-converter/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'No hidden fees' || t.startsWith('No hidden fees'))).toBeTruthy(); }); test('sg_currency_converter: h2 "Download our free Borvia curre"', async ({ page }) => { await page.goto('/sg/currency-converter/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Download our free Borvia currency converter app' || t.startsWith('Download our free Borvia currency converter app'))).toBeTruthy(); }); test('sg_currency_converter: header link "BBorvia"', async ({ page }) => { await page.goto('/sg/currency-converter/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BBorvia' || t.startsWith('BBorvia')), 'link text in header').toBeTruthy(); }); test('sg_currency_converter: nav link "Personal"', async ({ page }) => { await page.goto('/sg/currency-converter/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); }); test('sg_currency_converter: nav link "Business"', async ({ page }) => { await page.goto('/sg/currency-converter/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('sg_currency_converter: nav link "Platform"', async ({ page }) => { await page.goto('/sg/currency-converter/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sg_iban', () => { test('sg_iban: title matches GT', async ({ page }) => { await page.goto('/sg/iban/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('iban number'); }); test('sg_iban: h1 "IBAN Number: Find, verify or g"', async ({ page }) => { await page.goto('/sg/iban/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'IBAN Number: Find, verify or generate your IBAN' || t.startsWith('IBAN Number: Find, verify or generate your IBAN'))).toBeTruthy(); }); test('sg_iban: h2 "What exactly is an IBAN?"', async ({ page }) => { await page.goto('/sg/iban/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'What exactly is an IBAN?' || t.startsWith('What exactly is an IBAN?'))).toBeTruthy(); }); test('sg_iban: h2 "An example IBAN for the United"', async ({ page }) => { await page.goto('/sg/iban/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'An example IBAN for the United Kingdom' || t.startsWith('An example IBAN for the United Kingdom'))).toBeTruthy(); }); test('sg_iban: h2 "How to locate your IBAN"', async ({ page }) => { await page.goto('/sg/iban/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to locate your IBAN' || t.startsWith('How to locate your IBAN'))).toBeTruthy(); }); test('sg_iban: header link "BBorvia"', async ({ page }) => { await page.goto('/sg/iban/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BBorvia' || t.startsWith('BBorvia')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('sg')), 'href fragment present').toBeTruthy(); }); test('sg_iban: nav link "Personal"', async ({ page }) => { await page.goto('/sg/iban/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('sg')), 'href fragment present').toBeTruthy(); }); test('sg_iban: nav link "Business"', async ({ page }) => { await page.goto('/sg/iban/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('sg_iban: nav link "Multi-currency accountDiscover"', async ({ page }) => { await page.goto('/sg/iban/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Multi-currency accountDiscover the account that 16 million p' || t.startsWith('Multi-currency accountDiscover the account that 16 million p')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sg_partnerwise', () => { test('sg_partnerwise: title matches GT', async ({ page }) => { await page.goto('/sg/partnerwise/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('borvia partners'); }); test('sg_partnerwise: h1 "Let\'s talk about partnering."', async ({ page }) => { await page.goto('/sg/partnerwise/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Let\'s talk about partnering.' || t.startsWith('Let\'s talk about partnering.'))).toBeTruthy(); }); test('sg_partnerwise: h2 "Borvia Affiliate Program."', async ({ page }) => { await page.goto('/sg/partnerwise/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia Affiliate Program.' || t.startsWith('Borvia Affiliate Program.'))).toBeTruthy(); }); test('sg_partnerwise: h2 "Borvia for Banks."', async ({ page }) => { await page.goto('/sg/partnerwise/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia for Banks.' || t.startsWith('Borvia for Banks.'))).toBeTruthy(); }); test('sg_partnerwise: h2 "Borvia for Business."', async ({ page }) => { await page.goto('/sg/partnerwise/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia for Business.' || t.startsWith('Borvia for Business.'))).toBeTruthy(); }); test('sg_partnerwise: nav link "Borvia"', async ({ page }) => { await page.goto('/sg/partnerwise/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); }); test('sg_partnerwise: nav link "Personal"', async ({ page }) => { await page.goto('/sg/partnerwise/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('sg_partnerwise: nav link "Business"', async ({ page }) => { await page.goto('/sg/partnerwise/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('sg_partnerwise: nav link "Platform"', async ({ page }) => { await page.goto('/sg/partnerwise/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sg_pricing', () => { test('sg_pricing: title matches GT', async ({ page }) => { await page.goto('/sg/pricing/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('borvia fees & pricing'); }); test('sg_pricing: h2 "Borvia is built to save you mo"', async ({ page }) => { await page.goto('/sg/pricing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia is built to save you money' || t.startsWith('Borvia is built to save you money'))).toBeTruthy(); }); test('sg_pricing: h2 "Company and team"', async ({ page }) => { await page.goto('/sg/pricing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Company and team' || t.startsWith('Company and team'))).toBeTruthy(); }); test('sg_pricing: h2 "Borvia Products"', async ({ page }) => { await page.goto('/sg/pricing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia Products' || t.startsWith('Borvia Products'))).toBeTruthy(); }); test('sg_pricing: h2 "Resources"', async ({ page }) => { await page.goto('/sg/pricing/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('sg_pricing: nav link "Borvia"', async ({ page }) => { await page.goto('/sg/pricing/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); }); test('sg_pricing: nav link "Personal"', async ({ page }) => { await page.goto('/sg/pricing/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('sg_pricing: nav link "Business"', async ({ page }) => { await page.goto('/sg/pricing/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('sg_pricing: nav link "Platform"', async ({ page }) => { await page.goto('/sg/pricing/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sg_stock', () => { test('sg_stock: title matches GT', async ({ page }) => { await page.goto('/sg/stock/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('international stock prices'); }); test('sg_stock: h1 "International share ticker"', async ({ page }) => { await page.goto('/sg/stock/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'International share ticker' || t.startsWith('International share ticker'))).toBeTruthy(); }); test('sg_stock: h2 "Look up any stock"', async ({ page }) => { await page.goto('/sg/stock/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Look up any stock' || t.startsWith('Look up any stock'))).toBeTruthy(); }); test('sg_stock: h2 "Others also search for"', async ({ page }) => { await page.goto('/sg/stock/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Others also search for' || t.startsWith('Others also search for'))).toBeTruthy(); }); test('sg_stock: h2 "Turning your stock options or "', async ({ page }) => { await page.goto('/sg/stock/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Turning your stock options or RSUs into real spendable cash' || t.startsWith('Turning your stock options or RSUs into real spendable cash'))).toBeTruthy(); }); test('sg_stock: header link "BBorvia"', async ({ page }) => { await page.goto('/sg/stock/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BBorvia' || t.startsWith('BBorvia')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('sg')), 'href fragment present').toBeTruthy(); }); test('sg_stock: nav link "Personal"', async ({ page }) => { await page.goto('/sg/stock/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('sg')), 'href fragment present').toBeTruthy(); }); test('sg_stock: nav link "Business"', async ({ page }) => { await page.goto('/sg/stock/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('sg_stock: nav link "Platform"', async ({ page }) => { await page.goto('/sg/stock/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - us_invoice_generator', () => { test('us_invoice_generator: title matches GT', async ({ page }) => { await page.goto('/us/invoice-generator/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('free invoice generator'); }); test('us_invoice_generator: h1 "Free online invoice tool"', async ({ page }) => { await page.goto('/us/invoice-generator/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Free online invoice tool' || t.startsWith('Free online invoice tool'))).toBeTruthy(); }); test('us_invoice_generator: h1 "How to build an invoice online"', async ({ page }) => { await page.goto('/us/invoice-generator/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to build an invoice online.' || t.startsWith('How to build an invoice online.'))).toBeTruthy(); }); test('us_invoice_generator: h1 "Want your invoice in another f"', async ({ page }) => { await page.goto('/us/invoice-generator/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Want your invoice in another format?' || t.startsWith('Want your invoice in another format?'))).toBeTruthy(); }); test('us_invoice_generator: h2 "Do you deal with customers, ve"', async ({ page }) => { await page.goto('/us/invoice-generator/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Do you deal with customers, vendors, or staff in other countries?' || t.startsWith('Do you deal with customers, vendors, or staff in other countries?'))).toBeTruthy(); }); test('us_invoice_generator: nav link "Borvia"', async ({ page }) => { await page.goto('/us/invoice-generator/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); }); test('us_invoice_generator: nav link "Personal"', async ({ page }) => { await page.goto('/us/invoice-generator/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('us_invoice_generator: nav link "Business"', async ({ page }) => { await page.goto('/us/invoice-generator/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('us_invoice_generator: nav link "Platform"', async ({ page }) => { await page.goto('/us/invoice-generator/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - au_blog_gyrostream_borvia_api_case_study', () => { test('au_blog_gyrostream_borvia_api_case_study: title matches GT', async ({ page }) => { await page.goto('/au/blog/gyrostream-borvia-api-case-study/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('riffcaster is democratising music royalt'); }); test('au_blog_gyrostream_borvia_api_case_study: h1 "How RIFFcaster is democratisin"', async ({ page }) => { await page.goto('/au/blog/gyrostream-borvia-api-case-study/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How RIFFcaster is democratising music royalties payouts for artists all over the world with Borvia B' || t.startsWith('How RIFFcaster is democratising music royalties payouts for artists all over the world with Borvia B'))).toBeTruthy(); }); test('au_blog_gyrostream_borvia_api_case_study: h2 "RIFFcaster - amplifying indepe"', async ({ page }) => { await page.goto('/au/blog/gyrostream-borvia-api-case-study/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'RIFFcaster - amplifying independent artists across the world' || t.startsWith('RIFFcaster - amplifying independent artists across the world'))).toBeTruthy(); }); test('au_blog_gyrostream_borvia_api_case_study: h2 "Local know-how with global rea"', async ({ page }) => { await page.goto('/au/blog/gyrostream-borvia-api-case-study/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Local know-how with global reach - international digital music distribution' || t.startsWith('Local know-how with global reach - international digital music distribution'))).toBeTruthy(); }); test('au_blog_gyrostream_borvia_api_case_study: h2 "Borvia Business solutions"', async ({ page }) => { await page.goto('/au/blog/gyrostream-borvia-api-case-study/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia Business solutions' || t.startsWith('Borvia Business solutions'))).toBeTruthy(); }); test('au_blog_gyrostream_borvia_api_case_study: nav link "Blog"', async ({ page }) => { await page.goto('/au/blog/gyrostream-borvia-api-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 === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); test('au_blog_gyrostream_borvia_api_case_study: nav link "Comparison"', async ({ page }) => { await page.goto('/au/blog/gyrostream-borvia-api-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 === 'Comparison' || t.startsWith('Comparison')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('transferwise-news-comparison')), 'href fragment present').toBeTruthy(); }); test('au_blog_gyrostream_borvia_api_case_study: nav link "Corporate"', async ({ page }) => { await page.goto('/au/blog/gyrostream-borvia-api-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 === 'Corporate' || t.startsWith('Corporate')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('transferwise-news-corporate')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - gb_about_borvia_reviews', () => { test('gb_about_borvia_reviews: title matches GT', async ({ page }) => { await page.goto('/gb/about/borvia-reviews/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('borvia reviews'); }); test('gb_about_borvia_reviews: h2 "Money that knows no borders"', async ({ page }) => { await page.goto('/gb/about/borvia-reviews/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Money that knows no borders' || t.startsWith('Money that knows no borders'))).toBeTruthy(); }); test('gb_about_borvia_reviews: h2 "Is Borvia safe?"', async ({ page }) => { await page.goto('/gb/about/borvia-reviews/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Is Borvia safe?' || t.startsWith('Is Borvia safe?'))).toBeTruthy(); }); test('gb_about_borvia_reviews: h2 "Borvia customer reviews."', async ({ page }) => { await page.goto('/gb/about/borvia-reviews/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia customer reviews.' || t.startsWith('Borvia customer reviews.'))).toBeTruthy(); }); test('gb_about_borvia_reviews: nav link "Borvia"', async ({ page }) => { await page.goto('/gb/about/borvia-reviews/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); }); test('gb_about_borvia_reviews: nav link "Personal"', async ({ page }) => { await page.goto('/gb/about/borvia-reviews/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('gb_about_borvia_reviews: nav link "Business"', async ({ page }) => { await page.goto('/gb/about/borvia-reviews/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('gb_about_borvia_reviews: nav link "Platform"', async ({ page }) => { await page.goto('/gb/about/borvia-reviews/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - gb_blog_case_study_pangolia', () => { test('gb_blog_case_study_pangolia: title matches GT', async ({ page }) => { await page.goto('/gb/blog/case-study-pangolia/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('pawnest case study'); }); test('gb_blog_case_study_pangolia: h1 "How Pawnest Saved \$70k a Year "', async ({ page }) => { await page.goto('/gb/blog/case-study-pangolia/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How Pawnest Saved \$70k a Year on International Payments' || t.startsWith('How Pawnest Saved \$70k a Year on International Payments'))).toBeTruthy(); }); test('gb_blog_case_study_pangolia: h2 "From Many Ventures to Pet Care"', async ({ page }) => { await page.goto('/gb/blog/case-study-pangolia/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'From Many Ventures to Pet Care' || t.startsWith('From Many Ventures to Pet Care'))).toBeTruthy(); }); test('gb_blog_case_study_pangolia: h2 "The Smart Choice for Global Pa"', async ({ page }) => { await page.goto('/gb/blog/case-study-pangolia/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Smart Choice for Global Payments' || t.startsWith('The Smart Choice for Global Payments'))).toBeTruthy(); }); test('gb_blog_case_study_pangolia: h2 "Sourcing, Shipping, and Servin"', async ({ page }) => { await page.goto('/gb/blog/case-study-pangolia/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sourcing, Shipping, and Serving the Pet Market' || t.startsWith('Sourcing, Shipping, and Serving the Pet Market'))).toBeTruthy(); }); test('gb_blog_case_study_pangolia: nav link "Blog"', async ({ page }) => { await page.goto('/gb/blog/case-study-pangolia/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); test('gb_blog_case_study_pangolia: nav link "Comparison"', async ({ page }) => { await page.goto('/gb/blog/case-study-pangolia/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Comparison' || t.startsWith('Comparison')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('transferwise-news-comparison')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - gb_blog_creating_a_buzz_in_the_honey_industry_with_borvia_business', () => { test('gb_blog_creating_a_buzz_in_the_honey_industry_with_borvia_business: title matches GT', async ({ page }) => { await page.goto('/gb/blog/creating-a-buzz-in-the-honey-industry-with-borvia-business/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('making a buzz in the honey trade with bo'); }); test('gb_blog_creating_a_buzz_in_the_honey_industry_with_borvia_business: h1 "Creating a Buzz in the Honey I"', async ({ page }) => { await page.goto('/gb/blog/creating-a-buzz-in-the-honey-industry-with-borvia-business/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Creating a Buzz in the Honey Industry with Borvia Business' || t.startsWith('Creating a Buzz in the Honey Industry with Borvia Business'))).toBeTruthy(); }); test('gb_blog_creating_a_buzz_in_the_honey_industry_with_borvia_business: h2 "Making a beeline for taste and"', async ({ page }) => { await page.goto('/gb/blog/creating-a-buzz-in-the-honey-industry-with-borvia-business/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Making a beeline for taste and quality' || t.startsWith('Making a beeline for taste and quality'))).toBeTruthy(); }); test('gb_blog_creating_a_buzz_in_the_honey_industry_with_borvia_business: h2 "Streamlining international tra"', async ({ page }) => { await page.goto('/gb/blog/creating-a-buzz-in-the-honey-industry-with-borvia-business/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamlining international transactions with Borvia Business' || t.startsWith('Streamlining international transactions with Borvia Business'))).toBeTruthy(); }); test('gb_blog_creating_a_buzz_in_the_honey_industry_with_borvia_business: h2 "Prize-Winning Products"', async ({ page }) => { await page.goto('/gb/blog/creating-a-buzz-in-the-honey-industry-with-borvia-business/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Prize-Winning Products' || t.startsWith('Prize-Winning Products'))).toBeTruthy(); }); test('gb_blog_creating_a_buzz_in_the_honey_industry_with_borvia_business: nav link "Blog"', async ({ page }) => { await page.goto('/gb/blog/creating-a-buzz-in-the-honey-industry-with-borvia-business/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); test('gb_blog_creating_a_buzz_in_the_honey_industry_with_borvia_business: nav link "Comparison"', async ({ page }) => { await page.goto('/gb/blog/creating-a-buzz-in-the-honey-industry-with-borvia-business/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Comparison' || t.startsWith('Comparison')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('transferwise-news-comparison')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - gb_blog_pay_contractors_talentdesk_case_study', () => { test('gb_blog_pay_contractors_talentdesk_case_study: title matches GT', async ({ page }) => { await page.goto('/gb/blog/pay-contractors-talentdesk-case-study/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how crewdesk uses borvia business to pay'); }); test('gb_blog_pay_contractors_talentdesk_case_study: h1 "How Crewdesk Uses Borvia Busin"', async ({ page }) => { await page.goto('/gb/blog/pay-contractors-talentdesk-case-study/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How Crewdesk Uses Borvia Business to Pay Contractors Abroad - A Case Study' || t.startsWith('How Crewdesk Uses Borvia Business to Pay Contractors Abroad - A Case Study'))).toBeTruthy(); }); test('gb_blog_pay_contractors_talentdesk_case_study: h2 "The Crewdesk Story"', async ({ page }) => { await page.goto('/gb/blog/pay-contractors-talentdesk-case-study/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The Crewdesk Story' || t.startsWith('The Crewdesk Story'))).toBeTruthy(); }); test('gb_blog_pay_contractors_talentdesk_case_study: h2 "Paying distant contractors"', async ({ page }) => { await page.goto('/gb/blog/pay-contractors-talentdesk-case-study/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Paying distant contractors' || t.startsWith('Paying distant contractors'))).toBeTruthy(); }); test('gb_blog_pay_contractors_talentdesk_case_study: h2 "Money across borders"', async ({ page }) => { await page.goto('/gb/blog/pay-contractors-talentdesk-case-study/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Money across borders' || t.startsWith('Money across borders'))).toBeTruthy(); }); test('gb_blog_pay_contractors_talentdesk_case_study: nav link "Why am I seeing this?"', async ({ page }) => { await page.goto('/gb/blog/pay-contractors-talentdesk-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 === 'Why am I seeing this?' || t.startsWith('Why am I seeing this?')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); test('gb_blog_pay_contractors_talentdesk_case_study: nav link "Comparison"', async ({ page }) => { await page.goto('/gb/blog/pay-contractors-talentdesk-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 === 'Comparison' || t.startsWith('Comparison')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('transferwise-news-comparison')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - gb_blog_borvia_platform_bank_mandiri_case_study', () => { test('gb_blog_borvia_platform_bank_mandiri_case_study: title matches GT', async ({ page }) => { await page.goto('/gb/blog/borvia-platform-bank-mandiri-case-study/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('borvia platform and bank sentara case st'); }); test('gb_blog_borvia_platform_bank_mandiri_case_study: h1 "Borvia Platform and Bank Senta"', async ({ page }) => { await page.goto('/gb/blog/borvia-platform-bank-mandiri-case-study/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia Platform and Bank Sentara: powering fast, affordable payments for customers in Indonesia' || t.startsWith('Borvia Platform and Bank Sentara: powering fast, affordable payments for customers in Indonesia'))).toBeTruthy(); }); test('gb_blog_borvia_platform_bank_mandiri_case_study: h2 "Money without limits"', async ({ page }) => { await page.goto('/gb/blog/borvia-platform-bank-mandiri-case-study/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Money without limits' || t.startsWith('Money without limits'))).toBeTruthy(); }); test('gb_blog_borvia_platform_bank_mandiri_case_study: h3 "Problem: Sending money abroad "', async ({ page }) => { await page.goto('/gb/blog/borvia-platform-bank-mandiri-case-study/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Problem: Sending money abroad was costly and inefficient' || t.startsWith('Problem: Sending money abroad was costly and inefficient'))).toBeTruthy(); }); test('gb_blog_borvia_platform_bank_mandiri_case_study: h3 "Solution: Harnessing APIs to t"', async ({ page }) => { await page.goto('/gb/blog/borvia-platform-bank-mandiri-case-study/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Solution: Harnessing APIs to transform cross-border payments' || t.startsWith('Solution: Harnessing APIs to transform cross-border payments'))).toBeTruthy(); }); test('gb_blog_borvia_platform_bank_mandiri_case_study: nav link "Blog"', async ({ page }) => { await page.goto('/gb/blog/borvia-platform-bank-mandiri-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 === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); test('gb_blog_borvia_platform_bank_mandiri_case_study: nav link "Comparison"', async ({ page }) => { await page.goto('/gb/blog/borvia-platform-bank-mandiri-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 === 'Comparison' || t.startsWith('Comparison')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('transferwise-news-comparison')), 'href fragment present').toBeTruthy(); }); test('gb_blog_borvia_platform_bank_mandiri_case_study: nav link "Corporate"', async ({ page }) => { await page.goto('/gb/blog/borvia-platform-bank-mandiri-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 === 'Corporate' || t.startsWith('Corporate')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('transferwise-news-corporate')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - gb_comparison_singapore_price_comparison_research_2026', () => { test('gb_comparison_singapore_price_comparison_research_2026: title matches GT', async ({ page }) => { await page.goto('/gb/comparison/singapore-price-comparison-research-2026/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('singapore price comparison research 2026'); }); test('gb_comparison_singapore_price_comparison_research_2026: h1 "Singapore Cross-Border Pricing"', async ({ page }) => { await page.goto('/gb/comparison/singapore-price-comparison-research-2026/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Singapore Cross-Border Pricing Research 2026' || t.startsWith('Singapore Cross-Border Pricing Research 2026'))).toBeTruthy(); }); test('gb_comparison_singapore_price_comparison_research_2026: h2 "Our research approach"', async ({ page }) => { await page.goto('/gb/comparison/singapore-price-comparison-research-2026/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Our research approach' || t.startsWith('Our research approach'))).toBeTruthy(); }); test('gb_comparison_singapore_price_comparison_research_2026: h2 "Company and team"', async ({ page }) => { await page.goto('/gb/comparison/singapore-price-comparison-research-2026/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Company and team' || t.startsWith('Company and team'))).toBeTruthy(); }); test('gb_comparison_singapore_price_comparison_research_2026: h2 "Borvia Products"', async ({ page }) => { await page.goto('/gb/comparison/singapore-price-comparison-research-2026/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia Products' || t.startsWith('Borvia Products'))).toBeTruthy(); }); test('gb_comparison_singapore_price_comparison_research_2026: nav link "Borvia"', async ({ page }) => { await page.goto('/gb/comparison/singapore-price-comparison-research-2026/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); }); test('gb_comparison_singapore_price_comparison_research_2026: nav link "Personal"', async ({ page }) => { await page.goto('/gb/comparison/singapore-price-comparison-research-2026/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('gb_comparison_singapore_price_comparison_research_2026: nav link "Business"', async ({ page }) => { await page.goto('/gb/comparison/singapore-price-comparison-research-2026/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('gb_comparison_singapore_price_comparison_research_2026: nav link "Why am I seeing this?"', async ({ page }) => { await page.goto('/gb/comparison/singapore-price-comparison-research-2026/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Why am I seeing this?' || t.startsWith('Why am I seeing this?')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - gb_legal_privacy_notices', () => { test('gb_legal_privacy_notices: title matches GT', async ({ page }) => { await page.goto('/gb/legal/privacy-notices/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('privacy notices'); }); test('gb_legal_privacy_notices: h2 "Borvia Privacy Notices"', async ({ page }) => { await page.goto('/gb/legal/privacy-notices/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia Privacy Notices' || t.startsWith('Borvia Privacy Notices'))).toBeTruthy(); }); test('gb_legal_privacy_notices: h2 "Company and team"', async ({ page }) => { await page.goto('/gb/legal/privacy-notices/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Company and team' || t.startsWith('Company and team'))).toBeTruthy(); }); test('gb_legal_privacy_notices: h2 "Borvia Products"', async ({ page }) => { await page.goto('/gb/legal/privacy-notices/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia Products' || t.startsWith('Borvia Products'))).toBeTruthy(); }); test('gb_legal_privacy_notices: h2 "Resources"', async ({ page }) => { await page.goto('/gb/legal/privacy-notices/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('gb_legal_privacy_notices: nav link "Borvia"', async ({ page }) => { await page.goto('/gb/legal/privacy-notices/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); }); test('gb_legal_privacy_notices: nav link "Personal"', async ({ page }) => { await page.goto('/gb/legal/privacy-notices/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('gb_legal_privacy_notices: nav link "Business"', async ({ page }) => { await page.goto('/gb/legal/privacy-notices/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('gb_legal_privacy_notices: nav link "Why am I seeing this?"', async ({ page }) => { await page.goto('/gb/legal/privacy-notices/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Why am I seeing this?' || t.startsWith('Why am I seeing this?')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sg_account_sgd_account', () => { test('sg_account_sgd_account: title matches GT', async ({ page }) => { await page.goto('/sg/account/sgd-account/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('singapore dollar account details & a sin'); }); test('sg_account_sgd_account: h1 "Singapore dollar bank account "', async ({ page }) => { await page.goto('/sg/account/sgd-account/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Singapore dollar bank account alternatives in Singapore' || t.startsWith('Singapore dollar bank account alternatives in Singapore'))).toBeTruthy(); }); test('sg_account_sgd_account: h2 "Singapore dollar bank account "', async ({ page }) => { await page.goto('/sg/account/sgd-account/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Singapore dollar bank account vs a Borvia account' || t.startsWith('Singapore dollar bank account vs a Borvia account'))).toBeTruthy(); }); test('sg_account_sgd_account: h2 "What we offer you in Singapore"', async ({ page }) => { await page.goto('/sg/account/sgd-account/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'What we offer you in Singapore' || t.startsWith('What we offer you in Singapore'))).toBeTruthy(); }); test('sg_account_sgd_account: h2 "How to open a Singapore dollar"', async ({ page }) => { await page.goto('/sg/account/sgd-account/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to open a Singapore dollar account alternative with Borvia' || t.startsWith('How to open a Singapore dollar account alternative with Borvia'))).toBeTruthy(); }); test('sg_account_sgd_account: header link "BBorvia"', async ({ page }) => { await page.goto('/sg/account/sgd-account/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BBorvia' || t.startsWith('BBorvia')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('sg')), 'href fragment present').toBeTruthy(); }); test('sg_account_sgd_account: nav link "Personal"', async ({ page }) => { await page.goto('/sg/account/sgd-account/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('sg')), 'href fragment present').toBeTruthy(); }); test('sg_account_sgd_account: nav link "Business"', async ({ page }) => { await page.goto('/sg/account/sgd-account/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('sg_account_sgd_account: nav link "Platform"', async ({ page }) => { await page.goto('/sg/account/sgd-account/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sg_blog_anyip_proxy_network_case_study', () => { test('sg_blog_anyip_proxy_network_case_study: title matches GT', async ({ page }) => { await page.goto('/sg/blog/anyip-proxy-network-case-study/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('50% faster payments'); }); test('sg_blog_anyip_proxy_network_case_study: h1 "From Growing Pains to Global G"', async ({ page }) => { await page.goto('/sg/blog/anyip-proxy-network-case-study/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'From Growing Pains to Global Gains: Proxora’s Transformation with Borvia Business' || t.startsWith('From Growing Pains to Global Gains: Proxora’s Transformation with Borvia Business'))).toBeTruthy(); }); test('sg_blog_anyip_proxy_network_case_study: h2 "About Proxora"', async ({ page }) => { await page.goto('/sg/blog/anyip-proxy-network-case-study/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About Proxora' || t.startsWith('About Proxora'))).toBeTruthy(); }); test('sg_blog_anyip_proxy_network_case_study: h2 "When rapid growth outpaces you"', async ({ page }) => { await page.goto('/sg/blog/anyip-proxy-network-case-study/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'When rapid growth outpaces your finance stack' || t.startsWith('When rapid growth outpaces your finance stack'))).toBeTruthy(); }); test('sg_blog_anyip_proxy_network_case_study: h2 "From scripts to scale: how Bor"', async ({ page }) => { await page.goto('/sg/blog/anyip-proxy-network-case-study/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'From scripts to scale: how Borvia Business reshaped Proxora\'s operations' || t.startsWith('From scripts to scale: how Borvia Business reshaped Proxora\'s operations'))).toBeTruthy(); }); test('sg_blog_anyip_proxy_network_case_study: header link "Borvia"', async ({ page }) => { await page.goto('/sg/blog/anyip-proxy-network-case-study/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('sg')), 'href fragment present').toBeTruthy(); }); test('sg_blog_anyip_proxy_network_case_study: header link "Join now"', async ({ page }) => { await page.goto('/sg/blog/anyip-proxy-network-case-study/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Join now' || t.startsWith('Join now')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('sg_blog_anyip_proxy_network_case_study: nav link "Blog"', async ({ page }) => { await page.goto('/sg/blog/anyip-proxy-network-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 === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); test('sg_blog_anyip_proxy_network_case_study: nav link "Comparison"', async ({ page }) => { await page.goto('/sg/blog/anyip-proxy-network-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 === 'Comparison' || t.startsWith('Comparison')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('transferwise-news-comparison')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sg_blog_axpara_borderless_hiring_case_study', () => { test('sg_blog_axpara_borderless_hiring_case_study: title matches GT', async ({ page }) => { await page.goto('/sg/blog/axpara-borderless-hiring-case-study/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how renvale saved \$50k+ and scaled globa'); }); test('sg_blog_axpara_borderless_hiring_case_study: h1 "How Renvale Saved \$50K+ with B"', async ({ page }) => { await page.goto('/sg/blog/axpara-borderless-hiring-case-study/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How Renvale Saved \$50K+ with Borvia Business and Grew Across Borders While Staying Fully Remote-Firs' || t.startsWith('How Renvale Saved \$50K+ with Borvia Business and Grew Across Borders While Staying Fully Remote-Firs'))).toBeTruthy(); }); test('sg_blog_axpara_borderless_hiring_case_study: h2 "A remote-first business growin"', async ({ page }) => { await page.goto('/sg/blog/axpara-borderless-hiring-case-study/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'A remote-first business growing well beyond borders' || t.startsWith('A remote-first business growing well beyond borders'))).toBeTruthy(); }); test('sg_blog_axpara_borderless_hiring_case_study: h2 "Planning for growth and the un"', async ({ page }) => { await page.goto('/sg/blog/axpara-borderless-hiring-case-study/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Planning for growth and the unknown' || t.startsWith('Planning for growth and the unknown'))).toBeTruthy(); }); test('sg_blog_axpara_borderless_hiring_case_study: h2 "Banking without borders"', async ({ page }) => { await page.goto('/sg/blog/axpara-borderless-hiring-case-study/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Banking without borders' || t.startsWith('Banking without borders'))).toBeTruthy(); }); test('sg_blog_axpara_borderless_hiring_case_study: header link "Borvia"', async ({ page }) => { await page.goto('/sg/blog/axpara-borderless-hiring-case-study/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('sg')), 'href fragment present').toBeTruthy(); }); test('sg_blog_axpara_borderless_hiring_case_study: header link "Join now"', async ({ page }) => { await page.goto('/sg/blog/axpara-borderless-hiring-case-study/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Join now' || t.startsWith('Join now')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('sg_blog_axpara_borderless_hiring_case_study: nav link "Blog"', async ({ page }) => { await page.goto('/sg/blog/axpara-borderless-hiring-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 === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); test('sg_blog_axpara_borderless_hiring_case_study: nav link "Comparison"', async ({ page }) => { await page.goto('/sg/blog/axpara-borderless-hiring-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 === 'Comparison' || t.startsWith('Comparison')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('transferwise-news-comparison')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sg_blog_greydient_lab_design_consultancy_case_study', () => { test('sg_blog_greydient_lab_design_consultancy_case_study: title matches GT', async ({ page }) => { await page.goto('/sg/blog/greydient-lab-design-consultancy-case-study/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how chromora lab broke into global marke'); }); test('sg_blog_greydient_lab_design_consultancy_case_study: h1 "Designed to Go Global: How a S"', async ({ page }) => { await page.goto('/sg/blog/greydient-lab-design-consultancy-case-study/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Designed to Go Global: How a Singapore Creative Studio Scaled Worldwide with Borvia Business' || t.startsWith('Designed to Go Global: How a Singapore Creative Studio Scaled Worldwide with Borvia Business'))).toBeTruthy(); }); test('sg_blog_greydient_lab_design_consultancy_case_study: h2 "About Chromora Lab"', async ({ page }) => { await page.goto('/sg/blog/greydient-lab-design-consultancy-case-study/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About Chromora Lab' || t.startsWith('About Chromora Lab'))).toBeTruthy(); }); test('sg_blog_greydient_lab_design_consultancy_case_study: h2 "The challenges of moving money"', async ({ page }) => { await page.goto('/sg/blog/greydient-lab-design-consultancy-case-study/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The challenges of moving money across borders within Asia' || t.startsWith('The challenges of moving money across borders within Asia'))).toBeTruthy(); }); test('sg_blog_greydient_lab_design_consultancy_case_study: h2 "Breaking past banking roadbloc"', async ({ page }) => { await page.goto('/sg/blog/greydient-lab-design-consultancy-case-study/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Breaking past banking roadblocks with Borvia Business' || t.startsWith('Breaking past banking roadblocks with Borvia Business'))).toBeTruthy(); }); test('sg_blog_greydient_lab_design_consultancy_case_study: header link "Borvia"', async ({ page }) => { await page.goto('/sg/blog/greydient-lab-design-consultancy-case-study/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('sg')), 'href fragment present').toBeTruthy(); }); test('sg_blog_greydient_lab_design_consultancy_case_study: nav link "Blog"', async ({ page }) => { await page.goto('/sg/blog/greydient-lab-design-consultancy-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 === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); test('sg_blog_greydient_lab_design_consultancy_case_study: nav link "Comparison"', async ({ page }) => { await page.goto('/sg/blog/greydient-lab-design-consultancy-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 === 'Comparison' || t.startsWith('Comparison')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('transferwise-news-comparison')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sg_business_accounting_software', () => { test('sg_business_accounting_software: title matches GT', async ({ page }) => { await page.goto('/sg/business/accounting-software/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('borvia business app marketplace. sync bo'); }); test('sg_business_accounting_software: h1 "Streamline your operations wit"', async ({ page }) => { await page.goto('/sg/business/accounting-software/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Streamline your operations with the App Marketplace' || t.startsWith('Streamline your operations with the App Marketplace'))).toBeTruthy(); }); test('sg_business_accounting_software: h2 "Send every balance transaction"', async ({ page }) => { await page.goto('/sg/business/accounting-software/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Send every balance transaction to your accounting software' || t.startsWith('Send every balance transaction to your accounting software'))).toBeTruthy(); }); test('sg_business_accounting_software: h2 "Ready to list your tool on the"', async ({ page }) => { await page.goto('/sg/business/accounting-software/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Ready to list your tool on the App Marketplace?' || t.startsWith('Ready to list your tool on the App Marketplace?'))).toBeTruthy(); }); test('sg_business_accounting_software: h2 "Company and team"', async ({ page }) => { await page.goto('/sg/business/accounting-software/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Company and team' || t.startsWith('Company and team'))).toBeTruthy(); }); test('sg_business_accounting_software: nav link "Borvia"', async ({ page }) => { await page.goto('/sg/business/accounting-software/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); }); test('sg_business_accounting_software: nav link "Personal"', async ({ page }) => { await page.goto('/sg/business/accounting-software/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('sg_business_accounting_software: nav link "Business"', async ({ page }) => { await page.goto('/sg/business/accounting-software/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('sg_business_accounting_software: nav link "Platform"', async ({ page }) => { await page.goto('/sg/business/accounting-software/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sg_business_api', () => { test('sg_business_api: title matches GT', async ({ page }) => { await page.goto('/sg/business/api/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('borvia api'); }); test('sg_business_api: h1 "Introducing the Borvia open AP"', async ({ page }) => { await page.goto('/sg/business/api/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Introducing the Borvia open API' || t.startsWith('Introducing the Borvia open API'))).toBeTruthy(); }); test('sg_business_api: h2 "An API built for businesses of"', async ({ page }) => { await page.goto('/sg/business/api/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'An API built for businesses of every size.' || t.startsWith('An API built for businesses of every size.'))).toBeTruthy(); }); test('sg_business_api: h2 "The possibilities are limitles"', async ({ page }) => { await page.goto('/sg/business/api/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'The possibilities are limitless.' || t.startsWith('The possibilities are limitless.'))).toBeTruthy(); }); test('sg_business_api: h2 "Getting started is simple."', async ({ page }) => { await page.goto('/sg/business/api/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Getting started is simple.' || t.startsWith('Getting started is simple.'))).toBeTruthy(); }); test('sg_business_api: nav link "Borvia"', async ({ page }) => { await page.goto('/sg/business/api/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); }); test('sg_business_api: nav link "Personal"', async ({ page }) => { await page.goto('/sg/business/api/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('sg_business_api: nav link "Business"', async ({ page }) => { await page.goto('/sg/business/api/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('sg_business_api: nav link "Platform"', async ({ page }) => { await page.goto('/sg/business/api/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sg_business_card', () => { test('sg_business_card: title matches GT', async ({ page }) => { await page.goto('/sg/business/card/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('international business debit card'); }); test('sg_business_card: h1 "Spend in any currency with Bor"', async ({ page }) => { await page.goto('/sg/business/card/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Spend in any currency with Borvia Business.' || t.startsWith('Spend in any currency with Borvia Business.'))).toBeTruthy(); }); test('sg_business_card: h2 "Pay at the true mid-market rat"', async ({ page }) => { await page.goto('/sg/business/card/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pay at the true mid-market rate.' || t.startsWith('Pay at the true mid-market rate.'))).toBeTruthy(); }); test('sg_business_card: h2 "Keep tabs on team spending"', async ({ page }) => { await page.goto('/sg/business/card/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Keep tabs on team spending' || t.startsWith('Keep tabs on team spending'))).toBeTruthy(); }); test('sg_business_card: h2 "Pay safely with virtual cards"', async ({ page }) => { await page.goto('/sg/business/card/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Pay safely with virtual cards' || t.startsWith('Pay safely with virtual cards'))).toBeTruthy(); }); test('sg_business_card: nav link "Borvia"', async ({ page }) => { await page.goto('/sg/business/card/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); }); test('sg_business_card: nav link "Personal"', async ({ page }) => { await page.goto('/sg/business/card/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('sg_business_card: nav link "Business"', async ({ page }) => { await page.goto('/sg/business/card/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('sg_business_card: nav link "Platform"', async ({ page }) => { await page.goto('/sg/business/card/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sg_business_interest', () => { test('sg_business_interest: title matches GT', async ({ page }) => { await page.goto('/sg/business/interest/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('meet borvia interest.'); }); test('sg_business_interest: h1 "Grow your business while your "', async ({ page }) => { await page.goto('/sg/business/interest/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Grow your business while your money earns up to 3.45%' || t.startsWith('Grow your business while your money earns up to 3.45%'))).toBeTruthy(); }); test('sg_business_interest: h2 "rates"', async ({ page }) => { await page.goto('/sg/business/interest/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'rates' || t.startsWith('rates'))).toBeTruthy(); }); test('sg_business_interest: h2 "Keeping your money secure"', async ({ page }) => { await page.goto('/sg/business/interest/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Keeping your money secure' || t.startsWith('Keeping your money secure'))).toBeTruthy(); }); test('sg_business_interest: h2 "Daily returns, use them now"', async ({ page }) => { await page.goto('/sg/business/interest/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Daily returns, use them now' || t.startsWith('Daily returns, use them now'))).toBeTruthy(); }); test('sg_business_interest: nav link "Borvia"', async ({ page }) => { await page.goto('/sg/business/interest/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); }); test('sg_business_interest: nav link "Personal"', async ({ page }) => { await page.goto('/sg/business/interest/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('sg_business_interest: nav link "Business"', async ({ page }) => { await page.goto('/sg/business/interest/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('sg_business_interest: nav link "Platform"', async ({ page }) => { await page.goto('/sg/business/interest/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sg_business_invoices', () => { test('sg_business_invoices: title matches GT', async ({ page }) => { await page.goto('/sg/business/invoices/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('cheaper, faster international payments w'); }); test('sg_business_invoices: h1 "Settle invoices abroad without"', async ({ page }) => { await page.goto('/sg/business/invoices/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Settle invoices abroad without the painful fees.' || t.startsWith('Settle invoices abroad without the painful fees.'))).toBeTruthy(); }); test('sg_business_invoices: h2 "Settle bills and vendors for l"', async ({ page }) => { await page.goto('/sg/business/invoices/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Settle bills and vendors for less.' || t.startsWith('Settle bills and vendors for less.'))).toBeTruthy(); }); test('sg_business_invoices: h2 "Clear one or 1,000 invoices in"', async ({ page }) => { await page.goto('/sg/business/invoices/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Clear one or 1,000 invoices in record time.' || t.startsWith('Clear one or 1,000 invoices in record time.'))).toBeTruthy(); }); test('sg_business_invoices: h2 "Lean on your team for extra he"', async ({ page }) => { await page.goto('/sg/business/invoices/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Lean on your team for extra help.' || t.startsWith('Lean on your team for extra help.'))).toBeTruthy(); }); test('sg_business_invoices: nav link "Borvia"', async ({ page }) => { await page.goto('/sg/business/invoices/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); }); test('sg_business_invoices: nav link "Personal"', async ({ page }) => { await page.goto('/sg/business/invoices/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('sg_business_invoices: nav link "Business"', async ({ page }) => { await page.goto('/sg/business/invoices/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('sg_business_invoices: nav link "Platform"', async ({ page }) => { await page.goto('/sg/business/invoices/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sg_business_manage_team', () => { test('sg_business_manage_team: title matches GT', async ({ page }) => { await page.goto('/sg/business/manage-team/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('manage your team finances with borvia bu'); }); test('sg_business_manage_team: h1 "take the weight off team finan"', async ({ page }) => { await page.goto('/sg/business/manage-team/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'take the weight off team finances' || t.startsWith('take the weight off team finances'))).toBeTruthy(); }); test('sg_business_manage_team: h2 "Rein in spending with limits o"', async ({ page }) => { await page.goto('/sg/business/manage-team/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Rein in spending with limits on every team card' || t.startsWith('Rein in spending with limits on every team card'))).toBeTruthy(); }); test('sg_business_manage_team: h2 "Build an approval flow that fi"', async ({ page }) => { await page.goto('/sg/business/manage-team/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Build an approval flow that fits you' || t.startsWith('Build an approval flow that fits you'))).toBeTruthy(); }); test('sg_business_manage_team: h2 "Tailor access for each member "', async ({ page }) => { await page.goto('/sg/business/manage-team/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Tailor access for each member of your team' || t.startsWith('Tailor access for each member of your team'))).toBeTruthy(); }); test('sg_business_manage_team: nav link "Borvia"', async ({ page }) => { await page.goto('/sg/business/manage-team/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); }); test('sg_business_manage_team: nav link "Personal"', async ({ page }) => { await page.goto('/sg/business/manage-team/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('sg_business_manage_team: nav link "Business"', async ({ page }) => { await page.goto('/sg/business/manage-team/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('sg_business_manage_team: nav link "Platform"', async ({ page }) => { await page.goto('/sg/business/manage-team/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sg_business_payouts', () => { test('sg_business_payouts: title matches GT', async ({ page }) => { await page.goto('/sg/business/payouts/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('payouts for businesses'); }); test('sg_business_payouts: h1 "Global payouts, built for grow"', async ({ page }) => { await page.goto('/sg/business/payouts/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Global payouts, built for growing teams' || t.startsWith('Global payouts, built for growing teams'))).toBeTruthy(); }); test('sg_business_payouts: h2 "Send many payouts faster, and "', async ({ page }) => { await page.goto('/sg/business/payouts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Send many payouts faster, and pay far less' || t.startsWith('Send many payouts faster, and pay far less'))).toBeTruthy(); }); test('sg_business_payouts: h2 "Dependable payment processing"', async ({ page }) => { await page.goto('/sg/business/payouts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Dependable payment processing' || t.startsWith('Dependable payment processing'))).toBeTruthy(); }); test('sg_business_payouts: h2 "Automated payments via our API"', async ({ page }) => { await page.goto('/sg/business/payouts/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Automated payments via our API' || t.startsWith('Automated payments via our API'))).toBeTruthy(); }); test('sg_business_payouts: nav link "Borvia"', async ({ page }) => { await page.goto('/sg/business/payouts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); }); test('sg_business_payouts: nav link "Personal"', async ({ page }) => { await page.goto('/sg/business/payouts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('sg_business_payouts: nav link "Business"', async ({ page }) => { await page.goto('/sg/business/payouts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('sg_business_payouts: nav link "Platform"', async ({ page }) => { await page.goto('/sg/business/payouts/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sg_business_receive_money', () => { test('sg_business_receive_money: title matches GT', async ({ page }) => { await page.goto('/sg/business/receive-money/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('receive international payments'); }); test('sg_business_receive_money: h1 "Receive payments from around t"', async ({ page }) => { await page.goto('/sg/business/receive-money/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Receive payments from around the world with Borvia' || t.startsWith('Receive payments from around the world with Borvia'))).toBeTruthy(); }); test('sg_business_receive_money: h2 "Do business across borders"', async ({ page }) => { await page.goto('/sg/business/receive-money/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Do business across borders' || t.startsWith('Do business across borders'))).toBeTruthy(); }); test('sg_business_receive_money: h2 "Simple ways to accept payments"', async ({ page }) => { await page.goto('/sg/business/receive-money/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Simple ways to accept payments from abroad' || t.startsWith('Simple ways to accept payments from abroad'))).toBeTruthy(); }); test('sg_business_receive_money: h2 "E-commerce, simplified"', async ({ page }) => { await page.goto('/sg/business/receive-money/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'E-commerce, simplified' || t.startsWith('E-commerce, simplified'))).toBeTruthy(); }); test('sg_business_receive_money: nav link "Borvia"', async ({ page }) => { await page.goto('/sg/business/receive-money/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); }); test('sg_business_receive_money: nav link "Personal"', async ({ page }) => { await page.goto('/sg/business/receive-money/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('sg_business_receive_money: nav link "Business"', async ({ page }) => { await page.goto('/sg/business/receive-money/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('sg_business_receive_money: nav link "Platform"', async ({ page }) => { await page.goto('/sg/business/receive-money/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sg_pricing_business', () => { test('sg_pricing_business: title matches GT', async ({ page }) => { await page.goto('/sg/pricing/business/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('borvia business fees & pricing'); }); test('sg_pricing_business: h2 "Get more for your money with B"', async ({ page }) => { await page.goto('/sg/pricing/business/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Get more for your money with Borvia business' || t.startsWith('Get more for your money with Borvia business'))).toBeTruthy(); }); test('sg_pricing_business: h2 "About our company"', async ({ page }) => { await page.goto('/sg/pricing/business/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About our company' || t.startsWith('About our company'))).toBeTruthy(); }); test('sg_pricing_business: h2 "Borvia Products"', async ({ page }) => { await page.goto('/sg/pricing/business/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia Products' || t.startsWith('Borvia Products'))).toBeTruthy(); }); test('sg_pricing_business: h2 "Resources"', async ({ page }) => { await page.goto('/sg/pricing/business/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('sg_pricing_business: nav link "Borvia"', async ({ page }) => { await page.goto('/sg/pricing/business/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); }); test('sg_pricing_business: nav link "Personal"', async ({ page }) => { await page.goto('/sg/pricing/business/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('sg_pricing_business: nav link "Business"', async ({ page }) => { await page.goto('/sg/pricing/business/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('sg_pricing_business: nav link "Platform"', async ({ page }) => { await page.goto('/sg/pricing/business/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - sg_pricing_send_money', () => { test('sg_pricing_send_money: title matches GT', async ({ page }) => { await page.goto('/sg/pricing/send-money/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('borvia fees for sending money'); }); test('sg_pricing_send_money: h1 "Honest fees, zero shocks"', async ({ page }) => { await page.goto('/sg/pricing/send-money/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Honest fees, zero shocks' || t.startsWith('Honest fees, zero shocks'))).toBeTruthy(); }); test('sg_pricing_send_money: h2 "Only ever the mid-market rate"', async ({ page }) => { await page.goto('/sg/pricing/send-money/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Only ever the mid-market rate' || t.startsWith('Only ever the mid-market rate'))).toBeTruthy(); }); test('sg_pricing_send_money: h2 "Company and team"', async ({ page }) => { await page.goto('/sg/pricing/send-money/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Company and team' || t.startsWith('Company and team'))).toBeTruthy(); }); test('sg_pricing_send_money: h2 "Borvia Products"', async ({ page }) => { await page.goto('/sg/pricing/send-money/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia Products' || t.startsWith('Borvia Products'))).toBeTruthy(); }); test('sg_pricing_send_money: nav link "Borvia"', async ({ page }) => { await page.goto('/sg/pricing/send-money/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in nav').toBeTruthy(); }); test('sg_pricing_send_money: nav link "Personal"', async ({ page }) => { await page.goto('/sg/pricing/send-money/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('account')), 'href fragment present').toBeTruthy(); }); test('sg_pricing_send_money: nav link "Business"', async ({ page }) => { await page.goto('/sg/pricing/send-money/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('sg_pricing_send_money: nav link "Platform"', async ({ page }) => { await page.goto('/sg/pricing/send-money/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - us_blog_ach_borvia', () => { test('us_blog_ach_borvia: title matches GT', async ({ page }) => { await page.goto('/us/blog/ach-borvia/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('using ach with borvia'); }); test('us_blog_ach_borvia: h2 "Paying for a Borvia transfer u"', async ({ page }) => { await page.goto('/us/blog/ach-borvia/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Paying for a Borvia transfer using ACH' || t.startsWith('Paying for a Borvia transfer using ACH'))).toBeTruthy(); }); test('us_blog_ach_borvia: h2 "Sending ACH payments with Borv"', async ({ page }) => { await page.goto('/us/blog/ach-borvia/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sending ACH payments with Borvia' || t.startsWith('Sending ACH payments with Borvia'))).toBeTruthy(); }); test('us_blog_ach_borvia: h2 "Receiving ACH payments into yo"', async ({ page }) => { await page.goto('/us/blog/ach-borvia/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Receiving ACH payments into your Borvia Account' || t.startsWith('Receiving ACH payments into your Borvia Account'))).toBeTruthy(); }); test('us_blog_ach_borvia: nav link "Blog"', async ({ page }) => { await page.goto('/us/blog/ach-borvia/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); test('us_blog_ach_borvia: nav link "Comparison"', async ({ page }) => { await page.goto('/us/blog/ach-borvia/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Comparison' || t.startsWith('Comparison')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('transferwise-news-comparison')), 'href fragment present').toBeTruthy(); }); test('us_blog_ach_borvia: nav link "Corporate"', async ({ page }) => { await page.goto('/us/blog/ach-borvia/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Corporate' || t.startsWith('Corporate')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('transferwise-news-corporate')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - us_blog_how_to_receive_international_wire', () => { test('us_blog_how_to_receive_international_wire: title matches GT', async ({ page }) => { await page.goto('/us/blog/how-to-receive-international-wire/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('getting an incoming international wire t'); }); test('us_blog_how_to_receive_international_wire: h1 "Receiving an incoming internat"', async ({ page }) => { await page.goto('/us/blog/how-to-receive-international-wire/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Receiving an incoming international wire transfer: what to know' || t.startsWith('Receiving an incoming international wire transfer: what to know'))).toBeTruthy(); }); test('us_blog_how_to_receive_international_wire: h2 "A quick, low-cost alternative "', async ({ page }) => { await page.goto('/us/blog/how-to-receive-international-wire/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'A quick, low-cost alternative for international wires: meet Borvia' || t.startsWith('A quick, low-cost alternative for international wires: meet Borvia'))).toBeTruthy(); }); test('us_blog_how_to_receive_international_wire: h2 "How to accept an international"', async ({ page }) => { await page.goto('/us/blog/how-to-receive-international-wire/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How to accept an international wire transfer' || t.startsWith('How to accept an international wire transfer'))).toBeTruthy(); }); test('us_blog_how_to_receive_international_wire: h2 "Incoming international wire tr"', async ({ page }) => { await page.goto('/us/blog/how-to-receive-international-wire/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Incoming international wire transfer: Kestrel' || t.startsWith('Incoming international wire transfer: Kestrel'))).toBeTruthy(); }); test('us_blog_how_to_receive_international_wire: header link "Borvia"', async ({ page }) => { await page.goto('/us/blog/how-to-receive-international-wire/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('us')), 'href fragment present').toBeTruthy(); }); test('us_blog_how_to_receive_international_wire: nav link "Blog"', async ({ page }) => { await page.goto('/us/blog/how-to-receive-international-wire/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); test('us_blog_how_to_receive_international_wire: nav link "Comparison"', async ({ page }) => { await page.goto('/us/blog/how-to-receive-international-wire/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Comparison' || t.startsWith('Comparison')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('transferwise-news-comparison')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - us_blog_the_austin_company_putting_global_music_royalties_to_rights_with_borvia', () => { test('us_blog_the_austin_company_putting_global_music_royalties_to_rights_with_borvia: title matches GT', async ({ page }) => { await page.goto('/us/blog/the-austin-company-putting-global-music-royalties-to-rights-with-borvia/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how cadence royalties puts global music '); }); test('us_blog_the_austin_company_putting_global_music_royalties_to_rights_with_borvia: h1 "How One Austin Firm Is Putting"', async ({ page }) => { await page.goto('/us/blog/the-austin-company-putting-global-music-royalties-to-rights-with-borvia/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How One Austin Firm Is Putting Global Music Royalties Right with Borvia' || t.startsWith('How One Austin Firm Is Putting Global Music Royalties Right with Borvia'))).toBeTruthy(); }); test('us_blog_the_austin_company_putting_global_music_royalties_to_rights_with_borvia: h2 "Empowering Artists Everywhere"', async ({ page }) => { await page.goto('/us/blog/the-austin-company-putting-global-music-royalties-to-rights-with-borvia/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Empowering Artists Everywhere' || t.startsWith('Empowering Artists Everywhere'))).toBeTruthy(); }); test('us_blog_the_austin_company_putting_global_music_royalties_to_rights_with_borvia: h2 "Handling cross-border payouts "', async ({ page }) => { await page.goto('/us/blog/the-austin-company-putting-global-music-royalties-to-rights-with-borvia/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Handling cross-border payouts with Borvia Business' || t.startsWith('Handling cross-border payouts with Borvia Business'))).toBeTruthy(); }); test('us_blog_the_austin_company_putting_global_music_royalties_to_rights_with_borvia: h2 "Boosting business balances wit"', async ({ page }) => { await page.goto('/us/blog/the-austin-company-putting-global-music-royalties-to-rights-with-borvia/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Boosting business balances with Borvia' || t.startsWith('Boosting business balances with Borvia'))).toBeTruthy(); }); test('us_blog_the_austin_company_putting_global_music_royalties_to_rights_with_borvia: header link "Borvia"', async ({ page }) => { await page.goto('/us/blog/the-austin-company-putting-global-music-royalties-to-rights-with-borvia/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia' || t.startsWith('Borvia')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('us')), 'href fragment present').toBeTruthy(); }); test('us_blog_the_austin_company_putting_global_music_royalties_to_rights_with_borvia: header link "Join now"', async ({ page }) => { await page.goto('/us/blog/the-austin-company-putting-global-music-royalties-to-rights-with-borvia/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Join now' || t.startsWith('Join now')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('us_blog_the_austin_company_putting_global_music_royalties_to_rights_with_borvia: nav link "Blog"', async ({ page }) => { await page.goto('/us/blog/the-austin-company-putting-global-music-royalties-to-rights-with-borvia/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); test('us_blog_the_austin_company_putting_global_music_royalties_to_rights_with_borvia: nav link "Comparison"', async ({ page }) => { await page.goto('/us/blog/the-austin-company-putting-global-music-royalties-to-rights-with-borvia/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Comparison' || t.startsWith('Comparison')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('transferwise-news-comparison')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - us_compare_disclaimer', () => { test('us_compare_disclaimer: title matches GT', async ({ page }) => { await page.goto('/us/compare/disclaimer/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('comparison disclaimer'); }); test('us_compare_disclaimer: h2 "About the company"', async ({ page }) => { await page.goto('/us/compare/disclaimer/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'About the company' || t.startsWith('About the company'))).toBeTruthy(); }); test('us_compare_disclaimer: h2 "Borvia Products"', async ({ page }) => { await page.goto('/us/compare/disclaimer/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia Products' || t.startsWith('Borvia Products'))).toBeTruthy(); }); test('us_compare_disclaimer: h2 "Resources"', async ({ page }) => { await page.goto('/us/compare/disclaimer/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('us_compare_disclaimer: h2 "Follow us"', async ({ page }) => { await page.goto('/us/compare/disclaimer/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Follow us' || t.startsWith('Follow us'))).toBeTruthy(); }); test('us_compare_disclaimer: header link "BBorvia"', async ({ page }) => { await page.goto('/us/compare/disclaimer/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BBorvia' || t.startsWith('BBorvia')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('us')), 'href fragment present').toBeTruthy(); }); test('us_compare_disclaimer: nav link "Personal"', async ({ page }) => { await page.goto('/us/compare/disclaimer/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Personal' || t.startsWith('Personal')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('us')), 'href fragment present').toBeTruthy(); }); test('us_compare_disclaimer: nav link "Business"', async ({ page }) => { await page.goto('/us/compare/disclaimer/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Business' || t.startsWith('Business')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('business')), 'href fragment present').toBeTruthy(); }); test('us_compare_disclaimer: nav link "Platform"', async ({ page }) => { await page.goto('/us/compare/disclaimer/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('platform')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - gb_blog_category_business_borvia_platform', () => { test('gb_blog_category_business_borvia_platform: title matches GT', async ({ page }) => { await page.goto('/gb/blog/category/business-borvia-platform/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('borvia platform'); }); test('gb_blog_category_business_borvia_platform: h1 "Borvia Platform"', async ({ page }) => { await page.goto('/gb/blog/category/business-borvia-platform/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia Platform' || t.startsWith('Borvia Platform'))).toBeTruthy(); }); test('gb_blog_category_business_borvia_platform: h3 "Cut payment failures at the so"', async ({ page }) => { await page.goto('/gb/blog/category/business-borvia-platform/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Cut payment failures at the source with Borvia Platform\'s Global Recipient Verification' || t.startsWith('Cut payment failures at the source with Borvia Platform\'s Global Recipient Verification'))).toBeTruthy(); }); test('gb_blog_category_business_borvia_platform: h3 "Full speed ahead: 5 cross-bord"', async ({ page }) => { await page.goto('/gb/blog/category/business-borvia-platform/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Full speed ahead: 5 cross-border payment shifts set to define 2026' || t.startsWith('Full speed ahead: 5 cross-border payment shifts set to define 2026'))).toBeTruthy(); }); test('gb_blog_category_business_borvia_platform: h3 "Designing the next era of glob"', async ({ page }) => { await page.goto('/gb/blog/category/business-borvia-platform/'); const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Designing the next era of global money movement' || t.startsWith('Designing the next era of global money movement'))).toBeTruthy(); }); test('gb_blog_category_business_borvia_platform: nav link "Blog"', async ({ page }) => { await page.goto('/gb/blog/category/business-borvia-platform/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy(); }); test('gb_blog_category_business_borvia_platform: nav link "Comparison"', async ({ page }) => { await page.goto('/gb/blog/category/business-borvia-platform/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Comparison' || t.startsWith('Comparison')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('transferwise-news-comparison')), 'href fragment present').toBeTruthy(); }); test('gb_blog_category_business_borvia_platform: nav link "Corporate"', async ({ page }) => { await page.goto('/gb/blog/category/business-borvia-platform/'); const links = page.locator('nav a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Corporate' || t.startsWith('Corporate')), 'link text in nav').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('transferwise-news-corporate')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - help_articles_2235393_how_do_i_make_a_complaint', () => { test('help_articles_2235393_how_do_i_make_a_complaint: title matches GT', async ({ page }) => { await page.goto('/help/articles/2235393/how-do-i-make-a-complaint/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how can i raise a complaint?'); }); test('help_articles_2235393_how_do_i_make_a_complaint: h1 "Regions"', async ({ page }) => { await page.goto('/help/articles/2235393/how-do-i-make-a-complaint/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Regions' || t.startsWith('Regions'))).toBeTruthy(); }); test('help_articles_2235393_how_do_i_make_a_complaint: h2 "1. Do you need help with an is"', async ({ page }) => { await page.goto('/help/articles/2235393/how-do-i-make-a-complaint/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '1. Do you need help with an issue?' || t.startsWith('1. Do you need help with an issue?'))).toBeTruthy(); }); test('help_articles_2235393_how_do_i_make_a_complaint: h2 "2. Was your account deactivate"', async ({ page }) => { await page.goto('/help/articles/2235393/how-do-i-make-a-complaint/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === '2. Was your account deactivated?' || t.startsWith('2. Was your account deactivated?'))).toBeTruthy(); }); test('help_articles_2235393_how_do_i_make_a_complaint: header link "Register"', async ({ page }) => { await page.goto('/help/articles/2235393/how-do-i-make-a-complaint/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Register' || t.startsWith('Register')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('help_articles_2235393_how_do_i_make_a_complaint: footer link "BBorvia"', async ({ page }) => { await page.goto('/help/articles/2235393/how-do-i-make-a-complaint/'); const links = page.locator('footer a, [role="contentinfo"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BBorvia' || t.startsWith('BBorvia')), 'link text in footer').toBeTruthy(); }); }); test.describe('Functional - help_articles_2932693_how_is_borvia_regulated_in_each_country_and_region', () => { test('help_articles_2932693_how_is_borvia_regulated_in_each_country_and_region: title matches GT', async ({ page }) => { await page.goto('/help/articles/2932693/how-is-borvia-regulated-in-each-country-and-region/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how is borvia regulated in each country '); }); test('help_articles_2932693_how_is_borvia_regulated_in_each_country_and_region: h2 "Company and team"', async ({ page }) => { await page.goto('/help/articles/2932693/how-is-borvia-regulated-in-each-country-and-region/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Company and team' || t.startsWith('Company and team'))).toBeTruthy(); }); test('help_articles_2932693_how_is_borvia_regulated_in_each_country_and_region: h2 "Borvia Products"', async ({ page }) => { await page.goto('/help/articles/2932693/how-is-borvia-regulated-in-each-country-and-region/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia Products' || t.startsWith('Borvia Products'))).toBeTruthy(); }); test('help_articles_2932693_how_is_borvia_regulated_in_each_country_and_region: h2 "Resources"', async ({ page }) => { await page.goto('/help/articles/2932693/how-is-borvia-regulated-in-each-country-and-region/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('help_articles_2932693_how_is_borvia_regulated_in_each_country_and_region: header link "Register"', async ({ page }) => { await page.goto('/help/articles/2932693/how-is-borvia-regulated-in-each-country-and-region/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Register' || t.startsWith('Register')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('help_articles_2932693_how_is_borvia_regulated_in_each_country_and_region: footer link "BBorvia"', async ({ page }) => { await page.goto('/help/articles/2932693/how-is-borvia-regulated-in-each-country-and-region/'); const links = page.locator('footer a, [role="contentinfo"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BBorvia' || t.startsWith('BBorvia')), 'link text in footer').toBeTruthy(); }); test('help_articles_2932693_how_is_borvia_regulated_in_each_country_and_region: footer link "Company and team"', async ({ page }) => { await page.goto('/help/articles/2932693/how-is-borvia-regulated-in-each-country-and-region/'); const links = page.locator('footer a, [role="contentinfo"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Company and team' || t.startsWith('Company and team')), 'link text in footer').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('our-story')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - help_articles_2949821_how_borvia_keeps_your_money_safe', () => { test('help_articles_2949821_how_borvia_keeps_your_money_safe: title matches GT', async ({ page }) => { await page.goto('/help/articles/2949821/how-borvia-keeps-your-money-safe/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('how borvia keeps your money safe'); }); test('help_articles_2949821_how_borvia_keeps_your_money_safe: h2 "Company and people"', async ({ page }) => { await page.goto('/help/articles/2949821/how-borvia-keeps-your-money-safe/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Company and people' || t.startsWith('Company and people'))).toBeTruthy(); }); test('help_articles_2949821_how_borvia_keeps_your_money_safe: h2 "Borvia products"', async ({ page }) => { await page.goto('/help/articles/2949821/how-borvia-keeps-your-money-safe/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia products' || t.startsWith('Borvia products'))).toBeTruthy(); }); test('help_articles_2949821_how_borvia_keeps_your_money_safe: h2 "Tool kit"', async ({ page }) => { await page.goto('/help/articles/2949821/how-borvia-keeps-your-money-safe/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Tool kit' || t.startsWith('Tool kit'))).toBeTruthy(); }); test('help_articles_2949821_how_borvia_keeps_your_money_safe: header link "Sign in"', async ({ page }) => { await page.goto('/help/articles/2949821/how-borvia-keeps-your-money-safe/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sign in' || t.startsWith('Sign in')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('login')), 'href fragment present').toBeTruthy(); }); test('help_articles_2949821_how_borvia_keeps_your_money_safe: header link "Sign up"', async ({ page }) => { await page.goto('/help/articles/2949821/how-borvia-keeps-your-money-safe/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sign up' || t.startsWith('Sign up')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('help_articles_2949821_how_borvia_keeps_your_money_safe: footer link "BBorvia"', async ({ page }) => { await page.goto('/help/articles/2949821/how-borvia-keeps-your-money-safe/'); const links = page.locator('footer a, [role="contentinfo"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BBorvia' || t.startsWith('BBorvia')), 'link text in footer').toBeTruthy(); }); test('help_articles_2949821_how_borvia_keeps_your_money_safe: footer link "Company and people"', async ({ page }) => { await page.goto('/help/articles/2949821/how-borvia-keeps-your-money-safe/'); const links = page.locator('footer a, [role="contentinfo"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Company and people' || t.startsWith('Company and people')), 'link text in footer').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('our-story')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - help_articles_473W1lKUiKkVFMNeBQgrAG_accessibility_at_borvia', () => { test('help_articles_473W1lKUiKkVFMNeBQgrAG_accessibility_at_borvia: title matches GT', async ({ page }) => { await page.goto('/help/articles/473W1lKUiKkVFMNeBQgrAG/accessibility-at-borvia/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('accessibility at borvia'); }); test('help_articles_473W1lKUiKkVFMNeBQgrAG_accessibility_at_borvia: h2 "How we support browsers and as"', async ({ page }) => { await page.goto('/help/articles/473W1lKUiKkVFMNeBQgrAG/accessibility-at-borvia/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'How we support browsers and assistive technology' || t.startsWith('How we support browsers and assistive technology'))).toBeTruthy(); }); test('help_articles_473W1lKUiKkVFMNeBQgrAG_accessibility_at_borvia: h2 "Technologies we rely on"', async ({ page }) => { await page.goto('/help/articles/473W1lKUiKkVFMNeBQgrAG/accessibility-at-borvia/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Technologies we rely on' || t.startsWith('Technologies we rely on'))).toBeTruthy(); }); test('help_articles_473W1lKUiKkVFMNeBQgrAG_accessibility_at_borvia: h2 "Content with limitations"', async ({ page }) => { await page.goto('/help/articles/473W1lKUiKkVFMNeBQgrAG/accessibility-at-borvia/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Content with limitations' || t.startsWith('Content with limitations'))).toBeTruthy(); }); test('help_articles_473W1lKUiKkVFMNeBQgrAG_accessibility_at_borvia: header link "Register"', async ({ page }) => { await page.goto('/help/articles/473W1lKUiKkVFMNeBQgrAG/accessibility-at-borvia/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Register' || t.startsWith('Register')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('help_articles_473W1lKUiKkVFMNeBQgrAG_accessibility_at_borvia: footer link "BBorvia"', async ({ page }) => { await page.goto('/help/articles/473W1lKUiKkVFMNeBQgrAG/accessibility-at-borvia/'); const links = page.locator('footer a, [role="contentinfo"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BBorvia' || t.startsWith('BBorvia')), 'link text in footer').toBeTruthy(); }); }); test.describe('Functional - help_articles_4Mo9V7MyXos6scM7xvhg15_licences_and_regulators_when_holding_money_as_interest_and_stocks', () => { test('help_articles_4Mo9V7MyXos6scM7xvhg15_licences_and_regulators_when_holding_money_as_interest_and_stocks: title matches GT', async ({ page }) => { await page.goto('/help/articles/4Mo9V7MyXos6scM7xvhg15/licences-and-regulators-when-holding-money-as-interest-and-stocks/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('the licences and regulators that apply t'); }); test('help_articles_4Mo9V7MyXos6scM7xvhg15_licences_and_regulators_when_holding_money_as_interest_and_stocks: h2 "Company and team"', async ({ page }) => { await page.goto('/help/articles/4Mo9V7MyXos6scM7xvhg15/licences-and-regulators-when-holding-money-as-interest-and-stocks/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Company and team' || t.startsWith('Company and team'))).toBeTruthy(); }); test('help_articles_4Mo9V7MyXos6scM7xvhg15_licences_and_regulators_when_holding_money_as_interest_and_stocks: h2 "Borvia Products"', async ({ page }) => { await page.goto('/help/articles/4Mo9V7MyXos6scM7xvhg15/licences-and-regulators-when-holding-money-as-interest-and-stocks/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia Products' || t.startsWith('Borvia Products'))).toBeTruthy(); }); test('help_articles_4Mo9V7MyXos6scM7xvhg15_licences_and_regulators_when_holding_money_as_interest_and_stocks: h2 "Resources"', async ({ page }) => { await page.goto('/help/articles/4Mo9V7MyXos6scM7xvhg15/licences-and-regulators-when-holding-money-as-interest-and-stocks/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('help_articles_4Mo9V7MyXos6scM7xvhg15_licences_and_regulators_when_holding_money_as_interest_and_stocks: header link "Register"', async ({ page }) => { await page.goto('/help/articles/4Mo9V7MyXos6scM7xvhg15/licences-and-regulators-when-holding-money-as-interest-and-stocks/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Register' || t.startsWith('Register')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('help_articles_4Mo9V7MyXos6scM7xvhg15_licences_and_regulators_when_holding_money_as_interest_and_stocks: footer link "BBorvia"', async ({ page }) => { await page.goto('/help/articles/4Mo9V7MyXos6scM7xvhg15/licences-and-regulators-when-holding-money-as-interest-and-stocks/'); const links = page.locator('footer a, [role="contentinfo"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BBorvia' || t.startsWith('BBorvia')), 'link text in footer').toBeTruthy(); }); test('help_articles_4Mo9V7MyXos6scM7xvhg15_licences_and_regulators_when_holding_money_as_interest_and_stocks: footer link "Company and team"', async ({ page }) => { await page.goto('/help/articles/4Mo9V7MyXos6scM7xvhg15/licences-and-regulators-when-holding-money-as-interest-and-stocks/'); const links = page.locator('footer a, [role="contentinfo"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Company and team' || t.startsWith('Company and team')), 'link text in footer').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('our-story')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - help_articles_5Fwvk7KFzbTBohJiUu0Ryd_sending_with_swift', () => { test('help_articles_5Fwvk7KFzbTBohJiUu0Ryd_sending_with_swift: title matches GT', async ({ page }) => { await page.goto('/help/articles/5Fwvk7KFzbTBohJiUu0Ryd/sending-with-swift/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('sending with swift'); }); test('help_articles_5Fwvk7KFzbTBohJiUu0Ryd_sending_with_swift: h1 "Sending via Swift"', async ({ page }) => { await page.goto('/help/articles/5Fwvk7KFzbTBohJiUu0Ryd/sending-with-swift/'); const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Sending via Swift' || t.startsWith('Sending via Swift'))).toBeTruthy(); }); test('help_articles_5Fwvk7KFzbTBohJiUu0Ryd_sending_with_swift: h2 "Company and team"', async ({ page }) => { await page.goto('/help/articles/5Fwvk7KFzbTBohJiUu0Ryd/sending-with-swift/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Company and team' || t.startsWith('Company and team'))).toBeTruthy(); }); test('help_articles_5Fwvk7KFzbTBohJiUu0Ryd_sending_with_swift: h2 "Borvia Products"', async ({ page }) => { await page.goto('/help/articles/5Fwvk7KFzbTBohJiUu0Ryd/sending-with-swift/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia Products' || t.startsWith('Borvia Products'))).toBeTruthy(); }); test('help_articles_5Fwvk7KFzbTBohJiUu0Ryd_sending_with_swift: h2 "Resources"', async ({ page }) => { await page.goto('/help/articles/5Fwvk7KFzbTBohJiUu0Ryd/sending-with-swift/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('help_articles_5Fwvk7KFzbTBohJiUu0Ryd_sending_with_swift: header link "Register"', async ({ page }) => { await page.goto('/help/articles/5Fwvk7KFzbTBohJiUu0Ryd/sending-with-swift/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Register' || t.startsWith('Register')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('help_articles_5Fwvk7KFzbTBohJiUu0Ryd_sending_with_swift: footer link "BBorvia"', async ({ page }) => { await page.goto('/help/articles/5Fwvk7KFzbTBohJiUu0Ryd/sending-with-swift/'); const links = page.locator('footer a, [role="contentinfo"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BBorvia' || t.startsWith('BBorvia')), 'link text in footer').toBeTruthy(); }); test('help_articles_5Fwvk7KFzbTBohJiUu0Ryd_sending_with_swift: footer link "Company and team"', async ({ page }) => { await page.goto('/help/articles/5Fwvk7KFzbTBohJiUu0Ryd/sending-with-swift/'); const links = page.locator('footer a, [role="contentinfo"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Company and team' || t.startsWith('Company and team')), 'link text in footer').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('our-story')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - help_articles_79CxCv9Qj1r7mDPJuIwUA3_borvia_intellectual_property', () => { test('help_articles_79CxCv9Qj1r7mDPJuIwUA3_borvia_intellectual_property: title matches GT', async ({ page }) => { await page.goto('/help/articles/79CxCv9Qj1r7mDPJuIwUA3/borvia-intellectual-property/'); const t = (await page.title()).toLowerCase(); expect(t).toContain('borvia intellectual property'); }); test('help_articles_79CxCv9Qj1r7mDPJuIwUA3_borvia_intellectual_property: h2 "Company and team"', async ({ page }) => { await page.goto('/help/articles/79CxCv9Qj1r7mDPJuIwUA3/borvia-intellectual-property/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Company and team' || t.startsWith('Company and team'))).toBeTruthy(); }); test('help_articles_79CxCv9Qj1r7mDPJuIwUA3_borvia_intellectual_property: h2 "Borvia Products"', async ({ page }) => { await page.goto('/help/articles/79CxCv9Qj1r7mDPJuIwUA3/borvia-intellectual-property/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Borvia Products' || t.startsWith('Borvia Products'))).toBeTruthy(); }); test('help_articles_79CxCv9Qj1r7mDPJuIwUA3_borvia_intellectual_property: h2 "Resources"', async ({ page }) => { await page.goto('/help/articles/79CxCv9Qj1r7mDPJuIwUA3/borvia-intellectual-property/'); const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Resources' || t.startsWith('Resources'))).toBeTruthy(); }); test('help_articles_79CxCv9Qj1r7mDPJuIwUA3_borvia_intellectual_property: header link "Register"', async ({ page }) => { await page.goto('/help/articles/79CxCv9Qj1r7mDPJuIwUA3/borvia-intellectual-property/'); const links = page.locator('header a, [role="banner"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Register' || t.startsWith('Register')), 'link text in header').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('register')), 'href fragment present').toBeTruthy(); }); test('help_articles_79CxCv9Qj1r7mDPJuIwUA3_borvia_intellectual_property: footer link "BBorvia"', async ({ page }) => { await page.goto('/help/articles/79CxCv9Qj1r7mDPJuIwUA3/borvia-intellectual-property/'); const links = page.locator('footer a, [role="contentinfo"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'BBorvia' || t.startsWith('BBorvia')), 'link text in footer').toBeTruthy(); }); test('help_articles_79CxCv9Qj1r7mDPJuIwUA3_borvia_intellectual_property: footer link "Company and team"', async ({ page }) => { await page.goto('/help/articles/79CxCv9Qj1r7mDPJuIwUA3/borvia-intellectual-property/'); const links = page.locator('footer a, [role="contentinfo"] a'); const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); expect(texts.some(t => t === 'Company and team' || t.startsWith('Company and team')), 'link text in footer').toBeTruthy(); const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); expect(hrefs.some(h => h.includes('our-story')), 'href fragment present').toBeTruthy(); }); }); test.describe('Functional - Routing', () => { test('navigate to sg_account via "Personal"', async ({ page }) => { await page.goto('/'); const link = page.locator('a[href*="account"]').first(); expect(await link.count(), 'nav link to sg_account exists').toBeGreaterThan(0); await link.click(); await page.waitForTimeout(1200); expect(page.url().toLowerCase(), 'URL changed to destination').toContain('account'); const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); expect(bodyText, 'destination distinctive content shown').toContain('One account for every currency you\'ll ever need'); }); test('navigate to sg_business via "Business"', async ({ page }) => { await page.goto('/'); const link = page.locator('a[href*="business"]').first(); expect(await link.count(), 'nav link to sg_business exists').toBeGreaterThan(0); await link.click(); await page.waitForTimeout(1200); expect(page.url().toLowerCase(), 'URL changed to destination').toContain('business'); const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); expect(bodyText, 'destination distinctive content shown').toContain('The business account made for going global'); }); test('navigate to platform via "Platform"', async ({ page }) => { await page.goto('/'); const link = page.locator('a[href*="platform"]').first(); expect(await link.count(), 'nav link to platform exists').toBeGreaterThan(0); await link.click(); await page.waitForTimeout(1200); expect(page.url().toLowerCase(), 'URL changed to destination').toContain('platform'); const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); expect(bodyText, 'destination distinctive content shown').toContain('infrastructure to power the world’s money'); }); });