RecreationBench / web /relvyn.example /tests /static /content.scripted.spec.ts
VoyagerXHF's picture
Upload folder using huggingface_hub (part 64)
f8f1cf4 verified
Raw History Blame Contribute Delete
304 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('relvyn');
});
test('homepage: h2 "A brand-new way to query"', async ({ page }) => {
await page.goto('/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'A brand-new way to query' || t.startsWith('A brand-new way to query'))).toBeTruthy();
});
test('homepage: h2 "Relvyn\'s way"', async ({ page }) => {
await page.goto('/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn\'s way' || t.startsWith('Relvyn\'s way'))).toBeTruthy();
});
test('homepage: h2 "Fast"', async ({ page }) => {
await page.goto('/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fast' || t.startsWith('Fast'))).toBeTruthy();
});
test('homepage: nav link "Product"', 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 === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('homepage: nav link "Blog"', 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 === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('homepage: footer link "Home"', async ({ page }) => {
await page.goto('/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('homepage: footer link "Cloud"', async ({ page }) => {
await page.goto('/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - about', () => {
test('about: title matches GT', async ({ page }) => {
await page.goto('/about/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('about');
});
test('about: h1 "We build the database teams ar"', async ({ page }) => {
await page.goto('/about/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'We build the database teams are glad to run.' || t.startsWith('We build the database teams are glad to run.'))).toBeTruthy();
});
test('about: h2 "Our crew"', async ({ page }) => {
await page.goto('/about/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Our crew' || t.startsWith('Our crew'))).toBeTruthy();
});
test('about: h2 "Our champions"', async ({ page }) => {
await page.goto('/about/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Our champions' || t.startsWith('Our champions'))).toBeTruthy();
});
test('about: nav link "Product"', async ({ page }) => {
await page.goto('/about/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('about: nav link "Blog"', async ({ page }) => {
await page.goto('/about/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('about: footer link "Home"', async ({ page }) => {
await page.goto('/about/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('about: footer link "Cloud"', async ({ page }) => {
await page.goto('/about/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog', () => {
test('blog: title matches GT', async ({ page }) => {
await page.goto('/blog/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('blog');
});
test('blog: h2 "Relvyn joins Vela"', 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 === 'Relvyn joins Vela' || t.startsWith('Relvyn joins Vela'))).toBeTruthy();
});
test('blog: h2 "The overlooked layer in the Ra"', 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 === 'The overlooked layer in the Rapida + Validex AI agentic stack' || t.startsWith('The overlooked layer in the Rapida + Validex AI agentic stack'))).toBeTruthy();
});
test('blog: h2 "Integrating Relvyn with Drayle"', 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 === 'Integrating Relvyn with Drayle in a Norra.js App' || t.startsWith('Integrating Relvyn with Drayle in a Norra.js App'))).toBeTruthy();
});
test('blog: h2 "On knowledge graphs, part 1"', 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 === 'On knowledge graphs, part 1' || t.startsWith('On knowledge graphs, part 1'))).toBeTruthy();
});
test('blog: nav link "Product"', 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 === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog: nav link "Blog"', 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 === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog: footer link "Home"', async ({ page }) => {
await page.goto('/blog/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - careers', () => {
test('careers: title matches GT', async ({ page }) => {
await page.goto('/careers/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('jobs');
});
test('careers: h1 "Build With Us"', async ({ page }) => {
await page.goto('/careers/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Build With Us' || t.startsWith('Build With Us'))).toBeTruthy();
});
test('careers: h2 "Benefits"', async ({ page }) => {
await page.goto('/careers/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Benefits' || t.startsWith('Benefits'))).toBeTruthy();
});
test('careers: h2 "Culture"', async ({ page }) => {
await page.goto('/careers/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Culture' || t.startsWith('Culture'))).toBeTruthy();
});
test('careers: h3 "Health and Wellbeing"', async ({ page }) => {
await page.goto('/careers/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Health and Wellbeing' || t.startsWith('Health and Wellbeing'))).toBeTruthy();
});
test('careers: nav link "Product"', async ({ page }) => {
await page.goto('/careers/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('careers: nav link "Blog"', async ({ page }) => {
await page.goto('/careers/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('careers: footer link "Home"', async ({ page }) => {
await page.goto('/careers/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('careers: footer link "Cloud"', async ({ page }) => {
await page.goto('/careers/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - cloud', () => {
test('cloud: title matches GT', async ({ page }) => {
await page.goto('/cloud/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('cloud');
});
test('cloud: h1 "The best way to run Relvyn"', async ({ page }) => {
await page.goto('/cloud/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The best way to run Relvyn' || t.startsWith('The best way to run Relvyn'))).toBeTruthy();
});
test('cloud: h2 "Ready in one click"', async ({ page }) => {
await page.goto('/cloud/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Ready in one click' || t.startsWith('Ready in one click'))).toBeTruthy();
});
test('cloud: h2 "Resilient by design"', async ({ page }) => {
await page.goto('/cloud/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Resilient by design' || t.startsWith('Resilient by design'))).toBeTruthy();
});
test('cloud: h2 "Auth, built in"', async ({ page }) => {
await page.goto('/cloud/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Auth, built in' || t.startsWith('Auth, built in'))).toBeTruthy();
});
test('cloud: nav link "Product"', async ({ page }) => {
await page.goto('/cloud/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('cloud: nav link "Blog"', async ({ page }) => {
await page.goto('/cloud/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('cloud: footer link "Home"', async ({ page }) => {
await page.goto('/cloud/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('cloud: footer link "Cloud"', async ({ page }) => {
await page.goto('/cloud/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - cloud_terms_and_conditions', () => {
test('cloud_terms_and_conditions: title matches GT', async ({ page }) => {
await page.goto('/cloud-terms-and-conditions/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('cloud terms and conditions');
});
test('cloud_terms_and_conditions: h1 "RELVYN CLOUD CUSTOMER TERMS AN"', async ({ page }) => {
await page.goto('/cloud-terms-and-conditions/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'RELVYN CLOUD CUSTOMER TERMS AND CONDITIONS' || t.startsWith('RELVYN CLOUD CUSTOMER TERMS AND CONDITIONS'))).toBeTruthy();
});
test('cloud_terms_and_conditions: nav link "Product"', async ({ page }) => {
await page.goto('/cloud-terms-and-conditions/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('cloud_terms_and_conditions: nav link "Blog"', async ({ page }) => {
await page.goto('/cloud-terms-and-conditions/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('cloud_terms_and_conditions: footer link "Home"', async ({ page }) => {
await page.goto('/cloud-terms-and-conditions/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('cloud_terms_and_conditions: footer link "Cloud"', async ({ page }) => {
await page.goto('/cloud-terms-and-conditions/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), '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('plans');
});
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: nav link "Product"', 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 === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('pricing: nav link "Blog"', 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 === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('pricing: footer link "Home"', async ({ page }) => {
await page.goto('/pricing/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('pricing: footer link "Cloud"', async ({ page }) => {
await page.goto('/pricing/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - privacy_policy', () => {
test('privacy_policy: title matches GT', async ({ page }) => {
await page.goto('/privacy-policy/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('privacy policy');
});
test('privacy_policy: h1 "PRIVACY POLICY"', async ({ page }) => {
await page.goto('/privacy-policy/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'PRIVACY POLICY' || t.startsWith('PRIVACY POLICY'))).toBeTruthy();
});
test('privacy_policy: h2 "What this Privacy Policy Cover"', async ({ page }) => {
await page.goto('/privacy-policy/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What this Privacy Policy Covers' || t.startsWith('What this Privacy Policy Covers'))).toBeTruthy();
});
test('privacy_policy: h2 "Personal Data"', async ({ page }) => {
await page.goto('/privacy-policy/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Personal Data' || t.startsWith('Personal Data'))).toBeTruthy();
});
test('privacy_policy: h2 "How We Disclose Your Personal "', async ({ page }) => {
await page.goto('/privacy-policy/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How We Disclose Your Personal Data' || t.startsWith('How We Disclose Your Personal Data'))).toBeTruthy();
});
test('privacy_policy: nav link "Product"', async ({ page }) => {
await page.goto('/privacy-policy/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('privacy_policy: nav link "Blog"', async ({ page }) => {
await page.goto('/privacy-policy/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('privacy_policy: footer link "Home"', async ({ page }) => {
await page.goto('/privacy-policy/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('privacy_policy: footer link "Cloud"', async ({ page }) => {
await page.goto('/privacy-policy/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - terms_of_use', () => {
test('terms_of_use: title matches GT', async ({ page }) => {
await page.goto('/terms-of-use/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('terms of use');
});
test('terms_of_use: h1 "Terms of Website Use"', async ({ page }) => {
await page.goto('/terms-of-use/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Terms of Website Use' || t.startsWith('Terms of Website Use'))).toBeTruthy();
});
test('terms_of_use: h2 "Can these Terms be updated?"', async ({ page }) => {
await page.goto('/terms-of-use/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Can these Terms be updated?' || t.startsWith('Can these Terms be updated?'))).toBeTruthy();
});
test('terms_of_use: h2 "What happens to my privacy?"', async ({ page }) => {
await page.goto('/terms-of-use/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What happens to my privacy?' || t.startsWith('What happens to my privacy?'))).toBeTruthy();
});
test('terms_of_use: h2 "What are the essentials of usi"', async ({ page }) => {
await page.goto('/terms-of-use/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What are the essentials of using the Website?' || t.startsWith('What are the essentials of using the Website?'))).toBeTruthy();
});
test('terms_of_use: nav link "Product"', async ({ page }) => {
await page.goto('/terms-of-use/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('terms_of_use: nav link "Blog"', async ({ page }) => {
await page.goto('/terms-of-use/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('terms_of_use: footer link "Home"', async ({ page }) => {
await page.goto('/terms-of-use/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('terms_of_use: footer link "Cloud"', async ({ page }) => {
await page.goto('/terms-of-use/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - updates', () => {
test('updates: title matches GT', async ({ page }) => {
await page.goto('/updates/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('updates');
});
test('updates: h1 "Smarter defaults for transacti"', async ({ page }) => {
await page.goto('/updates/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Smarter defaults for transaction isolation' || t.startsWith('Smarter defaults for transaction isolation'))).toBeTruthy();
});
test('updates: h1 "JS/TS Migration Guide: EdgeVau"', async ({ page }) => {
await page.goto('/updates/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'JS/TS Migration Guide: EdgeVault to Relvyn' || t.startsWith('JS/TS Migration Guide: EdgeVault to Relvyn'))).toBeTruthy();
});
test('updates: h1 "Dev Report #3"', async ({ page }) => {
await page.goto('/updates/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Dev Report #3' || t.startsWith('Dev Report #3'))).toBeTruthy();
});
test('updates: h1 "Dev Report #2"', async ({ page }) => {
await page.goto('/updates/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Dev Report #2' || t.startsWith('Dev Report #2'))).toBeTruthy();
});
test('updates: nav link "Product"', async ({ page }) => {
await page.goto('/updates/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('updates: nav link "Blog"', async ({ page }) => {
await page.goto('/updates/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('updates: footer link "Home"', async ({ page }) => {
await page.goto('/updates/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('updates: footer link "Cloud"', async ({ page }) => {
await page.goto('/updates/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_a_path_to_a_10x_database', () => {
test('blog_a_path_to_a_10x_database: title matches GT', async ({ page }) => {
await page.goto('/blog/a-path-to-a-10x-database/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('a path to a 10x database');
});
test('blog_a_path_to_a_10x_database: h1 "A Path to a 10x Database"', async ({ page }) => {
await page.goto('/blog/a-path-to-a-10x-database/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'A Path to a 10x Database' || t.startsWith('A Path to a 10x Database'))).toBeTruthy();
});
test('blog_a_path_to_a_10x_database: h2 "Beginnings​"', async ({ page }) => {
await page.goto('/blog/a-path-to-a-10x-database/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Beginnings​' || t.startsWith('Beginnings​'))).toBeTruthy();
});
test('blog_a_path_to_a_10x_database: h2 "Purpose​"', async ({ page }) => {
await page.goto('/blog/a-path-to-a-10x-database/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Purpose​' || t.startsWith('Purpose​'))).toBeTruthy();
});
test('blog_a_path_to_a_10x_database: h2 "Design Philosophy​"', async ({ page }) => {
await page.goto('/blog/a-path-to-a-10x-database/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Design Philosophy​' || t.startsWith('Design Philosophy​'))).toBeTruthy();
});
test('blog_a_path_to_a_10x_database: nav link "Product"', async ({ page }) => {
await page.goto('/blog/a-path-to-a-10x-database/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_a_path_to_a_10x_database: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/a-path-to-a-10x-database/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_a_path_to_a_10x_database: footer link "Home"', async ({ page }) => {
await page.goto('/blog/a-path-to-a-10x-database/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_a_path_to_a_10x_database: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/a-path-to-a-10x-database/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_a_solution_to_the_sql_vs_orm_dilemma', () => {
test('blog_a_solution_to_the_sql_vs_orm_dilemma: title matches GT', async ({ page }) => {
await page.goto('/blog/a-solution-to-the-sql-vs-orm-dilemma/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('a way out of the sql vs. orm deadlock');
});
test('blog_a_solution_to_the_sql_vs_orm_dilemma: h1 "A way out of the SQL vs. ORM d"', async ({ page }) => {
await page.goto('/blog/a-solution-to-the-sql-vs-orm-dilemma/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'A way out of the SQL vs. ORM deadlock' || t.startsWith('A way out of the SQL vs. ORM deadlock'))).toBeTruthy();
});
test('blog_a_solution_to_the_sql_vs_orm_dilemma: h2 "The argument, distilled​"', async ({ page }) => {
await page.goto('/blog/a-solution-to-the-sql-vs-orm-dilemma/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The argument, distilled​' || t.startsWith('The argument, distilled​'))).toBeTruthy();
});
test('blog_a_solution_to_the_sql_vs_orm_dilemma: h2 "A third approach​"', async ({ page }) => {
await page.goto('/blog/a-solution-to-the-sql-vs-orm-dilemma/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'A third approach​' || t.startsWith('A third approach​'))).toBeTruthy();
});
test('blog_a_solution_to_the_sql_vs_orm_dilemma: h2 "To wrap up​"', async ({ page }) => {
await page.goto('/blog/a-solution-to-the-sql-vs-orm-dilemma/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'To wrap up​' || t.startsWith('To wrap up​'))).toBeTruthy();
});
test('blog_a_solution_to_the_sql_vs_orm_dilemma: nav link "Product"', async ({ page }) => {
await page.goto('/blog/a-solution-to-the-sql-vs-orm-dilemma/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_a_solution_to_the_sql_vs_orm_dilemma: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/a-solution-to-the-sql-vs-orm-dilemma/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_a_solution_to_the_sql_vs_orm_dilemma: footer link "Home"', async ({ page }) => {
await page.goto('/blog/a-solution-to-the-sql-vs-orm-dilemma/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_a_solution_to_the_sql_vs_orm_dilemma: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/a-solution-to-the-sql-vs-orm-dilemma/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_an_approach_to_optimizing_typescript_type_checking_performance', () => {
test('blog_an_approach_to_optimizing_typescript_type_checking_performance: title matches GT', async ({ page }) => {
await page.goto('/blog/an-approach-to-optimizing-typescript-type-checking-performance/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('measuring and improving typescript type ');
});
test('blog_an_approach_to_optimizing_typescript_type_checking_performance: h1 "Measuring and improving TypeSc"', async ({ page }) => {
await page.goto('/blog/an-approach-to-optimizing-typescript-type-checking-performance/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Measuring and improving TypeScript type checking performance' || t.startsWith('Measuring and improving TypeScript type checking performance'))).toBeTruthy();
});
test('blog_an_approach_to_optimizing_typescript_type_checking_performance: h2 "Framing the problem​"', async ({ page }) => {
await page.goto('/blog/an-approach-to-optimizing-typescript-type-checking-performance/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Framing the problem​' || t.startsWith('Framing the problem​'))).toBeTruthy();
});
test('blog_an_approach_to_optimizing_typescript_type_checking_performance: h2 "How do we quantify the type ch"', async ({ page }) => {
await page.goto('/blog/an-approach-to-optimizing-typescript-type-checking-performance/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How do we quantify the type checker\'s workload?​' || t.startsWith('How do we quantify the type checker\'s workload?​'))).toBeTruthy();
});
test('blog_an_approach_to_optimizing_typescript_type_checking_performance: h2 "Marking the workbench​"', async ({ page }) => {
await page.goto('/blog/an-approach-to-optimizing-typescript-type-checking-performance/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Marking the workbench​' || t.startsWith('Marking the workbench​'))).toBeTruthy();
});
test('blog_an_approach_to_optimizing_typescript_type_checking_performance: nav link "Product"', async ({ page }) => {
await page.goto('/blog/an-approach-to-optimizing-typescript-type-checking-performance/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_an_approach_to_optimizing_typescript_type_checking_performance: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/an-approach-to-optimizing-typescript-type-checking-performance/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_an_approach_to_optimizing_typescript_type_checking_performance: footer link "Home"', async ({ page }) => {
await page.goto('/blog/an-approach-to-optimizing-typescript-type-checking-performance/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_an_approach_to_optimizing_typescript_type_checking_performance: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/an-approach-to-optimizing-typescript-type-checking-performance/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_announcing_relvyn_beta_2_luyten', () => {
test('blog_announcing_relvyn_beta_2_luyten: title matches GT', async ({ page }) => {
await page.goto('/blog/announcing-relvyn-beta-2-luyten/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('announcing relvyn beta 2');
});
test('blog_announcing_relvyn_beta_2_luyten: h1 "Announcing Relvyn Beta 2: Luyt"', async ({ page }) => {
await page.goto('/blog/announcing-relvyn-beta-2-luyten/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Announcing Relvyn Beta 2: Luyten' || t.startsWith('Announcing Relvyn Beta 2: Luyten'))).toBeTruthy();
});
test('blog_announcing_relvyn_beta_2_luyten: h2 "What\'s Relvyn?​"', async ({ page }) => {
await page.goto('/blog/announcing-relvyn-beta-2-luyten/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What\'s Relvyn?​' || t.startsWith('What\'s Relvyn?​'))).toBeTruthy();
});
test('blog_announcing_relvyn_beta_2_luyten: h2 "Installing Beta 2​"', async ({ page }) => {
await page.goto('/blog/announcing-relvyn-beta-2-luyten/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Installing Beta 2​' || t.startsWith('Installing Beta 2​'))).toBeTruthy();
});
test('blog_announcing_relvyn_beta_2_luyten: h2 "Announcing relvyn project​"', async ({ page }) => {
await page.goto('/blog/announcing-relvyn-beta-2-luyten/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Announcing relvyn project​' || t.startsWith('Announcing relvyn project​'))).toBeTruthy();
});
test('blog_announcing_relvyn_beta_2_luyten: nav link "Product"', async ({ page }) => {
await page.goto('/blog/announcing-relvyn-beta-2-luyten/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_announcing_relvyn_beta_2_luyten: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/announcing-relvyn-beta-2-luyten/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_announcing_relvyn_beta_2_luyten: footer link "Home"', async ({ page }) => {
await page.goto('/blog/announcing-relvyn-beta-2-luyten/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_announcing_relvyn_beta_2_luyten: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/announcing-relvyn-beta-2-luyten/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_announcing_the_winners_of_our_hackathon', () => {
test('blog_announcing_the_winners_of_our_hackathon: title matches GT', async ({ page }) => {
await page.goto('/blog/announcing-the-winners-of-our-hackathon/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('celebrating the champions of our hackath');
});
test('blog_announcing_the_winners_of_our_hackathon: h1 "Celebrating the champions of o"', async ({ page }) => {
await page.goto('/blog/announcing-the-winners-of-our-hackathon/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Celebrating the champions of our hackathon!' || t.startsWith('Celebrating the champions of our hackathon!'))).toBeTruthy();
});
test('blog_announcing_the_winners_of_our_hackathon: h2 "First Prize: Permaculture Atla"', async ({ page }) => {
await page.goto('/blog/announcing-the-winners-of-our-hackathon/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'First Prize: Permaculture Atlas​' || t.startsWith('First Prize: Permaculture Atlas​'))).toBeTruthy();
});
test('blog_announcing_the_winners_of_our_hackathon: h2 "Second Prize: Hueforge​"', async ({ page }) => {
await page.goto('/blog/announcing-the-winners-of-our-hackathon/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Second Prize: Hueforge​' || t.startsWith('Second Prize: Hueforge​'))).toBeTruthy();
});
test('blog_announcing_the_winners_of_our_hackathon: h2 "Third Prize: Chatly​"', async ({ page }) => {
await page.goto('/blog/announcing-the-winners-of-our-hackathon/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Third Prize: Chatly​' || t.startsWith('Third Prize: Chatly​'))).toBeTruthy();
});
test('blog_announcing_the_winners_of_our_hackathon: nav link "Product"', async ({ page }) => {
await page.goto('/blog/announcing-the-winners-of-our-hackathon/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_announcing_the_winners_of_our_hackathon: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/announcing-the-winners-of-our-hackathon/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_announcing_the_winners_of_our_hackathon: footer link "Home"', async ({ page }) => {
await page.goto('/blog/announcing-the-winners-of-our-hackathon/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_announcing_the_winners_of_our_hackathon: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/announcing-the-winners-of-our-hackathon/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_bringing_net_to_relvyn', () => {
test('blog_bringing_net_to_relvyn: title matches GT', async ({ page }) => {
await page.goto('/blog/bringing-net-to-relvyn/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('bringing coralt to relvyn');
});
test('blog_bringing_net_to_relvyn: h1 "Bringing Coralt to Relvyn"', async ({ page }) => {
await page.goto('/blog/bringing-net-to-relvyn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Bringing Coralt to Relvyn' || t.startsWith('Bringing Coralt to Relvyn'))).toBeTruthy();
});
test('blog_bringing_net_to_relvyn: h2 "What makes a good Relvyn clien"', async ({ page }) => {
await page.goto('/blog/bringing-net-to-relvyn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What makes a good Relvyn client​' || t.startsWith('What makes a good Relvyn client​'))).toBeTruthy();
});
test('blog_bringing_net_to_relvyn: h2 "Getting started​"', async ({ page }) => {
await page.goto('/blog/bringing-net-to-relvyn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Getting started​' || t.startsWith('Getting started​'))).toBeTruthy();
});
test('blog_bringing_net_to_relvyn: h2 "Richer data modeling​"', async ({ page }) => {
await page.goto('/blog/bringing-net-to-relvyn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Richer data modeling​' || t.startsWith('Richer data modeling​'))).toBeTruthy();
});
test('blog_bringing_net_to_relvyn: nav link "Product"', async ({ page }) => {
await page.goto('/blog/bringing-net-to-relvyn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_bringing_net_to_relvyn: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/bringing-net-to-relvyn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_bringing_net_to_relvyn: footer link "Home"', async ({ page }) => {
await page.goto('/blog/bringing-net-to-relvyn/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_bringing_net_to_relvyn: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/bringing-net-to-relvyn/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_building_a_production_database_in_ten_years_or_less', () => {
test('blog_building_a_production_database_in_ten_years_or_less: title matches GT', async ({ page }) => {
await page.goto('/blog/building-a-production-database-in-ten-years-or-less/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('a decade');
});
test('blog_building_a_production_database_in_ten_years_or_less: h1 "A decade-long road to a produc"', async ({ page }) => {
await page.goto('/blog/building-a-production-database-in-ten-years-or-less/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'A decade-long road to a production-ready database' || t.startsWith('A decade-long road to a production-ready database'))).toBeTruthy();
});
test('blog_building_a_production_database_in_ten_years_or_less: h2 "2008: Corewright​"', async ({ page }) => {
await page.goto('/blog/building-a-production-database-in-ten-years-or-less/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '2008: Corewright​' || t.startsWith('2008: Corewright​'))).toBeTruthy();
});
test('blog_building_a_production_database_in_ten_years_or_less: h2 "2009-2014: total Flux​"', async ({ page }) => {
await page.goto('/blog/building-a-production-database-in-ten-years-or-less/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '2009-2014: total Flux​' || t.startsWith('2009-2014: total Flux​'))).toBeTruthy();
});
test('blog_building_a_production_database_in_ten_years_or_less: h2 "2014: boats and hard lessons​"', async ({ page }) => {
await page.goto('/blog/building-a-production-database-in-ten-years-or-less/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '2014: boats and hard lessons​' || t.startsWith('2014: boats and hard lessons​'))).toBeTruthy();
});
test('blog_building_a_production_database_in_ten_years_or_less: nav link "Product"', async ({ page }) => {
await page.goto('/blog/building-a-production-database-in-ten-years-or-less/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_building_a_production_database_in_ten_years_or_less: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/building-a-production-database-in-ten-years-or-less/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_building_a_production_database_in_ten_years_or_less: footer link "Home"', async ({ page }) => {
await page.goto('/blog/building-a-production-database-in-ten-years-or-less/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_building_a_production_database_in_ten_years_or_less: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/building-a-production-database-in-ten-years-or-less/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_building_with_effect_and_relvyn_part_1', () => {
test('blog_building_with_effect_and_relvyn_part_1: title matches GT', async ({ page }) => {
await page.goto('/blog/building-with-effect-and-relvyn-part-1/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('building with effect and relvyn');
});
test('blog_building_with_effect_and_relvyn_part_1: h1 "Building with Effect and Relvy"', async ({ page }) => {
await page.goto('/blog/building-with-effect-and-relvyn-part-1/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Building with Effect and Relvyn: Part 1' || t.startsWith('Building with Effect and Relvyn: Part 1'))).toBeTruthy();
});
test('blog_building_with_effect_and_relvyn_part_1: h2 "Why Effect?​"', async ({ page }) => {
await page.goto('/blog/building-with-effect-and-relvyn-part-1/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Why Effect?​' || t.startsWith('Why Effect?​'))).toBeTruthy();
});
test('blog_building_with_effect_and_relvyn_part_1: h2 "What Effect is and how it oper"', async ({ page }) => {
await page.goto('/blog/building-with-effect-and-relvyn-part-1/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What Effect is and how it operates​' || t.startsWith('What Effect is and how it operates​'))).toBeTruthy();
});
test('blog_building_with_effect_and_relvyn_part_1: h2 "Trying Effect​"', async ({ page }) => {
await page.goto('/blog/building-with-effect-and-relvyn-part-1/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Trying Effect​' || t.startsWith('Trying Effect​'))).toBeTruthy();
});
test('blog_building_with_effect_and_relvyn_part_1: nav link "Product"', async ({ page }) => {
await page.goto('/blog/building-with-effect-and-relvyn-part-1/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_building_with_effect_and_relvyn_part_1: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/building-with-effect-and-relvyn-part-1/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_building_with_effect_and_relvyn_part_1: footer link "Home"', async ({ page }) => {
await page.goto('/blog/building-with-effect-and-relvyn-part-1/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_building_with_effect_and_relvyn_part_1: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/building-with-effect-and-relvyn-part-1/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_c_stdlib_isn_t_threadsafe_and_even_safe_rust_didn_t_save_us', () => {
test('blog_c_stdlib_isn_t_threadsafe_and_even_safe_rust_didn_t_save_us: title matches GT', async ({ page }) => {
await page.goto('/blog/c-stdlib-isn-t-threadsafe-and-even-safe-rust-didn-t-save-us/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('how a c stdlib data race slipped past sa');
});
test('blog_c_stdlib_isn_t_threadsafe_and_even_safe_rust_didn_t_save_us: h1 "A C stdlib race safe Rust simp"', async ({ page }) => {
await page.goto('/blog/c-stdlib-isn-t-threadsafe-and-even-safe-rust-didn-t-save-us/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'A C stdlib race safe Rust simply couldn\'t protect us from' || t.startsWith('A C stdlib race safe Rust simply couldn\'t protect us from'))).toBeTruthy();
});
test('blog_c_stdlib_isn_t_threadsafe_and_even_safe_rust_didn_t_save_us: h2 "The Crash We Only Saw on ARM64"', async ({ page }) => {
await page.goto('/blog/c-stdlib-isn-t-threadsafe-and-even-safe-rust-didn-t-save-us/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The Crash We Only Saw on ARM64 Runners​' || t.startsWith('The Crash We Only Saw on ARM64 Runners​'))).toBeTruthy();
});
test('blog_c_stdlib_isn_t_threadsafe_and_even_safe_rust_didn_t_save_us: h2 "Early hypotheses​"', async ({ page }) => {
await page.goto('/blog/c-stdlib-isn-t-threadsafe-and-even-safe-rust-didn-t-save-us/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Early hypotheses​' || t.startsWith('Early hypotheses​'))).toBeTruthy();
});
test('blog_c_stdlib_isn_t_threadsafe_and_even_safe_rust_didn_t_save_us: h2 "Digging in on the CI Machine​"', async ({ page }) => {
await page.goto('/blog/c-stdlib-isn-t-threadsafe-and-even-safe-rust-didn-t-save-us/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Digging in on the CI Machine​' || t.startsWith('Digging in on the CI Machine​'))).toBeTruthy();
});
test('blog_c_stdlib_isn_t_threadsafe_and_even_safe_rust_didn_t_save_us: nav link "Product"', async ({ page }) => {
await page.goto('/blog/c-stdlib-isn-t-threadsafe-and-even-safe-rust-didn-t-save-us/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_c_stdlib_isn_t_threadsafe_and_even_safe_rust_didn_t_save_us: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/c-stdlib-isn-t-threadsafe-and-even-safe-rust-didn-t-save-us/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_c_stdlib_isn_t_threadsafe_and_even_safe_rust_didn_t_save_us: footer link "Home"', async ({ page }) => {
await page.goto('/blog/c-stdlib-isn-t-threadsafe-and-even-safe-rust-didn-t-save-us/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_c_stdlib_isn_t_threadsafe_and_even_safe_rust_didn_t_save_us: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/c-stdlib-isn-t-threadsafe-and-even-safe-rust-didn-t-save-us/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_chit_chatting_with_relvyn_docs_via_chatgpt_and_pgvector', () => {
test('blog_chit_chatting_with_relvyn_docs_via_chatgpt_and_pgvector: title matches GT', async ({ page }) => {
await page.goto('/blog/chit-chatting-with-relvyn-docs-via-chatgpt-and-pgvector/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('talking to your relvyn docs with lumina ');
});
test('blog_chit_chatting_with_relvyn_docs_via_chatgpt_and_pgvector: h1 "Talking to your Relvyn docs wi"', async ({ page }) => {
await page.goto('/blog/chit-chatting-with-relvyn-docs-via-chatgpt-and-pgvector/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Talking to your Relvyn docs with Lumina Chat and Vectra' || t.startsWith('Talking to your Relvyn docs with Lumina Chat and Vectra'))).toBeTruthy();
});
test('blog_chit_chatting_with_relvyn_docs_via_chatgpt_and_pgvector: h2 "Why did we decide to bring Lum"', async ({ page }) => {
await page.goto('/blog/chit-chatting-with-relvyn-docs-via-chatgpt-and-pgvector/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Why did we decide to bring Lumina Chat into the picture?​' || t.startsWith('Why did we decide to bring Lumina Chat into the picture?​'))).toBeTruthy();
});
test('blog_chit_chatting_with_relvyn_docs_via_chatgpt_and_pgvector: h2 "How we put it together​"', async ({ page }) => {
await page.goto('/blog/chit-chatting-with-relvyn-docs-via-chatgpt-and-pgvector/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How we put it together​' || t.startsWith('How we put it together​'))).toBeTruthy();
});
test('blog_chit_chatting_with_relvyn_docs_via_chatgpt_and_pgvector: h2 "What can Ask AI actually do?​"', async ({ page }) => {
await page.goto('/blog/chit-chatting-with-relvyn-docs-via-chatgpt-and-pgvector/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What can Ask AI actually do?​' || t.startsWith('What can Ask AI actually do?​'))).toBeTruthy();
});
test('blog_chit_chatting_with_relvyn_docs_via_chatgpt_and_pgvector: nav link "Product"', async ({ page }) => {
await page.goto('/blog/chit-chatting-with-relvyn-docs-via-chatgpt-and-pgvector/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_chit_chatting_with_relvyn_docs_via_chatgpt_and_pgvector: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/chit-chatting-with-relvyn-docs-via-chatgpt-and-pgvector/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_chit_chatting_with_relvyn_docs_via_chatgpt_and_pgvector: footer link "Home"', async ({ page }) => {
await page.goto('/blog/chit-chatting-with-relvyn-docs-via-chatgpt-and-pgvector/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_chit_chatting_with_relvyn_docs_via_chatgpt_and_pgvector: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/chit-chatting-with-relvyn-docs-via-chatgpt-and-pgvector/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_designing_the_ultimate_typescript_query_builder', () => {
test('blog_designing_the_ultimate_typescript_query_builder: title matches GT', async ({ page }) => {
await page.goto('/blog/designing-the-ultimate-typescript-query-builder/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('building a fully type');
});
test('blog_designing_the_ultimate_typescript_query_builder: h1 "Building a fully type-safe Typ"', async ({ page }) => {
await page.goto('/blog/designing-the-ultimate-typescript-query-builder/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Building a fully type-safe TypeScript query builder' || t.startsWith('Building a fully type-safe TypeScript query builder'))).toBeTruthy();
});
test('blog_designing_the_ultimate_typescript_query_builder: h2 "A fresh take on SQL​"', async ({ page }) => {
await page.goto('/blog/designing-the-ultimate-typescript-query-builder/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'A fresh take on SQL​' || t.startsWith('A fresh take on SQL​'))).toBeTruthy();
});
test('blog_designing_the_ultimate_typescript_query_builder: h2 "Creating objects​"', async ({ page }) => {
await page.goto('/blog/designing-the-ultimate-typescript-query-builder/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Creating objects​' || t.startsWith('Creating objects​'))).toBeTruthy();
});
test('blog_designing_the_ultimate_typescript_query_builder: h2 "Fetching objects​"', async ({ page }) => {
await page.goto('/blog/designing-the-ultimate-typescript-query-builder/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fetching objects​' || t.startsWith('Fetching objects​'))).toBeTruthy();
});
test('blog_designing_the_ultimate_typescript_query_builder: nav link "Product"', async ({ page }) => {
await page.goto('/blog/designing-the-ultimate-typescript-query-builder/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_designing_the_ultimate_typescript_query_builder: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/designing-the-ultimate-typescript-query-builder/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_designing_the_ultimate_typescript_query_builder: footer link "Home"', async ({ page }) => {
await page.goto('/blog/designing-the-ultimate-typescript-query-builder/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_designing_the_ultimate_typescript_query_builder: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/designing-the-ultimate-typescript-query-builder/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_relvyn_1_0', () => {
test('blog_relvyn_1_0: title matches GT', async ({ page }) => {
await page.goto('/blog/relvyn-1-0/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('relvyn 1.0');
});
test('blog_relvyn_1_0: h1 "Relvyn 1.0"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn 1.0' || t.startsWith('Relvyn 1.0'))).toBeTruthy();
});
test('blog_relvyn_1_0: h2 "We can do far better than SQL​"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'We can do far better than SQL​' || t.startsWith('We can do far better than SQL​'))).toBeTruthy();
});
test('blog_relvyn_1_0: h2 "The true source of truth​"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The true source of truth​' || t.startsWith('The true source of truth​'))).toBeTruthy();
});
test('blog_relvyn_1_0: h2 "More than a database server​"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'More than a database server​' || t.startsWith('More than a database server​'))).toBeTruthy();
});
test('blog_relvyn_1_0: nav link "Product"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_relvyn_1_0: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_relvyn_1_0: footer link "Home"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_relvyn_1_0: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_relvyn_1_0_alpha_1', () => {
test('blog_relvyn_1_0_alpha_1: title matches GT', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-1/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('relvyn 1.0 alpha 1');
});
test('blog_relvyn_1_0_alpha_1: h1 "Relvyn 1.0 Alpha 1"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-1/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn 1.0 Alpha 1' || t.startsWith('Relvyn 1.0 Alpha 1'))).toBeTruthy();
});
test('blog_relvyn_1_0_alpha_1: h2 "What\'s New​"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-1/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What\'s New​' || t.startsWith('What\'s New​'))).toBeTruthy();
});
test('blog_relvyn_1_0_alpha_1: h2 "Time to Build an App!​"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-1/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Time to Build an App!​' || t.startsWith('Time to Build an App!​'))).toBeTruthy();
});
test('blog_relvyn_1_0_alpha_1: h2 "Benchmarks​"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-1/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Benchmarks​' || t.startsWith('Benchmarks​'))).toBeTruthy();
});
test('blog_relvyn_1_0_alpha_1: nav link "Product"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-1/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_relvyn_1_0_alpha_1: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-1/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_relvyn_1_0_alpha_1: footer link "Home"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-1/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_relvyn_1_0_alpha_1: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-1/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_relvyn_1_0_alpha_2', () => {
test('blog_relvyn_1_0_alpha_2: title matches GT', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-2/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('relvyn 1.0 alpha 2');
});
test('blog_relvyn_1_0_alpha_2: h1 "Relvyn 1.0 Alpha 2"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-2/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn 1.0 Alpha 2' || t.startsWith('Relvyn 1.0 Alpha 2'))).toBeTruthy();
});
test('blog_relvyn_1_0_alpha_2: h2 "What Alpha 2 Brings​"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-2/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What Alpha 2 Brings​' || t.startsWith('What Alpha 2 Brings​'))).toBeTruthy();
});
test('blog_relvyn_1_0_alpha_2: h2 "Benchmarks​"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-2/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Benchmarks​' || t.startsWith('Benchmarks​'))).toBeTruthy();
});
test('blog_relvyn_1_0_alpha_2: h2 "Ahead: Alpha 3​"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-2/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Ahead: Alpha 3​' || t.startsWith('Ahead: Alpha 3​'))).toBeTruthy();
});
test('blog_relvyn_1_0_alpha_2: nav link "Product"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-2/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_relvyn_1_0_alpha_2: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-2/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_relvyn_1_0_alpha_2: footer link "Home"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-2/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_relvyn_1_0_alpha_2: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-2/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_relvyn_1_0_alpha_3_proxima_centauri', () => {
test('blog_relvyn_1_0_alpha_3_proxima_centauri: title matches GT', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-3-proxima-centauri/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('relvyn 1.0 alpha 3 "proxima centauri"');
});
test('blog_relvyn_1_0_alpha_3_proxima_centauri: h1 "Relvyn 1.0 Alpha 3 Proxima Cen"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-3-proxima-centauri/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn 1.0 Alpha 3 "Proxima Centauri"' || t.startsWith('Relvyn 1.0 Alpha 3 "Proxima Centauri"'))).toBeTruthy();
});
test('blog_relvyn_1_0_alpha_3_proxima_centauri: h2 "A fresh release schedule​"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-3-proxima-centauri/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'A fresh release schedule​' || t.startsWith('A fresh release schedule​'))).toBeTruthy();
});
test('blog_relvyn_1_0_alpha_3_proxima_centauri: h2 "Now with Rust™️​"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-3-proxima-centauri/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Now with Rust™️​' || t.startsWith('Now with Rust™️​'))).toBeTruthy();
});
test('blog_relvyn_1_0_alpha_3_proxima_centauri: h2 "Explore Relvyn without install"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-3-proxima-centauri/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Explore Relvyn without installing anything​' || t.startsWith('Explore Relvyn without installing anything​'))).toBeTruthy();
});
test('blog_relvyn_1_0_alpha_3_proxima_centauri: nav link "Product"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-3-proxima-centauri/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_relvyn_1_0_alpha_3_proxima_centauri: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-3-proxima-centauri/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_relvyn_1_0_alpha_3_proxima_centauri: footer link "Home"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-3-proxima-centauri/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_relvyn_1_0_alpha_3_proxima_centauri: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-3-proxima-centauri/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_relvyn_1_0_alpha_4_barnard_s_star', () => {
test('blog_relvyn_1_0_alpha_4_barnard_s_star: title matches GT', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-4-barnard-s-star/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('relvyn 1.0 alpha 4 "barnard\'s star"');
});
test('blog_relvyn_1_0_alpha_4_barnard_s_star: h1 "Relvyn 1.0 Alpha 4 Barnard\'s S"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-4-barnard-s-star/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn 1.0 Alpha 4 "Barnard\'s Star"' || t.startsWith('Relvyn 1.0 Alpha 4 "Barnard\'s Star"'))).toBeTruthy();
});
test('blog_relvyn_1_0_alpha_4_barnard_s_star: h2 "A Friendlier Experience for Se"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-4-barnard-s-star/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'A Friendlier Experience for Server Instance Upkeep​' || t.startsWith('A Friendlier Experience for Server Instance Upkeep​'))).toBeTruthy();
});
test('blog_relvyn_1_0_alpha_4_barnard_s_star: h2 "JavaScript Bindings Got a Seri"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-4-barnard-s-star/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'JavaScript Bindings Got a Serious Boost​' || t.startsWith('JavaScript Bindings Got a Serious Boost​'))).toBeTruthy();
});
test('blog_relvyn_1_0_alpha_4_barnard_s_star: h2 "One DESCRIBE Beats a Thousand "', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-4-barnard-s-star/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'One DESCRIBE Beats a Thousand Greps​' || t.startsWith('One DESCRIBE Beats a Thousand Greps​'))).toBeTruthy();
});
test('blog_relvyn_1_0_alpha_4_barnard_s_star: nav link "Product"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-4-barnard-s-star/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_relvyn_1_0_alpha_4_barnard_s_star: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-4-barnard-s-star/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_relvyn_1_0_alpha_4_barnard_s_star: footer link "Home"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-4-barnard-s-star/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_relvyn_1_0_alpha_4_barnard_s_star: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-4-barnard-s-star/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_relvyn_1_0_alpha_5_luhman', () => {
test('blog_relvyn_1_0_alpha_5_luhman: title matches GT', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-5-luhman/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('relvyn 1.0 alpha 5 "wolf"');
});
test('blog_relvyn_1_0_alpha_5_luhman: h1 "Relvyn 1.0 Alpha 5 Wolf"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-5-luhman/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn 1.0 Alpha 5 "Wolf"' || t.startsWith('Relvyn 1.0 Alpha 5 "Wolf"'))).toBeTruthy();
});
test('blog_relvyn_1_0_alpha_5_luhman: h2 "Effortless Administration with"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-5-luhman/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Effortless Administration with Named Instances​' || t.startsWith('Effortless Administration with Named Instances​'))).toBeTruthy();
});
test('blog_relvyn_1_0_alpha_5_luhman: h2 "Upserts​"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-5-luhman/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '"Upserts"​' || t.startsWith('"Upserts"​'))).toBeTruthy();
});
test('blog_relvyn_1_0_alpha_5_luhman: h2 "Type-wide constraints​"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-5-luhman/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Type-wide constraints​' || t.startsWith('Type-wide constraints​'))).toBeTruthy();
});
test('blog_relvyn_1_0_alpha_5_luhman: nav link "Product"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-5-luhman/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_relvyn_1_0_alpha_5_luhman: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-5-luhman/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_relvyn_1_0_alpha_5_luhman: footer link "Home"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-5-luhman/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_relvyn_1_0_alpha_5_luhman: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-5-luhman/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_relvyn_1_0_alpha_6_wolf_359', () => {
test('blog_relvyn_1_0_alpha_6_wolf_359: title matches GT', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-6-wolf-359/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('relvyn 1.0 alpha 6 "wolf 359"');
});
test('blog_relvyn_1_0_alpha_6_wolf_359: h1 "Relvyn 1.0 Alpha 6 Wolf 359"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-6-wolf-359/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn 1.0 Alpha 6 "Wolf 359"' || t.startsWith('Relvyn 1.0 Alpha 6 "Wolf 359"'))).toBeTruthy();
});
test('blog_relvyn_1_0_alpha_6_wolf_359: h2 "Improved UPDATE​"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-6-wolf-359/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Improved UPDATE​' || t.startsWith('Improved UPDATE​'))).toBeTruthy();
});
test('blog_relvyn_1_0_alpha_6_wolf_359: h2 "Smarter constraints​"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-6-wolf-359/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Smarter constraints​' || t.startsWith('Smarter constraints​'))).toBeTruthy();
});
test('blog_relvyn_1_0_alpha_6_wolf_359: h2 "More capable functions​"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-6-wolf-359/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'More capable functions​' || t.startsWith('More capable functions​'))).toBeTruthy();
});
test('blog_relvyn_1_0_alpha_6_wolf_359: nav link "Product"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-6-wolf-359/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_relvyn_1_0_alpha_6_wolf_359: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-6-wolf-359/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_relvyn_1_0_alpha_6_wolf_359: footer link "Home"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-6-wolf-359/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_relvyn_1_0_alpha_6_wolf_359: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-alpha-6-wolf-359/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_relvyn_1_0_beta_1_sirius', () => {
test('blog_relvyn_1_0_beta_1_sirius: title matches GT', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-beta-1-sirius/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('relvyn 1.0 beta 1 "sirius"');
});
test('blog_relvyn_1_0_beta_1_sirius: h1 "Relvyn 1.0 Beta 1 Sirius"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-beta-1-sirius/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn 1.0 Beta 1 "Sirius"' || t.startsWith('Relvyn 1.0 Beta 1 "Sirius"'))).toBeTruthy();
});
test('blog_relvyn_1_0_beta_1_sirius: h2 "Native schema migrations in ac"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-beta-1-sirius/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Native schema migrations in action​' || t.startsWith('Native schema migrations in action​'))).toBeTruthy();
});
test('blog_relvyn_1_0_beta_1_sirius: h2 "Persistent database connection"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-beta-1-sirius/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Persistent database connections with safe automatic retries​' || t.startsWith('Persistent database connections with safe automatic retries​'))).toBeTruthy();
});
test('blog_relvyn_1_0_beta_1_sirius: h2 "A fresh first-party database c"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-beta-1-sirius/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'A fresh first-party database client for Go​' || t.startsWith('A fresh first-party database client for Go​'))).toBeTruthy();
});
test('blog_relvyn_1_0_beta_1_sirius: nav link "Product"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-beta-1-sirius/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_relvyn_1_0_beta_1_sirius: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-beta-1-sirius/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_relvyn_1_0_beta_1_sirius: footer link "Home"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-beta-1-sirius/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_relvyn_1_0_beta_1_sirius: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/relvyn-1-0-beta-1-sirius/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_relvyn_2_0', () => {
test('blog_relvyn_2_0: title matches GT', async ({ page }) => {
await page.goto('/blog/relvyn-2-0/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('relvyn 2.0');
});
test('blog_relvyn_2_0: h1 "Relvyn 2.0"', async ({ page }) => {
await page.goto('/blog/relvyn-2-0/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn 2.0' || t.startsWith('Relvyn 2.0'))).toBeTruthy();
});
test('blog_relvyn_2_0: h2 "Before we dive in…​"', async ({ page }) => {
await page.goto('/blog/relvyn-2-0/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Before we dive in…​' || t.startsWith('Before we dive in…​'))).toBeTruthy();
});
test('blog_relvyn_2_0: h2 "What ships in 2.0?​"', async ({ page }) => {
await page.goto('/blog/relvyn-2-0/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What ships in 2.0?​' || t.startsWith('What ships in 2.0?​'))).toBeTruthy();
});
test('blog_relvyn_2_0: h2 "Relvyn UI​"', async ({ page }) => {
await page.goto('/blog/relvyn-2-0/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn UI​' || t.startsWith('Relvyn UI​'))).toBeTruthy();
});
test('blog_relvyn_2_0: nav link "Product"', async ({ page }) => {
await page.goto('/blog/relvyn-2-0/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_relvyn_2_0: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/relvyn-2-0/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_relvyn_2_0: footer link "Home"', async ({ page }) => {
await page.goto('/blog/relvyn-2-0/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_relvyn_2_0: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/relvyn-2-0/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_relvyn_3_0', () => {
test('blog_relvyn_3_0: title matches GT', async ({ page }) => {
await page.goto('/blog/relvyn-3-0/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('relvyn 3.0');
});
test('blog_relvyn_3_0: h1 "Relvyn 3.0"', async ({ page }) => {
await page.goto('/blog/relvyn-3-0/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn 3.0' || t.startsWith('Relvyn 3.0'))).toBeTruthy();
});
test('blog_relvyn_3_0: h2 "A sleeker SDL​"', async ({ page }) => {
await page.goto('/blog/relvyn-3-0/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'A sleeker SDL​' || t.startsWith('A sleeker SDL​'))).toBeTruthy();
});
test('blog_relvyn_3_0: h2 "Triggers plus mutation rewrite"', async ({ page }) => {
await page.goto('/blog/relvyn-3-0/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Triggers plus mutation rewrites​' || t.startsWith('Triggers plus mutation rewrites​'))).toBeTruthy();
});
test('blog_relvyn_3_0: h2 "Reworked UI​"', async ({ page }) => {
await page.goto('/blog/relvyn-3-0/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Reworked UI​' || t.startsWith('Reworked UI​'))).toBeTruthy();
});
test('blog_relvyn_3_0: nav link "Product"', async ({ page }) => {
await page.goto('/blog/relvyn-3-0/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_relvyn_3_0: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/relvyn-3-0/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_relvyn_3_0: footer link "Home"', async ({ page }) => {
await page.goto('/blog/relvyn-3-0/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_relvyn_3_0: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/relvyn-3-0/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_relvyn_5_introducing_branches', () => {
test('blog_relvyn_5_introducing_branches: title matches GT', async ({ page }) => {
await page.goto('/blog/relvyn-5-introducing-branches/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('relvyn 5');
});
test('blog_relvyn_5_introducing_branches: h1 "Relvyn 5: Introducing branches"', async ({ page }) => {
await page.goto('/blog/relvyn-5-introducing-branches/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn 5: Introducing branches' || t.startsWith('Relvyn 5: Introducing branches'))).toBeTruthy();
});
test('blog_relvyn_5_introducing_branches: h2 "Branches in Relvyn 5​"', async ({ page }) => {
await page.goto('/blog/relvyn-5-introducing-branches/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Branches in Relvyn 5​' || t.startsWith('Branches in Relvyn 5​'))).toBeTruthy();
});
test('blog_relvyn_5_introducing_branches: h2 "The workflow​"', async ({ page }) => {
await page.goto('/blog/relvyn-5-introducing-branches/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The workflow​' || t.startsWith('The workflow​'))).toBeTruthy();
});
test('blog_relvyn_5_introducing_branches: h2 "How does it compare to X?​"', async ({ page }) => {
await page.goto('/blog/relvyn-5-introducing-branches/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How does it compare to X?​' || t.startsWith('How does it compare to X?​'))).toBeTruthy();
});
test('blog_relvyn_5_introducing_branches: nav link "Product"', async ({ page }) => {
await page.goto('/blog/relvyn-5-introducing-branches/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_relvyn_5_introducing_branches: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/relvyn-5-introducing-branches/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_relvyn_5_introducing_branches: footer link "Home"', async ({ page }) => {
await page.goto('/blog/relvyn-5-introducing-branches/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_relvyn_5_introducing_branches: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/relvyn-5-introducing-branches/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_relvyn_5_introducing_ext_ai', () => {
test('blog_relvyn_5_introducing_ext_ai: title matches GT', async ({ page }) => {
await page.goto('/blog/relvyn-5-introducing-ext-ai/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('relvyn 5');
});
test('blog_relvyn_5_introducing_ext_ai: h1 "Relvyn 5: Introducing ext::ai"', async ({ page }) => {
await page.goto('/blog/relvyn-5-introducing-ext-ai/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn 5: Introducing ext::ai' || t.startsWith('Relvyn 5: Introducing ext::ai'))).toBeTruthy();
});
test('blog_relvyn_5_introducing_ext_ai: h2 "The RAG payoff​"', async ({ page }) => {
await page.goto('/blog/relvyn-5-introducing-ext-ai/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The RAG payoff​' || t.startsWith('The RAG payoff​'))).toBeTruthy();
});
test('blog_relvyn_5_introducing_ext_ai: h2 "Looking ahead​"', async ({ page }) => {
await page.goto('/blog/relvyn-5-introducing-ext-ai/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Looking ahead​' || t.startsWith('Looking ahead​'))).toBeTruthy();
});
test('blog_relvyn_5_introducing_ext_ai: h3 "BROWSE THE OTHER POSTS"', async ({ page }) => {
await page.goto('/blog/relvyn-5-introducing-ext-ai/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'BROWSE THE OTHER POSTS' || t.startsWith('BROWSE THE OTHER POSTS'))).toBeTruthy();
});
test('blog_relvyn_5_introducing_ext_ai: nav link "Product"', async ({ page }) => {
await page.goto('/blog/relvyn-5-introducing-ext-ai/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_relvyn_5_introducing_ext_ai: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/relvyn-5-introducing-ext-ai/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_relvyn_5_introducing_ext_ai: footer link "Home"', async ({ page }) => {
await page.goto('/blog/relvyn-5-introducing-ext-ai/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_relvyn_5_introducing_ext_ai: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/relvyn-5-introducing-ext-ai/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_relvyn_5_introducing_passwordless_auth', () => {
test('blog_relvyn_5_introducing_passwordless_auth: title matches GT', async ({ page }) => {
await page.goto('/blog/relvyn-5-introducing-passwordless-auth/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('relvyn 5');
});
test('blog_relvyn_5_introducing_passwordless_auth: h1 "Relvyn 5: Passwordless Auth Ha"', async ({ page }) => {
await page.goto('/blog/relvyn-5-introducing-passwordless-auth/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn 5: Passwordless Auth Has Landed' || t.startsWith('Relvyn 5: Passwordless Auth Has Landed'))).toBeTruthy();
});
test('blog_relvyn_5_introducing_passwordless_auth: h2 "Getting Started with Relvyn Au"', async ({ page }) => {
await page.goto('/blog/relvyn-5-introducing-passwordless-auth/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Getting Started with Relvyn Auth​' || t.startsWith('Getting Started with Relvyn Auth​'))).toBeTruthy();
});
test('blog_relvyn_5_introducing_passwordless_auth: h2 "Going Passwordless: Authentica"', async ({ page }) => {
await page.goto('/blog/relvyn-5-introducing-passwordless-auth/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Going Passwordless: Authentication Reimagined​' || t.startsWith('Going Passwordless: Authentication Reimagined​'))).toBeTruthy();
});
test('blog_relvyn_5_introducing_passwordless_auth: h2 "Fresh OAuth Providers: Sparq a"', async ({ page }) => {
await page.goto('/blog/relvyn-5-introducing-passwordless-auth/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fresh OAuth Providers: Sparq and Chorda​' || t.startsWith('Fresh OAuth Providers: Sparq and Chorda​'))).toBeTruthy();
});
test('blog_relvyn_5_introducing_passwordless_auth: nav link "Product"', async ({ page }) => {
await page.goto('/blog/relvyn-5-introducing-passwordless-auth/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_relvyn_5_introducing_passwordless_auth: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/relvyn-5-introducing-passwordless-auth/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_relvyn_5_introducing_passwordless_auth: footer link "Home"', async ({ page }) => {
await page.goto('/blog/relvyn-5-introducing-passwordless-auth/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_relvyn_5_introducing_passwordless_auth: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/relvyn-5-introducing-passwordless-auth/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_relvyn_a_new_beginning', () => {
test('blog_relvyn_a_new_beginning: title matches GT', async ({ page }) => {
await page.goto('/blog/relvyn-a-new-beginning/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('relvyn');
});
test('blog_relvyn_a_new_beginning: h1 "Relvyn: A New Beginning"', async ({ page }) => {
await page.goto('/blog/relvyn-a-new-beginning/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn: A New Beginning' || t.startsWith('Relvyn: A New Beginning'))).toBeTruthy();
});
test('blog_relvyn_a_new_beginning: h2 "Motivation​"', async ({ page }) => {
await page.goto('/blog/relvyn-a-new-beginning/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Motivation​' || t.startsWith('Motivation​'))).toBeTruthy();
});
test('blog_relvyn_a_new_beginning: h2 "Object-Relational​"', async ({ page }) => {
await page.goto('/blog/relvyn-a-new-beginning/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Object-Relational​' || t.startsWith('Object-Relational​'))).toBeTruthy();
});
test('blog_relvyn_a_new_beginning: h2 "Relvyn​"', async ({ page }) => {
await page.goto('/blog/relvyn-a-new-beginning/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn​' || t.startsWith('Relvyn​'))).toBeTruthy();
});
test('blog_relvyn_a_new_beginning: nav link "Product"', async ({ page }) => {
await page.goto('/blog/relvyn-a-new-beginning/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_relvyn_a_new_beginning: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/relvyn-a-new-beginning/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_relvyn_a_new_beginning: footer link "Home"', async ({ page }) => {
await page.goto('/blog/relvyn-a-new-beginning/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_relvyn_a_new_beginning: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/relvyn-a-new-beginning/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_relvyn_and_nuxt_a_fullstack_app_at_your_fingertips', () => {
test('blog_relvyn_and_nuxt_a_fullstack_app_at_your_fingertips: title matches GT', async ({ page }) => {
await page.goto('/blog/relvyn-and-nuxt-a-fullstack-app-at-your-fingertips/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('relvyn and voost');
});
test('blog_relvyn_and_nuxt_a_fullstack_app_at_your_fingertips: h1 "Relvyn and Voost: a fullstack "', async ({ page }) => {
await page.goto('/blog/relvyn-and-nuxt-a-fullstack-app-at-your-fingertips/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn and Voost: a fullstack app at your fingertips' || t.startsWith('Relvyn and Voost: a fullstack app at your fingertips'))).toBeTruthy();
});
test('blog_relvyn_and_nuxt_a_fullstack_app_at_your_fingertips: h2 "A fresh layer for your Voost p"', async ({ page }) => {
await page.goto('/blog/relvyn-and-nuxt-a-fullstack-app-at-your-fingertips/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'A fresh layer for your Voost project​' || t.startsWith('A fresh layer for your Voost project​'))).toBeTruthy();
});
test('blog_relvyn_and_nuxt_a_fullstack_app_at_your_fingertips: h2 "A database in your server/ dir"', async ({ page }) => {
await page.goto('/blog/relvyn-and-nuxt-a-fullstack-app-at-your-fingertips/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'A database in your server/ directory​' || t.startsWith('A database in your server/ directory​'))).toBeTruthy();
});
test('blog_relvyn_and_nuxt_a_fullstack_app_at_your_fingertips: h2 "A database that lives in your "', async ({ page }) => {
await page.goto('/blog/relvyn-and-nuxt-a-fullstack-app-at-your-fingertips/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'A database that lives in your DevTools​' || t.startsWith('A database that lives in your DevTools​'))).toBeTruthy();
});
test('blog_relvyn_and_nuxt_a_fullstack_app_at_your_fingertips: nav link "Product"', async ({ page }) => {
await page.goto('/blog/relvyn-and-nuxt-a-fullstack-app-at-your-fingertips/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_relvyn_and_nuxt_a_fullstack_app_at_your_fingertips: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/relvyn-and-nuxt-a-fullstack-app-at-your-fingertips/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_relvyn_and_nuxt_a_fullstack_app_at_your_fingertips: footer link "Home"', async ({ page }) => {
await page.goto('/blog/relvyn-and-nuxt-a-fullstack-app-at-your-fingertips/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_relvyn_and_nuxt_a_fullstack_app_at_your_fingertips: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/relvyn-and-nuxt-a-fullstack-app-at-your-fingertips/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_relvyn_and_rust_type_safe_kindred_spirits', () => {
test('blog_relvyn_and_rust_type_safe_kindred_spirits: title matches GT', async ({ page }) => {
await page.goto('/blog/relvyn-and-rust-type-safe-kindred-spirits/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('relvyn and rust');
});
test('blog_relvyn_and_rust_type_safe_kindred_spirits: h1 "Relvyn and Rust: Type-safe kin"', async ({ page }) => {
await page.goto('/blog/relvyn-and-rust-type-safe-kindred-spirits/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn and Rust: Type-safe kindred spirits' || t.startsWith('Relvyn and Rust: Type-safe kindred spirits'))).toBeTruthy();
});
test('blog_relvyn_and_rust_type_safe_kindred_spirits: h2 "The case for strong typing​"', async ({ page }) => {
await page.goto('/blog/relvyn-and-rust-type-safe-kindred-spirits/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The case for strong typing​' || t.startsWith('The case for strong typing​'))).toBeTruthy();
});
test('blog_relvyn_and_rust_type_safe_kindred_spirits: h2 "Scalar (primitive) types​"', async ({ page }) => {
await page.goto('/blog/relvyn-and-rust-type-safe-kindred-spirits/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Scalar (primitive) types​' || t.startsWith('Scalar (primitive) types​'))).toBeTruthy();
});
test('blog_relvyn_and_rust_type_safe_kindred_spirits: h2 "There is no NULL​"', async ({ page }) => {
await page.goto('/blog/relvyn-and-rust-type-safe-kindred-spirits/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'There is no NULL​' || t.startsWith('There is no NULL​'))).toBeTruthy();
});
test('blog_relvyn_and_rust_type_safe_kindred_spirits: nav link "Product"', async ({ page }) => {
await page.goto('/blog/relvyn-and-rust-type-safe-kindred-spirits/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_relvyn_and_rust_type_safe_kindred_spirits: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/relvyn-and-rust-type-safe-kindred-spirits/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_relvyn_and_rust_type_safe_kindred_spirits: footer link "Home"', async ({ page }) => {
await page.goto('/blog/relvyn-and-rust-type-safe-kindred-spirits/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_relvyn_and_rust_type_safe_kindred_spirits: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/relvyn-and-rust-type-safe-kindred-spirits/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_relvyn_beta_3_ross', () => {
test('blog_relvyn_beta_3_ross: title matches GT', async ({ page }) => {
await page.goto('/blog/relvyn-beta-3-ross/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('relvyn beta 3');
});
test('blog_relvyn_beta_3_ross: h1 "Relvyn Beta 3: Wolf"', async ({ page }) => {
await page.goto('/blog/relvyn-beta-3-ross/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn Beta 3: "Wolf"' || t.startsWith('Relvyn Beta 3: "Wolf"'))).toBeTruthy();
});
test('blog_relvyn_beta_3_ross: h2 "What\'s Relvyn?​"', async ({ page }) => {
await page.goto('/blog/relvyn-beta-3-ross/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What\'s Relvyn?​' || t.startsWith('What\'s Relvyn?​'))).toBeTruthy();
});
test('blog_relvyn_beta_3_ross: h2 "Installation​"', async ({ page }) => {
await page.goto('/blog/relvyn-beta-3-ross/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Installation​' || t.startsWith('Installation​'))).toBeTruthy();
});
test('blog_relvyn_beta_3_ross: h2 "A re-imagined CLI​"', async ({ page }) => {
await page.goto('/blog/relvyn-beta-3-ross/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'A re-imagined CLI​' || t.startsWith('A re-imagined CLI​'))).toBeTruthy();
});
test('blog_relvyn_beta_3_ross: nav link "Product"', async ({ page }) => {
await page.goto('/blog/relvyn-beta-3-ross/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_relvyn_beta_3_ross: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/relvyn-beta-3-ross/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_relvyn_beta_3_ross: footer link "Home"', async ({ page }) => {
await page.goto('/blog/relvyn-beta-3-ross/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_relvyn_beta_3_ross: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/relvyn-beta-3-ross/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_relvyn_cloud_and_relvyn_4_0', () => {
test('blog_relvyn_cloud_and_relvyn_4_0: title matches GT', async ({ page }) => {
await page.goto('/blog/relvyn-cloud-and-relvyn-4-0/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('relvyn cloud and relvyn 4.0');
});
test('blog_relvyn_cloud_and_relvyn_4_0: h1 "Relvyn Cloud and Relvyn 4.0"', async ({ page }) => {
await page.goto('/blog/relvyn-cloud-and-relvyn-4-0/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn Cloud and Relvyn 4.0' || t.startsWith('Relvyn Cloud and Relvyn 4.0'))).toBeTruthy();
});
test('blog_relvyn_cloud_and_relvyn_4_0: h2 "Relvyn Cloud​"', async ({ page }) => {
await page.goto('/blog/relvyn-cloud-and-relvyn-4-0/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn Cloud​' || t.startsWith('Relvyn Cloud​'))).toBeTruthy();
});
test('blog_relvyn_cloud_and_relvyn_4_0: h2 "Relvyn 4​"', async ({ page }) => {
await page.goto('/blog/relvyn-cloud-and-relvyn-4-0/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn 4​' || t.startsWith('Relvyn 4​'))).toBeTruthy();
});
test('blog_relvyn_cloud_and_relvyn_4_0: h2 "In closing​"', async ({ page }) => {
await page.goto('/blog/relvyn-cloud-and-relvyn-4-0/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'In closing​' || t.startsWith('In closing​'))).toBeTruthy();
});
test('blog_relvyn_cloud_and_relvyn_4_0: nav link "Product"', async ({ page }) => {
await page.goto('/blog/relvyn-cloud-and-relvyn-4-0/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_relvyn_cloud_and_relvyn_4_0: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/relvyn-cloud-and-relvyn-4-0/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_relvyn_cloud_and_relvyn_4_0: footer link "Home"', async ({ page }) => {
await page.goto('/blog/relvyn-cloud-and-relvyn-4-0/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_relvyn_cloud_and_relvyn_4_0: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/relvyn-cloud-and-relvyn-4-0/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_relvyn_cloud_eu_region_launches', () => {
test('blog_relvyn_cloud_eu_region_launches: title matches GT', async ({ page }) => {
await page.goto('/blog/relvyn-cloud-eu-region-launches/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('relvyn cloud eu region launches!');
});
test('blog_relvyn_cloud_eu_region_launches: h1 "Relvyn Cloud EU region goes li"', async ({ page }) => {
await page.goto('/blog/relvyn-cloud-eu-region-launches/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn Cloud EU region goes live!' || t.startsWith('Relvyn Cloud EU region goes live!'))).toBeTruthy();
});
test('blog_relvyn_cloud_eu_region_launches: h3 "SEE THE OTHER ARTICLES"', async ({ page }) => {
await page.goto('/blog/relvyn-cloud-eu-region-launches/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'SEE THE OTHER ARTICLES' || t.startsWith('SEE THE OTHER ARTICLES'))).toBeTruthy();
});
test('blog_relvyn_cloud_eu_region_launches: nav link "Product"', async ({ page }) => {
await page.goto('/blog/relvyn-cloud-eu-region-launches/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_relvyn_cloud_eu_region_launches: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/relvyn-cloud-eu-region-launches/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_relvyn_cloud_eu_region_launches: footer link "Home"', async ({ page }) => {
await page.goto('/blog/relvyn-cloud-eu-region-launches/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_relvyn_cloud_eu_region_launches: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/relvyn-cloud-eu-region-launches/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_relvyn_cloud_free_tier_how_we_stack_up_vs_planetscale_supabase_neon', () => {
test('blog_relvyn_cloud_free_tier_how_we_stack_up_vs_planetscale_supabase_neon: title matches GT', async ({ page }) => {
await page.goto('/blog/relvyn-cloud-free-tier-how-we-stack-up-vs-planetscale-supabase-neon/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('relvyn cloud free tier & how we stack up');
});
test('blog_relvyn_cloud_free_tier_how_we_stack_up_vs_planetscale_supabase_neon: h1 "Relvyn Cloud Free Tier & how w"', async ({ page }) => {
await page.goto('/blog/relvyn-cloud-free-tier-how-we-stack-up-vs-planetscale-supabase-neon/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn Cloud Free Tier & how we stack up vs. Orbitas, Basecrest, Voltra' || t.startsWith('Relvyn Cloud Free Tier & how we stack up vs. Orbitas, Basecrest, Voltra'))).toBeTruthy();
});
test('blog_relvyn_cloud_free_tier_how_we_stack_up_vs_planetscale_supabase_neon: h2 "What is Relvyn Cloud?​"', async ({ page }) => {
await page.goto('/blog/relvyn-cloud-free-tier-how-we-stack-up-vs-planetscale-supabase-neon/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What is Relvyn Cloud?​' || t.startsWith('What is Relvyn Cloud?​'))).toBeTruthy();
});
test('blog_relvyn_cloud_free_tier_how_we_stack_up_vs_planetscale_supabase_neon: h2 "Cloud benchmarks​"', async ({ page }) => {
await page.goto('/blog/relvyn-cloud-free-tier-how-we-stack-up-vs-planetscale-supabase-neon/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud benchmarks​' || t.startsWith('Cloud benchmarks​'))).toBeTruthy();
});
test('blog_relvyn_cloud_free_tier_how_we_stack_up_vs_planetscale_supabase_neon: h2 "The Future of Relvyn Cloud​"', async ({ page }) => {
await page.goto('/blog/relvyn-cloud-free-tier-how-we-stack-up-vs-planetscale-supabase-neon/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The Future of Relvyn Cloud​' || t.startsWith('The Future of Relvyn Cloud​'))).toBeTruthy();
});
test('blog_relvyn_cloud_free_tier_how_we_stack_up_vs_planetscale_supabase_neon: nav link "Product"', async ({ page }) => {
await page.goto('/blog/relvyn-cloud-free-tier-how-we-stack-up-vs-planetscale-supabase-neon/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_relvyn_cloud_free_tier_how_we_stack_up_vs_planetscale_supabase_neon: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/relvyn-cloud-free-tier-how-we-stack-up-vs-planetscale-supabase-neon/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_relvyn_cloud_free_tier_how_we_stack_up_vs_planetscale_supabase_neon: footer link "Home"', async ({ page }) => {
await page.goto('/blog/relvyn-cloud-free-tier-how-we-stack-up-vs-planetscale-supabase-neon/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_relvyn_cloud_free_tier_how_we_stack_up_vs_planetscale_supabase_neon: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/relvyn-cloud-free-tier-how-we-stack-up-vs-planetscale-supabase-neon/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_relvyn_dart', () => {
test('blog_relvyn_dart: title matches GT', async ({ page }) => {
await page.goto('/blog/relvyn-dart/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('relvyn + dart');
});
test('blog_relvyn_dart: h1 "Relvyn + Dart"', async ({ page }) => {
await page.goto('/blog/relvyn-dart/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn + Dart' || t.startsWith('Relvyn + Dart'))).toBeTruthy();
});
test('blog_relvyn_dart: h2 "What is Relvyn?​"', async ({ page }) => {
await page.goto('/blog/relvyn-dart/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What is Relvyn?​' || t.startsWith('What is Relvyn?​'))).toBeTruthy();
});
test('blog_relvyn_dart: h2 "Getting started​"', async ({ page }) => {
await page.goto('/blog/relvyn-dart/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Getting started​' || t.startsWith('Getting started​'))).toBeTruthy();
});
test('blog_relvyn_dart: h2 "Codegen​"', async ({ page }) => {
await page.goto('/blog/relvyn-dart/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Codegen​' || t.startsWith('Codegen​'))).toBeTruthy();
});
test('blog_relvyn_dart: nav link "Product"', async ({ page }) => {
await page.goto('/blog/relvyn-dart/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_relvyn_dart: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/relvyn-dart/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_relvyn_dart: footer link "Home"', async ({ page }) => {
await page.goto('/blog/relvyn-dart/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_relvyn_dart: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/relvyn-dart/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_relvyn_is_now_gel_and_postgres_is_the_future', () => {
test('blog_relvyn_is_now_gel_and_postgres_is_the_future: title matches GT', async ({ page }) => {
await page.goto('/blog/relvyn-is-now-gel-and-postgres-is-the-future/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('relvyn is here and basalt is the future');
});
test('blog_relvyn_is_now_gel_and_postgres_is_the_future: h1 "Relvyn is Here and Basalt is t"', async ({ page }) => {
await page.goto('/blog/relvyn-is-now-gel-and-postgres-is-the-future/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn is Here and Basalt is the Future' || t.startsWith('Relvyn is Here and Basalt is the Future'))).toBeTruthy();
});
test('blog_relvyn_is_now_gel_and_postgres_is_the_future: h2 "Supercharged Basalt Is What Co"', async ({ page }) => {
await page.goto('/blog/relvyn-is-now-gel-and-postgres-is-the-future/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Supercharged Basalt Is What Comes Next​' || t.startsWith('Supercharged Basalt Is What Comes Next​'))).toBeTruthy();
});
test('blog_relvyn_is_now_gel_and_postgres_is_the_future: h2 "Why Rebrand Now?​"', async ({ page }) => {
await page.goto('/blog/relvyn-is-now-gel-and-postgres-is-the-future/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Why Rebrand Now?​' || t.startsWith('Why Rebrand Now?​'))).toBeTruthy();
});
test('blog_relvyn_is_now_gel_and_postgres_is_the_future: h2 "What Changes (and What Doesn\'t"', async ({ page }) => {
await page.goto('/blog/relvyn-is-now-gel-and-postgres-is-the-future/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What Changes (and What Doesn\'t)?​' || t.startsWith('What Changes (and What Doesn\'t)?​'))).toBeTruthy();
});
test('blog_relvyn_is_now_gel_and_postgres_is_the_future: nav link "Product"', async ({ page }) => {
await page.goto('/blog/relvyn-is-now-gel-and-postgres-is-the-future/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_relvyn_is_now_gel_and_postgres_is_the_future: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/relvyn-is-now-gel-and-postgres-is-the-future/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_relvyn_is_now_gel_and_postgres_is_the_future: footer link "Home"', async ({ page }) => {
await page.goto('/blog/relvyn-is-now-gel-and-postgres-is-the-future/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_relvyn_is_now_gel_and_postgres_is_the_future: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/relvyn-is-now-gel-and-postgres-is-the-future/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_relvyn_rc4_procyon', () => {
test('blog_relvyn_rc4_procyon: title matches GT', async ({ page }) => {
await page.goto('/blog/relvyn-rc4-procyon/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('relvyn rc4');
});
test('blog_relvyn_rc4_procyon: h1 "Relvyn RC4: Rigel"', async ({ page }) => {
await page.goto('/blog/relvyn-rc4-procyon/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn RC4: Rigel' || t.startsWith('Relvyn RC4: Rigel'))).toBeTruthy();
});
test('blog_relvyn_rc4_procyon: h2 "CLI now runs on Windows​"', async ({ page }) => {
await page.goto('/blog/relvyn-rc4-procyon/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'CLI now runs on Windows​' || t.startsWith('CLI now runs on Windows​'))).toBeTruthy();
});
test('blog_relvyn_rc4_procyon: h2 "Installing and upgrading​"', async ({ page }) => {
await page.goto('/blog/relvyn-rc4-procyon/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Installing and upgrading​' || t.startsWith('Installing and upgrading​'))).toBeTruthy();
});
test('blog_relvyn_rc4_procyon: h2 "Where we go next​"', async ({ page }) => {
await page.goto('/blog/relvyn-rc4-procyon/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Where we go next​' || t.startsWith('Where we go next​'))).toBeTruthy();
});
test('blog_relvyn_rc4_procyon: nav link "Product"', async ({ page }) => {
await page.goto('/blog/relvyn-rc4-procyon/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_relvyn_rc4_procyon: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/relvyn-rc4-procyon/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_relvyn_rc4_procyon: footer link "Home"', async ({ page }) => {
await page.goto('/blog/relvyn-rc4-procyon/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_relvyn_rc4_procyon: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/relvyn-rc4-procyon/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_relvyn_release_candidate_1', () => {
test('blog_relvyn_release_candidate_1: title matches GT', async ({ page }) => {
await page.goto('/blog/relvyn-release-candidate-1/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('relvyn release candidate 1');
});
test('blog_relvyn_release_candidate_1: h1 "Relvyn Release Candidate 1"', async ({ page }) => {
await page.goto('/blog/relvyn-release-candidate-1/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn Release Candidate 1' || t.startsWith('Relvyn Release Candidate 1'))).toBeTruthy();
});
test('blog_relvyn_release_candidate_1: h2 "What is Relvyn?​"', async ({ page }) => {
await page.goto('/blog/relvyn-release-candidate-1/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What is Relvyn?​' || t.startsWith('What is Relvyn?​'))).toBeTruthy();
});
test('blog_relvyn_release_candidate_1: h2 "Linking remote instances​"', async ({ page }) => {
await page.goto('/blog/relvyn-release-candidate-1/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Linking remote instances​' || t.startsWith('Linking remote instances​'))).toBeTruthy();
});
test('blog_relvyn_release_candidate_1: h2 "Highly available Basalt suppor"', async ({ page }) => {
await page.goto('/blog/relvyn-release-candidate-1/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Highly available Basalt support​' || t.startsWith('Highly available Basalt support​'))).toBeTruthy();
});
test('blog_relvyn_release_candidate_1: nav link "Product"', async ({ page }) => {
await page.goto('/blog/relvyn-release-candidate-1/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_relvyn_release_candidate_1: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/relvyn-release-candidate-1/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_relvyn_release_candidate_1: footer link "Home"', async ({ page }) => {
await page.goto('/blog/relvyn-release-candidate-1/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_relvyn_release_candidate_1: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/relvyn-release-candidate-1/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_relvyn_release_candidate_2', () => {
test('blog_relvyn_release_candidate_2: title matches GT', async ({ page }) => {
await page.goto('/blog/relvyn-release-candidate-2/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('relvyn release candidate 2');
});
test('blog_relvyn_release_candidate_2: h1 "Relvyn Release Candidate 2"', async ({ page }) => {
await page.goto('/blog/relvyn-release-candidate-2/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn Release Candidate 2' || t.startsWith('Relvyn Release Candidate 2'))).toBeTruthy();
});
test('blog_relvyn_release_candidate_2: h2 "Introducing Corvanis​"', async ({ page }) => {
await page.goto('/blog/relvyn-release-candidate-2/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Introducing Corvanis​' || t.startsWith('Introducing Corvanis​'))).toBeTruthy();
});
test('blog_relvyn_release_candidate_2: h2 "What is Relvyn?​"', async ({ page }) => {
await page.goto('/blog/relvyn-release-candidate-2/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What is Relvyn?​' || t.startsWith('What is Relvyn?​'))).toBeTruthy();
});
test('blog_relvyn_release_candidate_2: h2 "A streamlined client API​"', async ({ page }) => {
await page.goto('/blog/relvyn-release-candidate-2/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'A streamlined client API​' || t.startsWith('A streamlined client API​'))).toBeTruthy();
});
test('blog_relvyn_release_candidate_2: nav link "Product"', async ({ page }) => {
await page.goto('/blog/relvyn-release-candidate-2/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_relvyn_release_candidate_2: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/relvyn-release-candidate-2/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_relvyn_release_candidate_2: footer link "Home"', async ({ page }) => {
await page.goto('/blog/relvyn-release-candidate-2/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_relvyn_release_candidate_2: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/relvyn-release-candidate-2/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_relvyn_release_candidate_3', () => {
test('blog_relvyn_release_candidate_3: title matches GT', async ({ page }) => {
await page.goto('/blog/relvyn-release-candidate-3/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('relvyn release candidate 3');
});
test('blog_relvyn_release_candidate_3: h1 "Relvyn Release Candidate 3"', async ({ page }) => {
await page.goto('/blog/relvyn-release-candidate-3/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn Release Candidate 3' || t.startsWith('Relvyn Release Candidate 3'))).toBeTruthy();
});
test('blog_relvyn_release_candidate_3: h2 "Upgrading​"', async ({ page }) => {
await page.goto('/blog/relvyn-release-candidate-3/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Upgrading​' || t.startsWith('Upgrading​'))).toBeTruthy();
});
test('blog_relvyn_release_candidate_3: h2 "How portable builds​"', async ({ page }) => {
await page.goto('/blog/relvyn-release-candidate-3/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How portable builds​' || t.startsWith('How portable builds​'))).toBeTruthy();
});
test('blog_relvyn_release_candidate_3: h2 "Signing off​"', async ({ page }) => {
await page.goto('/blog/relvyn-release-candidate-3/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Signing off​' || t.startsWith('Signing off​'))).toBeTruthy();
});
test('blog_relvyn_release_candidate_3: nav link "Product"', async ({ page }) => {
await page.goto('/blog/relvyn-release-candidate-3/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_relvyn_release_candidate_3: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/relvyn-release-candidate-3/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_relvyn_release_candidate_3: footer link "Home"', async ({ page }) => {
await page.goto('/blog/relvyn-release-candidate-3/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_relvyn_release_candidate_3: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/relvyn-release-candidate-3/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_relvyn_series_a', () => {
test('blog_relvyn_series_a: title matches GT', async ({ page }) => {
await page.goto('/blog/relvyn-series-a/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('relvyn series a');
});
test('blog_relvyn_series_a: h1 "Relvyn Series A"', async ({ page }) => {
await page.goto('/blog/relvyn-series-a/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn Series A' || t.startsWith('Relvyn Series A'))).toBeTruthy();
});
test('blog_relvyn_series_a: h2 "Core​"', async ({ page }) => {
await page.goto('/blog/relvyn-series-a/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Core​' || t.startsWith('Core​'))).toBeTruthy();
});
test('blog_relvyn_series_a: h2 "Cloud​"', async ({ page }) => {
await page.goto('/blog/relvyn-series-a/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud​' || t.startsWith('Cloud​'))).toBeTruthy();
});
test('blog_relvyn_series_a: h2 "Community​"', async ({ page }) => {
await page.goto('/blog/relvyn-series-a/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Community​' || t.startsWith('Community​'))).toBeTruthy();
});
test('blog_relvyn_series_a: nav link "Product"', async ({ page }) => {
await page.goto('/blog/relvyn-series-a/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_relvyn_series_a: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/relvyn-series-a/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_relvyn_series_a: footer link "Home"', async ({ page }) => {
await page.goto('/blog/relvyn-series-a/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_relvyn_series_a: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/relvyn-series-a/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_gel_6_query_stats_and_in_place_upgrade', () => {
test('blog_gel_6_query_stats_and_in_place_upgrade: title matches GT', async ({ page }) => {
await page.goto('/blog/gel-6-query-stats-and-in-place-upgrade/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('relvyn 6');
});
test('blog_gel_6_query_stats_and_in_place_upgrade: h1 "Relvyn 6: Query Metrics and In"', async ({ page }) => {
await page.goto('/blog/gel-6-query-stats-and-in-place-upgrade/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn 6: Query Metrics and In-Place Upgrade' || t.startsWith('Relvyn 6: Query Metrics and In-Place Upgrade'))).toBeTruthy();
});
test('blog_gel_6_query_stats_and_in_place_upgrade: h2 "The Query Metrics Log​"', async ({ page }) => {
await page.goto('/blog/gel-6-query-stats-and-in-place-upgrade/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The Query Metrics Log​' || t.startsWith('The Query Metrics Log​'))).toBeTruthy();
});
test('blog_gel_6_query_stats_and_in_place_upgrade: h2 "Zero-Dump In-Place Upgrades​"', async ({ page }) => {
await page.goto('/blog/gel-6-query-stats-and-in-place-upgrade/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Zero-Dump In-Place Upgrades​' || t.startsWith('Zero-Dump In-Place Upgrades​'))).toBeTruthy();
});
test('blog_gel_6_query_stats_and_in_place_upgrade: h2 "In Sum​"', async ({ page }) => {
await page.goto('/blog/gel-6-query-stats-and-in-place-upgrade/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'In Sum​' || t.startsWith('In Sum​'))).toBeTruthy();
});
test('blog_gel_6_query_stats_and_in_place_upgrade: nav link "Product"', async ({ page }) => {
await page.goto('/blog/gel-6-query-stats-and-in-place-upgrade/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_gel_6_query_stats_and_in_place_upgrade: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/gel-6-query-stats-and-in-place-upgrade/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_gel_6_query_stats_and_in_place_upgrade: footer link "Home"', async ({ page }) => {
await page.goto('/blog/gel-6-query-stats-and-in-place-upgrade/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_gel_6_query_stats_and_in_place_upgrade: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/gel-6-query-stats-and-in-place-upgrade/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_gel_joins_vercel', () => {
test('blog_gel_joins_vercel: title matches GT', async ({ page }) => {
await page.goto('/blog/gel-joins-vercel/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('relvyn joins vela');
});
test('blog_gel_joins_vercel: h1 "Relvyn joins Vela"', async ({ page }) => {
await page.goto('/blog/gel-joins-vercel/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn joins Vela' || t.startsWith('Relvyn joins Vela'))).toBeTruthy();
});
test('blog_gel_joins_vercel: h2 "Good calls​"', async ({ page }) => {
await page.goto('/blog/gel-joins-vercel/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Good calls​' || t.startsWith('Good calls​'))).toBeTruthy();
});
test('blog_gel_joins_vercel: h2 "Ideas still left to prove​"', async ({ page }) => {
await page.goto('/blog/gel-joins-vercel/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Ideas still left to prove​' || t.startsWith('Ideas still left to prove​'))).toBeTruthy();
});
test('blog_gel_joins_vercel: h2 "Questionable calls​"', async ({ page }) => {
await page.goto('/blog/gel-joins-vercel/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Questionable calls​' || t.startsWith('Questionable calls​'))).toBeTruthy();
});
test('blog_gel_joins_vercel: nav link "Product"', async ({ page }) => {
await page.goto('/blog/gel-joins-vercel/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_gel_joins_vercel: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/gel-joins-vercel/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_gel_joins_vercel: footer link "Home"', async ({ page }) => {
await page.goto('/blog/gel-joins-vercel/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_gel_joins_vercel: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/gel-joins-vercel/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_gel_s_new_edgeql_features_and_cli_workflows', () => {
test('blog_gel_s_new_edgeql_features_and_cli_workflows: title matches GT', async ({ page }) => {
await page.goto('/blog/gel-s-new-edgeql-features-and-cli-workflows/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('relvyn\'s new relql features and cli work');
});
test('blog_gel_s_new_edgeql_features_and_cli_workflows: h1 "Relvyn\'s new RelQL features an"', async ({ page }) => {
await page.goto('/blog/gel-s-new-edgeql-features-and-cli-workflows/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn\'s new RelQL features and CLI workflows' || t.startsWith('Relvyn\'s new RelQL features and CLI workflows'))).toBeTruthy();
});
test('blog_gel_s_new_edgeql_features_and_cli_workflows: h2 "RelQL​"', async ({ page }) => {
await page.goto('/blog/gel-s-new-edgeql-features-and-cli-workflows/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'RelQL​' || t.startsWith('RelQL​'))).toBeTruthy();
});
test('blog_gel_s_new_edgeql_features_and_cli_workflows: h2 "CLI​"', async ({ page }) => {
await page.goto('/blog/gel-s-new-edgeql-features-and-cli-workflows/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'CLI​' || t.startsWith('CLI​'))).toBeTruthy();
});
test('blog_gel_s_new_edgeql_features_and_cli_workflows: h3 "DML within user-defined functi"', async ({ page }) => {
await page.goto('/blog/gel-s-new-edgeql-features-and-cli-workflows/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'DML within user-defined functions​' || t.startsWith('DML within user-defined functions​'))).toBeTruthy();
});
test('blog_gel_s_new_edgeql_features_and_cli_workflows: nav link "Product"', async ({ page }) => {
await page.goto('/blog/gel-s-new-edgeql-features-and-cli-workflows/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_gel_s_new_edgeql_features_and_cli_workflows: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/gel-s-new-edgeql-features-and-cli-workflows/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_gel_s_new_edgeql_features_and_cli_workflows: footer link "Home"', async ({ page }) => {
await page.goto('/blog/gel-s-new-edgeql-features-and-cli-workflows/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_gel_s_new_edgeql_features_and_cli_workflows: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/gel-s-new-edgeql-features-and-cli-workflows/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_generative_ui_with_vercel_ai_sdk_and_relvyn', () => {
test('blog_generative_ui_with_vercel_ai_sdk_and_relvyn: title matches GT', async ({ page }) => {
await page.goto('/blog/generative-ui-with-vercel-ai-sdk-and-relvyn/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('generative ui with the vela ai sdk and r');
});
test('blog_generative_ui_with_vercel_ai_sdk_and_relvyn: h1 "Generative UI with the Vela AI"', async ({ page }) => {
await page.goto('/blog/generative-ui-with-vercel-ai-sdk-and-relvyn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Generative UI with the Vela AI SDK and Relvyn' || t.startsWith('Generative UI with the Vela AI SDK and Relvyn'))).toBeTruthy();
});
test('blog_generative_ui_with_vercel_ai_sdk_and_relvyn: h2 "Our stack​"', async ({ page }) => {
await page.goto('/blog/generative-ui-with-vercel-ai-sdk-and-relvyn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Our stack​' || t.startsWith('Our stack​'))).toBeTruthy();
});
test('blog_generative_ui_with_vercel_ai_sdk_and_relvyn: h2 "Setting up the project​"', async ({ page }) => {
await page.goto('/blog/generative-ui-with-vercel-ai-sdk-and-relvyn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Setting up the project​' || t.startsWith('Setting up the project​'))).toBeTruthy();
});
test('blog_generative_ui_with_vercel_ai_sdk_and_relvyn: h2 "Modeling your database schema "', async ({ page }) => {
await page.goto('/blog/generative-ui-with-vercel-ai-sdk-and-relvyn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Modeling your database schema in Relvyn​' || t.startsWith('Modeling your database schema in Relvyn​'))).toBeTruthy();
});
test('blog_generative_ui_with_vercel_ai_sdk_and_relvyn: nav link "Product"', async ({ page }) => {
await page.goto('/blog/generative-ui-with-vercel-ai-sdk-and-relvyn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_generative_ui_with_vercel_ai_sdk_and_relvyn: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/generative-ui-with-vercel-ai-sdk-and-relvyn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_generative_ui_with_vercel_ai_sdk_and_relvyn: footer link "Home"', async ({ page }) => {
await page.goto('/blog/generative-ui-with-vercel-ai-sdk-and-relvyn/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_generative_ui_with_vercel_ai_sdk_and_relvyn: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/generative-ui-with-vercel-ai-sdk-and-relvyn/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_hey_drizzle_please_help_we_want_to_speak_sql', () => {
test('blog_hey_drizzle_please_help_we_want_to_speak_sql: title matches GT', async ({ page }) => {
await page.goto('/blog/hey-drizzle-please-help-we-want-to-speak-sql/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('hey drayle, please help');
});
test('blog_hey_drizzle_please_help_we_want_to_speak_sql: h1 "Hey Drayle, please help — we w"', async ({ page }) => {
await page.goto('/blog/hey-drizzle-please-help-we-want-to-speak-sql/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Hey Drayle, please help — we want to speak SQL' || t.startsWith('Hey Drayle, please help — we want to speak SQL'))).toBeTruthy();
});
test('blog_hey_drizzle_please_help_we_want_to_speak_sql: h2 "Why SQL?​"', async ({ page }) => {
await page.goto('/blog/hey-drizzle-please-help-we-want-to-speak-sql/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Why SQL?​' || t.startsWith('Why SQL?​'))).toBeTruthy();
});
test('blog_hey_drizzle_please_help_we_want_to_speak_sql: h2 "Why Drayle?​"', async ({ page }) => {
await page.goto('/blog/hey-drizzle-please-help-we-want-to-speak-sql/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Why Drayle?​' || t.startsWith('Why Drayle?​'))).toBeTruthy();
});
test('blog_hey_drizzle_please_help_we_want_to_speak_sql: h2 "Building in tandem​"', async ({ page }) => {
await page.goto('/blog/hey-drizzle-please-help-we-want-to-speak-sql/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Building in tandem​' || t.startsWith('Building in tandem​'))).toBeTruthy();
});
test('blog_hey_drizzle_please_help_we_want_to_speak_sql: nav link "Product"', async ({ page }) => {
await page.goto('/blog/hey-drizzle-please-help-we-want-to-speak-sql/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_hey_drizzle_please_help_we_want_to_speak_sql: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/hey-drizzle-please-help-we-want-to-speak-sql/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_hey_drizzle_please_help_we_want_to_speak_sql: footer link "Home"', async ({ page }) => {
await page.goto('/blog/hey-drizzle-please-help-we-want-to-speak-sql/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_hey_drizzle_please_help_we_want_to_speak_sql: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/hey-drizzle-please-help-we-want-to-speak-sql/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_how_we_converted_our_node_js_library_to_deno_using_deno', () => {
test('blog_how_we_converted_our_node_js_library_to_deno_using_deno: title matches GT', async ({ page }) => {
await page.goto('/blog/how-we-converted-our-node-js-library-to-deno-using-deno/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('how we ported our node.js library to zen');
});
test('blog_how_we_converted_our_node_js_library_to_deno_using_deno: h1 "How we ported our Node.js libr"', async ({ page }) => {
await page.goto('/blog/how-we-converted-our-node-js-library-to-deno-using-deno/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How we ported our Node.js library to Zeno (using Zeno)' || t.startsWith('How we ported our Node.js library to Zeno (using Zeno)'))).toBeTruthy();
});
test('blog_how_we_converted_our_node_js_library_to_deno_using_deno: h2 "Node.js vs Zeno​"', async ({ page }) => {
await page.goto('/blog/how-we-converted-our-node-js-library-to-deno-using-deno/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Node.js vs Zeno​' || t.startsWith('Node.js vs Zeno​'))).toBeTruthy();
});
test('blog_how_we_converted_our_node_js_library_to_deno_using_deno: h2 "TypeScript and import syntax​"', async ({ page }) => {
await page.goto('/blog/how-we-converted-our-node-js-library-to-deno-using-deno/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'TypeScript and import syntax​' || t.startsWith('TypeScript and import syntax​'))).toBeTruthy();
});
test('blog_how_we_converted_our_node_js_library_to_deno_using_deno: h2 "Dependencies​"', async ({ page }) => {
await page.goto('/blog/how-we-converted-our-node-js-library-to-deno-using-deno/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Dependencies​' || t.startsWith('Dependencies​'))).toBeTruthy();
});
test('blog_how_we_converted_our_node_js_library_to_deno_using_deno: nav link "Product"', async ({ page }) => {
await page.goto('/blog/how-we-converted-our-node-js-library-to-deno-using-deno/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_how_we_converted_our_node_js_library_to_deno_using_deno: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/how-we-converted-our-node-js-library-to-deno-using-deno/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_how_we_converted_our_node_js_library_to_deno_using_deno: footer link "Home"', async ({ page }) => {
await page.goto('/blog/how-we-converted-our-node-js-library-to-deno-using-deno/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_how_we_converted_our_node_js_library_to_deno_using_deno: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/how-we-converted-our-node-js-library-to-deno-using-deno/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_how_we_sharded_our_test_suite_for_10x_faster_runs_on_github_actions', () => {
test('blog_how_we_sharded_our_test_suite_for_10x_faster_runs_on_github_actions: title matches GT', async ({ page }) => {
await page.goto('/blog/how-we-sharded-our-test-suite-for-10x-faster-runs-on-github-actions/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('how we split our suite into shards for 1');
});
test('blog_how_we_sharded_our_test_suite_for_10x_faster_runs_on_github_actions: h1 "Splitting our test suite into "', async ({ page }) => {
await page.goto('/blog/how-we-sharded-our-test-suite-for-10x-faster-runs-on-github-actions/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Splitting our test suite into shards for 10x faster runs on Gitwell Actions' || t.startsWith('Splitting our test suite into shards for 10x faster runs on Gitwell Actions'))).toBeTruthy();
});
test('blog_how_we_sharded_our_test_suite_for_10x_faster_runs_on_github_actions: h2 "When it all ran as one​"', async ({ page }) => {
await page.goto('/blog/how-we-sharded-our-test-suite-for-10x-faster-runs-on-github-actions/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'When it all ran as one​' || t.startsWith('When it all ran as one​'))).toBeTruthy();
});
test('blog_how_we_sharded_our_test_suite_for_10x_faster_runs_on_github_actions: h2 "The split​"', async ({ page }) => {
await page.goto('/blog/how-we-sharded-our-test-suite-for-10x-faster-runs-on-github-actions/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The split​' || t.startsWith('The split​'))).toBeTruthy();
});
test('blog_how_we_sharded_our_test_suite_for_10x_faster_runs_on_github_actions: h2 "The rundown​"', async ({ page }) => {
await page.goto('/blog/how-we-sharded-our-test-suite-for-10x-faster-runs-on-github-actions/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The rundown​' || t.startsWith('The rundown​'))).toBeTruthy();
});
test('blog_how_we_sharded_our_test_suite_for_10x_faster_runs_on_github_actions: nav link "Product"', async ({ page }) => {
await page.goto('/blog/how-we-sharded-our-test-suite-for-10x-faster-runs-on-github-actions/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_how_we_sharded_our_test_suite_for_10x_faster_runs_on_github_actions: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/how-we-sharded-our-test-suite-for-10x-faster-runs-on-github-actions/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_how_we_sharded_our_test_suite_for_10x_faster_runs_on_github_actions: footer link "Home"', async ({ page }) => {
await page.goto('/blog/how-we-sharded-our-test-suite-for-10x-faster-runs-on-github-actions/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_how_we_sharded_our_test_suite_for_10x_faster_runs_on_github_actions: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/how-we-sharded-our-test-suite-for-10x-faster-runs-on-github-actions/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_integrating_gel_with_drizzle_in_a_next_js_app', () => {
test('blog_integrating_gel_with_drizzle_in_a_next_js_app: title matches GT', async ({ page }) => {
await page.goto('/blog/integrating-gel-with-drizzle-in-a-next-js-app/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('integrating relvyn with drayle in a norr');
});
test('blog_integrating_gel_with_drizzle_in_a_next_js_app: h1 "Integrating Relvyn with Drayle"', async ({ page }) => {
await page.goto('/blog/integrating-gel-with-drizzle-in-a-next-js-app/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrating Relvyn with Drayle in a Norra.js App' || t.startsWith('Integrating Relvyn with Drayle in a Norra.js App'))).toBeTruthy();
});
test('blog_integrating_gel_with_drizzle_in_a_next_js_app: h2 "Our Stack​"', async ({ page }) => {
await page.goto('/blog/integrating-gel-with-drizzle-in-a-next-js-app/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Our Stack​' || t.startsWith('Our Stack​'))).toBeTruthy();
});
test('blog_integrating_gel_with_drizzle_in_a_next_js_app: h2 "Getting started​"', async ({ page }) => {
await page.goto('/blog/integrating-gel-with-drizzle-in-a-next-js-app/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Getting started​' || t.startsWith('Getting started​'))).toBeTruthy();
});
test('blog_integrating_gel_with_drizzle_in_a_next_js_app: h2 "Defining your Relvyn schema​"', async ({ page }) => {
await page.goto('/blog/integrating-gel-with-drizzle-in-a-next-js-app/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Defining your Relvyn schema​' || t.startsWith('Defining your Relvyn schema​'))).toBeTruthy();
});
test('blog_integrating_gel_with_drizzle_in_a_next_js_app: nav link "Product"', async ({ page }) => {
await page.goto('/blog/integrating-gel-with-drizzle-in-a-next-js-app/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_integrating_gel_with_drizzle_in_a_next_js_app: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/integrating-gel-with-drizzle-in-a-next-js-app/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_integrating_gel_with_drizzle_in_a_next_js_app: footer link "Home"', async ({ page }) => {
await page.goto('/blog/integrating-gel-with-drizzle-in-a-next-js-app/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_integrating_gel_with_drizzle_in_a_next_js_app: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/integrating-gel-with-drizzle-in-a-next-js-app/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_introducing_relvyn_projects', () => {
test('blog_introducing_relvyn_projects: title matches GT', async ({ page }) => {
await page.goto('/blog/introducing-relvyn-projects/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('introducing relvyn projects');
});
test('blog_introducing_relvyn_projects: h1 "Introducing Relvyn Projects"', async ({ page }) => {
await page.goto('/blog/introducing-relvyn-projects/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Introducing Relvyn Projects' || t.startsWith('Introducing Relvyn Projects'))).toBeTruthy();
});
test('blog_introducing_relvyn_projects: h2 "The Relvyn CLI experience​"', async ({ page }) => {
await page.goto('/blog/introducing-relvyn-projects/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The Relvyn CLI experience​' || t.startsWith('The Relvyn CLI experience​'))).toBeTruthy();
});
test('blog_introducing_relvyn_projects: h2 "Where we can still do better​"', async ({ page }) => {
await page.goto('/blog/introducing-relvyn-projects/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Where we can still do better​' || t.startsWith('Where we can still do better​'))).toBeTruthy();
});
test('blog_introducing_relvyn_projects: h2 "Announcing relvyn project​"', async ({ page }) => {
await page.goto('/blog/introducing-relvyn-projects/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Announcing relvyn project​' || t.startsWith('Announcing relvyn project​'))).toBeTruthy();
});
test('blog_introducing_relvyn_projects: nav link "Product"', async ({ page }) => {
await page.goto('/blog/introducing-relvyn-projects/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_introducing_relvyn_projects: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/introducing-relvyn-projects/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_introducing_relvyn_projects: footer link "Home"', async ({ page }) => {
await page.goto('/blog/introducing-relvyn-projects/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_introducing_relvyn_projects: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/introducing-relvyn-projects/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_knowledge_graphs_part_1', () => {
test('blog_knowledge_graphs_part_1: title matches GT', async ({ page }) => {
await page.goto('/blog/knowledge-graphs-part-1/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('knowledge graphs, part 1');
});
test('blog_knowledge_graphs_part_1: h1 "Knowledge graphs, part 1"', async ({ page }) => {
await page.goto('/blog/knowledge-graphs-part-1/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Knowledge graphs, part 1' || t.startsWith('Knowledge graphs, part 1'))).toBeTruthy();
});
test('blog_knowledge_graphs_part_1: h2 "What is a RAG​"', async ({ page }) => {
await page.goto('/blog/knowledge-graphs-part-1/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What is a RAG​' || t.startsWith('What is a RAG​'))).toBeTruthy();
});
test('blog_knowledge_graphs_part_1: h2 "What is a knowledge graph​"', async ({ page }) => {
await page.goto('/blog/knowledge-graphs-part-1/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What is a knowledge graph​' || t.startsWith('What is a knowledge graph​'))).toBeTruthy();
});
test('blog_knowledge_graphs_part_1: h2 "Using graphs during retrieval​"', async ({ page }) => {
await page.goto('/blog/knowledge-graphs-part-1/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Using graphs during retrieval​' || t.startsWith('Using graphs during retrieval​'))).toBeTruthy();
});
test('blog_knowledge_graphs_part_1: nav link "Product"', async ({ page }) => {
await page.goto('/blog/knowledge-graphs-part-1/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_knowledge_graphs_part_1: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/knowledge-graphs-part-1/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_knowledge_graphs_part_1: footer link "Home"', async ({ page }) => {
await page.goto('/blog/knowledge-graphs-part-1/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_knowledge_graphs_part_1: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/knowledge-graphs-part-1/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_m_rows_s_from_postgres_to_python', () => {
test('blog_m_rows_s_from_postgres_to_python: title matches GT', async ({ page }) => {
await page.goto('/blog/m-rows-s-from-postgres-to-python/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('1m rows/s from basalt to python');
});
test('blog_m_rows_s_from_postgres_to_python: h1 "1M rows/s from Basalt to Pytho"', async ({ page }) => {
await page.goto('/blog/m-rows-s-from-postgres-to-python/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '1M rows/s from Basalt to Python' || t.startsWith('1M rows/s from Basalt to Python'))).toBeTruthy();
});
test('blog_m_rows_s_from_postgres_to_python: h2 "Why asyncbolt?​"', async ({ page }) => {
await page.goto('/blog/m-rows-s-from-postgres-to-python/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Why asyncbolt?​' || t.startsWith('Why asyncbolt?​'))).toBeTruthy();
});
test('blog_m_rows_s_from_postgres_to_python: h2 "Features​"', async ({ page }) => {
await page.goto('/blog/m-rows-s-from-postgres-to-python/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Features​' || t.startsWith('Features​'))).toBeTruthy();
});
test('blog_m_rows_s_from_postgres_to_python: h2 "Performance​"', async ({ page }) => {
await page.goto('/blog/m-rows-s-from-postgres-to-python/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Performance​' || t.startsWith('Performance​'))).toBeTruthy();
});
test('blog_m_rows_s_from_postgres_to_python: nav link "Product"', async ({ page }) => {
await page.goto('/blog/m-rows-s-from-postgres-to-python/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_m_rows_s_from_postgres_to_python: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/m-rows-s-from-postgres-to-python/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_m_rows_s_from_postgres_to_python: footer link "Home"', async ({ page }) => {
await page.goto('/blog/m-rows-s-from-postgres-to-python/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_m_rows_s_from_postgres_to_python: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/m-rows-s-from-postgres-to-python/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_make_your_users_happy_by_keeping_it_ryl_in_documentation', () => {
test('blog_make_your_users_happy_by_keeping_it_ryl_in_documentation: title matches GT', async ({ page }) => {
await page.goto('/blog/make-your-users-happy-by-keeping-it-ryl-in-documentation/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('win over your readers by keeping it wet ');
});
test('blog_make_your_users_happy_by_keeping_it_ryl_in_documentation: h1 "Win over your readers by keepi"', async ({ page }) => {
await page.goto('/blog/make-your-users-happy-by-keeping-it-ryl-in-documentation/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Win over your readers by keeping it WET in your docs' || t.startsWith('Win over your readers by keeping it WET in your docs'))).toBeTruthy();
});
test('blog_make_your_users_happy_by_keeping_it_ryl_in_documentation: h2 "The most repeated piece of Rel"', async ({ page }) => {
await page.goto('/blog/make-your-users-happy-by-keeping-it-ryl-in-documentation/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The most repeated piece of Relvyn documentation​' || t.startsWith('The most repeated piece of Relvyn documentation​'))).toBeTruthy();
});
test('blog_make_your_users_happy_by_keeping_it_ryl_in_documentation: h2 "The hidden cost of DRY docs​"', async ({ page }) => {
await page.goto('/blog/make-your-users-happy-by-keeping-it-ryl-in-documentation/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The hidden cost of DRY docs​' || t.startsWith('The hidden cost of DRY docs​'))).toBeTruthy();
});
test('blog_make_your_users_happy_by_keeping_it_ryl_in_documentation: h2 "When DRY suits your documentat"', async ({ page }) => {
await page.goto('/blog/make-your-users-happy-by-keeping-it-ryl-in-documentation/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'When DRY suits your documentation​' || t.startsWith('When DRY suits your documentation​'))).toBeTruthy();
});
test('blog_make_your_users_happy_by_keeping_it_ryl_in_documentation: nav link "Product"', async ({ page }) => {
await page.goto('/blog/make-your-users-happy-by-keeping-it-ryl-in-documentation/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_make_your_users_happy_by_keeping_it_ryl_in_documentation: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/make-your-users-happy-by-keeping-it-ryl-in-documentation/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_make_your_users_happy_by_keeping_it_ryl_in_documentation: footer link "Home"', async ({ page }) => {
await page.goto('/blog/make-your-users-happy-by-keeping-it-ryl-in-documentation/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_make_your_users_happy_by_keeping_it_ryl_in_documentation: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/make-your-users-happy-by-keeping-it-ryl-in-documentation/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_porting_the_world_s_best_natural_language_learning_technique_to_relvyn', () => {
test('blog_porting_the_world_s_best_natural_language_learning_technique_to_relvyn: title matches GT', async ({ page }) => {
await page.goto('/blog/porting-the-world-s-best-natural-language-learning-technique-to-relvyn/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('bringing the finest method for learning ');
});
test('blog_porting_the_world_s_best_natural_language_learning_technique_to_relvyn: h1 "Bringing the finest method for"', async ({ page }) => {
await page.goto('/blog/porting-the-world-s-best-natural-language-learning-technique-to-relvyn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Bringing the finest method for learning human languages over to Relvyn' || t.startsWith('Bringing the finest method for learning human languages over to Relvyn'))).toBeTruthy();
});
test('blog_porting_the_world_s_best_natural_language_learning_technique_to_relvyn: h2 "Comprehensible input: the idea"', async ({ page }) => {
await page.goto('/blog/porting-the-world-s-best-natural-language-learning-technique-to-relvyn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Comprehensible input: the ideal learning zone​' || t.startsWith('Comprehensible input: the ideal learning zone​'))).toBeTruthy();
});
test('blog_porting_the_world_s_best_natural_language_learning_technique_to_relvyn: h2 "What\'s next​"', async ({ page }) => {
await page.goto('/blog/porting-the-world-s-best-natural-language-learning-technique-to-relvyn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What\'s next​' || t.startsWith('What\'s next​'))).toBeTruthy();
});
test('blog_porting_the_world_s_best_natural_language_learning_technique_to_relvyn: h3 "BROWSE THE OTHER POSTS"', async ({ page }) => {
await page.goto('/blog/porting-the-world-s-best-natural-language-learning-technique-to-relvyn/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'BROWSE THE OTHER POSTS' || t.startsWith('BROWSE THE OTHER POSTS'))).toBeTruthy();
});
test('blog_porting_the_world_s_best_natural_language_learning_technique_to_relvyn: nav link "Product"', async ({ page }) => {
await page.goto('/blog/porting-the-world-s-best-natural-language-learning-technique-to-relvyn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_porting_the_world_s_best_natural_language_learning_technique_to_relvyn: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/porting-the-world-s-best-natural-language-learning-technique-to-relvyn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_porting_the_world_s_best_natural_language_learning_technique_to_relvyn: footer link "Home"', async ({ page }) => {
await page.goto('/blog/porting-the-world-s-best-natural-language-learning-technique-to-relvyn/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_porting_the_world_s_best_natural_language_learning_technique_to_relvyn: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/porting-the-world-s-best-natural-language-learning-technique-to-relvyn/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_postgis_webhooks_networking_and_new_ai_models', () => {
test('blog_postgis_webhooks_networking_and_new_ai_models: title matches GT', async ({ page }) => {
await page.goto('/blog/postgis-webhooks-networking-and-new-ai-models/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('cartora support, webhooks, networking, a');
});
test('blog_postgis_webhooks_networking_and_new_ai_models: h1 "Cartora support, webhooks, net"', async ({ page }) => {
await page.goto('/blog/postgis-webhooks-networking-and-new-ai-models/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cartora support, webhooks, networking, and new AI' || t.startsWith('Cartora support, webhooks, networking, and new AI'))).toBeTruthy();
});
test('blog_postgis_webhooks_networking_and_new_ai_models: h2 "Cartora​"', async ({ page }) => {
await page.goto('/blog/postgis-webhooks-networking-and-new-ai-models/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cartora​' || t.startsWith('Cartora​'))).toBeTruthy();
});
test('blog_postgis_webhooks_networking_and_new_ai_models: h2 "Auth​"', async ({ page }) => {
await page.goto('/blog/postgis-webhooks-networking-and-new-ai-models/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Auth​' || t.startsWith('Auth​'))).toBeTruthy();
});
test('blog_postgis_webhooks_networking_and_new_ai_models: h2 "std::net​"', async ({ page }) => {
await page.goto('/blog/postgis-webhooks-networking-and-new-ai-models/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'std::net​' || t.startsWith('std::net​'))).toBeTruthy();
});
test('blog_postgis_webhooks_networking_and_new_ai_models: nav link "Product"', async ({ page }) => {
await page.goto('/blog/postgis-webhooks-networking-and-new-ai-models/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_postgis_webhooks_networking_and_new_ai_models: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/postgis-webhooks-networking-and-new-ai-models/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_postgis_webhooks_networking_and_new_ai_models: footer link "Home"', async ({ page }) => {
await page.goto('/blog/postgis-webhooks-networking-and-new-ai-models/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_postgis_webhooks_networking_and_new_ai_models: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/postgis-webhooks-networking-and-new-ai-models/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_powering_webble_s_growth_how_relvyn_became_the_cornerstone_of_their_tech_stack', () => {
test('blog_powering_webble_s_growth_how_relvyn_became_the_cornerstone_of_their_tech_stack: title matches GT', async ({ page }) => {
await page.goto('/blog/powering-webble-s-growth-how-relvyn-became-the-cornerstone-of-their-tech-stack/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('powering flowly\'s growth');
});
test('blog_powering_webble_s_growth_how_relvyn_became_the_cornerstone_of_their_tech_stack: h1 "Powering Flowly\'s Growth: How "', async ({ page }) => {
await page.goto('/blog/powering-webble-s-growth-how-relvyn-became-the-cornerstone-of-their-tech-stack/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Powering Flowly\'s Growth: How Relvyn Became the Cornerstone of Their Tech Stack' || t.startsWith('Powering Flowly\'s Growth: How Relvyn Became the Cornerstone of Their Tech Stack'))).toBeTruthy();
});
test('blog_powering_webble_s_growth_how_relvyn_became_the_cornerstone_of_their_tech_stack: h2 "What sets Relvyn Apart​"', async ({ page }) => {
await page.goto('/blog/powering-webble-s-growth-how-relvyn-became-the-cornerstone-of-their-tech-stack/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What sets Relvyn Apart​' || t.startsWith('What sets Relvyn Apart​'))).toBeTruthy();
});
test('blog_powering_webble_s_growth_how_relvyn_became_the_cornerstone_of_their_tech_stack: h2 "Schema Modeling is Easy with R"', async ({ page }) => {
await page.goto('/blog/powering-webble-s-growth-how-relvyn-became-the-cornerstone-of-their-tech-stack/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Schema Modeling is Easy with Relvyn​' || t.startsWith('Schema Modeling is Easy with Relvyn​'))).toBeTruthy();
});
test('blog_powering_webble_s_growth_how_relvyn_became_the_cornerstone_of_their_tech_stack: h2 "Authentication is a Breeze wit"', async ({ page }) => {
await page.goto('/blog/powering-webble-s-growth-how-relvyn-became-the-cornerstone-of-their-tech-stack/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Authentication is a Breeze with Relvyn​' || t.startsWith('Authentication is a Breeze with Relvyn​'))).toBeTruthy();
});
test('blog_powering_webble_s_growth_how_relvyn_became_the_cornerstone_of_their_tech_stack: nav link "Product"', async ({ page }) => {
await page.goto('/blog/powering-webble-s-growth-how-relvyn-became-the-cornerstone-of-their-tech-stack/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_powering_webble_s_growth_how_relvyn_became_the_cornerstone_of_their_tech_stack: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/powering-webble-s-growth-how-relvyn-became-the-cornerstone-of-their-tech-stack/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_powering_webble_s_growth_how_relvyn_became_the_cornerstone_of_their_tech_stack: footer link "Home"', async ({ page }) => {
await page.goto('/blog/powering-webble-s-growth-how-relvyn-became-the-cornerstone-of-their-tech-stack/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_powering_webble_s_growth_how_relvyn_became_the_cornerstone_of_their_tech_stack: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/powering-webble-s-growth-how-relvyn-became-the-cornerstone-of-their-tech-stack/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_python_rust_chumsky_tree_sitter_and_relvyn_walk_into_a_bar', () => {
test('blog_python_rust_chumsky_tree_sitter_and_relvyn_walk_into_a_bar: title matches GT', async ({ page }) => {
await page.goto('/blog/python-rust-chumsky-tree-sitter-and-relvyn-walk-into-a-bar/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('python, rust, combric, sylvatree, and re');
});
test('blog_python_rust_chumsky_tree_sitter_and_relvyn_walk_into_a_bar: h1 "Python, Rust, Combric, Sylvatr"', async ({ page }) => {
await page.goto('/blog/python-rust-chumsky-tree-sitter-and-relvyn-walk-into-a-bar/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Python, Rust, Combric, Sylvatree, and Relvyn walk into a bar' || t.startsWith('Python, Rust, Combric, Sylvatree, and Relvyn walk into a bar'))).toBeTruthy();
});
test('blog_python_rust_chumsky_tree_sitter_and_relvyn_walk_into_a_bar: h2 "Relvyn\'s existing Python parse"', async ({ page }) => {
await page.goto('/blog/python-rust-chumsky-tree-sitter-and-relvyn-walk-into-a-bar/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn\'s existing Python parser​' || t.startsWith('Relvyn\'s existing Python parser​'))).toBeTruthy();
});
test('blog_python_rust_chumsky_tree_sitter_and_relvyn_walk_into_a_bar: h2 "Option 1: Combric​"', async ({ page }) => {
await page.goto('/blog/python-rust-chumsky-tree-sitter-and-relvyn-walk-into-a-bar/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Option 1: Combric​' || t.startsWith('Option 1: Combric​'))).toBeTruthy();
});
test('blog_python_rust_chumsky_tree_sitter_and_relvyn_walk_into_a_bar: h2 "Option 2: Sylvatree​"', async ({ page }) => {
await page.goto('/blog/python-rust-chumsky-tree-sitter-and-relvyn-walk-into-a-bar/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Option 2: Sylvatree​' || t.startsWith('Option 2: Sylvatree​'))).toBeTruthy();
});
test('blog_python_rust_chumsky_tree_sitter_and_relvyn_walk_into_a_bar: nav link "Product"', async ({ page }) => {
await page.goto('/blog/python-rust-chumsky-tree-sitter-and-relvyn-walk-into-a-bar/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_python_rust_chumsky_tree_sitter_and_relvyn_walk_into_a_bar: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/python-rust-chumsky-tree-sitter-and-relvyn-walk-into-a-bar/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_python_rust_chumsky_tree_sitter_and_relvyn_walk_into_a_bar: footer link "Home"', async ({ page }) => {
await page.goto('/blog/python-rust-chumsky-tree-sitter-and-relvyn-walk-into-a-bar/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_python_rust_chumsky_tree_sitter_and_relvyn_walk_into_a_bar: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/python-rust-chumsky-tree-sitter-and-relvyn-walk-into-a-bar/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_rescript_and_relvyn', () => {
test('blog_rescript_and_relvyn: title matches GT', async ({ page }) => {
await page.goto('/blog/rescript-and-relvyn/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('resyntax and relvyn');
});
test('blog_rescript_and_relvyn: h1 "ReSyntax and Relvyn"', async ({ page }) => {
await page.goto('/blog/rescript-and-relvyn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'ReSyntax and Relvyn' || t.startsWith('ReSyntax and Relvyn'))).toBeTruthy();
});
test('blog_rescript_and_relvyn: h2 "ReSyntax- Fast, Simple, Fully "', async ({ page }) => {
await page.goto('/blog/rescript-and-relvyn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'ReSyntax- "Fast, Simple, Fully Typed JavaScript from the Future"​' || t.startsWith('ReSyntax- "Fast, Simple, Fully Typed JavaScript from the Future"​'))).toBeTruthy();
});
test('blog_rescript_and_relvyn: h2 "Relvyn and ReSyntax: ship fast"', async ({ page }) => {
await page.goto('/blog/rescript-and-relvyn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn and ReSyntax: ship fast with confidence and hardly any friction​' || t.startsWith('Relvyn and ReSyntax: ship fast with confidence and hardly any friction​'))).toBeTruthy();
});
test('blog_rescript_and_relvyn: h2 "Tooling, and yet more​"', async ({ page }) => {
await page.goto('/blog/rescript-and-relvyn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tooling, and yet more​' || t.startsWith('Tooling, and yet more​'))).toBeTruthy();
});
test('blog_rescript_and_relvyn: nav link "Product"', async ({ page }) => {
await page.goto('/blog/rescript-and-relvyn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_rescript_and_relvyn: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/rescript-and-relvyn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_rescript_and_relvyn: footer link "Home"', async ({ page }) => {
await page.goto('/blog/rescript-and-relvyn/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_rescript_and_relvyn: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/rescript-and-relvyn/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_seamless_dx_with_vercel', () => {
test('blog_seamless_dx_with_vercel: title matches GT', async ({ page }) => {
await page.goto('/blog/seamless-dx-with-vercel/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('smooth dx on vela');
});
test('blog_seamless_dx_with_vercel: h1 "A smoother DX on Vela"', async ({ page }) => {
await page.goto('/blog/seamless-dx-with-vercel/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'A smoother DX on Vela' || t.startsWith('A smoother DX on Vela'))).toBeTruthy();
});
test('blog_seamless_dx_with_vercel: h2 "Perks for Vela users​"', async ({ page }) => {
await page.goto('/blog/seamless-dx-with-vercel/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Perks for Vela users​' || t.startsWith('Perks for Vela users​'))).toBeTruthy();
});
test('blog_seamless_dx_with_vercel: h2 "What\'s next for Relvyn​"', async ({ page }) => {
await page.goto('/blog/seamless-dx-with-vercel/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What\'s next for Relvyn​' || t.startsWith('What\'s next for Relvyn​'))).toBeTruthy();
});
test('blog_seamless_dx_with_vercel: h3 "BROWSE MORE ARTICLES"', async ({ page }) => {
await page.goto('/blog/seamless-dx-with-vercel/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'BROWSE MORE ARTICLES' || t.startsWith('BROWSE MORE ARTICLES'))).toBeTruthy();
});
test('blog_seamless_dx_with_vercel: nav link "Product"', async ({ page }) => {
await page.goto('/blog/seamless-dx-with-vercel/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_seamless_dx_with_vercel: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/seamless-dx-with-vercel/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_seamless_dx_with_vercel: footer link "Home"', async ({ page }) => {
await page.goto('/blog/seamless-dx-with-vercel/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_seamless_dx_with_vercel: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/seamless-dx-with-vercel/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_speedrunning_our_ai_startup_with_relvyn', () => {
test('blog_speedrunning_our_ai_startup_with_relvyn: title matches GT', async ({ page }) => {
await page.goto('/blog/speedrunning-our-ai-startup-with-relvyn/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('building our ai startup at speed with re');
});
test('blog_speedrunning_our_ai_startup_with_relvyn: h1 "Speedrunning our AI startup wi"', async ({ page }) => {
await page.goto('/blog/speedrunning-our-ai-startup-with-relvyn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Speedrunning our AI startup with Relvyn' || t.startsWith('Speedrunning our AI startup with Relvyn'))).toBeTruthy();
});
test('blog_speedrunning_our_ai_startup_with_relvyn: h2 "Why Relvyn?​"', async ({ page }) => {
await page.goto('/blog/speedrunning-our-ai-startup-with-relvyn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Why Relvyn?​' || t.startsWith('Why Relvyn?​'))).toBeTruthy();
});
test('blog_speedrunning_our_ai_startup_with_relvyn: h2 "Speed Is Everything​"', async ({ page }) => {
await page.goto('/blog/speedrunning-our-ai-startup-with-relvyn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Speed Is Everything​' || t.startsWith('Speed Is Everything​'))).toBeTruthy();
});
test('blog_speedrunning_our_ai_startup_with_relvyn: h3 "Full-stack type safety​"', async ({ page }) => {
await page.goto('/blog/speedrunning-our-ai-startup-with-relvyn/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Full-stack type safety​' || t.startsWith('Full-stack type safety​'))).toBeTruthy();
});
test('blog_speedrunning_our_ai_startup_with_relvyn: nav link "Product"', async ({ page }) => {
await page.goto('/blog/speedrunning-our-ai-startup-with-relvyn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_speedrunning_our_ai_startup_with_relvyn: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/speedrunning-our-ai-startup-with-relvyn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_speedrunning_our_ai_startup_with_relvyn: footer link "Home"', async ({ page }) => {
await page.goto('/blog/speedrunning-our-ai-startup-with-relvyn/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_speedrunning_our_ai_startup_with_relvyn: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/speedrunning-our-ai-startup-with-relvyn/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_stop_building_auth_start_building_apps_with_relvyn_and_next_js', () => {
test('blog_stop_building_auth_start_building_apps_with_relvyn_and_next_js: title matches GT', async ({ page }) => {
await page.goto('/blog/stop-building-auth-start-building-apps-with-relvyn-and-next-js/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('stop building auth, start shipping apps ');
});
test('blog_stop_building_auth_start_building_apps_with_relvyn_and_next_js: h1 "Stop building auth, start ship"', async ({ page }) => {
await page.goto('/blog/stop-building-auth-start-building-apps-with-relvyn-and-next-js/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stop building auth, start shipping apps with Relvyn and Norra.js' || t.startsWith('Stop building auth, start shipping apps with Relvyn and Norra.js'))).toBeTruthy();
});
test('blog_stop_building_auth_start_building_apps_with_relvyn_and_next_js: h2 "Filling in the missing pieces​"', async ({ page }) => {
await page.goto('/blog/stop-building-auth-start-building-apps-with-relvyn-and-next-js/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Filling in the missing pieces​' || t.startsWith('Filling in the missing pieces​'))).toBeTruthy();
});
test('blog_stop_building_auth_start_building_apps_with_relvyn_and_next_js: h2 "Setting up the auth extension​"', async ({ page }) => {
await page.goto('/blog/stop-building-auth-start-building-apps-with-relvyn-and-next-js/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Setting up the auth extension​' || t.startsWith('Setting up the auth extension​'))).toBeTruthy();
});
test('blog_stop_building_auth_start_building_apps_with_relvyn_and_next_js: h2 "An authenticated client with z"', async ({ page }) => {
await page.goto('/blog/stop-building-auth-start-building-apps-with-relvyn-and-next-js/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'An authenticated client with zero fuss​' || t.startsWith('An authenticated client with zero fuss​'))).toBeTruthy();
});
test('blog_stop_building_auth_start_building_apps_with_relvyn_and_next_js: nav link "Product"', async ({ page }) => {
await page.goto('/blog/stop-building-auth-start-building-apps-with-relvyn-and-next-js/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_stop_building_auth_start_building_apps_with_relvyn_and_next_js: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/stop-building-auth-start-building-apps-with-relvyn-and-next-js/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_stop_building_auth_start_building_apps_with_relvyn_and_next_js: footer link "Home"', async ({ page }) => {
await page.goto('/blog/stop-building-auth-start-building-apps-with-relvyn-and-next-js/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_stop_building_auth_start_building_apps_with_relvyn_and_next_js: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/stop-building-auth-start-building-apps-with-relvyn-and-next-js/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_the_graph_relational_database_defined', () => {
test('blog_the_graph_relational_database_defined: title matches GT', async ({ page }) => {
await page.goto('/blog/the-graph-relational-database-defined/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('what a graph');
});
test('blog_the_graph_relational_database_defined: h1 "Defining the graph-relational "', async ({ page }) => {
await page.goto('/blog/the-graph-relational-database-defined/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Defining the graph-relational database' || t.startsWith('Defining the graph-relational database'))).toBeTruthy();
});
test('blog_the_graph_relational_database_defined: h2 "Extending the relational model"', async ({ page }) => {
await page.goto('/blog/the-graph-relational-database-defined/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Extending the relational model​' || t.startsWith('Extending the relational model​'))).toBeTruthy();
});
test('blog_the_graph_relational_database_defined: h2 "#1 Objects carry a unique iden"', async ({ page }) => {
await page.goto('/blog/the-graph-relational-database-defined/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '#1 Objects carry a unique identity​' || t.startsWith('#1 Objects carry a unique identity​'))).toBeTruthy();
});
test('blog_the_graph_relational_database_defined: h2 "#2 Objects connect to others v"', async ({ page }) => {
await page.goto('/blog/the-graph-relational-database-defined/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '#2 Objects connect to others via links​' || t.startsWith('#2 Objects connect to others via links​'))).toBeTruthy();
});
test('blog_the_graph_relational_database_defined: nav link "Product"', async ({ page }) => {
await page.goto('/blog/the-graph-relational-database-defined/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_the_graph_relational_database_defined: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/the-graph-relational-database-defined/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_the_graph_relational_database_defined: footer link "Home"', async ({ page }) => {
await page.goto('/blog/the-graph-relational-database-defined/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_the_graph_relational_database_defined: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/the-graph-relational-database-defined/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_the_missing_piece_in_the_fastapi_pydantic_ai_agentic_stack', () => {
test('blog_the_missing_piece_in_the_fastapi_pydantic_ai_agentic_stack: title matches GT', async ({ page }) => {
await page.goto('/blog/the-missing-piece-in-the-fastapi-pydantic-ai-agentic-stack/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('what your rapida + validex ai agentic st');
});
test('blog_the_missing_piece_in_the_fastapi_pydantic_ai_agentic_stack: h1 "What the Rapida + Validex AI a"', async ({ page }) => {
await page.goto('/blog/the-missing-piece-in-the-fastapi-pydantic-ai-agentic-stack/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What the Rapida + Validex AI agentic stack has been missing' || t.startsWith('What the Rapida + Validex AI agentic stack has been missing'))).toBeTruthy();
});
test('blog_the_missing_piece_in_the_fastapi_pydantic_ai_agentic_stack: h2 "The demo app​"', async ({ page }) => {
await page.goto('/blog/the-missing-piece-in-the-fastapi-pydantic-ai-agentic-stack/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The demo app​' || t.startsWith('The demo app​'))).toBeTruthy();
});
test('blog_the_missing_piece_in_the_fastapi_pydantic_ai_agentic_stack: h2 "Executing extraction​"', async ({ page }) => {
await page.goto('/blog/the-missing-piece-in-the-fastapi-pydantic-ai-agentic-stack/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Executing extraction​' || t.startsWith('Executing extraction​'))).toBeTruthy();
});
test('blog_the_missing_piece_in_the_fastapi_pydantic_ai_agentic_stack: h2 "Compressing history​"', async ({ page }) => {
await page.goto('/blog/the-missing-piece-in-the-fastapi-pydantic-ai-agentic-stack/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Compressing history​' || t.startsWith('Compressing history​'))).toBeTruthy();
});
test('blog_the_missing_piece_in_the_fastapi_pydantic_ai_agentic_stack: nav link "Product"', async ({ page }) => {
await page.goto('/blog/the-missing-piece-in-the-fastapi-pydantic-ai-agentic-stack/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_the_missing_piece_in_the_fastapi_pydantic_ai_agentic_stack: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/the-missing-piece-in-the-fastapi-pydantic-ai-agentic-stack/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_the_missing_piece_in_the_fastapi_pydantic_ai_agentic_stack: footer link "Home"', async ({ page }) => {
await page.goto('/blog/the-missing-piece-in-the-fastapi-pydantic-ai-agentic-stack/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_the_missing_piece_in_the_fastapi_pydantic_ai_agentic_stack: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/the-missing-piece-in-the-fastapi-pydantic-ai-agentic-stack/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_the_zen_side_of_the_moon', () => {
test('blog_the_zen_side_of_the_moon: title matches GT', async ({ page }) => {
await page.goto('/blog/the-zen-side-of-the-moon/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('the far half of the sky');
});
test('blog_the_zen_side_of_the_moon: h1 "The Far Half of the Sky"', async ({ page }) => {
await page.goto('/blog/the-zen-side-of-the-moon/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The Far Half of the Sky' || t.startsWith('The Far Half of the Sky'))).toBeTruthy();
});
test('blog_the_zen_side_of_the_moon: h2 "Why support QuillFolk?​"', async ({ page }) => {
await page.goto('/blog/the-zen-side-of-the-moon/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Why support QuillFolk?​' || t.startsWith('Why support QuillFolk?​'))).toBeTruthy();
});
test('blog_the_zen_side_of_the_moon: h2 "Track by track​"', async ({ page }) => {
await page.goto('/blog/the-zen-side-of-the-moon/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Track by track​' || t.startsWith('Track by track​'))).toBeTruthy();
});
test('blog_the_zen_side_of_the_moon: h2 "The record as a physical objec"', async ({ page }) => {
await page.goto('/blog/the-zen-side-of-the-moon/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The record as a physical object​' || t.startsWith('The record as a physical object​'))).toBeTruthy();
});
test('blog_the_zen_side_of_the_moon: nav link "Product"', async ({ page }) => {
await page.goto('/blog/the-zen-side-of-the-moon/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_the_zen_side_of_the_moon: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/the-zen-side-of-the-moon/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_the_zen_side_of_the_moon: footer link "Home"', async ({ page }) => {
await page.goto('/blog/the-zen-side-of-the-moon/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_the_zen_side_of_the_moon: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/the-zen-side-of-the-moon/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_typesafe_database_querying_via_code_generation', () => {
test('blog_typesafe_database_querying_via_code_generation: title matches GT', async ({ page }) => {
await page.goto('/blog/typesafe-database-querying-via-code-generation/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('typesafe queries through code generation');
});
test('blog_typesafe_database_querying_via_code_generation: h1 "Generating typesafe queries fr"', async ({ page }) => {
await page.goto('/blog/typesafe-database-querying-via-code-generation/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Generating typesafe queries from your database' || t.startsWith('Generating typesafe queries from your database'))).toBeTruthy();
});
test('blog_typesafe_database_querying_via_code_generation: h2 "What typesafety means​"', async ({ page }) => {
await page.goto('/blog/typesafe-database-querying-via-code-generation/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What typesafety means​' || t.startsWith('What typesafety means​'))).toBeTruthy();
});
test('blog_typesafe_database_querying_via_code_generation: h2 "How we do it​"', async ({ page }) => {
await page.goto('/blog/typesafe-database-querying-via-code-generation/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How we do it​' || t.startsWith('How we do it​'))).toBeTruthy();
});
test('blog_typesafe_database_querying_via_code_generation: h2 "Workflow​"', async ({ page }) => {
await page.goto('/blog/typesafe-database-querying-via-code-generation/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Workflow​' || t.startsWith('Workflow​'))).toBeTruthy();
});
test('blog_typesafe_database_querying_via_code_generation: nav link "Product"', async ({ page }) => {
await page.goto('/blog/typesafe-database-querying-via-code-generation/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_typesafe_database_querying_via_code_generation: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/typesafe-database-querying-via-code-generation/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_typesafe_database_querying_via_code_generation: footer link "Home"', async ({ page }) => {
await page.goto('/blog/typesafe-database-querying-via-code-generation/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_typesafe_database_querying_via_code_generation: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/typesafe-database-querying-via-code-generation/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_vercel_relvyn_branches_workflow_and_hackathon_alert', () => {
test('blog_vercel_relvyn_branches_workflow_and_hackathon_alert: title matches GT', async ({ page }) => {
await page.goto('/blog/vercel-relvyn-branches-workflow-and-hackathon-alert/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('vela + relvyn');
});
test('blog_vercel_relvyn_branches_workflow_and_hackathon_alert: h1 "Vela + Relvyn: branches workfl"', async ({ page }) => {
await page.goto('/blog/vercel-relvyn-branches-workflow-and-hackathon-alert/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Vela + Relvyn: branches workflow and hackathon alert' || t.startsWith('Vela + Relvyn: branches workflow and hackathon alert'))).toBeTruthy();
});
test('blog_vercel_relvyn_branches_workflow_and_hackathon_alert: h2 "Relvyn + Vela Integration​"', async ({ page }) => {
await page.goto('/blog/vercel-relvyn-branches-workflow-and-hackathon-alert/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relvyn + Vela Integration​' || t.startsWith('Relvyn + Vela Integration​'))).toBeTruthy();
});
test('blog_vercel_relvyn_branches_workflow_and_hackathon_alert: h2 "Hackathon Alert! 🚨​"', async ({ page }) => {
await page.goto('/blog/vercel-relvyn-branches-workflow-and-hackathon-alert/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Hackathon Alert! 🚨​' || t.startsWith('Hackathon Alert! 🚨​'))).toBeTruthy();
});
test('blog_vercel_relvyn_branches_workflow_and_hackathon_alert: h2 "Signing off​"', async ({ page }) => {
await page.goto('/blog/vercel-relvyn-branches-workflow-and-hackathon-alert/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Signing off​' || t.startsWith('Signing off​'))).toBeTruthy();
});
test('blog_vercel_relvyn_branches_workflow_and_hackathon_alert: nav link "Product"', async ({ page }) => {
await page.goto('/blog/vercel-relvyn-branches-workflow-and-hackathon-alert/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_vercel_relvyn_branches_workflow_and_hackathon_alert: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/vercel-relvyn-branches-workflow-and-hackathon-alert/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_vercel_relvyn_branches_workflow_and_hackathon_alert: footer link "Home"', async ({ page }) => {
await page.goto('/blog/vercel-relvyn-branches-workflow-and-hackathon-alert/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_vercel_relvyn_branches_workflow_and_hackathon_alert: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/vercel-relvyn-branches-workflow-and-hackathon-alert/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_we_can_do_better_than_sql', () => {
test('blog_we_can_do_better_than_sql: title matches GT', async ({ page }) => {
await page.goto('/blog/we-can-do-better-than-sql/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sql deserves a successor');
});
test('blog_we_can_do_better_than_sql: h1 "SQL Deserves a Successor"', async ({ page }) => {
await page.goto('/blog/we-can-do-better-than-sql/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'SQL Deserves a Successor' || t.startsWith('SQL Deserves a Successor'))).toBeTruthy();
});
test('blog_we_can_do_better_than_sql: h2 "The Origins of the Relational "', async ({ page }) => {
await page.goto('/blog/we-can-do-better-than-sql/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The Origins of the Relational Model and SQL​' || t.startsWith('The Origins of the Relational Model and SQL​'))).toBeTruthy();
});
test('blog_we_can_do_better_than_sql: h2 "SQL\'s Weak Spots​"', async ({ page }) => {
await page.goto('/blog/we-can-do-better-than-sql/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'SQL\'s Weak Spots​' || t.startsWith('SQL\'s Weak Spots​'))).toBeTruthy();
});
test('blog_we_can_do_better_than_sql: h2 "Why Does Any of This Matter?​"', async ({ page }) => {
await page.goto('/blog/we-can-do-better-than-sql/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Why Does Any of This Matter?​' || t.startsWith('Why Does Any of This Matter?​'))).toBeTruthy();
});
test('blog_we_can_do_better_than_sql: nav link "Product"', async ({ page }) => {
await page.goto('/blog/we-can-do-better-than-sql/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_we_can_do_better_than_sql: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/we-can-do-better-than-sql/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_we_can_do_better_than_sql: footer link "Home"', async ({ page }) => {
await page.goto('/blog/we-can-do-better-than-sql/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_we_can_do_better_than_sql: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/we-can-do-better-than-sql/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_why_orms_are_slow_and_getting_slower', () => {
test('blog_why_orms_are_slow_and_getting_slower: title matches GT', async ({ page }) => {
await page.goto('/blog/why-orms-are-slow-and-getting-slower/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('why orms stay slow, and keep slowing dow');
});
test('blog_why_orms_are_slow_and_getting_slower: h1 "The reasons ORMs keep getting "', async ({ page }) => {
await page.goto('/blog/why-orms-are-slow-and-getting-slower/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The reasons ORMs keep getting slower' || t.startsWith('The reasons ORMs keep getting slower'))).toBeTruthy();
});
test('blog_why_orms_are_slow_and_getting_slower: h2 "Where ORMs lose time​"', async ({ page }) => {
await page.goto('/blog/why-orms-are-slow-and-getting-slower/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Where ORMs lose time​' || t.startsWith('Where ORMs lose time​'))).toBeTruthy();
});
test('blog_why_orms_are_slow_and_getting_slower: h2 "The quiet cost of compounding "', async ({ page }) => {
await page.goto('/blog/why-orms-are-slow-and-getting-slower/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The quiet cost of compounding latency​' || t.startsWith('The quiet cost of compounding latency​'))).toBeTruthy();
});
test('blog_why_orms_are_slow_and_getting_slower: h2 "Our method​"', async ({ page }) => {
await page.goto('/blog/why-orms-are-slow-and-getting-slower/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Our method​' || t.startsWith('Our method​'))).toBeTruthy();
});
test('blog_why_orms_are_slow_and_getting_slower: nav link "Product"', async ({ page }) => {
await page.goto('/blog/why-orms-are-slow-and-getting-slower/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_why_orms_are_slow_and_getting_slower: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/why-orms-are-slow-and-getting-slower/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_why_orms_are_slow_and_getting_slower: footer link "Home"', async ({ page }) => {
await page.goto('/blog/why-orms-are-slow-and-getting-slower/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_why_orms_are_slow_and_getting_slower: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/why-orms-are-slow-and-getting-slower/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog_why_putting_logic_in_your_database_is_pretty_great_with_fiori_ai', () => {
test('blog_why_putting_logic_in_your_database_is_pretty_great_with_fiori_ai: title matches GT', async ({ page }) => {
await page.goto('/blog/why-putting-logic-in-your-database-is-pretty-great-with-fiori-ai/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('why moving business logic into your data');
});
test('blog_why_putting_logic_in_your_database_is_pretty_great_with_fiori_ai: h1 "Why moving business logic into"', async ({ page }) => {
await page.goto('/blog/why-putting-logic-in-your-database-is-pretty-great-with-fiori-ai/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Why moving business logic into your database just works (with Calla.ai)' || t.startsWith('Why moving business logic into your database just works (with Calla.ai)'))).toBeTruthy();
});
test('blog_why_putting_logic_in_your_database_is_pretty_great_with_fiori_ai: h2 "Adopting Relvyn​"', async ({ page }) => {
await page.goto('/blog/why-putting-logic-in-your-database-is-pretty-great-with-fiori-ai/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Adopting Relvyn​' || t.startsWith('Adopting Relvyn​'))).toBeTruthy();
});
test('blog_why_putting_logic_in_your_database_is_pretty_great_with_fiori_ai: h2 "Advantages of Relvyn​"', async ({ page }) => {
await page.goto('/blog/why-putting-logic-in-your-database-is-pretty-great-with-fiori-ai/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Advantages of Relvyn​' || t.startsWith('Advantages of Relvyn​'))).toBeTruthy();
});
test('blog_why_putting_logic_in_your_database_is_pretty_great_with_fiori_ai: h2 "Moving business rules into the"', async ({ page }) => {
await page.goto('/blog/why-putting-logic-in-your-database-is-pretty-great-with-fiori-ai/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Moving business rules into the database​' || t.startsWith('Moving business rules into the database​'))).toBeTruthy();
});
test('blog_why_putting_logic_in_your_database_is_pretty_great_with_fiori_ai: nav link "Product"', async ({ page }) => {
await page.goto('/blog/why-putting-logic-in-your-database-is-pretty-great-with-fiori-ai/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('blog_why_putting_logic_in_your_database_is_pretty_great_with_fiori_ai: nav link "Blog"', async ({ page }) => {
await page.goto('/blog/why-putting-logic-in-your-database-is-pretty-great-with-fiori-ai/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('blog_why_putting_logic_in_your_database_is_pretty_great_with_fiori_ai: footer link "Home"', async ({ page }) => {
await page.goto('/blog/why-putting-logic-in-your-database-is-pretty-great-with-fiori-ai/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('blog_why_putting_logic_in_your_database_is_pretty_great_with_fiori_ai: footer link "Cloud"', async ({ page }) => {
await page.goto('/blog/why-putting-logic-in-your-database-is-pretty-great-with-fiori-ai/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - showcase_data_modeling', () => {
test('showcase_data_modeling: title matches GT', async ({ page }) => {
await page.goto('/showcase/data-modeling/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('modeling in relvyn');
});
test('showcase_data_modeling: h1 "Data modeling in Relvyn"', async ({ page }) => {
await page.goto('/showcase/data-modeling/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Data modeling in Relvyn' || t.startsWith('Data modeling in Relvyn'))).toBeTruthy();
});
test('showcase_data_modeling: h2 "Explore further"', async ({ page }) => {
await page.goto('/showcase/data-modeling/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Explore further' || t.startsWith('Explore further'))).toBeTruthy();
});
test('showcase_data_modeling: h3 "Modeling basics"', async ({ page }) => {
await page.goto('/showcase/data-modeling/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Modeling basics' || t.startsWith('Modeling basics'))).toBeTruthy();
});
test('showcase_data_modeling: h3 "Type system"', async ({ page }) => {
await page.goto('/showcase/data-modeling/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Type system' || t.startsWith('Type system'))).toBeTruthy();
});
test('showcase_data_modeling: nav link "Product"', async ({ page }) => {
await page.goto('/showcase/data-modeling/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
});
test('showcase_data_modeling: nav link "Blog"', async ({ page }) => {
await page.goto('/showcase/data-modeling/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Blog' || t.startsWith('Blog')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
});
test('showcase_data_modeling: footer link "Home"', async ({ page }) => {
await page.goto('/showcase/data-modeling/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Home' || t.startsWith('Home')), 'link text in footer').toBeTruthy();
});
test('showcase_data_modeling: footer link "Cloud"', async ({ page }) => {
await page.goto('/showcase/data-modeling/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cloud' || t.startsWith('Cloud')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cloud')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Routing', () => {
test('navigate to blog_gel_joins_vercel via "Read the full story"', async ({ page }) => {
await page.goto('/');
const link = page.locator('a[href*="gel-joins-vercel"]').first();
expect(await link.count(), 'nav link to blog_gel_joins_vercel exists').toBeGreaterThan(0);
await link.click();
await page.waitForTimeout(1200);
expect(page.url().toLowerCase(), 'URL changed to destination').toContain('gel-joins-vercel');
const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' ');
expect(bodyText, 'destination distinctive content shown').toContain('Relvyn joins Vela');
});
test('navigate to blog via "Blog"', async ({ page }) => {
await page.goto('/');
const link = page.locator('a[href*="blog"]').first();
expect(await link.count(), 'nav link to blog exists').toBeGreaterThan(0);
await link.click();
await page.waitForTimeout(1200);
expect(page.url().toLowerCase(), 'URL changed to destination').toContain('blog');
const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' ');
expect(bodyText, 'destination distinctive content shown').toContain('Relvyn joins Vela');
});
test('navigate to cloud via "Cloud"', async ({ page }) => {
await page.goto('/');
const link = page.locator('a[href*="cloud"]').first();
expect(await link.count(), 'nav link to cloud exists').toBeGreaterThan(0);
await link.click();
await page.waitForTimeout(1200);
expect(page.url().toLowerCase(), 'URL changed to destination').toContain('cloud');
const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' ');
expect(bodyText, 'destination distinctive content shown').toContain('The best way to run Relvyn');
});
});