Datasets:
Download web/vellora.example/tests/static/content.scripted.spec.ts from Qwen/RecreationBench: direct link, hf CLI and curl.
- Browser
- Download file 277 kB
-
https://huggingface.co/datasets/Qwen/RecreationBench/resolve/main/web/vellora.example/tests/static/content.scripted.spec.ts
- Command line
-
hf download hf://datasets/Qwen/RecreationBench/web/vellora.example/tests/static/content.scripted.spec.ts
-
curl -L -o content.scripted.spec.ts https://huggingface.co/datasets/Qwen/RecreationBench/resolve/main/web/vellora.example/tests/static/content.scripted.spec.ts
277 kB
| import { test, expect } from '@playwright/test'; | |
| test.describe('Functional - homepage', () => { | |
| test('homepage: title matches GT', async ({ page }) => { | |
| await page.goto('/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('vellora'); | |
| }); | |
| test('homepage: h1 "Where big ideas find their for"', async ({ page }) => { | |
| await page.goto('/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Where big ideas find their form' || t.startsWith('Where big ideas find their form'))).toBeTruthy(); | |
| }); | |
| test('homepage: header link "Download"', async ({ page }) => { | |
| await page.goto('/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('homepage: nav link "Log in"', 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 === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('homepage: nav link "Sign up"', 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 === 'Sign up' || t.startsWith('Sign up')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('homepage: nav link "AI FlowchartsBoost how fast yo"', 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 === 'AI FlowchartsBoost how fast you work with hands-free creatio' || t.startsWith('AI FlowchartsBoost how fast you work with hands-free creatio')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - ai', () => { | |
| test('ai: title matches GT', async ({ page }) => { | |
| await page.goto('/ai/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('vellora ai'); | |
| }); | |
| test('ai: h1 "Vellora AI"', async ({ page }) => { | |
| await page.goto('/ai/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Vellora AI' || t.startsWith('Vellora AI'))).toBeTruthy(); | |
| }); | |
| test('ai: h2 "Vellora\'s desktop MCP"', async ({ page }) => { | |
| await page.goto('/ai/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Vellora\'s desktop MCP' || t.startsWith('Vellora\'s desktop MCP'))).toBeTruthy(); | |
| }); | |
| test('ai: h2 "One endless canvas to hold all"', async ({ page }) => { | |
| await page.goto('/ai/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'One endless canvas to hold all of your ideas.' || t.startsWith('One endless canvas to hold all of your ideas.'))).toBeTruthy(); | |
| }); | |
| test('ai: h2 "Wireframes"', async ({ page }) => { | |
| await page.goto('/ai/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Wireframes' || t.startsWith('Wireframes'))).toBeTruthy(); | |
| }); | |
| test('ai: header link "Download"', async ({ page }) => { | |
| await page.goto('/ai/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('ai: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/ai/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('ai: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/ai/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('ai: nav link "AI FlowchartsAmplify your dail"', async ({ page }) => { | |
| await page.goto('/ai/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsAmplify your daily output with fully automated ' || t.startsWith('AI FlowchartsAmplify your daily output with fully automated ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog', () => { | |
| test('blog: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('vellora blog'); | |
| }); | |
| test('blog: h2 "Tabbed folders: a fresh approa"', async ({ page }) => { | |
| await page.goto('/blog/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Tabbed folders: a fresh approach to keeping your work tidy' || t.startsWith('Tabbed folders: a fresh approach to keeping your work tidy'))).toBeTruthy(); | |
| }); | |
| test('blog: h2 "Ready to work a whole new way."', async ({ page }) => { | |
| await page.goto('/blog/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Ready to work a whole new way.' || t.startsWith('Ready to work a whole new way.'))).toBeTruthy(); | |
| }); | |
| test('blog: header link "Download"', async ({ page }) => { | |
| await page.goto('/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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/blog/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('blog: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/blog/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sign up' || t.startsWith('Sign up')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog: nav link "AI FlowchartsTurbocharge how y"', async ({ page }) => { | |
| await page.goto('/blog/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsTurbocharge how you work with automated diagram' || t.startsWith('AI FlowchartsTurbocharge how you work with automated diagram')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - customers', () => { | |
| test('customers: title matches GT', async ({ page }) => { | |
| await page.goto('/customers/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('customers'); | |
| }); | |
| test('customers: h1 "Customers"', async ({ page }) => { | |
| await page.goto('/customers/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Customers' || t.startsWith('Customers'))).toBeTruthy(); | |
| }); | |
| test('customers: h2 "Backed by leading teams"', async ({ page }) => { | |
| await page.goto('/customers/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Backed by leading teams' || t.startsWith('Backed by leading teams'))).toBeTruthy(); | |
| }); | |
| test('customers: h2 "Bright ideas start here"', async ({ page }) => { | |
| await page.goto('/customers/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Bright ideas start here' || t.startsWith('Bright ideas start here'))).toBeTruthy(); | |
| }); | |
| test('customers: h2 "Ready to rethink how you work."', async ({ page }) => { | |
| await page.goto('/customers/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Ready to rethink how you work.' || t.startsWith('Ready to rethink how you work.'))).toBeTruthy(); | |
| }); | |
| test('customers: header link "Download"', async ({ page }) => { | |
| await page.goto('/customers/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('customers: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/customers/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('customers: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/customers/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sign up' || t.startsWith('Sign up')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('customers: nav link "AI FlowchartsBoost your moment"', async ({ page }) => { | |
| await page.goto('/customers/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost your momentum with instant, automated dia' || t.startsWith('AI FlowchartsBoost your momentum with instant, automated dia')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - diagrams', () => { | |
| test('diagrams: title matches GT', async ({ page }) => { | |
| await page.goto('/diagrams/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('vellora diagrams, flowcharts, and mind m'); | |
| }); | |
| test('diagrams: h1 "Find clarity through flowchart"', async ({ page }) => { | |
| await page.goto('/diagrams/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Find clarity through flowcharts, mind maps, and other diagrams' || t.startsWith('Find clarity through flowcharts, mind maps, and other diagrams'))).toBeTruthy(); | |
| }); | |
| test('diagrams: h2 "Flowcharts"', async ({ page }) => { | |
| await page.goto('/diagrams/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Flowcharts' || t.startsWith('Flowcharts'))).toBeTruthy(); | |
| }); | |
| test('diagrams: h2 "Mind maps"', async ({ page }) => { | |
| await page.goto('/diagrams/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Mind maps' || t.startsWith('Mind maps'))).toBeTruthy(); | |
| }); | |
| test('diagrams: h2 "Vellora AI"', async ({ page }) => { | |
| await page.goto('/diagrams/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Vellora AI' || t.startsWith('Vellora AI'))).toBeTruthy(); | |
| }); | |
| test('diagrams: header link "Download"', async ({ page }) => { | |
| await page.goto('/diagrams/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('diagrams: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/diagrams/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('diagrams: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/diagrams/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('diagrams: nav link "AI FlowchartsBoost your moment"', async ({ page }) => { | |
| await page.goto('/diagrams/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost your momentum with fully automated diagra' || t.startsWith('AI FlowchartsBoost your momentum with fully automated diagra')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - download', () => { | |
| test('download: title matches GT', async ({ page }) => { | |
| await page.goto('/download/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('get the vellora desktop app'); | |
| }); | |
| test('download: h1 "Download Vellora"', async ({ page }) => { | |
| await page.goto('/download/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Download Vellora' || t.startsWith('Download Vellora'))).toBeTruthy(); | |
| }); | |
| test('download: header link "Download"', async ({ page }) => { | |
| await page.goto('/download/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('download: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/download/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('download: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/download/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('download: nav link "AI FlowchartsMove faster with "', async ({ page }) => { | |
| await page.goto('/download/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsMove faster with diagrams that build themselves' || t.startsWith('AI FlowchartsMove faster with diagrams that build themselves')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - flowcharts', () => { | |
| test('flowcharts: title matches GT', async ({ page }) => { | |
| await page.goto('/flowcharts/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('free flowchart maker'); | |
| }); | |
| test('flowcharts: h1 "Free flowchart maker in Vellor"', async ({ page }) => { | |
| await page.goto('/flowcharts/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Free flowchart maker in Vellora' || t.startsWith('Free flowchart maker in Vellora'))).toBeTruthy(); | |
| }); | |
| test('flowcharts: h2 "Breeze through your flowcharts"', async ({ page }) => { | |
| await page.goto('/flowcharts/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Breeze through your flowcharts' || t.startsWith('Breeze through your flowcharts'))).toBeTruthy(); | |
| }); | |
| test('flowcharts: h2 "Send your flowcharts out into "', async ({ page }) => { | |
| await page.goto('/flowcharts/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Send your flowcharts out into the world' || t.startsWith('Send your flowcharts out into the world'))).toBeTruthy(); | |
| }); | |
| test('flowcharts: h2 "Vellora AI"', async ({ page }) => { | |
| await page.goto('/flowcharts/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Vellora AI' || t.startsWith('Vellora AI'))).toBeTruthy(); | |
| }); | |
| test('flowcharts: header link "Download"', async ({ page }) => { | |
| await page.goto('/flowcharts/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('flowcharts: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/flowcharts/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('flowcharts: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/flowcharts/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('flowcharts: nav link "AI FlowchartsBoost how fast yo"', async ({ page }) => { | |
| await page.goto('/flowcharts/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost how fast you work with hands-off creation' || t.startsWith('AI FlowchartsBoost how fast you work with hands-off creation')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - home', () => { | |
| test('home: title matches GT', async ({ page }) => { | |
| await page.goto('/home/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('vellora'); | |
| }); | |
| test('home: h1 "Where bright ideas come alive"', async ({ page }) => { | |
| await page.goto('/home/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Where bright ideas come alive' || t.startsWith('Where bright ideas come alive'))).toBeTruthy(); | |
| }); | |
| test('home: h2 "Diagrams"', async ({ page }) => { | |
| await page.goto('/home/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Diagrams' || t.startsWith('Diagrams'))).toBeTruthy(); | |
| }); | |
| test('home: h2 "Wireframes"', async ({ page }) => { | |
| await page.goto('/home/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Wireframes' || t.startsWith('Wireframes'))).toBeTruthy(); | |
| }); | |
| test('home: h2 "An endless canvas for every id"', async ({ page }) => { | |
| await page.goto('/home/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'An endless canvas for every idea you dream up.' || t.startsWith('An endless canvas for every idea you dream up.'))).toBeTruthy(); | |
| }); | |
| test('home: header link "Download"', async ({ page }) => { | |
| await page.goto('/home/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('home: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/home/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('home: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/home/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('home: nav link "AI DiagramsBoost your workflow"', async ({ page }) => { | |
| await page.goto('/home/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI DiagramsBoost your workflow with instant, automated diagr' || t.startsWith('AI DiagramsBoost your workflow with instant, automated diagr')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - integrations', () => { | |
| test('integrations: title matches GT', async ({ page }) => { | |
| await page.goto('/integrations/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('vellora integrations'); | |
| }); | |
| test('integrations: h1 "Plug in your workflow"', async ({ page }) => { | |
| await page.goto('/integrations/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Plug in your workflow' || t.startsWith('Plug in your workflow'))).toBeTruthy(); | |
| }); | |
| test('integrations: h2 "All integrations"', async ({ page }) => { | |
| await page.goto('/integrations/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'All integrations' || t.startsWith('All integrations'))).toBeTruthy(); | |
| }); | |
| test('integrations: h2 "Embed Vellora wherever you wor"', async ({ page }) => { | |
| await page.goto('/integrations/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Embed Vellora wherever you work' || t.startsWith('Embed Vellora wherever you work'))).toBeTruthy(); | |
| }); | |
| test('integrations: h2 "A fresh way to work awaits you"', async ({ page }) => { | |
| await page.goto('/integrations/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'A fresh way to work awaits you.' || t.startsWith('A fresh way to work awaits you.'))).toBeTruthy(); | |
| }); | |
| test('integrations: header link "Download"', async ({ page }) => { | |
| await page.goto('/integrations/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('integrations: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/integrations/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('integrations: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/integrations/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sign up' || t.startsWith('Sign up')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('integrations: nav link "AI FlowchartsBoost how much yo"', async ({ page }) => { | |
| await page.goto('/integrations/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost how much you get done with automatic draf' || t.startsWith('AI FlowchartsBoost how much you get done with automatic draf')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - mcp', () => { | |
| test('mcp: title matches GT', async ({ page }) => { | |
| await page.goto('/mcp/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('vellora desktop mcp (beta)'); | |
| }); | |
| test('mcp: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/mcp/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('mcp: h1 "Vellora Desktop MCP (beta)"', async ({ page }) => { | |
| await page.goto('/mcp/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Vellora Desktop MCP (beta)' || t.startsWith('Vellora Desktop MCP (beta)'))).toBeTruthy(); | |
| }); | |
| test('mcp: h2 "Step 1: Launch the Vellora des"', async ({ page }) => { | |
| await page.goto('/mcp/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Step 1: Launch the Vellora desktop appCopied!Link to this section' || t.startsWith('Step 1: Launch the Vellora desktop appCopied!Link to this section'))).toBeTruthy(); | |
| }); | |
| test('mcp: h2 "Step 2: Configure your MCP cli"', async ({ page }) => { | |
| await page.goto('/mcp/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Step 2: Configure your MCP clientCopied!Link to this section' || t.startsWith('Step 2: Configure your MCP clientCopied!Link to this section'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - mind_maps', () => { | |
| test('mind_maps: title matches GT', async ({ page }) => { | |
| await page.goto('/mind-maps/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('free mind map maker'); | |
| }); | |
| test('mind_maps: h1 "Free mind map maker in Vellora"', async ({ page }) => { | |
| await page.goto('/mind-maps/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Free mind map maker in Vellora' || t.startsWith('Free mind map maker in Vellora'))).toBeTruthy(); | |
| }); | |
| test('mind_maps: h2 "Shape ideas at the speed of th"', async ({ page }) => { | |
| await page.goto('/mind-maps/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Shape ideas at the speed of thought' || t.startsWith('Shape ideas at the speed of thought'))).toBeTruthy(); | |
| }); | |
| test('mind_maps: h2 "Bring your mind maps everywher"', async ({ page }) => { | |
| await page.goto('/mind-maps/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Bring your mind maps everywhere' || t.startsWith('Bring your mind maps everywhere'))).toBeTruthy(); | |
| }); | |
| test('mind_maps: h2 "Vellora AI"', async ({ page }) => { | |
| await page.goto('/mind-maps/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Vellora AI' || t.startsWith('Vellora AI'))).toBeTruthy(); | |
| }); | |
| test('mind_maps: header link "Download"', async ({ page }) => { | |
| await page.goto('/mind-maps/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('mind_maps: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/mind-maps/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('mind_maps: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/mind-maps/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('mind_maps: nav link "AI FlowchartsBoost how much yo"', async ({ page }) => { | |
| await page.goto('/mind-maps/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost how much you get done with automated buil' || t.startsWith('AI FlowchartsBoost how much you get done with automated buil')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - pricing', () => { | |
| test('pricing: title matches GT', async ({ page }) => { | |
| await page.goto('/pricing/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('vellora pricing'); | |
| }); | |
| test('pricing: h1 "Pricing"', async ({ page }) => { | |
| await page.goto('/pricing/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Pricing' || t.startsWith('Pricing'))).toBeTruthy(); | |
| }); | |
| test('pricing: h2 "\$ 0 / Month / Editor"', async ({ page }) => { | |
| await page.goto('/pricing/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === '\$ 0 / Month / Editor' || t.startsWith('\$ 0 / Month / Editor'))).toBeTruthy(); | |
| }); | |
| test('pricing: h2 "\$ 10 / Month / Editor"', async ({ page }) => { | |
| await page.goto('/pricing/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === '\$ 10 / Month / Editor' || t.startsWith('\$ 10 / Month / Editor'))).toBeTruthy(); | |
| }); | |
| test('pricing: h2 "\$ 15 / Month / Editor"', async ({ page }) => { | |
| await page.goto('/pricing/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === '\$ 15 / Month / Editor' || t.startsWith('\$ 15 / Month / Editor'))).toBeTruthy(); | |
| }); | |
| test('pricing: header link "Download"', async ({ page }) => { | |
| await page.goto('/pricing/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('pricing: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/pricing/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('pricing: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/pricing/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('pricing: nav link "AI FlowchartsBoost your workfl"', async ({ page }) => { | |
| await page.goto('/pricing/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost your workflow speed with fully automated ' || t.startsWith('AI FlowchartsBoost your workflow speed with fully automated ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - releases', () => { | |
| test('releases: title matches GT', async ({ page }) => { | |
| await page.goto('/releases/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('vellora releases'); | |
| }); | |
| test('releases: h1 "Releases"', async ({ page }) => { | |
| await page.goto('/releases/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Releases' || t.startsWith('Releases'))).toBeTruthy(); | |
| }); | |
| test('releases: h2 "Flowchart auto-layout"', async ({ page }) => { | |
| await page.goto('/releases/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Flowchart auto-layout' || t.startsWith('Flowchart auto-layout'))).toBeTruthy(); | |
| }); | |
| test('releases: h2 "New features"', async ({ page }) => { | |
| await page.goto('/releases/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'New features' || t.startsWith('New features'))).toBeTruthy(); | |
| }); | |
| test('releases: h2 "Enhancements"', async ({ page }) => { | |
| await page.goto('/releases/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Enhancements' || t.startsWith('Enhancements'))).toBeTruthy(); | |
| }); | |
| test('releases: header link "Download"', async ({ page }) => { | |
| await page.goto('/releases/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('releases: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/releases/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('releases: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/releases/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('releases: nav link "AI FlowchartsBoost your output"', async ({ page }) => { | |
| await page.goto('/releases/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost your output with instantly generated diag' || t.startsWith('AI FlowchartsBoost your output with instantly generated diag')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - releases_2026_4_flowchart_auto_layout', () => { | |
| test('releases_2026_4_flowchart_auto_layout: page loads without error', async ({ page }) => { | |
| const response = await page.goto('/releases/2026-4-flowchart-auto-layout/'); | |
| expect(response?.status()).toBeLessThan(400); | |
| await expect(page.locator('body')).toBeVisible(); | |
| }); | |
| test('releases_2026_4_flowchart_auto_layout: title matches GT', async ({ page }) => { | |
| await page.goto('/releases/2026-4-flowchart-auto-layout/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('auto'); | |
| }); | |
| test('releases_2026_4_flowchart_auto_layout: h1 "Flowchart auto-layout"', async ({ page }) => { | |
| await page.goto('/releases/2026-4-flowchart-auto-layout/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Flowchart auto-layout' || t.startsWith('Flowchart auto-layout'))).toBeTruthy(); | |
| }); | |
| test('releases_2026_4_flowchart_auto_layout: h2 "New features"', async ({ page }) => { | |
| await page.goto('/releases/2026-4-flowchart-auto-layout/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'New features' || t.startsWith('New features'))).toBeTruthy(); | |
| }); | |
| test('releases_2026_4_flowchart_auto_layout: h2 "Improvements"', async ({ page }) => { | |
| await page.goto('/releases/2026-4-flowchart-auto-layout/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Improvements' || t.startsWith('Improvements'))).toBeTruthy(); | |
| }); | |
| test('releases_2026_4_flowchart_auto_layout: h2 "Bug fixes"', async ({ page }) => { | |
| await page.goto('/releases/2026-4-flowchart-auto-layout/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Bug fixes' || t.startsWith('Bug fixes'))).toBeTruthy(); | |
| }); | |
| test('releases_2026_4_flowchart_auto_layout: header link "Download"', async ({ page }) => { | |
| await page.goto('/releases/2026-4-flowchart-auto-layout/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('releases_2026_4_flowchart_auto_layout: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/releases/2026-4-flowchart-auto-layout/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('releases_2026_4_flowchart_auto_layout: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/releases/2026-4-flowchart-auto-layout/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('releases_2026_4_flowchart_auto_layout: nav link "AI FlowchartsBoost how fast yo"', async ({ page }) => { | |
| await page.goto('/releases/2026-4-flowchart-auto-layout/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost how fast you work with fully automated cr' || t.startsWith('AI FlowchartsBoost how fast you work with fully automated cr')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - terms', () => { | |
| test('terms: title matches GT', async ({ page }) => { | |
| await page.goto('/terms/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('vellora terms & conditions'); | |
| }); | |
| test('terms: h1 "Terms of service"', async ({ page }) => { | |
| await page.goto('/terms/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Terms of service' || t.startsWith('Terms of service'))).toBeTruthy(); | |
| }); | |
| test('terms: h2 "Definitions"', async ({ page }) => { | |
| await page.goto('/terms/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Definitions' || t.startsWith('Definitions'))).toBeTruthy(); | |
| }); | |
| test('terms: h2 "Your Vellora Account"', async ({ page }) => { | |
| await page.goto('/terms/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Your Vellora Account' || t.startsWith('Your Vellora Account'))).toBeTruthy(); | |
| }); | |
| test('terms: h2 "Workspaces"', async ({ page }) => { | |
| await page.goto('/terms/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Workspaces' || t.startsWith('Workspaces'))).toBeTruthy(); | |
| }); | |
| test('terms: header link "Download"', async ({ page }) => { | |
| await page.goto('/terms/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('terms: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/terms/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('terms: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/terms/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('terms: nav link "AI FlowchartsBoost your everyd"', async ({ page }) => { | |
| await page.goto('/terms/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost your everyday workflow with automated dia' || t.startsWith('AI FlowchartsBoost your everyday workflow with automated dia')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - terms_privacy', () => { | |
| test('terms_privacy: title matches GT', async ({ page }) => { | |
| await page.goto('/terms/privacy/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('vellora terms & conditions'); | |
| }); | |
| test('terms_privacy: h1 "Privacy"', async ({ page }) => { | |
| await page.goto('/terms/privacy/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Privacy' || t.startsWith('Privacy'))).toBeTruthy(); | |
| }); | |
| test('terms_privacy: h2 "Who We Are and What This Priva"', async ({ page }) => { | |
| await page.goto('/terms/privacy/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Who We Are and What This Privacy Notice Addresses' || t.startsWith('Who We Are and What This Privacy Notice Addresses'))).toBeTruthy(); | |
| }); | |
| test('terms_privacy: h2 "Personal Information We Collec"', async ({ page }) => { | |
| await page.goto('/terms/privacy/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Personal Information We Collect' || t.startsWith('Personal Information We Collect'))).toBeTruthy(); | |
| }); | |
| test('terms_privacy: h2 "When And Why We Draw On Your P"', async ({ page }) => { | |
| await page.goto('/terms/privacy/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'When And Why We Draw On Your Personal Information' || t.startsWith('When And Why We Draw On Your Personal Information'))).toBeTruthy(); | |
| }); | |
| test('terms_privacy: header link "Download"', async ({ page }) => { | |
| await page.goto('/terms/privacy/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('terms_privacy: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/terms/privacy/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('terms_privacy: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/terms/privacy/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('terms_privacy: nav link "AI FlowchartsMove faster and l"', async ({ page }) => { | |
| await page.goto('/terms/privacy/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsMove faster and let automated drafting do the h' || t.startsWith('AI FlowchartsMove faster and let automated drafting do the h')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - wireframes', () => { | |
| test('wireframes: title matches GT', async ({ page }) => { | |
| await page.goto('/wireframes/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('free low'); | |
| }); | |
| test('wireframes: h1 "Fast, focused wireframing in V"', async ({ page }) => { | |
| await page.goto('/wireframes/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fast, focused wireframing in Vellora' || t.startsWith('Fast, focused wireframing in Vellora'))).toBeTruthy(); | |
| }); | |
| test('wireframes: h2 "Drag-and-drop elements"', async ({ page }) => { | |
| await page.goto('/wireframes/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Drag-and-drop elements' || t.startsWith('Drag-and-drop elements'))).toBeTruthy(); | |
| }); | |
| test('wireframes: h2 "A sprawling icon set"', async ({ page }) => { | |
| await page.goto('/wireframes/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'A sprawling icon set' || t.startsWith('A sprawling icon set'))).toBeTruthy(); | |
| }); | |
| test('wireframes: h2 "Device frames"', async ({ page }) => { | |
| await page.goto('/wireframes/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Device frames' || t.startsWith('Device frames'))).toBeTruthy(); | |
| }); | |
| test('wireframes: header link "Download"', async ({ page }) => { | |
| await page.goto('/wireframes/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('wireframes: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/wireframes/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('wireframes: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/wireframes/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('wireframes: nav link "AI FlowchartsBoost how much yo"', async ({ page }) => { | |
| await page.goto('/wireframes/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost how much you get done with automated crea' || t.startsWith('AI FlowchartsBoost how much you get done with automated crea')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - ai_ai_mind_maps', () => { | |
| test('ai_ai_mind_maps: title matches GT', async ({ page }) => { | |
| await page.goto('/ai/ai-mind-maps/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('ai mind map'); | |
| }); | |
| test('ai_ai_mind_maps: h1 "Free AI mind map creator"', async ({ page }) => { | |
| await page.goto('/ai/ai-mind-maps/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Free AI mind map creator' || t.startsWith('Free AI mind map creator'))).toBeTruthy(); | |
| }); | |
| test('ai_ai_mind_maps: h2 "Vellora’s desktop MCP"', async ({ page }) => { | |
| await page.goto('/ai/ai-mind-maps/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Vellora’s desktop MCP' || t.startsWith('Vellora’s desktop MCP'))).toBeTruthy(); | |
| }); | |
| test('ai_ai_mind_maps: h2 "One endless canvas to hold eve"', async ({ page }) => { | |
| await page.goto('/ai/ai-mind-maps/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'One endless canvas to hold every idea you have.' || t.startsWith('One endless canvas to hold every idea you have.'))).toBeTruthy(); | |
| }); | |
| test('ai_ai_mind_maps: h2 "Wireframes"', async ({ page }) => { | |
| await page.goto('/ai/ai-mind-maps/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Wireframes' || t.startsWith('Wireframes'))).toBeTruthy(); | |
| }); | |
| test('ai_ai_mind_maps: header link "Download"', async ({ page }) => { | |
| await page.goto('/ai/ai-mind-maps/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('ai_ai_mind_maps: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/ai/ai-mind-maps/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('ai_ai_mind_maps: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/ai/ai-mind-maps/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('ai_ai_mind_maps: nav link "AI FlowchartsGive your workflo"', async ({ page }) => { | |
| await page.goto('/ai/ai-mind-maps/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsGive your workflow a lift with hands-free diagr' || t.startsWith('AI FlowchartsGive your workflow a lift with hands-free diagr')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - ai_ai_text_to_flowchart', () => { | |
| test('ai_ai_text_to_flowchart: title matches GT', async ({ page }) => { | |
| await page.goto('/ai/ai-text-to-flowchart/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('ai flowchart'); | |
| }); | |
| test('ai_ai_text_to_flowchart: h1 "Free AI flowchart builder"', async ({ page }) => { | |
| await page.goto('/ai/ai-text-to-flowchart/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Free AI flowchart builder' || t.startsWith('Free AI flowchart builder'))).toBeTruthy(); | |
| }); | |
| test('ai_ai_text_to_flowchart: h2 "Vellora’s desktop MCP"', async ({ page }) => { | |
| await page.goto('/ai/ai-text-to-flowchart/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Vellora’s desktop MCP' || t.startsWith('Vellora’s desktop MCP'))).toBeTruthy(); | |
| }); | |
| test('ai_ai_text_to_flowchart: h2 "A boundless canvas for every i"', async ({ page }) => { | |
| await page.goto('/ai/ai-text-to-flowchart/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'A boundless canvas for every idea you have.' || t.startsWith('A boundless canvas for every idea you have.'))).toBeTruthy(); | |
| }); | |
| test('ai_ai_text_to_flowchart: h2 "Wireframes"', async ({ page }) => { | |
| await page.goto('/ai/ai-text-to-flowchart/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Wireframes' || t.startsWith('Wireframes'))).toBeTruthy(); | |
| }); | |
| test('ai_ai_text_to_flowchart: header link "Download"', async ({ page }) => { | |
| await page.goto('/ai/ai-text-to-flowchart/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('ai_ai_text_to_flowchart: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/ai/ai-text-to-flowchart/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('ai_ai_text_to_flowchart: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/ai/ai-text-to-flowchart/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('ai_ai_text_to_flowchart: nav link "AI FlowchartsBoost your everyd"', async ({ page }) => { | |
| await page.goto('/ai/ai-text-to-flowchart/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost your everyday output with automatic gener' || t.startsWith('AI FlowchartsBoost your everyday output with automatic gener')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_2', () => { | |
| test('blog_2: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/2/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('page 2'); | |
| }); | |
| test('blog_2: h1 "Archive"', async ({ page }) => { | |
| await page.goto('/blog/2/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Archive' || t.startsWith('Archive'))).toBeTruthy(); | |
| }); | |
| test('blog_2: h2 "It’s time to work in a new way"', async ({ page }) => { | |
| await page.goto('/blog/2/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'It’s time to work in a new way.' || t.startsWith('It’s time to work in a new way.'))).toBeTruthy(); | |
| }); | |
| test('blog_2: header link "Download"', async ({ page }) => { | |
| await page.goto('/blog/2/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_2: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/blog/2/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('blog_2: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/blog/2/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_2: nav link "AI FlowchartsBoost how much yo"', async ({ page }) => { | |
| await page.goto('/blog/2/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost how much you get done with automatic gene' || t.startsWith('AI FlowchartsBoost how much you get done with automatic gene')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_3', () => { | |
| test('blog_3: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/3/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('page 3'); | |
| }); | |
| test('blog_3: h1 "Archive"', async ({ page }) => { | |
| await page.goto('/blog/3/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Archive' || t.startsWith('Archive'))).toBeTruthy(); | |
| }); | |
| test('blog_3: h2 "Time to reimagine how you work"', async ({ page }) => { | |
| await page.goto('/blog/3/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Time to reimagine how you work.' || t.startsWith('Time to reimagine how you work.'))).toBeTruthy(); | |
| }); | |
| test('blog_3: header link "Download"', async ({ page }) => { | |
| await page.goto('/blog/3/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_3: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/blog/3/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('blog_3: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/blog/3/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_3: nav link "AI FlowchartsBoost your output"', async ({ page }) => { | |
| await page.goto('/blog/3/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost your output with automatically generated ' || t.startsWith('AI FlowchartsBoost your output with automatically generated ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_5', () => { | |
| test('blog_5: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/5/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('page 5'); | |
| }); | |
| test('blog_5: h1 "Archive"', async ({ page }) => { | |
| await page.goto('/blog/5/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Archive' || t.startsWith('Archive'))).toBeTruthy(); | |
| }); | |
| test('blog_5: h2 "Ready to rethink how you work?"', async ({ page }) => { | |
| await page.goto('/blog/5/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Ready to rethink how you work?' || t.startsWith('Ready to rethink how you work?'))).toBeTruthy(); | |
| }); | |
| test('blog_5: header link "Download"', async ({ page }) => { | |
| await page.goto('/blog/5/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_5: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/blog/5/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('blog_5: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/blog/5/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_5: nav link "AI FlowchartsSpeed up your wor"', async ({ page }) => { | |
| await page.goto('/blog/5/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsSpeed up your work with instant, automated crea' || t.startsWith('AI FlowchartsSpeed up your work with instant, automated crea')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_async_vs_real_time_work_survey', () => { | |
| test('blog_async_vs_real_time_work_survey: page loads without error', async ({ page }) => { | |
| const response = await page.goto('/blog/async-vs-real-time-work-survey/'); | |
| expect(response?.status()).toBeLessThan(400); | |
| await expect(page.locator('body')).toBeVisible(); | |
| }); | |
| test('blog_async_vs_real_time_work_survey: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/async-vs-real-time-work-survey/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('async or real'); | |
| }); | |
| test('blog_async_vs_real_time_work_survey: h1 "Async or real-time: which work"', async ({ page }) => { | |
| await page.goto('/blog/async-vs-real-time-work-survey/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Async or real-time: which working style helps your team thrive?' || t.startsWith('Async or real-time: which working style helps your team thrive?'))).toBeTruthy(); | |
| }); | |
| test('blog_async_vs_real_time_work_survey: h1 "Why it\'s worth asking"', async ({ page }) => { | |
| await page.goto('/blog/async-vs-real-time-work-survey/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Why it\'s worth asking' || t.startsWith('Why it\'s worth asking'))).toBeTruthy(); | |
| }); | |
| test('blog_async_vs_real_time_work_survey: h1 "Your take counts (and stays an"', async ({ page }) => { | |
| await page.goto('/blog/async-vs-real-time-work-survey/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Your take counts (and stays anonymous)' || t.startsWith('Your take counts (and stays anonymous)'))).toBeTruthy(); | |
| }); | |
| test('blog_async_vs_real_time_work_survey: h1 "Fill it out and help pass it a"', async ({ page }) => { | |
| await page.goto('/blog/async-vs-real-time-work-survey/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Fill it out and help pass it along' || t.startsWith('Fill it out and help pass it along'))).toBeTruthy(); | |
| }); | |
| test('blog_async_vs_real_time_work_survey: header link "Download"', async ({ page }) => { | |
| await page.goto('/blog/async-vs-real-time-work-survey/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_async_vs_real_time_work_survey: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/blog/async-vs-real-time-work-survey/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('blog_async_vs_real_time_work_survey: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/blog/async-vs-real-time-work-survey/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_async_vs_real_time_work_survey: nav link "AI FlowchartsBoost how much yo"', async ({ page }) => { | |
| await page.goto('/blog/async-vs-real-time-work-survey/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost how much you get done with automated buil' || t.startsWith('AI FlowchartsBoost how much you get done with automated buil')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_building_the_vellora_text_editor_part_2', () => { | |
| test('blog_building_the_vellora_text_editor_part_2: page loads without error', async ({ page }) => { | |
| const response = await page.goto('/blog/building-the-vellora-text-editor-part-2/'); | |
| expect(response?.status()).toBeLessThan(400); | |
| await expect(page.locator('body')).toBeVisible(); | |
| }); | |
| test('blog_building_the_vellora_text_editor_part_2: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/building-the-vellora-text-editor-part-2/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('building the vellora text editor'); | |
| }); | |
| test('blog_building_the_vellora_text_editor_part_2: h1 "Crafting the Vellora text edit"', async ({ page }) => { | |
| await page.goto('/blog/building-the-vellora-text-editor-part-2/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Crafting the Vellora text editor: part 2' || t.startsWith('Crafting the Vellora text editor: part 2'))).toBeTruthy(); | |
| }); | |
| test('blog_building_the_vellora_text_editor_part_2: h2 "The newest chapter — building "', async ({ page }) => { | |
| await page.goto('/blog/building-the-vellora-text-editor-part-2/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The newest chapter — building for global language support' || t.startsWith('The newest chapter — building for global language support'))).toBeTruthy(); | |
| }); | |
| test('blog_building_the_vellora_text_editor_part_2: h2 "Pausing to reflect on the whol"', async ({ page }) => { | |
| await page.goto('/blog/building-the-vellora-text-editor-part-2/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Pausing to reflect on the whole thing' || t.startsWith('Pausing to reflect on the whole thing'))).toBeTruthy(); | |
| }); | |
| test('blog_building_the_vellora_text_editor_part_2: h2 "Try Vellora"', async ({ page }) => { | |
| await page.goto('/blog/building-the-vellora-text-editor-part-2/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Try Vellora' || t.startsWith('Try Vellora'))).toBeTruthy(); | |
| }); | |
| test('blog_building_the_vellora_text_editor_part_2: header link "Download"', async ({ page }) => { | |
| await page.goto('/blog/building-the-vellora-text-editor-part-2/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_building_the_vellora_text_editor_part_2: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/blog/building-the-vellora-text-editor-part-2/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('blog_building_the_vellora_text_editor_part_2: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/blog/building-the-vellora-text-editor-part-2/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_building_the_vellora_text_editor_part_2: nav link "AI FlowchartsBoost your workfl"', async ({ page }) => { | |
| await page.goto('/blog/building-the-vellora-text-editor-part-2/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost your workflow with fully automated creati' || t.startsWith('AI FlowchartsBoost your workflow with fully automated creati')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_business', () => { | |
| test('blog_business: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/business/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('business posts'); | |
| }); | |
| test('blog_business: h1 "Business"', async ({ page }) => { | |
| await page.goto('/blog/business/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Business' || t.startsWith('Business'))).toBeTruthy(); | |
| }); | |
| test('blog_business: h2 "Ready to think more visually?"', async ({ page }) => { | |
| await page.goto('/blog/business/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Ready to think more visually?' || t.startsWith('Ready to think more visually?'))).toBeTruthy(); | |
| }); | |
| test('blog_business: header link "Download"', async ({ page }) => { | |
| await page.goto('/blog/business/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_business: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/blog/business/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('blog_business: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/blog/business/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_business: nav link "AI FlowchartsBoost your moment"', async ({ page }) => { | |
| await page.goto('/blog/business/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost your momentum with fully automated diagra' || t.startsWith('AI FlowchartsBoost your momentum with fully automated diagra')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_choosing_depth_over_breadth', () => { | |
| test('blog_choosing_depth_over_breadth: page loads without error', async ({ page }) => { | |
| const response = await page.goto('/blog/choosing-depth-over-breadth/'); | |
| expect(response?.status()).toBeLessThan(400); | |
| await expect(page.locator('body')).toBeVisible(); | |
| }); | |
| test('blog_choosing_depth_over_breadth: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/choosing-depth-over-breadth/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('choosing focus over sprawl'); | |
| }); | |
| test('blog_choosing_depth_over_breadth: h1 "Choosing depth over breadth"', async ({ page }) => { | |
| await page.goto('/blog/choosing-depth-over-breadth/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Choosing depth over breadth' || t.startsWith('Choosing depth over breadth'))).toBeTruthy(); | |
| }); | |
| test('blog_choosing_depth_over_breadth: h2 "Try Vellora"', async ({ page }) => { | |
| await page.goto('/blog/choosing-depth-over-breadth/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Try Vellora' || t.startsWith('Try Vellora'))).toBeTruthy(); | |
| }); | |
| test('blog_choosing_depth_over_breadth: h2 "A better way to work awaits."', async ({ page }) => { | |
| await page.goto('/blog/choosing-depth-over-breadth/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'A better way to work awaits.' || t.startsWith('A better way to work awaits.'))).toBeTruthy(); | |
| }); | |
| test('blog_choosing_depth_over_breadth: h3 "Shipping fewer but better feat"', async ({ page }) => { | |
| await page.goto('/blog/choosing-depth-over-breadth/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Shipping fewer but better features' || t.startsWith('Shipping fewer but better features'))).toBeTruthy(); | |
| }); | |
| test('blog_choosing_depth_over_breadth: header link "Download"', async ({ page }) => { | |
| await page.goto('/blog/choosing-depth-over-breadth/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_choosing_depth_over_breadth: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/blog/choosing-depth-over-breadth/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('blog_choosing_depth_over_breadth: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/blog/choosing-depth-over-breadth/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_choosing_depth_over_breadth: nav link "AI FlowchartsBoost your workfl"', async ({ page }) => { | |
| await page.goto('/blog/choosing-depth-over-breadth/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost your workflow with instant, automated dia' || t.startsWith('AI FlowchartsBoost your workflow with instant, automated dia')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_design', () => { | |
| test('blog_design: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/design/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('design posts'); | |
| }); | |
| test('blog_design: h1 "Design"', async ({ page }) => { | |
| await page.goto('/blog/design/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Design' || t.startsWith('Design'))).toBeTruthy(); | |
| }); | |
| test('blog_design: h2 "Ready to rethink how you work?"', async ({ page }) => { | |
| await page.goto('/blog/design/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Ready to rethink how you work?' || t.startsWith('Ready to rethink how you work?'))).toBeTruthy(); | |
| }); | |
| test('blog_design: header link "Download"', async ({ page }) => { | |
| await page.goto('/blog/design/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_design: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/blog/design/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('blog_design: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/blog/design/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_design: nav link "AI FlowchartsBoost how much yo"', async ({ page }) => { | |
| await page.goto('/blog/design/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost how much you create with automatic genera' || t.startsWith('AI FlowchartsBoost how much you create with automatic genera')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_going_0_to_1ish', () => { | |
| test('blog_going_0_to_1ish: page loads without error', async ({ page }) => { | |
| const response = await page.goto('/blog/going-0-to-1ish/'); | |
| expect(response?.status()).toBeLessThan(400); | |
| await expect(page.locator('body')).toBeVisible(); | |
| }); | |
| test('blog_going_0_to_1ish: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/going-0-to-1ish/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('from zero to nearly one'); | |
| }); | |
| test('blog_going_0_to_1ish: h1 "Chasing 0 to 1-ish"', async ({ page }) => { | |
| await page.goto('/blog/going-0-to-1ish/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Chasing 0 to 1-ish' || t.startsWith('Chasing 0 to 1-ish'))).toBeTruthy(); | |
| }); | |
| test('blog_going_0_to_1ish: h2 "Where it began"', async ({ page }) => { | |
| await page.goto('/blog/going-0-to-1ish/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Where it began' || t.startsWith('Where it began'))).toBeTruthy(); | |
| }); | |
| test('blog_going_0_to_1ish: h2 "2023 and standing apart"', async ({ page }) => { | |
| await page.goto('/blog/going-0-to-1ish/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === '2023 and standing apart' || t.startsWith('2023 and standing apart'))).toBeTruthy(); | |
| }); | |
| test('blog_going_0_to_1ish: h2 "The pivot"', async ({ page }) => { | |
| await page.goto('/blog/going-0-to-1ish/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The pivot' || t.startsWith('The pivot'))).toBeTruthy(); | |
| }); | |
| test('blog_going_0_to_1ish: header link "Download"', async ({ page }) => { | |
| await page.goto('/blog/going-0-to-1ish/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_going_0_to_1ish: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/blog/going-0-to-1ish/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('blog_going_0_to_1ish: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/blog/going-0-to-1ish/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_going_0_to_1ish: nav link "AI FlowchartsBoost your workfl"', async ({ page }) => { | |
| await page.goto('/blog/going-0-to-1ish/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost your workflow with automatic diagram crea' || t.startsWith('AI FlowchartsBoost your workflow with automatic diagram crea')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_how_async_work_inspires_craftsmanship', () => { | |
| test('blog_how_async_work_inspires_craftsmanship: page loads without error', async ({ page }) => { | |
| const response = await page.goto('/blog/how-async-work-inspires-craftsmanship/'); | |
| expect(response?.status()).toBeLessThan(400); | |
| await expect(page.locator('body')).toBeVisible(); | |
| }); | |
| test('blog_how_async_work_inspires_craftsmanship: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/how-async-work-inspires-craftsmanship/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('how async work sparks real craftsmanship'); | |
| }); | |
| test('blog_how_async_work_inspires_craftsmanship: h1 "Why remote-first teams do thei"', async ({ page }) => { | |
| await page.goto('/blog/how-async-work-inspires-craftsmanship/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Why remote-first teams do their finest work' || t.startsWith('Why remote-first teams do their finest work'))).toBeTruthy(); | |
| }); | |
| test('blog_how_async_work_inspires_craftsmanship: h2 "Resources:"', async ({ page }) => { | |
| await page.goto('/blog/how-async-work-inspires-craftsmanship/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Resources:' || t.startsWith('Resources:'))).toBeTruthy(); | |
| }); | |
| test('blog_how_async_work_inspires_craftsmanship: h2 "Try Vellora"', async ({ page }) => { | |
| await page.goto('/blog/how-async-work-inspires-craftsmanship/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Try Vellora' || t.startsWith('Try Vellora'))).toBeTruthy(); | |
| }); | |
| test('blog_how_async_work_inspires_craftsmanship: h2 "Rethink how your team creates."', async ({ page }) => { | |
| await page.goto('/blog/how-async-work-inspires-craftsmanship/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Rethink how your team creates.' || t.startsWith('Rethink how your team creates.'))).toBeTruthy(); | |
| }); | |
| test('blog_how_async_work_inspires_craftsmanship: header link "Download"', async ({ page }) => { | |
| await page.goto('/blog/how-async-work-inspires-craftsmanship/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_how_async_work_inspires_craftsmanship: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/blog/how-async-work-inspires-craftsmanship/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('blog_how_async_work_inspires_craftsmanship: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/blog/how-async-work-inspires-craftsmanship/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_how_async_work_inspires_craftsmanship: nav link "AI FlowchartsBoost your output"', async ({ page }) => { | |
| await page.goto('/blog/how-async-work-inspires-craftsmanship/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost your output with diagrams generated for y' || t.startsWith('AI FlowchartsBoost your output with diagrams generated for y')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_investing_in_a_sustainable_future', () => { | |
| test('blog_investing_in_a_sustainable_future: page loads without error', async ({ page }) => { | |
| const response = await page.goto('/blog/investing-in-a-sustainable-future/'); | |
| expect(response?.status()).toBeLessThan(400); | |
| await expect(page.locator('body')).toBeVisible(); | |
| }); | |
| test('blog_investing_in_a_sustainable_future: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/investing-in-a-sustainable-future/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('building toward a sustainable future'); | |
| }); | |
| test('blog_investing_in_a_sustainable_future: h1 "Investing in a sustainable fut"', async ({ page }) => { | |
| await page.goto('/blog/investing-in-a-sustainable-future/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Investing in a sustainable future' || t.startsWith('Investing in a sustainable future'))).toBeTruthy(); | |
| }); | |
| test('blog_investing_in_a_sustainable_future: h2 "References:"', async ({ page }) => { | |
| await page.goto('/blog/investing-in-a-sustainable-future/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'References:' || t.startsWith('References:'))).toBeTruthy(); | |
| }); | |
| test('blog_investing_in_a_sustainable_future: h2 "Try Vellora"', async ({ page }) => { | |
| await page.goto('/blog/investing-in-a-sustainable-future/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Try Vellora' || t.startsWith('Try Vellora'))).toBeTruthy(); | |
| }); | |
| test('blog_investing_in_a_sustainable_future: h2 "Reimagine how your team works."', async ({ page }) => { | |
| await page.goto('/blog/investing-in-a-sustainable-future/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Reimagine how your team works.' || t.startsWith('Reimagine how your team works.'))).toBeTruthy(); | |
| }); | |
| test('blog_investing_in_a_sustainable_future: header link "Download"', async ({ page }) => { | |
| await page.goto('/blog/investing-in-a-sustainable-future/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_investing_in_a_sustainable_future: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/blog/investing-in-a-sustainable-future/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('blog_investing_in_a_sustainable_future: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/blog/investing-in-a-sustainable-future/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_investing_in_a_sustainable_future: nav link "AI FlowchartsBoost your workfl"', async ({ page }) => { | |
| await page.goto('/blog/investing-in-a-sustainable-future/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost your workflow with instant, automated dia' || t.startsWith('AI FlowchartsBoost your workflow with instant, automated dia')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_product', () => { | |
| test('blog_product: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/product/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('product posts'); | |
| }); | |
| test('blog_product: h1 "Product"', async ({ page }) => { | |
| await page.goto('/blog/product/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Product' || t.startsWith('Product'))).toBeTruthy(); | |
| }); | |
| test('blog_product: h2 "It\'s time to think together."', async ({ page }) => { | |
| await page.goto('/blog/product/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'It\'s time to think together.' || t.startsWith('It\'s time to think together.'))).toBeTruthy(); | |
| }); | |
| test('blog_product: header link "Download"', async ({ page }) => { | |
| await page.goto('/blog/product/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_product: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/blog/product/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('blog_product: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/blog/product/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_product: nav link "AI FlowchartsBoost your workfl"', async ({ page }) => { | |
| await page.goto('/blog/product/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost your workflow with instant automated gene' || t.startsWith('AI FlowchartsBoost your workflow with instant automated gene')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_state_of_async_2026', () => { | |
| test('blog_state_of_async_2026: page loads without error', async ({ page }) => { | |
| const response = await page.goto('/blog/state-of-async-2026/'); | |
| expect(response?.status()).toBeLessThan(400); | |
| await expect(page.locator('body')).toBeVisible(); | |
| }); | |
| test('blog_state_of_async_2026: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/state-of-async-2026/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('over 80% of teams ship faster when they '); | |
| }); | |
| test('blog_state_of_async_2026: h1 "State of Async Work in 2026"', async ({ page }) => { | |
| await page.goto('/blog/state-of-async-2026/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'State of Async Work in 2026' || t.startsWith('State of Async Work in 2026'))).toBeTruthy(); | |
| }); | |
| test('blog_state_of_async_2026: h2 "Who took the survey?"', async ({ page }) => { | |
| await page.goto('/blog/state-of-async-2026/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Who took the survey?' || t.startsWith('Who took the survey?'))).toBeTruthy(); | |
| }); | |
| test('blog_state_of_async_2026: h2 "More async is the wish for 52."', async ({ page }) => { | |
| await page.goto('/blog/state-of-async-2026/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'More async is the wish for 52.8%, while only 8.3% want less' || t.startsWith('More async is the wish for 52.8%, while only 8.3% want less'))).toBeTruthy(); | |
| }); | |
| test('blog_state_of_async_2026: h2 "83% report async lifts their p"', async ({ page }) => { | |
| await page.goto('/blog/state-of-async-2026/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === '83% report async lifts their productivity' || t.startsWith('83% report async lifts their productivity'))).toBeTruthy(); | |
| }); | |
| test('blog_state_of_async_2026: header link "Download"', async ({ page }) => { | |
| await page.goto('/blog/state-of-async-2026/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_state_of_async_2026: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/blog/state-of-async-2026/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('blog_state_of_async_2026: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/blog/state-of-async-2026/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_state_of_async_2026: nav link "AI FlowchartsBoost how much yo"', async ({ page }) => { | |
| await page.goto('/blog/state-of-async-2026/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost how much you get done with automatic crea' || t.startsWith('AI FlowchartsBoost how much you get done with automatic crea')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_tabbed_folders_use_cases', () => { | |
| test('blog_tabbed_folders_use_cases: page loads without error', async ({ page }) => { | |
| const response = await page.goto('/blog/tabbed-folders-use-cases/'); | |
| expect(response?.status()).toBeLessThan(400); | |
| await expect(page.locator('body')).toBeVisible(); | |
| }); | |
| test('blog_tabbed_folders_use_cases: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/tabbed-folders-use-cases/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('tabbed folders'); | |
| }); | |
| test('blog_tabbed_folders_use_cases: h1 "Tabbed folders: a fresh approa"', async ({ page }) => { | |
| await page.goto('/blog/tabbed-folders-use-cases/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Tabbed folders: a fresh approach to organizing your work' || t.startsWith('Tabbed folders: a fresh approach to organizing your work'))).toBeTruthy(); | |
| }); | |
| test('blog_tabbed_folders_use_cases: h2 "How the Vellora team uses tabb"', async ({ page }) => { | |
| await page.goto('/blog/tabbed-folders-use-cases/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How the Vellora team uses tabbed folders' || t.startsWith('How the Vellora team uses tabbed folders'))).toBeTruthy(); | |
| }); | |
| test('blog_tabbed_folders_use_cases: h2 "It\'s only the beginning"', async ({ page }) => { | |
| await page.goto('/blog/tabbed-folders-use-cases/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'It\'s only the beginning' || t.startsWith('It\'s only the beginning'))).toBeTruthy(); | |
| }); | |
| test('blog_tabbed_folders_use_cases: h2 "Further reading:"', async ({ page }) => { | |
| await page.goto('/blog/tabbed-folders-use-cases/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Further reading:' || t.startsWith('Further reading:'))).toBeTruthy(); | |
| }); | |
| test('blog_tabbed_folders_use_cases: header link "Download"', async ({ page }) => { | |
| await page.goto('/blog/tabbed-folders-use-cases/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_tabbed_folders_use_cases: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/blog/tabbed-folders-use-cases/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('blog_tabbed_folders_use_cases: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/blog/tabbed-folders-use-cases/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_tabbed_folders_use_cases: nav link "AI FlowchartsBoost how fast yo"', async ({ page }) => { | |
| await page.goto('/blog/tabbed-folders-use-cases/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost how fast you work with automated diagram ' || t.startsWith('AI FlowchartsBoost how fast you work with automated diagram ')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - blog_tech', () => { | |
| test('blog_tech: title matches GT', async ({ page }) => { | |
| await page.goto('/blog/tech/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('tech posts'); | |
| }); | |
| test('blog_tech: h1 "Tech"', async ({ page }) => { | |
| await page.goto('/blog/tech/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Tech' || t.startsWith('Tech'))).toBeTruthy(); | |
| }); | |
| test('blog_tech: h2 "Rethink the way your team buil"', async ({ page }) => { | |
| await page.goto('/blog/tech/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Rethink the way your team builds.' || t.startsWith('Rethink the way your team builds.'))).toBeTruthy(); | |
| }); | |
| test('blog_tech: header link "Download"', async ({ page }) => { | |
| await page.goto('/blog/tech/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_tech: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/blog/tech/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('blog_tech: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/blog/tech/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('blog_tech: nav link "AI FlowchartsBoost your workfl"', async ({ page }) => { | |
| await page.goto('/blog/tech/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost your workflow with instant automated diag' || t.startsWith('AI FlowchartsBoost your workflow with instant automated diag')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - company_careers', () => { | |
| test('company_careers: title matches GT', async ({ page }) => { | |
| await page.goto('/company/careers/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('careers at vellora'); | |
| }); | |
| test('company_careers: h1 "Shape the future of focused wo"', async ({ page }) => { | |
| await page.goto('/company/careers/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Shape the future of focused work with us' || t.startsWith('Shape the future of focused work with us'))).toBeTruthy(); | |
| }); | |
| test('company_careers: h2 "We champion focused and asynch"', async ({ page }) => { | |
| await page.goto('/company/careers/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'We champion focused and asynchronous work' || t.startsWith('We champion focused and asynchronous work'))).toBeTruthy(); | |
| }); | |
| test('company_careers: h2 "Benefits worth having"', async ({ page }) => { | |
| await page.goto('/company/careers/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Benefits worth having' || t.startsWith('Benefits worth having'))).toBeTruthy(); | |
| }); | |
| test('company_careers: h2 "Open positions"', async ({ page }) => { | |
| await page.goto('/company/careers/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Open positions' || t.startsWith('Open positions'))).toBeTruthy(); | |
| }); | |
| test('company_careers: header link "Download"', async ({ page }) => { | |
| await page.goto('/company/careers/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('company_careers: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/company/careers/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('company_careers: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/company/careers/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('company_careers: nav link "AI Flow MapsSpeed up your work"', async ({ page }) => { | |
| await page.goto('/company/careers/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI Flow MapsSpeed up your work with automatic, AI-assisted c' || t.startsWith('AI Flow MapsSpeed up your work with automatic, AI-assisted c')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - company_contact_sales', () => { | |
| test('company_contact_sales: title matches GT', async ({ page }) => { | |
| await page.goto('/company/contact-sales/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('contact vellora sales'); | |
| }); | |
| test('company_contact_sales: h1 "Get in touch with sales"', async ({ page }) => { | |
| await page.goto('/company/contact-sales/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Get in touch with sales' || t.startsWith('Get in touch with sales'))).toBeTruthy(); | |
| }); | |
| test('company_contact_sales: h2 "Vellora fuels the planet\'s bes"', async ({ page }) => { | |
| await page.goto('/company/contact-sales/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Vellora fuels the planet\'s best teams, from scrappy startups to global enterprises.' || t.startsWith('Vellora fuels the planet\'s best teams, from scrappy startups to global enterprises.'))).toBeTruthy(); | |
| }); | |
| test('company_contact_sales: h2 "Ready to rethink how you work?"', async ({ page }) => { | |
| await page.goto('/company/contact-sales/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Ready to rethink how you work?' || t.startsWith('Ready to rethink how you work?'))).toBeTruthy(); | |
| }); | |
| test('company_contact_sales: h3 "Thank you!"', async ({ page }) => { | |
| await page.goto('/company/contact-sales/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Thank you!' || t.startsWith('Thank you!'))).toBeTruthy(); | |
| }); | |
| test('company_contact_sales: header link "Download"', async ({ page }) => { | |
| await page.goto('/company/contact-sales/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('company_contact_sales: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/company/contact-sales/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('company_contact_sales: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/company/contact-sales/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('company_contact_sales: nav link "AI FlowchartsBoost your produc"', async ({ page }) => { | |
| await page.goto('/company/contact-sales/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost your productivity with automated, effortl' || t.startsWith('AI FlowchartsBoost your productivity with automated, effortl')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - company_security', () => { | |
| test('company_security: title matches GT', async ({ page }) => { | |
| await page.goto('/company/security/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('security'); | |
| }); | |
| test('company_security: h1 "Security"', async ({ page }) => { | |
| await page.goto('/company/security/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Security' || t.startsWith('Security'))).toBeTruthy(); | |
| }); | |
| test('company_security: h2 "Safe, secure sign-in"', async ({ page }) => { | |
| await page.goto('/company/security/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Safe, secure sign-in' || t.startsWith('Safe, secure sign-in'))).toBeTruthy(); | |
| }); | |
| test('company_security: h2 "Physical safeguards"', async ({ page }) => { | |
| await page.goto('/company/security/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Physical safeguards' || t.startsWith('Physical safeguards'))).toBeTruthy(); | |
| }); | |
| test('company_security: h2 "Data durability"', async ({ page }) => { | |
| await page.goto('/company/security/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Data durability' || t.startsWith('Data durability'))).toBeTruthy(); | |
| }); | |
| test('company_security: header link "Download"', async ({ page }) => { | |
| await page.goto('/company/security/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('company_security: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/company/security/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('company_security: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/company/security/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('company_security: nav link "AI FlowchartsBoost your workfl"', async ({ page }) => { | |
| await page.goto('/company/security/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost your workflow with automated diagram gene' || t.startsWith('AI FlowchartsBoost your workflow with automated diagram gene')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - customers_goodpatch', () => { | |
| test('customers_goodpatch: title matches GT', async ({ page }) => { | |
| await page.goto('/customers/goodpatch/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('how northwind studio works together with'); | |
| }); | |
| test('customers_goodpatch: h1 "A canvas the whole team loves:"', async ({ page }) => { | |
| await page.goto('/customers/goodpatch/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'A canvas the whole team loves: How Larkfield collaborates using Vellora' || t.startsWith('A canvas the whole team loves: How Larkfield collaborates using Vellora'))).toBeTruthy(); | |
| }); | |
| test('customers_goodpatch: h2 "Story summary"', async ({ page }) => { | |
| await page.goto('/customers/goodpatch/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Story summary' || t.startsWith('Story summary'))).toBeTruthy(); | |
| }); | |
| test('customers_goodpatch: h2 "Hunting for a tool the whole t"', async ({ page }) => { | |
| await page.goto('/customers/goodpatch/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Hunting for a tool the whole team shares' || t.startsWith('Hunting for a tool the whole team shares'))).toBeTruthy(); | |
| }); | |
| test('customers_goodpatch: h2 "A smoother way to work"', async ({ page }) => { | |
| await page.goto('/customers/goodpatch/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'A smoother way to work' || t.startsWith('A smoother way to work'))).toBeTruthy(); | |
| }); | |
| test('customers_goodpatch: header link "Download"', async ({ page }) => { | |
| await page.goto('/customers/goodpatch/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('customers_goodpatch: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/customers/goodpatch/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('customers_goodpatch: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/customers/goodpatch/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('customers_goodpatch: nav link "AI FlowchartsBoost how much yo"', async ({ page }) => { | |
| await page.goto('/customers/goodpatch/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost how much you get done with automated buil' || t.startsWith('AI FlowchartsBoost how much you get done with automated buil')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - customers_how_innovatemap_uses_vellora_to_move_product_solutions_forward', () => { | |
| test('customers_how_innovatemap_uses_vellora_to_move_product_solutions_forward: title matches GT', async ({ page }) => { | |
| await page.goto('/customers/how-innovatemap-uses-vellora-to-move-product-solutions-forward/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('how brightforge uses vellora to keep pro'); | |
| }); | |
| test('customers_how_innovatemap_uses_vellora_to_move_product_solutions_forward: h1 "How Brightforge uses Vellora t"', async ({ page }) => { | |
| await page.goto('/customers/how-innovatemap-uses-vellora-to-move-product-solutions-forward/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How Brightforge uses Vellora to move product solutions forward' || t.startsWith('How Brightforge uses Vellora to move product solutions forward'))).toBeTruthy(); | |
| }); | |
| test('customers_how_innovatemap_uses_vellora_to_move_product_solutions_forward: h2 "Story snapshot"', async ({ page }) => { | |
| await page.goto('/customers/how-innovatemap-uses-vellora-to-move-product-solutions-forward/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Story snapshot' || t.startsWith('Story snapshot'))).toBeTruthy(); | |
| }); | |
| test('customers_how_innovatemap_uses_vellora_to_move_product_solutions_forward: h2 "Clear visuals are how teams al"', async ({ page }) => { | |
| await page.goto('/customers/how-innovatemap-uses-vellora-to-move-product-solutions-forward/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Clear visuals are how teams align' || t.startsWith('Clear visuals are how teams align'))).toBeTruthy(); | |
| }); | |
| test('customers_how_innovatemap_uses_vellora_to_move_product_solutions_forward: h2 "Why Brightforge chose Vellora"', async ({ page }) => { | |
| await page.goto('/customers/how-innovatemap-uses-vellora-to-move-product-solutions-forward/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Why Brightforge chose Vellora' || t.startsWith('Why Brightforge chose Vellora'))).toBeTruthy(); | |
| }); | |
| test('customers_how_innovatemap_uses_vellora_to_move_product_solutions_forward: header link "Download"', async ({ page }) => { | |
| await page.goto('/customers/how-innovatemap-uses-vellora-to-move-product-solutions-forward/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('customers_how_innovatemap_uses_vellora_to_move_product_solutions_forward: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/customers/how-innovatemap-uses-vellora-to-move-product-solutions-forward/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('customers_how_innovatemap_uses_vellora_to_move_product_solutions_forward: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/customers/how-innovatemap-uses-vellora-to-move-product-solutions-forward/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('customers_how_innovatemap_uses_vellora_to_move_product_solutions_forward: nav link "AI FlowchartsGive your product"', async ({ page }) => { | |
| await page.goto('/customers/how-innovatemap-uses-vellora-to-move-product-solutions-forward/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsGive your productivity a lift with automated cr' || t.startsWith('AI FlowchartsGive your productivity a lift with automated cr')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - customers_how_sharetribe_uses_vellora_for_product_shaping', () => { | |
| test('customers_how_sharetribe_uses_vellora_for_product_shaping: title matches GT', async ({ page }) => { | |
| await page.goto('/customers/how-sharetribe-uses-vellora-for-product-shaping/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('nestbridge’s story'); | |
| }); | |
| test('customers_how_sharetribe_uses_vellora_for_product_shaping: h1 "Marketvine’s story: how a dist"', async ({ page }) => { | |
| await page.goto('/customers/how-sharetribe-uses-vellora-for-product-shaping/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Marketvine’s story: how a distributed team found their home for product shaping' || t.startsWith('Marketvine’s story: how a distributed team found their home for product shaping'))).toBeTruthy(); | |
| }); | |
| test('customers_how_sharetribe_uses_vellora_for_product_shaping: h2 "Story summary"', async ({ page }) => { | |
| await page.goto('/customers/how-sharetribe-uses-vellora-for-product-shaping/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Story summary' || t.startsWith('Story summary'))).toBeTruthy(); | |
| }); | |
| test('customers_how_sharetribe_uses_vellora_for_product_shaping: h2 "One bright space for planning "', async ({ page }) => { | |
| await page.goto('/customers/how-sharetribe-uses-vellora-for-product-shaping/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'One bright space for planning and team updates' || t.startsWith('One bright space for planning and team updates'))).toBeTruthy(); | |
| }); | |
| test('customers_how_sharetribe_uses_vellora_for_product_shaping: h2 "Specs, diagrams, and the earli"', async ({ page }) => { | |
| await page.goto('/customers/how-sharetribe-uses-vellora-for-product-shaping/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Specs, diagrams, and the earliest sketches' || t.startsWith('Specs, diagrams, and the earliest sketches'))).toBeTruthy(); | |
| }); | |
| test('customers_how_sharetribe_uses_vellora_for_product_shaping: header link "Download"', async ({ page }) => { | |
| await page.goto('/customers/how-sharetribe-uses-vellora-for-product-shaping/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('customers_how_sharetribe_uses_vellora_for_product_shaping: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/customers/how-sharetribe-uses-vellora-for-product-shaping/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('customers_how_sharetribe_uses_vellora_for_product_shaping: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/customers/how-sharetribe-uses-vellora-for-product-shaping/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('customers_how_sharetribe_uses_vellora_for_product_shaping: nav link "AI FlowchartsBoost your moment"', async ({ page }) => { | |
| await page.goto('/customers/how-sharetribe-uses-vellora-for-product-shaping/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost your momentum with automated diagram crea' || t.startsWith('AI FlowchartsBoost your momentum with automated diagram crea')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - integrations_claude', () => { | |
| test('integrations_claude: title matches GT', async ({ page }) => { | |
| await page.goto('/integrations/claude/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('lumen'); | |
| }); | |
| test('integrations_claude: h1 "Lumen"', async ({ page }) => { | |
| await page.goto('/integrations/claude/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Lumen' || t.startsWith('Lumen'))).toBeTruthy(); | |
| }); | |
| test('integrations_claude: h2 "Made by"', async ({ page }) => { | |
| await page.goto('/integrations/claude/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Made by' || t.startsWith('Made by'))).toBeTruthy(); | |
| }); | |
| test('integrations_claude: h2 "Website"', async ({ page }) => { | |
| await page.goto('/integrations/claude/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Website' || t.startsWith('Website'))).toBeTruthy(); | |
| }); | |
| test('integrations_claude: h2 "Resources"', async ({ page }) => { | |
| await page.goto('/integrations/claude/'); | |
| 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('integrations_claude: header link "Download"', async ({ page }) => { | |
| await page.goto('/integrations/claude/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('integrations_claude: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/integrations/claude/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('integrations_claude: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/integrations/claude/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('integrations_claude: nav link "AI FlowchartsBoost your moment"', async ({ page }) => { | |
| await page.goto('/integrations/claude/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost your momentum with diagrams built for you' || t.startsWith('AI FlowchartsBoost your momentum with diagrams built for you')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - integrations_codex', () => { | |
| test('integrations_codex: title matches GT', async ({ page }) => { | |
| await page.goto('/integrations/codex/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('codavia'); | |
| }); | |
| test('integrations_codex: h1 "Codavia"', async ({ page }) => { | |
| await page.goto('/integrations/codex/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Codavia' || t.startsWith('Codavia'))).toBeTruthy(); | |
| }); | |
| test('integrations_codex: h2 "Made by"', async ({ page }) => { | |
| await page.goto('/integrations/codex/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Made by' || t.startsWith('Made by'))).toBeTruthy(); | |
| }); | |
| test('integrations_codex: h2 "Website"', async ({ page }) => { | |
| await page.goto('/integrations/codex/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Website' || t.startsWith('Website'))).toBeTruthy(); | |
| }); | |
| test('integrations_codex: h2 "Resources"', async ({ page }) => { | |
| await page.goto('/integrations/codex/'); | |
| 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('integrations_codex: header link "Download"', async ({ page }) => { | |
| await page.goto('/integrations/codex/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('integrations_codex: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/integrations/codex/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('integrations_codex: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/integrations/codex/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('integrations_codex: nav link "AI FlowchartsBoost how much yo"', async ({ page }) => { | |
| await page.goto('/integrations/codex/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost how much you get done with hands-off buil' || t.startsWith('AI FlowchartsBoost how much you get done with hands-off buil')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - integrations_github', () => { | |
| test('integrations_github: title matches GT', async ({ page }) => { | |
| await page.goto('/integrations/github/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('forgepoint'); | |
| }); | |
| test('integrations_github: h1 "Forgepoint"', async ({ page }) => { | |
| await page.goto('/integrations/github/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Forgepoint' || t.startsWith('Forgepoint'))).toBeTruthy(); | |
| }); | |
| test('integrations_github: h2 "Made by"', async ({ page }) => { | |
| await page.goto('/integrations/github/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Made by' || t.startsWith('Made by'))).toBeTruthy(); | |
| }); | |
| test('integrations_github: h2 "Website"', async ({ page }) => { | |
| await page.goto('/integrations/github/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Website' || t.startsWith('Website'))).toBeTruthy(); | |
| }); | |
| test('integrations_github: h2 "Resources"', async ({ page }) => { | |
| await page.goto('/integrations/github/'); | |
| 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('integrations_github: header link "Download"', async ({ page }) => { | |
| await page.goto('/integrations/github/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('integrations_github: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/integrations/github/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('integrations_github: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/integrations/github/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('integrations_github: nav link "AI FlowchartsSpeed up your wor"', async ({ page }) => { | |
| await page.goto('/integrations/github/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsSpeed up your work with charts that build thems' || t.startsWith('AI FlowchartsSpeed up your work with charts that build thems')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - integrations_google_docs', () => { | |
| test('integrations_google_docs: title matches GT', async ({ page }) => { | |
| await page.goto('/integrations/google-docs/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('docwave'); | |
| }); | |
| test('integrations_google_docs: h1 "Docwave"', async ({ page }) => { | |
| await page.goto('/integrations/google-docs/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Docwave' || t.startsWith('Docwave'))).toBeTruthy(); | |
| }); | |
| test('integrations_google_docs: h2 "Made by"', async ({ page }) => { | |
| await page.goto('/integrations/google-docs/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Made by' || t.startsWith('Made by'))).toBeTruthy(); | |
| }); | |
| test('integrations_google_docs: h2 "Website"', async ({ page }) => { | |
| await page.goto('/integrations/google-docs/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Website' || t.startsWith('Website'))).toBeTruthy(); | |
| }); | |
| test('integrations_google_docs: h2 "Resources"', async ({ page }) => { | |
| await page.goto('/integrations/google-docs/'); | |
| 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('integrations_google_docs: header link "Download"', async ({ page }) => { | |
| await page.goto('/integrations/google-docs/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('integrations_google_docs: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/integrations/google-docs/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('integrations_google_docs: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/integrations/google-docs/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('integrations_google_docs: nav link "AI FlowchartsBoost how much yo"', async ({ page }) => { | |
| await page.goto('/integrations/google-docs/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost how much you get done with automated buil' || t.startsWith('AI FlowchartsBoost how much you get done with automated buil')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - integrations_jira', () => { | |
| test('integrations_jira: title matches GT', async ({ page }) => { | |
| await page.goto('/integrations/jira/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('tasklane'); | |
| }); | |
| test('integrations_jira: h1 "Tasklane"', async ({ page }) => { | |
| await page.goto('/integrations/jira/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Tasklane' || t.startsWith('Tasklane'))).toBeTruthy(); | |
| }); | |
| test('integrations_jira: h2 "Made by"', async ({ page }) => { | |
| await page.goto('/integrations/jira/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Made by' || t.startsWith('Made by'))).toBeTruthy(); | |
| }); | |
| test('integrations_jira: h2 "Website"', async ({ page }) => { | |
| await page.goto('/integrations/jira/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Website' || t.startsWith('Website'))).toBeTruthy(); | |
| }); | |
| test('integrations_jira: h2 "Resources"', async ({ page }) => { | |
| await page.goto('/integrations/jira/'); | |
| 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('integrations_jira: header link "Download"', async ({ page }) => { | |
| await page.goto('/integrations/jira/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('integrations_jira: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/integrations/jira/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('integrations_jira: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/integrations/jira/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('integrations_jira: nav link "AI FlowchartsTurn a rough sket"', async ({ page }) => { | |
| await page.goto('/integrations/jira/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsTurn a rough sketch into a diagram in one click' || t.startsWith('AI FlowchartsTurn a rough sketch into a diagram in one click')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - integrations_linear', () => { | |
| test('integrations_linear: title matches GT', async ({ page }) => { | |
| await page.goto('/integrations/linear/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('tracklane'); | |
| }); | |
| test('integrations_linear: h1 "Tracklane"', async ({ page }) => { | |
| await page.goto('/integrations/linear/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Tracklane' || t.startsWith('Tracklane'))).toBeTruthy(); | |
| }); | |
| test('integrations_linear: h2 "Made by"', async ({ page }) => { | |
| await page.goto('/integrations/linear/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Made by' || t.startsWith('Made by'))).toBeTruthy(); | |
| }); | |
| test('integrations_linear: h2 "Website"', async ({ page }) => { | |
| await page.goto('/integrations/linear/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Website' || t.startsWith('Website'))).toBeTruthy(); | |
| }); | |
| test('integrations_linear: h2 "Resources"', async ({ page }) => { | |
| await page.goto('/integrations/linear/'); | |
| 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('integrations_linear: header link "Download"', async ({ page }) => { | |
| await page.goto('/integrations/linear/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('integrations_linear: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/integrations/linear/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('integrations_linear: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/integrations/linear/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('integrations_linear: nav link "AI FlowchartsBoost your workfl"', async ({ page }) => { | |
| await page.goto('/integrations/linear/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBoost your workflow with instant, automated cre' || t.startsWith('AI FlowchartsBoost your workflow with instant, automated cre')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - integrations_notion', () => { | |
| test('integrations_notion: title matches GT', async ({ page }) => { | |
| await page.goto('/integrations/notion/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('pagecraft'); | |
| }); | |
| test('integrations_notion: h1 "Pagecraft"', async ({ page }) => { | |
| await page.goto('/integrations/notion/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Pagecraft' || t.startsWith('Pagecraft'))).toBeTruthy(); | |
| }); | |
| test('integrations_notion: h2 "Made by"', async ({ page }) => { | |
| await page.goto('/integrations/notion/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Made by' || t.startsWith('Made by'))).toBeTruthy(); | |
| }); | |
| test('integrations_notion: h2 "Website"', async ({ page }) => { | |
| await page.goto('/integrations/notion/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Website' || t.startsWith('Website'))).toBeTruthy(); | |
| }); | |
| test('integrations_notion: h2 "Resources"', async ({ page }) => { | |
| await page.goto('/integrations/notion/'); | |
| 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('integrations_notion: header link "Download"', async ({ page }) => { | |
| await page.goto('/integrations/notion/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('integrations_notion: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/integrations/notion/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('integrations_notion: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/integrations/notion/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('integrations_notion: nav link "AI FlowchartsBuild faster than"', async ({ page }) => { | |
| await page.goto('/integrations/notion/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsBuild faster than ever with AI that does the he' || t.startsWith('AI FlowchartsBuild faster than ever with AI that does the he')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - integrations_slack', () => { | |
| test('integrations_slack: title matches GT', async ({ page }) => { | |
| await page.goto('/integrations/slack/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('chatterly'); | |
| }); | |
| test('integrations_slack: h1 "Chatterly"', async ({ page }) => { | |
| await page.goto('/integrations/slack/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Chatterly' || t.startsWith('Chatterly'))).toBeTruthy(); | |
| }); | |
| test('integrations_slack: h2 "Made by"', async ({ page }) => { | |
| await page.goto('/integrations/slack/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Made by' || t.startsWith('Made by'))).toBeTruthy(); | |
| }); | |
| test('integrations_slack: h2 "Website"', async ({ page }) => { | |
| await page.goto('/integrations/slack/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Website' || t.startsWith('Website'))).toBeTruthy(); | |
| }); | |
| test('integrations_slack: h2 "Resources"', async ({ page }) => { | |
| await page.goto('/integrations/slack/'); | |
| 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('integrations_slack: header link "Download"', async ({ page }) => { | |
| await page.goto('/integrations/slack/'); | |
| 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 === 'Download' || t.startsWith('Download')), 'link text in header').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('whimsical-logos.zip')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('integrations_slack: nav link "Log in"', async ({ page }) => { | |
| await page.goto('/integrations/slack/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Log in' || t.startsWith('Log in')), 'link text in nav').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('integrations_slack: nav link "Sign up"', async ({ page }) => { | |
| await page.goto('/integrations/slack/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('signup')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('integrations_slack: nav link "AI FlowchartsTurn a quick prom"', async ({ page }) => { | |
| await page.goto('/integrations/slack/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'AI FlowchartsTurn a quick prompt into a finished chart in se' || t.startsWith('AI FlowchartsTurn a quick prompt into a finished chart in se')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('ai-text-to-flowchart')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_boards', () => { | |
| test('learn_boards: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/boards/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('vellora boards'); | |
| }); | |
| test('learn_boards: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/boards/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_boards: h1 "Vellora boards"', async ({ page }) => { | |
| await page.goto('/learn/boards/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Vellora boards' || t.startsWith('Vellora boards'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_contact_us', () => { | |
| test('learn_contact_us: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/contact-us/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('contact us'); | |
| }); | |
| test('learn_contact_us: h1 "Guides"', async ({ page }) => { | |
| await page.goto('/learn/contact-us/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Guides' || t.startsWith('Guides'))).toBeTruthy(); | |
| }); | |
| test('learn_contact_us: h1 "Contact us"', async ({ page }) => { | |
| await page.goto('/learn/contact-us/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Contact us' || t.startsWith('Contact us'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_faqs', () => { | |
| test('learn_faqs: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/faqs/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('faqs'); | |
| }); | |
| test('learn_faqs: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/faqs/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs: h1 "FAQs"', async ({ page }) => { | |
| await page.goto('/learn/faqs/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'FAQs' || t.startsWith('FAQs'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_get_started', () => { | |
| test('learn_get_started: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/get-started/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('getting started'); | |
| }); | |
| test('learn_get_started: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/get-started/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_get_started: h1 "Getting started"', async ({ page }) => { | |
| await page.goto('/learn/get-started/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Getting started' || t.startsWith('Getting started'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_get_started_command_menu', () => { | |
| test('learn_get_started_command_menu: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/get-started/command-menu/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('using the command menu'); | |
| }); | |
| test('learn_get_started_command_menu: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/get-started/command-menu/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_get_started_command_menu: h1 "Master the command menu"', async ({ page }) => { | |
| await page.goto('/learn/get-started/command-menu/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Master the command menu' || t.startsWith('Master the command menu'))).toBeTruthy(); | |
| }); | |
| test('learn_get_started_command_menu: h2 "Launch the command menuCopied!"', async ({ page }) => { | |
| await page.goto('/learn/get-started/command-menu/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Launch the command menuCopied!Copy link to section' || t.startsWith('Launch the command menuCopied!Copy link to section'))).toBeTruthy(); | |
| }); | |
| test('learn_get_started_command_menu: h2 "Recap"', async ({ page }) => { | |
| await page.goto('/learn/get-started/command-menu/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Recap' || t.startsWith('Recap'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_get_started_flowcharts', () => { | |
| test('learn_get_started_flowcharts: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/get-started/flowcharts/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('getting started with flowcharts'); | |
| }); | |
| test('learn_get_started_flowcharts: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/get-started/flowcharts/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_get_started_flowcharts: h1 "Flowcharts: a quick-start guid"', async ({ page }) => { | |
| await page.goto('/learn/get-started/flowcharts/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Flowcharts: a quick-start guide' || t.startsWith('Flowcharts: a quick-start guide'))).toBeTruthy(); | |
| }); | |
| test('learn_get_started_flowcharts: h2 "Building a flowchartCopied!Cop"', async ({ page }) => { | |
| await page.goto('/learn/get-started/flowcharts/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Building a flowchartCopied!Copy link to section' || t.startsWith('Building a flowchartCopied!Copy link to section'))).toBeTruthy(); | |
| }); | |
| test('learn_get_started_flowcharts: h2 "Handy flowchart extrasCopied!L"', async ({ page }) => { | |
| await page.goto('/learn/get-started/flowcharts/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Handy flowchart extrasCopied!Link to this heading' || t.startsWith('Handy flowchart extrasCopied!Link to this heading'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_get_started_mind_maps', () => { | |
| test('learn_get_started_mind_maps: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/get-started/mind-maps/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('getting started with mind maps'); | |
| }); | |
| test('learn_get_started_mind_maps: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/get-started/mind-maps/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_get_started_mind_maps: h1 "Getting started with mind maps"', async ({ page }) => { | |
| await page.goto('/learn/get-started/mind-maps/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Getting started with mind maps' || t.startsWith('Getting started with mind maps'))).toBeTruthy(); | |
| }); | |
| test('learn_get_started_mind_maps: h2 "Creating a mind mapCopied!Link"', async ({ page }) => { | |
| await page.goto('/learn/get-started/mind-maps/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Creating a mind mapCopied!Link to this section' || t.startsWith('Creating a mind mapCopied!Link to this section'))).toBeTruthy(); | |
| }); | |
| test('learn_get_started_mind_maps: h2 "Make the mind map your ownCopi"', async ({ page }) => { | |
| await page.goto('/learn/get-started/mind-maps/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Make the mind map your ownCopied!Link to this section' || t.startsWith('Make the mind map your ownCopied!Link to this section'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_get_started_what_is_vellora', () => { | |
| test('learn_get_started_what_is_vellora: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/get-started/what-is-vellora/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('what is vellora?'); | |
| }); | |
| test('learn_get_started_what_is_vellora: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/get-started/what-is-vellora/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_get_started_what_is_vellora: h1 "What is Vellora?"', async ({ page }) => { | |
| await page.goto('/learn/get-started/what-is-vellora/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'What is Vellora?' || t.startsWith('What is Vellora?'))).toBeTruthy(); | |
| }); | |
| test('learn_get_started_what_is_vellora: h2 "Related guides"', async ({ page }) => { | |
| await page.goto('/learn/get-started/what-is-vellora/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Related guides' || t.startsWith('Related guides'))).toBeTruthy(); | |
| }); | |
| test('learn_get_started_what_is_vellora: h2 "Written by:"', async ({ page }) => { | |
| await page.goto('/learn/get-started/what-is-vellora/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Written by:' || t.startsWith('Written by:'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_get_started_wireframes', () => { | |
| test('learn_get_started_wireframes: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/get-started/wireframes/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('getting started with wireframes'); | |
| }); | |
| test('learn_get_started_wireframes: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/get-started/wireframes/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_get_started_wireframes: h1 "Getting set up with wireframes"', async ({ page }) => { | |
| await page.goto('/learn/get-started/wireframes/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Getting set up with wireframes' || t.startsWith('Getting set up with wireframes'))).toBeTruthy(); | |
| }); | |
| test('learn_get_started_wireframes: h2 "Switching in and out of wirefr"', async ({ page }) => { | |
| await page.goto('/learn/get-started/wireframes/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Switching in and out of wireframe modeCopied!Copy link to section' || t.startsWith('Switching in and out of wireframe modeCopied!Copy link to section'))).toBeTruthy(); | |
| }); | |
| test('learn_get_started_wireframes: h2 "More to explore"', async ({ page }) => { | |
| await page.goto('/learn/get-started/wireframes/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'More to explore' || t.startsWith('More to explore'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_integrations', () => { | |
| test('learn_integrations: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/integrations/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('integrations'); | |
| }); | |
| test('learn_integrations: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/integrations/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_integrations: h1 "Integrations"', async ({ page }) => { | |
| await page.goto('/learn/integrations/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Integrations' || t.startsWith('Integrations'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_integrations_canva', () => { | |
| test('learn_integrations_canva: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/integrations/canva/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('embedding files in canvara'); | |
| }); | |
| test('learn_integrations_canva: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/integrations/canva/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_integrations_canva: h1 "Embedding files in Canvara"', async ({ page }) => { | |
| await page.goto('/learn/integrations/canva/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Embedding files in Canvara' || t.startsWith('Embedding files in Canvara'))).toBeTruthy(); | |
| }); | |
| test('learn_integrations_canva: h2 "Written by:"', async ({ page }) => { | |
| await page.goto('/learn/integrations/canva/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Written by:' || t.startsWith('Written by:'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_integrations_confluence', () => { | |
| test('learn_integrations_confluence: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/integrations/confluence/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('creating tasklane & pagewell smart links'); | |
| }); | |
| test('learn_integrations_confluence: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/integrations/confluence/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_integrations_confluence: h1 "Creating Volt & Verso Smart Li"', async ({ page }) => { | |
| await page.goto('/learn/integrations/confluence/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Creating Volt & Verso Smart Links for your Vellora Files' || t.startsWith('Creating Volt & Verso Smart Links for your Vellora Files'))).toBeTruthy(); | |
| }); | |
| test('learn_integrations_confluence: h2 "VoltCopied!Copy link to sectio"', async ({ page }) => { | |
| await page.goto('/learn/integrations/confluence/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'VoltCopied!Copy link to section' || t.startsWith('VoltCopied!Copy link to section'))).toBeTruthy(); | |
| }); | |
| test('learn_integrations_confluence: h2 "VersoCopied!Link to this secti"', async ({ page }) => { | |
| await page.goto('/learn/integrations/confluence/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'VersoCopied!Link to this section' || t.startsWith('VersoCopied!Link to this section'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_integrations_desktop_mcp', () => { | |
| test('learn_integrations_desktop_mcp: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/integrations/desktop-mcp/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('vellora desktop mcp (beta)'); | |
| }); | |
| test('learn_integrations_desktop_mcp: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/integrations/desktop-mcp/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_integrations_desktop_mcp: h1 "Vellora Desktop MCP (beta)"', async ({ page }) => { | |
| await page.goto('/learn/integrations/desktop-mcp/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Vellora Desktop MCP (beta)' || t.startsWith('Vellora Desktop MCP (beta)'))).toBeTruthy(); | |
| }); | |
| test('learn_integrations_desktop_mcp: h2 "Step 1: Launch the Vellora des"', async ({ page }) => { | |
| await page.goto('/learn/integrations/desktop-mcp/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Step 1: Launch the Vellora desktop appCopied!Copy link to section' || t.startsWith('Step 1: Launch the Vellora desktop appCopied!Copy link to section'))).toBeTruthy(); | |
| }); | |
| test('learn_integrations_desktop_mcp: h2 "Step 2: Set up your MCP client"', async ({ page }) => { | |
| await page.goto('/learn/integrations/desktop-mcp/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Step 2: Set up your MCP clientCopied!Copy link to section' || t.startsWith('Step 2: Set up your MCP clientCopied!Copy link to section'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_integrations_guru', () => { | |
| test('learn_integrations_guru: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/integrations/guru/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('embedding files in knowvia'); | |
| }); | |
| test('learn_integrations_guru: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/integrations/guru/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_integrations_guru: h1 "Embedding a file in Knowla"', async ({ page }) => { | |
| await page.goto('/learn/integrations/guru/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Embedding a file in Knowla' || t.startsWith('Embedding a file in Knowla'))).toBeTruthy(); | |
| }); | |
| test('learn_integrations_guru: h2 "Written by:"', async ({ page }) => { | |
| await page.goto('/learn/integrations/guru/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Written by:' || t.startsWith('Written by:'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_integrations_zendesk', () => { | |
| test('learn_integrations_zendesk: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/integrations/zendesk/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('embedding files in helpnest'); | |
| }); | |
| test('learn_integrations_zendesk: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/integrations/zendesk/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_integrations_zendesk: h1 "Embedding files in Helpnest"', async ({ page }) => { | |
| await page.goto('/learn/integrations/zendesk/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Embedding files in Helpnest' || t.startsWith('Embedding files in Helpnest'))).toBeTruthy(); | |
| }); | |
| test('learn_integrations_zendesk: h2 "Authored by:"', async ({ page }) => { | |
| await page.goto('/learn/integrations/zendesk/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Authored by:' || t.startsWith('Authored by:'))).toBeTruthy(); | |
| }); | |
| test('learn_integrations_zendesk: h2 "Overview"', async ({ page }) => { | |
| await page.goto('/learn/integrations/zendesk/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Overview' || t.startsWith('Overview'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_workspaces_create_new', () => { | |
| test('learn_workspaces_create_new: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/workspaces/create-new/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('how to create a new workspace'); | |
| }); | |
| test('learn_workspaces_create_new: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/workspaces/create-new/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_workspaces_create_new: h1 "How to create a new workspace"', async ({ page }) => { | |
| await page.goto('/learn/workspaces/create-new/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How to create a new workspace' || t.startsWith('How to create a new workspace'))).toBeTruthy(); | |
| }); | |
| test('learn_workspaces_create_new: h2 "Written by:"', async ({ page }) => { | |
| await page.goto('/learn/workspaces/create-new/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Written by:' || t.startsWith('Written by:'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_billing_billing', () => { | |
| test('learn_billing_billing: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/billing/billing/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('how billing works in workspaces'); | |
| }); | |
| test('learn_billing_billing: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/billing/billing/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_billing_billing: h1 "Understanding workspace billin"', async ({ page }) => { | |
| await page.goto('/learn/billing/billing/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Understanding workspace billing' || t.startsWith('Understanding workspace billing'))).toBeTruthy(); | |
| }); | |
| test('learn_billing_billing: h2 "How is billing handled in a wo"', async ({ page }) => { | |
| await page.goto('/learn/billing/billing/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How is billing handled in a workspace?Copied!Copy link to section' || t.startsWith('How is billing handled in a workspace?Copied!Copy link to section'))).toBeTruthy(); | |
| }); | |
| test('learn_billing_billing: h2 "What happens when I add an edi"', async ({ page }) => { | |
| await page.goto('/learn/billing/billing/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'What happens when I add an editor?Copied!Link to this section' || t.startsWith('What happens when I add an editor?Copied!Link to this section'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_billing_cancel', () => { | |
| test('learn_billing_cancel: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/billing/cancel/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('how to cancel your subscription'); | |
| }); | |
| test('learn_billing_cancel: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/billing/cancel/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_billing_cancel: h1 "Ending your Vellora subscripti"', async ({ page }) => { | |
| await page.goto('/learn/billing/cancel/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Ending your Vellora subscription' || t.startsWith('Ending your Vellora subscription'))).toBeTruthy(); | |
| }); | |
| test('learn_billing_cancel: h2 "Authored by:"', async ({ page }) => { | |
| await page.goto('/learn/billing/cancel/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Authored by:' || t.startsWith('Authored by:'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_billing_credit_card', () => { | |
| test('learn_billing_credit_card: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/billing/credit-card/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('changing the credit card details on your'); | |
| }); | |
| test('learn_billing_credit_card: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/billing/credit-card/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_billing_credit_card: h1 "Editing the credit card on fil"', async ({ page }) => { | |
| await page.goto('/learn/billing/credit-card/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Editing the credit card on file for your account' || t.startsWith('Editing the credit card on file for your account'))).toBeTruthy(); | |
| }); | |
| test('learn_billing_credit_card: h2 "Related guides"', async ({ page }) => { | |
| await page.goto('/learn/billing/credit-card/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Related guides' || t.startsWith('Related guides'))).toBeTruthy(); | |
| }); | |
| test('learn_billing_credit_card: h2 "Written by:"', async ({ page }) => { | |
| await page.goto('/learn/billing/credit-card/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Written by:' || t.startsWith('Written by:'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_billing_find_invoices', () => { | |
| test('learn_billing_find_invoices: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/billing/find-invoices/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('locating your invoices'); | |
| }); | |
| test('learn_billing_find_invoices: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/billing/find-invoices/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_billing_find_invoices: h1 "Finding your invoices"', async ({ page }) => { | |
| await page.goto('/learn/billing/find-invoices/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Finding your invoices' || t.startsWith('Finding your invoices'))).toBeTruthy(); | |
| }); | |
| test('learn_billing_find_invoices: h2 "Authored by:"', async ({ page }) => { | |
| await page.goto('/learn/billing/find-invoices/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Authored by:' || t.startsWith('Authored by:'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_billing_pricing', () => { | |
| test('learn_billing_pricing: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/billing/pricing/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('pricing and discounts'); | |
| }); | |
| test('learn_billing_pricing: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/billing/pricing/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_billing_pricing: h1 "Plans and discounts"', async ({ page }) => { | |
| await page.goto('/learn/billing/pricing/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Plans and discounts' || t.startsWith('Plans and discounts'))).toBeTruthy(); | |
| }); | |
| test('learn_billing_pricing: h2 "SubscriptionCopied!Link to thi"', async ({ page }) => { | |
| await page.goto('/learn/billing/pricing/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'SubscriptionCopied!Link to this section' || t.startsWith('SubscriptionCopied!Link to this section'))).toBeTruthy(); | |
| }); | |
| test('learn_billing_pricing: h2 "DiscountsCopied!Link to this s"', async ({ page }) => { | |
| await page.goto('/learn/billing/pricing/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'DiscountsCopied!Link to this section' || t.startsWith('DiscountsCopied!Link to this section'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_billing_tax', () => { | |
| test('learn_billing_tax: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/billing/tax/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('sales tax and vat'); | |
| }); | |
| test('learn_billing_tax: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/billing/tax/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_billing_tax: h1 "Sales tax and VAT"', async ({ page }) => { | |
| await page.goto('/learn/billing/tax/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sales tax and VAT' || t.startsWith('Sales tax and VAT'))).toBeTruthy(); | |
| }); | |
| test('learn_billing_tax: h2 "US sales taxCopied!Link to thi"', async ({ page }) => { | |
| await page.goto('/learn/billing/tax/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'US sales taxCopied!Link to this section' || t.startsWith('US sales taxCopied!Link to this section'))).toBeTruthy(); | |
| }); | |
| test('learn_billing_tax: h2 "Value-added tax (VAT)Copied!Li"', async ({ page }) => { | |
| await page.goto('/learn/billing/tax/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Value-added tax (VAT)Copied!Link to this section' || t.startsWith('Value-added tax (VAT)Copied!Link to this section'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_billing_update_info', () => { | |
| test('learn_billing_update_info: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/billing/update-info/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('change your payment details'); | |
| }); | |
| test('learn_billing_update_info: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/billing/update-info/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_billing_update_info: h1 "Changing your billing informat"', async ({ page }) => { | |
| await page.goto('/learn/billing/update-info/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Changing your billing information' || t.startsWith('Changing your billing information'))).toBeTruthy(); | |
| }); | |
| test('learn_billing_update_info: h2 "Author:"', async ({ page }) => { | |
| await page.goto('/learn/billing/update-info/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Author:' || t.startsWith('Author:'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_billing_your_invoice', () => { | |
| test('learn_billing_your_invoice: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/billing/your-invoice/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('understanding your vellora invoice'); | |
| }); | |
| test('learn_billing_your_invoice: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/billing/your-invoice/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_billing_your_invoice: h1 "Understanding your Vellora inv"', async ({ page }) => { | |
| await page.goto('/learn/billing/your-invoice/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Understanding your Vellora invoice' || t.startsWith('Understanding your Vellora invoice'))).toBeTruthy(); | |
| }); | |
| test('learn_billing_your_invoice: h2 "Written by:"', async ({ page }) => { | |
| await page.goto('/learn/billing/your-invoice/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Written by:' || t.startsWith('Written by:'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_boards_connectors', () => { | |
| test('learn_boards_connectors: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/boards/connectors/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('working with connectors'); | |
| }); | |
| test('learn_boards_connectors: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/boards/connectors/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_connectors: h1 "Getting to know connectors"', async ({ page }) => { | |
| await page.goto('/learn/boards/connectors/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Getting to know connectors' || t.startsWith('Getting to know connectors'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_connectors: h2 "Choosing endpointsCopied!Copy "', async ({ page }) => { | |
| await page.goto('/learn/boards/connectors/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Choosing endpointsCopied!Copy link to section' || t.startsWith('Choosing endpointsCopied!Copy link to section'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_connectors: h2 "Attaching to shapesCopied!Link"', async ({ page }) => { | |
| await page.goto('/learn/boards/connectors/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Attaching to shapesCopied!Link to this section' || t.startsWith('Attaching to shapesCopied!Link to this section'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_boards_grid', () => { | |
| test('learn_boards_grid: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/boards/grid/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('using the grid and smart snapping'); | |
| }); | |
| test('learn_boards_grid: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/boards/grid/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_grid: h1 "Using the grid and automatic a"', async ({ page }) => { | |
| await page.goto('/learn/boards/grid/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Using the grid and automatic alignment' || t.startsWith('Using the grid and automatic alignment'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_grid: h2 "How items snapCopied!Copy link"', async ({ page }) => { | |
| await page.goto('/learn/boards/grid/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How items snapCopied!Copy link to section' || t.startsWith('How items snapCopied!Copy link to section'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_grid: h2 "Auto-aligningCopied!Link to th"', async ({ page }) => { | |
| await page.goto('/learn/boards/grid/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Auto-aligningCopied!Link to this section' || t.startsWith('Auto-aligningCopied!Link to this section'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_boards_links', () => { | |
| test('learn_boards_links: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/boards/links/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('adding and displaying links in vellora f'); | |
| }); | |
| test('learn_boards_links: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/boards/links/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_links: h1 "Adding and displaying links in"', async ({ page }) => { | |
| await page.goto('/learn/boards/links/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Adding and displaying links in Vellora files' || t.startsWith('Adding and displaying links in Vellora files'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_links: h2 "Adding links to boardsCopied!L"', async ({ page }) => { | |
| await page.goto('/learn/boards/links/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Adding links to boardsCopied!Link to this heading' || t.startsWith('Adding links to boardsCopied!Link to this heading'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_links: h2 "Related articles"', async ({ page }) => { | |
| await page.goto('/learn/boards/links/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Related articles' || t.startsWith('Related articles'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_boards_paste_as', () => { | |
| test('learn_boards_paste_as: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/boards/paste-as/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('paste text as objects'); | |
| }); | |
| test('learn_boards_paste_as: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/boards/paste-as/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_paste_as: h1 "Text-to-object pasting options"', async ({ page }) => { | |
| await page.goto('/learn/boards/paste-as/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Text-to-object pasting options' || t.startsWith('Text-to-object pasting options'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_paste_as: h2 "How the “Paste as” menu worksC"', async ({ page }) => { | |
| await page.goto('/learn/boards/paste-as/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How the “Paste as” menu worksCopied!Link to this section' || t.startsWith('How the “Paste as” menu worksCopied!Link to this section'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_paste_as: h2 "Paste options you can useCopie"', async ({ page }) => { | |
| await page.goto('/learn/boards/paste-as/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Paste options you can useCopied!Link to this section' || t.startsWith('Paste options you can useCopied!Link to this section'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_boards_performance', () => { | |
| test('learn_boards_performance: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/boards/performance/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('optimizing performance on larger boards'); | |
| }); | |
| test('learn_boards_performance: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/boards/performance/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_performance: h1 "Improving performance on large"', async ({ page }) => { | |
| await page.goto('/learn/boards/performance/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Improving performance on larger boards' || t.startsWith('Improving performance on larger boards'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_performance: h2 "How many items a board holdsCo"', async ({ page }) => { | |
| await page.goto('/learn/boards/performance/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How many items a board holdsCopied!Copy link to section' || t.startsWith('How many items a board holdsCopied!Copy link to section'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_performance: h2 "The browser you useCopied!Copy"', async ({ page }) => { | |
| await page.goto('/learn/boards/performance/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The browser you useCopied!Copy link to section' || t.startsWith('The browser you useCopied!Copy link to section'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_boards_sections', () => { | |
| test('learn_boards_sections: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/boards/sections/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('structuring your canvas with sections'); | |
| }); | |
| test('learn_boards_sections: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/boards/sections/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_sections: h1 "Organizing content with sectio"', async ({ page }) => { | |
| await page.goto('/learn/boards/sections/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Organizing content with sections in Vellora' || t.startsWith('Organizing content with sections in Vellora'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_sections: h2 "Written by:"', async ({ page }) => { | |
| await page.goto('/learn/boards/sections/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Written by:' || t.startsWith('Written by:'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_sections: h2 "Summary"', async ({ page }) => { | |
| await page.goto('/learn/boards/sections/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Summary' || t.startsWith('Summary'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_boards_sections_and_objects', () => { | |
| test('learn_boards_sections_and_objects: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/boards/sections-and-objects/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('linking to sections and objects'); | |
| }); | |
| test('learn_boards_sections_and_objects: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/boards/sections-and-objects/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_sections_and_objects: h1 "Linking to objects and section"', async ({ page }) => { | |
| await page.goto('/learn/boards/sections-and-objects/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Linking to objects and sections' || t.startsWith('Linking to objects and sections'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_sections_and_objects: h2 "Sharing a link to a single obj"', async ({ page }) => { | |
| await page.goto('/learn/boards/sections-and-objects/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sharing a link to a single objectCopied!Copy link to section' || t.startsWith('Sharing a link to a single objectCopied!Copy link to section'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_sections_and_objects: h2 "Sharing a link to a single sec"', async ({ page }) => { | |
| await page.goto('/learn/boards/sections-and-objects/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sharing a link to a single sectionCopied!Copy link to section' || t.startsWith('Sharing a link to a single sectionCopied!Copy link to section'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_boards_spellcheck', () => { | |
| test('learn_boards_spellcheck: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/boards/spellcheck/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('using spellcheck'); | |
| }); | |
| test('learn_boards_spellcheck: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/boards/spellcheck/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_spellcheck: h1 "Run spellcheck"', async ({ page }) => { | |
| await page.goto('/learn/boards/spellcheck/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Run spellcheck' || t.startsWith('Run spellcheck'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_spellcheck: h2 "Authored by:"', async ({ page }) => { | |
| await page.goto('/learn/boards/spellcheck/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Authored by:' || t.startsWith('Authored by:'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_boards_sticky_notes', () => { | |
| test('learn_boards_sticky_notes: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/boards/sticky-notes/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('using sticky notes on boards'); | |
| }); | |
| test('learn_boards_sticky_notes: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/boards/sticky-notes/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_sticky_notes: h1 "Using sticky notes on boards"', async ({ page }) => { | |
| await page.goto('/learn/boards/sticky-notes/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Using sticky notes on boards' || t.startsWith('Using sticky notes on boards'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_sticky_notes: h2 "Authored by:"', async ({ page }) => { | |
| await page.goto('/learn/boards/sticky-notes/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Authored by:' || t.startsWith('Authored by:'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_boards_thumbnails', () => { | |
| test('learn_boards_thumbnails: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/boards/thumbnails/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('setting custom thumbnails'); | |
| }); | |
| test('learn_boards_thumbnails: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/boards/thumbnails/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_thumbnails: h1 "Choosing a board thumbnail"', async ({ page }) => { | |
| await page.goto('/learn/boards/thumbnails/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Choosing a board thumbnail' || t.startsWith('Choosing a board thumbnail'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_thumbnails: h2 "Related articles"', async ({ page }) => { | |
| await page.goto('/learn/boards/thumbnails/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Related articles' || t.startsWith('Related articles'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_thumbnails: h2 "Written by:"', async ({ page }) => { | |
| await page.goto('/learn/boards/thumbnails/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Written by:' || t.startsWith('Written by:'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_boards_tidy_boards', () => { | |
| test('learn_boards_tidy_boards: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/boards/tidy-boards/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('neatly arranging boards using alignment,'); | |
| }); | |
| test('learn_boards_tidy_boards: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/boards/tidy-boards/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_tidy_boards: h1 "Keeping your boards neat with "', async ({ page }) => { | |
| await page.goto('/learn/boards/tidy-boards/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Keeping your boards neat with align, distribute, and auto-layout' || t.startsWith('Keeping your boards neat with align, distribute, and auto-layout'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_tidy_boards: h2 "Aligning your objectsCopied!Li"', async ({ page }) => { | |
| await page.goto('/learn/boards/tidy-boards/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Aligning your objectsCopied!Link to this heading' || t.startsWith('Aligning your objectsCopied!Link to this heading'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_tidy_boards: h2 "Spacing out a selectionCopied!"', async ({ page }) => { | |
| await page.goto('/learn/boards/tidy-boards/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Spacing out a selectionCopied!Copy link to section' || t.startsWith('Spacing out a selectionCopied!Copy link to section'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_boards_timer', () => { | |
| test('learn_boards_timer: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/boards/timer/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('using the timer in boards'); | |
| }); | |
| test('learn_boards_timer: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/boards/timer/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_timer: h1 "Working with the board timer"', async ({ page }) => { | |
| await page.goto('/learn/boards/timer/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Working with the board timer' || t.startsWith('Working with the board timer'))).toBeTruthy(); | |
| }); | |
| test('learn_boards_timer: h2 "Written by:"', async ({ page }) => { | |
| await page.goto('/learn/boards/timer/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Written by:' || t.startsWith('Written by:'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_faqs_cloud_icons', () => { | |
| test('learn_faqs_cloud_icons: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/faqs/cloud-icons/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('does vellora include cloud architecture '); | |
| }); | |
| test('learn_faqs_cloud_icons: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/faqs/cloud-icons/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_cloud_icons: h1 "Does Vellora have cloud archit"', async ({ page }) => { | |
| await page.goto('/learn/faqs/cloud-icons/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Does Vellora have cloud architecture icons?' || t.startsWith('Does Vellora have cloud architecture icons?'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_cloud_icons: h2 "Written by:"', async ({ page }) => { | |
| await page.goto('/learn/faqs/cloud-icons/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Written by:' || t.startsWith('Written by:'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_cloud_icons: h2 "Summary"', async ({ page }) => { | |
| await page.goto('/learn/faqs/cloud-icons/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Summary' || t.startsWith('Summary'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_faqs_collaboration', () => { | |
| test('learn_faqs_collaboration: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/faqs/collaboration/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('working together in real time'); | |
| }); | |
| test('learn_faqs_collaboration: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/faqs/collaboration/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_collaboration: h1 "Live collaboration with your t"', async ({ page }) => { | |
| await page.goto('/learn/faqs/collaboration/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Live collaboration with your teammates' || t.startsWith('Live collaboration with your teammates'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_collaboration: h2 "Check who\'s viewing the fileCo"', async ({ page }) => { | |
| await page.goto('/learn/faqs/collaboration/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Check who\'s viewing the fileCopied!Link to this section' || t.startsWith('Check who\'s viewing the fileCopied!Link to this section'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_collaboration: h2 "See who is editing the fileCop"', async ({ page }) => { | |
| await page.goto('/learn/faqs/collaboration/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'See who is editing the fileCopied!Link to this section' || t.startsWith('See who is editing the fileCopied!Link to this section'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_faqs_colors_toned_down', () => { | |
| test('learn_faqs_colors_toned_down: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/faqs/colors-toned-down/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('why are some elements shown with muted c'); | |
| }); | |
| test('learn_faqs_colors_toned_down: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/faqs/colors-toned-down/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_colors_toned_down: h1 "Why do some elements look a li"', async ({ page }) => { | |
| await page.goto('/learn/faqs/colors-toned-down/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Why do some elements look a little muted?' || t.startsWith('Why do some elements look a little muted?'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_colors_toned_down: h2 "Written by:"', async ({ page }) => { | |
| await page.goto('/learn/faqs/colors-toned-down/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Written by:' || t.startsWith('Written by:'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_faqs_dark_mode', () => { | |
| test('learn_faqs_dark_mode: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/faqs/dark-mode/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('does vellora have a dark mode?'); | |
| }); | |
| test('learn_faqs_dark_mode: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/faqs/dark-mode/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_dark_mode: h1 "Does Vellora have a dark mode?"', async ({ page }) => { | |
| await page.goto('/learn/faqs/dark-mode/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Does Vellora have a dark mode?' || t.startsWith('Does Vellora have a dark mode?'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_dark_mode: h2 "Written by:"', async ({ page }) => { | |
| await page.goto('/learn/faqs/dark-mode/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Written by:' || t.startsWith('Written by:'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_dark_mode: h2 "Overview"', async ({ page }) => { | |
| await page.goto('/learn/faqs/dark-mode/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Overview' || t.startsWith('Overview'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_faqs_feedback', () => { | |
| test('learn_faqs_feedback: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/faqs/feedback/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('sharing ideas, feedback, and requests'); | |
| }); | |
| test('learn_faqs_feedback: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/faqs/feedback/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_feedback: h1 "Sending feedback and feature r"', async ({ page }) => { | |
| await page.goto('/learn/faqs/feedback/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sending feedback and feature requests' || t.startsWith('Sending feedback and feature requests'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_feedback: h2 "Ways to share feedbackCopied!C"', async ({ page }) => { | |
| await page.goto('/learn/faqs/feedback/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Ways to share feedbackCopied!Copy link to section' || t.startsWith('Ways to share feedbackCopied!Copy link to section'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_feedback: h2 "Where your feedback goes nextC"', async ({ page }) => { | |
| await page.goto('/learn/faqs/feedback/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Where your feedback goes nextCopied!Copy link to this part' || t.startsWith('Where your feedback goes nextCopied!Copy link to this part'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_faqs_filter_objects', () => { | |
| test('learn_faqs_filter_objects: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/faqs/filter-objects/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('how to filter selected objects'); | |
| }); | |
| test('learn_faqs_filter_objects: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/faqs/filter-objects/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_filter_objects: h1 "How to filter what you\'ve sele"', async ({ page }) => { | |
| await page.goto('/learn/faqs/filter-objects/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How to filter what you\'ve selected' || t.startsWith('How to filter what you\'ve selected'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_filter_objects: h2 "Written by:"', async ({ page }) => { | |
| await page.goto('/learn/faqs/filter-objects/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Written by:' || t.startsWith('Written by:'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_faqs_free_viewers', () => { | |
| test('learn_faqs_free_viewers: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/faqs/free-viewers/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('free viewers leaving comments in workspa'); | |
| }); | |
| test('learn_faqs_free_viewers: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/faqs/free-viewers/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_free_viewers: h1 "Free viewer comments within wo"', async ({ page }) => { | |
| await page.goto('/learn/faqs/free-viewers/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Free viewer comments within workspaces' || t.startsWith('Free viewer comments within workspaces'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_free_viewers: h2 "Written by:"', async ({ page }) => { | |
| await page.goto('/learn/faqs/free-viewers/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Written by:' || t.startsWith('Written by:'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_free_viewers: h4 "TipCopied!Link to this section"', async ({ page }) => { | |
| await page.goto('/learn/faqs/free-viewers/'); | |
| const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'TipCopied!Link to this section' || t.startsWith('TipCopied!Link to this section'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_faqs_hide_cursors', () => { | |
| test('learn_faqs_hide_cursors: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/faqs/hide-cursors/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('hiding cursors while collaborating'); | |
| }); | |
| test('learn_faqs_hide_cursors: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/faqs/hide-cursors/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_hide_cursors: h1 "Hiding cursors during collabor"', async ({ page }) => { | |
| await page.goto('/learn/faqs/hide-cursors/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Hiding cursors during collaboration' || t.startsWith('Hiding cursors during collaboration'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_hide_cursors: h2 "Written by:"', async ({ page }) => { | |
| await page.goto('/learn/faqs/hide-cursors/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Written by:' || t.startsWith('Written by:'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_faqs_icons', () => { | |
| test('learn_faqs_icons: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/faqs/icons/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('styling icons for files and folders'); | |
| }); | |
| test('learn_faqs_icons: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/faqs/icons/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_icons: h1 "Personalizing file and folder "', async ({ page }) => { | |
| await page.goto('/learn/faqs/icons/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Personalizing file and folder icons' || t.startsWith('Personalizing file and folder icons'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_icons: h2 "Related guides"', async ({ page }) => { | |
| await page.goto('/learn/faqs/icons/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Related guides' || t.startsWith('Related guides'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_icons: h2 "Written by:"', async ({ page }) => { | |
| await page.goto('/learn/faqs/icons/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Written by:' || t.startsWith('Written by:'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_faqs_ipad', () => { | |
| test('learn_faqs_ipad: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/faqs/ipad/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('does vellora work on your tablet?'); | |
| }); | |
| test('learn_faqs_ipad: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/faqs/ipad/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_ipad: h1 "Can you use Vellora on an iPad"', async ({ page }) => { | |
| await page.goto('/learn/faqs/ipad/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Can you use Vellora on an iPad?' || t.startsWith('Can you use Vellora on an iPad?'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_ipad: h2 "Related guides"', async ({ page }) => { | |
| await page.goto('/learn/faqs/ipad/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Related guides' || t.startsWith('Related guides'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_ipad: h2 "Authored by:"', async ({ page }) => { | |
| await page.goto('/learn/faqs/ipad/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Authored by:' || t.startsWith('Authored by:'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_faqs_lines', () => { | |
| test('learn_faqs_lines: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/faqs/lines/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('how to draw a line'); | |
| }); | |
| test('learn_faqs_lines: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/faqs/lines/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_lines: h1 "How to draw a line"', async ({ page }) => { | |
| await page.goto('/learn/faqs/lines/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How to draw a line' || t.startsWith('How to draw a line'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_lines: h2 "Drawing a line using a connect"', async ({ page }) => { | |
| await page.goto('/learn/faqs/lines/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Drawing a line using a connectorCopied!Link to this section' || t.startsWith('Drawing a line using a connectorCopied!Link to this section'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_lines: h2 "Working with the line elementC"', async ({ page }) => { | |
| await page.goto('/learn/faqs/lines/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Working with the line elementCopied!Link to this section' || t.startsWith('Working with the line elementCopied!Link to this section'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_faqs_markdown_support', () => { | |
| test('learn_faqs_markdown_support: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/faqs/markdown-support/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('markdown support in vellora'); | |
| }); | |
| test('learn_faqs_markdown_support: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/faqs/markdown-support/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_markdown_support: h1 "Markdown support in Vellora"', async ({ page }) => { | |
| await page.goto('/learn/faqs/markdown-support/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Markdown support in Vellora' || t.startsWith('Markdown support in Vellora'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_markdown_support: h2 "Copy-paste behaviorCopied!Link"', async ({ page }) => { | |
| await page.goto('/learn/faqs/markdown-support/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Copy-paste behaviorCopied!Link to this section' || t.startsWith('Copy-paste behaviorCopied!Link to this section'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_markdown_support: h2 "Importing markdown filesCopied"', async ({ page }) => { | |
| await page.goto('/learn/faqs/markdown-support/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Importing markdown filesCopied!Link to this section' || t.startsWith('Importing markdown filesCopied!Link to this section'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_faqs_mobile', () => { | |
| test('learn_faqs_mobile: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/faqs/mobile/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('using vellora on mobile'); | |
| }); | |
| test('learn_faqs_mobile: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/faqs/mobile/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_mobile: h1 "Using Vellora on mobile"', async ({ page }) => { | |
| await page.goto('/learn/faqs/mobile/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Using Vellora on mobile' || t.startsWith('Using Vellora on mobile'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_mobile: h2 "Logging inCopied!Link to this "', async ({ page }) => { | |
| await page.goto('/learn/faqs/mobile/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Logging inCopied!Link to this section' || t.startsWith('Logging inCopied!Link to this section'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_mobile: h2 "CommentingCopied!Link to this "', async ({ page }) => { | |
| await page.goto('/learn/faqs/mobile/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'CommentingCopied!Link to this section' || t.startsWith('CommentingCopied!Link to this section'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_faqs_moving_files', () => { | |
| test('learn_faqs_moving_files: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/faqs/moving-files/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('moving and copying files'); | |
| }); | |
| test('learn_faqs_moving_files: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/faqs/moving-files/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_moving_files: h1 "Moving and copying files"', async ({ page }) => { | |
| await page.goto('/learn/faqs/moving-files/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Moving and copying files' || t.startsWith('Moving and copying files'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_moving_files: h2 "How to move or copy files and "', async ({ page }) => { | |
| await page.goto('/learn/faqs/moving-files/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'How to move or copy files and foldersCopied!Link to this section' || t.startsWith('How to move or copy files and foldersCopied!Link to this section'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_moving_files: h2 "Moving or copying files into a"', async ({ page }) => { | |
| await page.goto('/learn/faqs/moving-files/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Moving or copying files into a different Vellora workspaceCopied!Link to this section' || t.startsWith('Moving or copying files into a different Vellora workspaceCopied!Link to this section'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_faqs_overlays', () => { | |
| test('learn_faqs_overlays: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/faqs/overlays/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('how overlays work in wireframe mode'); | |
| }); | |
| test('learn_faqs_overlays: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/faqs/overlays/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_overlays: h1 "Working with overlays in Wiref"', async ({ page }) => { | |
| await page.goto('/learn/faqs/overlays/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Working with overlays in Wireframe mode' || t.startsWith('Working with overlays in Wireframe mode'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_overlays: h2 "Author:"', async ({ page }) => { | |
| await page.goto('/learn/faqs/overlays/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Author:' || t.startsWith('Author:'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_faqs_reporting_bugs', () => { | |
| test('learn_faqs_reporting_bugs: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/faqs/reporting-bugs/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('troubleshooting problems and reporting b'); | |
| }); | |
| test('learn_faqs_reporting_bugs: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/faqs/reporting-bugs/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_reporting_bugs: h1 "Solving problems and reporting"', async ({ page }) => { | |
| await page.goto('/learn/faqs/reporting-bugs/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Solving problems and reporting bugs' || t.startsWith('Solving problems and reporting bugs'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_reporting_bugs: h2 "Everyday troubleshootingCopied"', async ({ page }) => { | |
| await page.goto('/learn/faqs/reporting-bugs/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Everyday troubleshootingCopied!Copy link to section' || t.startsWith('Everyday troubleshootingCopied!Copy link to section'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_reporting_bugs: h2 "Items won\'t budge on a board?C"', async ({ page }) => { | |
| await page.goto('/learn/faqs/reporting-bugs/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Items won\'t budge on a board?Copied!Link to this section' || t.startsWith('Items won\'t budge on a board?Copied!Link to this section'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_faqs_reporting_content', () => { | |
| test('learn_faqs_reporting_content: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/faqs/reporting-content/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('reporting content in vellora'); | |
| }); | |
| test('learn_faqs_reporting_content: h1 "Guide"', async ({ page }) => { | |
| await page.goto('/learn/faqs/reporting-content/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Guide' || t.startsWith('Guide'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_reporting_content: h1 "Reporting content in Vellora"', async ({ page }) => { | |
| await page.goto('/learn/faqs/reporting-content/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Reporting content in Vellora' || t.startsWith('Reporting content in Vellora'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_reporting_content: h2 "Authored by:"', async ({ page }) => { | |
| await page.goto('/learn/faqs/reporting-content/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Authored by:' || t.startsWith('Authored by:'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - learn_faqs_search', () => { | |
| test('learn_faqs_search: title matches GT', async ({ page }) => { | |
| await page.goto('/learn/faqs/search/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('how search works inside your vellora wor'); | |
| }); | |
| test('learn_faqs_search: h1 "Learn"', async ({ page }) => { | |
| await page.goto('/learn/faqs/search/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Learn' || t.startsWith('Learn'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_search: h1 "Searching in your Vellora work"', async ({ page }) => { | |
| await page.goto('/learn/faqs/search/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Searching in your Vellora workspace' || t.startsWith('Searching in your Vellora workspace'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_search: h2 "Here (Command/Ctrl +F)Copied!L"', async ({ page }) => { | |
| await page.goto('/learn/faqs/search/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Here (Command/Ctrl +F)Copied!Link to this section' || t.startsWith('Here (Command/Ctrl +F)Copied!Link to this section'))).toBeTruthy(); | |
| }); | |
| test('learn_faqs_search: h2 "FilesCopied!Link to this secti"', async ({ page }) => { | |
| await page.goto('/learn/faqs/search/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'FilesCopied!Link to this section' || t.startsWith('FilesCopied!Link to this section'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - Routing', () => { | |
| test('navigate to ai_ai_text_to_flowchart via "AI FlowchartsBoost how fast yo"', async ({ page }) => { | |
| await page.goto('/'); | |
| const link = page.locator('a[href*="ai-text-to-flowchart"]').first(); | |
| expect(await link.count(), 'nav link to ai_ai_text_to_flowchart exists').toBeGreaterThan(0); | |
| await link.click(); | |
| await page.waitForTimeout(1200); | |
| expect(page.url().toLowerCase(), 'URL changed to destination').toContain('ai-text-to-flowchart'); | |
| const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); | |
| expect(bodyText, 'destination distinctive content shown').toContain('Free AI flowchart builder'); | |
| }); | |
| test('navigate to ai_ai_mind_maps via "AI Mind MapsBoost how fast you"', async ({ page }) => { | |
| await page.goto('/'); | |
| const link = page.locator('a[href*="ai-mind-maps"]').first(); | |
| expect(await link.count(), 'nav link to ai_ai_mind_maps exists').toBeGreaterThan(0); | |
| await link.click(); | |
| await page.waitForTimeout(1200); | |
| expect(page.url().toLowerCase(), 'URL changed to destination').toContain('ai-mind-maps'); | |
| const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); | |
| expect(bodyText, 'destination distinctive content shown').toContain('Free AI mind map creator'); | |
| }); | |
| test('navigate to home via "BoardsA boundless canvas for d"', async ({ page }) => { | |
| await page.goto('/'); | |
| const link = page.locator('a[href*="home"]').first(); | |
| expect(await link.count(), 'nav link to home exists').toBeGreaterThan(0); | |
| await link.click(); | |
| await page.waitForTimeout(1200); | |
| expect(page.url().toLowerCase(), 'URL changed to destination').toContain('home'); | |
| const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); | |
| expect(bodyText, 'destination distinctive content shown').toContain('Where bright ideas come alive'); | |
| }); | |
| }); | |