Datasets:
Download web/postgresql.org/tests/static/content.scripted.spec.ts from Qwen/RecreationBench: direct link, hf CLI and curl.
- Browser
- Download file 153 kB
-
https://huggingface.co/datasets/Qwen/RecreationBench/resolve/main/web/postgresql.org/tests/static/content.scripted.spec.ts
- Command line
-
hf download hf://datasets/Qwen/RecreationBench/web/postgresql.org/tests/static/content.scripted.spec.ts
-
curl -L -o content.scripted.spec.ts https://huggingface.co/datasets/Qwen/RecreationBench/resolve/main/web/postgresql.org/tests/static/content.scripted.spec.ts
153 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('postgresql'); | |
| }); | |
| }); | |
| test.describe('Functional - about', () => { | |
| test('about: title matches GT', async ({ page }) => { | |
| await page.goto('/about/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about: h2 "What is PostgreSQL?"', 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 === 'What is PostgreSQL?' || t.startsWith('What is PostgreSQL?'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - community', () => { | |
| test('community: title matches GT', async ({ page }) => { | |
| await page.goto('/community/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('community: h2 "Planet PostgreSQL"', async ({ page }) => { | |
| await page.goto('/community/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Planet PostgreSQL' || t.startsWith('Planet PostgreSQL'))).toBeTruthy(); | |
| }); | |
| test('community: h2 "External Resources"', async ({ page }) => { | |
| await page.goto('/community/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'External Resources' || t.startsWith('External Resources'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - developer', () => { | |
| test('developer: title matches GT', async ({ page }) => { | |
| await page.goto('/developer/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('developer: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/developer/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('developer: h2 "Who are we?"', async ({ page }) => { | |
| await page.goto('/developer/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Who are we?' || t.startsWith('Who are we?'))).toBeTruthy(); | |
| }); | |
| test('developer: h2 "What will you find here?"', async ({ page }) => { | |
| await page.goto('/developer/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'What will you find here?' || t.startsWith('What will you find here?'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - docs', () => { | |
| test('docs: title matches GT', async ({ page }) => { | |
| await page.goto('/docs/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('docs: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/docs/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('docs: h2 "Manuals"', async ({ page }) => { | |
| await page.goto('/docs/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Manuals' || t.startsWith('Manuals'))).toBeTruthy(); | |
| }); | |
| test('docs: h2 "Translated Manuals"', async ({ page }) => { | |
| await page.goto('/docs/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Translated Manuals' || t.startsWith('Translated Manuals'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - docs_14_release_14_22_html', () => { | |
| test('docs_14_release_14_22_html: title matches GT', async ({ page }) => { | |
| await page.goto('/docs/14/release-14-22.html'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('docs_14_release_14_22_html: h2 "E.1. Release 14.22"', async ({ page }) => { | |
| await page.goto('/docs/14/release-14-22.html'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'E.1. Release 14.22' || t.startsWith('E.1. Release 14.22'))).toBeTruthy(); | |
| }); | |
| test('docs_14_release_14_22_html: h2 "Submit correction"', async ({ page }) => { | |
| await page.goto('/docs/14/release-14-22.html'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Submit correction' || t.startsWith('Submit correction'))).toBeTruthy(); | |
| }); | |
| test('docs_14_release_14_22_html: h3 "E.1.1. Migration to Version 14"', async ({ page }) => { | |
| await page.goto('/docs/14/release-14-22.html'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'E.1.1. Migration to Version 14.22' || t.startsWith('E.1.1. Migration to Version 14.22'))).toBeTruthy(); | |
| }); | |
| test('docs_14_release_14_22_html: h3 "E.1.2. Changes"', async ({ page }) => { | |
| await page.goto('/docs/14/release-14-22.html'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'E.1.2. Changes' || t.startsWith('E.1.2. Changes'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - docs_15_release_15_17_html', () => { | |
| test('docs_15_release_15_17_html: title matches GT', async ({ page }) => { | |
| await page.goto('/docs/15/release-15-17.html'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('docs_15_release_15_17_html: h2 "E.1. Release 15.17"', async ({ page }) => { | |
| await page.goto('/docs/15/release-15-17.html'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'E.1. Release 15.17' || t.startsWith('E.1. Release 15.17'))).toBeTruthy(); | |
| }); | |
| test('docs_15_release_15_17_html: h2 "Submit correction"', async ({ page }) => { | |
| await page.goto('/docs/15/release-15-17.html'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Submit correction' || t.startsWith('Submit correction'))).toBeTruthy(); | |
| }); | |
| test('docs_15_release_15_17_html: h3 "E.1.1. Migration to Version 15"', async ({ page }) => { | |
| await page.goto('/docs/15/release-15-17.html'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'E.1.1. Migration to Version 15.17' || t.startsWith('E.1.1. Migration to Version 15.17'))).toBeTruthy(); | |
| }); | |
| test('docs_15_release_15_17_html: h3 "E.1.2. Changes"', async ({ page }) => { | |
| await page.goto('/docs/15/release-15-17.html'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'E.1.2. Changes' || t.startsWith('E.1.2. Changes'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - docs_16_release_16_13_html', () => { | |
| test('docs_16_release_16_13_html: title matches GT', async ({ page }) => { | |
| await page.goto('/docs/16/release-16-13.html'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('docs_16_release_16_13_html: h2 "E.1. Release 16.13 #"', async ({ page }) => { | |
| await page.goto('/docs/16/release-16-13.html'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'E.1. Release 16.13 #' || t.startsWith('E.1. Release 16.13 #'))).toBeTruthy(); | |
| }); | |
| test('docs_16_release_16_13_html: h2 "Submit correction"', async ({ page }) => { | |
| await page.goto('/docs/16/release-16-13.html'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Submit correction' || t.startsWith('Submit correction'))).toBeTruthy(); | |
| }); | |
| test('docs_16_release_16_13_html: h3 "E.1.1. Migration to Version 16"', async ({ page }) => { | |
| await page.goto('/docs/16/release-16-13.html'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'E.1.1. Migration to Version 16.13 #' || t.startsWith('E.1.1. Migration to Version 16.13 #'))).toBeTruthy(); | |
| }); | |
| test('docs_16_release_16_13_html: h3 "E.1.2. Changes #"', async ({ page }) => { | |
| await page.goto('/docs/16/release-16-13.html'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'E.1.2. Changes #' || t.startsWith('E.1.2. Changes #'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - docs_17_release_17_9_html', () => { | |
| test('docs_17_release_17_9_html: title matches GT', async ({ page }) => { | |
| await page.goto('/docs/17/release-17-9.html'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('docs_17_release_17_9_html: h2 "E.1. Release 17.9 #"', async ({ page }) => { | |
| await page.goto('/docs/17/release-17-9.html'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'E.1. Release 17.9 #' || t.startsWith('E.1. Release 17.9 #'))).toBeTruthy(); | |
| }); | |
| test('docs_17_release_17_9_html: h2 "Submit correction"', async ({ page }) => { | |
| await page.goto('/docs/17/release-17-9.html'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Submit correction' || t.startsWith('Submit correction'))).toBeTruthy(); | |
| }); | |
| test('docs_17_release_17_9_html: h3 "E.1.1. Migration to Version 17"', async ({ page }) => { | |
| await page.goto('/docs/17/release-17-9.html'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'E.1.1. Migration to Version 17.9 #' || t.startsWith('E.1.1. Migration to Version 17.9 #'))).toBeTruthy(); | |
| }); | |
| test('docs_17_release_17_9_html: h3 "E.1.2. Changes #"', async ({ page }) => { | |
| await page.goto('/docs/17/release-17-9.html'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'E.1.2. Changes #' || t.startsWith('E.1.2. Changes #'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - docs_18_release_18_3_html', () => { | |
| test('docs_18_release_18_3_html: title matches GT', async ({ page }) => { | |
| await page.goto('/docs/18/release-18-3.html'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('docs_18_release_18_3_html: h2 "E.1. Release 18.3 #"', async ({ page }) => { | |
| await page.goto('/docs/18/release-18-3.html'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'E.1. Release 18.3 #' || t.startsWith('E.1. Release 18.3 #'))).toBeTruthy(); | |
| }); | |
| test('docs_18_release_18_3_html: h2 "Submit correction"', async ({ page }) => { | |
| await page.goto('/docs/18/release-18-3.html'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Submit correction' || t.startsWith('Submit correction'))).toBeTruthy(); | |
| }); | |
| test('docs_18_release_18_3_html: h3 "E.1.1. Migration to Version 18"', async ({ page }) => { | |
| await page.goto('/docs/18/release-18-3.html'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'E.1.1. Migration to Version 18.3 #' || t.startsWith('E.1.1. Migration to Version 18.3 #'))).toBeTruthy(); | |
| }); | |
| test('docs_18_release_18_3_html: h3 "E.1.2. Changes #"', async ({ page }) => { | |
| await page.goto('/docs/18/release-18-3.html'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'E.1.2. Changes #' || t.startsWith('E.1.2. Changes #'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - docs_release', () => { | |
| test('docs_release: title matches GT', async ({ page }) => { | |
| await page.goto('/docs/release/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('docs_release: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/docs/release/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - download', () => { | |
| test('download: title matches GT', async ({ page }) => { | |
| await page.goto('/download/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('download: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/download/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('download: h2 "PostgreSQL Downloads"', async ({ page }) => { | |
| await page.goto('/download/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'PostgreSQL Downloads' || t.startsWith('PostgreSQL Downloads'))).toBeTruthy(); | |
| }); | |
| test('download: h2 "3rd party distributions"', async ({ page }) => { | |
| await page.goto('/download/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === '3rd party distributions' || t.startsWith('3rd party distributions'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - ftp', () => { | |
| test('ftp: title matches GT', async ({ page }) => { | |
| await page.goto('/ftp/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('ftp: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/ftp/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('ftp: h2 "Directories"', async ({ page }) => { | |
| await page.goto('/ftp/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Directories' || t.startsWith('Directories'))).toBeTruthy(); | |
| }); | |
| test('ftp: h2 "Files"', async ({ page }) => { | |
| await page.goto('/ftp/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Files' || t.startsWith('Files'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - list', () => { | |
| test('list: title matches GT', async ({ page }) => { | |
| await page.goto('/list/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('list: h1 "PostgreSQL Mailing Lists"', async ({ page }) => { | |
| await page.goto('/list/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'PostgreSQL Mailing Lists' || t.startsWith('PostgreSQL Mailing Lists'))).toBeTruthy(); | |
| }); | |
| test('list: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/list/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('list: h2 "What are the PostgreSQL Mailin"', async ({ page }) => { | |
| await page.goto('/list/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'What are the PostgreSQL Mailing Lists?' || t.startsWith('What are the PostgreSQL Mailing Lists?'))).toBeTruthy(); | |
| }); | |
| test('list: h2 "Tips For Using the PostgreSQL "', async ({ page }) => { | |
| await page.goto('/list/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Tips For Using the PostgreSQL Mailing Lists' || t.startsWith('Tips For Using the PostgreSQL Mailing Lists'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - support', () => { | |
| test('support: title matches GT', async ({ page }) => { | |
| await page.goto('/support/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('support: h1 "Support"', async ({ page }) => { | |
| await page.goto('/support/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Support' || t.startsWith('Support'))).toBeTruthy(); | |
| }); | |
| test('support: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/support/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('support: h2 "Third Party Resources"', async ({ page }) => { | |
| await page.goto('/support/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Third Party Resources' || t.startsWith('Third Party Resources'))).toBeTruthy(); | |
| }); | |
| test('support: h2 "Bug Reporting"', async ({ page }) => { | |
| await page.goto('/support/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Bug Reporting' || t.startsWith('Bug Reporting'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - support_security', () => { | |
| test('support_security: title matches GT', async ({ page }) => { | |
| await page.goto('/support/security/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('support_security: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/support/security/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('support_security: h2 "CVE Numbering Authority"', async ({ page }) => { | |
| await page.goto('/support/security/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'CVE Numbering Authority' || t.startsWith('CVE Numbering Authority'))).toBeTruthy(); | |
| }); | |
| test('support_security: h2 "What is a Security Vulnerabili"', async ({ page }) => { | |
| await page.goto('/support/security/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'What is a Security Vulnerability in PostgreSQL?' || t.startsWith('What is a Security Vulnerability in PostgreSQL?'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - support_versioning', () => { | |
| test('support_versioning: title matches GT', async ({ page }) => { | |
| await page.goto('/support/versioning/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('support_versioning: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/support/versioning/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('support_versioning: h2 "Version Numbering"', async ({ page }) => { | |
| await page.goto('/support/versioning/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Version Numbering' || t.startsWith('Version Numbering'))).toBeTruthy(); | |
| }); | |
| test('support_versioning: h2 "Upgrading"', async ({ page }) => { | |
| await page.goto('/support/versioning/'); | |
| 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.describe('Functional - about_contact', () => { | |
| test('about_contact: title matches GT', async ({ page }) => { | |
| await page.goto('/about/contact/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_contact: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/contact/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('about_contact: h2 "Report a Bug"', async ({ page }) => { | |
| await page.goto('/about/contact/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Report a Bug' || t.startsWith('Report a Bug'))).toBeTruthy(); | |
| }); | |
| test('about_contact: h2 "Report a Security Issue"', async ({ page }) => { | |
| await page.goto('/about/contact/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Report a Security Issue' || t.startsWith('Report a Security Issue'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_contributing', () => { | |
| test('about_contributing: title matches GT', async ({ page }) => { | |
| await page.goto('/about/contributing/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_contributing: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/contributing/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('about_contributing: h2 "Major Sponsor"', async ({ page }) => { | |
| await page.goto('/about/contributing/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Major Sponsor' || t.startsWith('Major Sponsor'))).toBeTruthy(); | |
| }); | |
| test('about_contributing: h2 "Sponsor"', async ({ page }) => { | |
| await page.goto('/about/contributing/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sponsor' || t.startsWith('Sponsor'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_donate', () => { | |
| test('about_donate: title matches GT', async ({ page }) => { | |
| await page.goto('/about/donate/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_donate: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/donate/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('about_donate: h2 "PostgreSQL Community Associati"', async ({ page }) => { | |
| await page.goto('/about/donate/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'PostgreSQL Community Association' || t.startsWith('PostgreSQL Community Association'))).toBeTruthy(); | |
| }); | |
| test('about_donate: h2 "PostgreSQL Europe (PGEU)"', async ({ page }) => { | |
| await page.goto('/about/donate/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'PostgreSQL Europe (PGEU)' || t.startsWith('PostgreSQL Europe (PGEU)'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_donate_pg_org', () => { | |
| test('about_donate_pg_org: title matches GT', async ({ page }) => { | |
| await page.goto('/about/donate_pg_org/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_donate_pg_org: h1 "Donate to PostgreSQL"', async ({ page }) => { | |
| await page.goto('/about/donate_pg_org/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Donate to PostgreSQL' || t.startsWith('Donate to PostgreSQL'))).toBeTruthy(); | |
| }); | |
| test('about_donate_pg_org: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/donate_pg_org/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('about_donate_pg_org: h2 "Donate to PostgreSQL by Credit"', async ({ page }) => { | |
| await page.goto('/about/donate_pg_org/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Donate to PostgreSQL by Credit Card / Paypal' || t.startsWith('Donate to PostgreSQL by Credit Card / Paypal'))).toBeTruthy(); | |
| }); | |
| test('about_donate_pg_org: h2 "Other Ways to Donate to Postgr"', async ({ page }) => { | |
| await page.goto('/about/donate_pg_org/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Other Ways to Donate to PostgreSQL' || t.startsWith('Other Ways to Donate to PostgreSQL'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_eventarchive', () => { | |
| test('about_eventarchive: title matches GT', async ({ page }) => { | |
| await page.goto('/about/eventarchive/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_eventarchive: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/eventarchive/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_events', () => { | |
| test('about_events: title matches GT', async ({ page }) => { | |
| await page.goto('/about/events/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_events: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/events/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_featurematrix', () => { | |
| test('about_featurematrix: title matches GT', async ({ page }) => { | |
| await page.goto('/about/featurematrix/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_featurematrix: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/featurematrix/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('about_featurematrix: h2 "Backend"', async ({ page }) => { | |
| await page.goto('/about/featurematrix/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Backend' || t.startsWith('Backend'))).toBeTruthy(); | |
| }); | |
| test('about_featurematrix: h2 "Data Types, Functions, & Opera"', async ({ page }) => { | |
| await page.goto('/about/featurematrix/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Data Types, Functions, & Operators' || t.startsWith('Data Types, Functions, & Operators'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_financial', () => { | |
| test('about_financial: title matches GT', async ({ page }) => { | |
| await page.goto('/about/financial/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_financial: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/financial/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('about_financial: h2 "PostgreSQL Community Associati"', async ({ page }) => { | |
| await page.goto('/about/financial/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'PostgreSQL Community Association' || t.startsWith('PostgreSQL Community Association'))).toBeTruthy(); | |
| }); | |
| test('about_financial: h3 "PostgreSQL Community Associati"', async ({ page }) => { | |
| await page.goto('/about/financial/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'PostgreSQL Community Association Sponsors' || t.startsWith('PostgreSQL Community Association Sponsors'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_governance', () => { | |
| test('about_governance: title matches GT', async ({ page }) => { | |
| await page.goto('/about/governance/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_governance: h1 "Project Governance Directory"', async ({ page }) => { | |
| await page.goto('/about/governance/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Project Governance Directory' || t.startsWith('Project Governance Directory'))).toBeTruthy(); | |
| }); | |
| test('about_governance: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/governance/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('about_governance: h2 "Core Team"', async ({ page }) => { | |
| await page.goto('/about/governance/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Core Team' || t.startsWith('Core Team'))).toBeTruthy(); | |
| }); | |
| test('about_governance: h2 "Sysadmin Team"', async ({ page }) => { | |
| await page.goto('/about/governance/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Sysadmin Team' || t.startsWith('Sysadmin Team'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_licence', () => { | |
| test('about_licence: title matches GT', async ({ page }) => { | |
| await page.goto('/about/licence/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_licence: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/licence/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('about_licence: h2 "Will PostgreSQL ever be releas"', async ({ page }) => { | |
| await page.goto('/about/licence/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Will PostgreSQL ever be released under a different license?' || t.startsWith('Will PostgreSQL ever be released under a different license?'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_newsarchive', () => { | |
| test('about_newsarchive: title matches GT', async ({ page }) => { | |
| await page.goto('/about/newsarchive/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_newsarchive: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/newsarchive/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('about_newsarchive: h2 "Swiss PGDay 2026: Open for reg"', async ({ page }) => { | |
| await page.goto('/about/newsarchive/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Swiss PGDay 2026: Open for registration' || t.startsWith('Swiss PGDay 2026: Open for registration'))).toBeTruthy(); | |
| }); | |
| test('about_newsarchive: h2 "PGConf.BE : Preliminary schedu"', async ({ page }) => { | |
| await page.goto('/about/newsarchive/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'PGConf.BE : Preliminary schedule, registrations open and speakers online' || t.startsWith('PGConf.BE : Preliminary schedule, registrations open and speakers online'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_policies', () => { | |
| test('about_policies: title matches GT', async ({ page }) => { | |
| await page.goto('/about/policies/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_policies: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/policies/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('about_policies: h2 "General Policies"', async ({ page }) => { | |
| await page.goto('/about/policies/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'General Policies' || t.startsWith('General Policies'))).toBeTruthy(); | |
| }); | |
| test('about_policies: h2 "PostgreSQL Project Policies"', async ({ page }) => { | |
| await page.goto('/about/policies/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'PostgreSQL Project Policies' || t.startsWith('PostgreSQL Project Policies'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_press', () => { | |
| test('about_press: title matches GT', async ({ page }) => { | |
| await page.goto('/about/press/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_press: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/press/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('about_press: h2 "PostgreSQL 18 Press Informatio"', async ({ page }) => { | |
| await page.goto('/about/press/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'PostgreSQL 18 Press Information' || t.startsWith('PostgreSQL 18 Press Information'))).toBeTruthy(); | |
| }); | |
| test('about_press: h2 "Press Kit Languages"', async ({ page }) => { | |
| await page.goto('/about/press/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Press Kit Languages' || t.startsWith('Press Kit Languages'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_servers', () => { | |
| test('about_servers: title matches GT', async ({ page }) => { | |
| await page.goto('/about/servers/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_servers: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/servers/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('about_servers: h2 "Additional Hosting Services"', async ({ page }) => { | |
| await page.goto('/about/servers/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Additional Hosting Services' || t.startsWith('Additional Hosting Services'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_sponsors', () => { | |
| test('about_sponsors: title matches GT', async ({ page }) => { | |
| await page.goto('/about/sponsors/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_sponsors: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/sponsors/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('about_sponsors: h2 "Contributing Sponsors"', async ({ page }) => { | |
| await page.goto('/about/sponsors/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Contributing Sponsors' || t.startsWith('Contributing Sponsors'))).toBeTruthy(); | |
| }); | |
| test('about_sponsors: h2 "Financial Sponsors"', async ({ page }) => { | |
| await page.goto('/about/sponsors/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Financial Sponsors' || t.startsWith('Financial Sponsors'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - account_reset', () => { | |
| test('account_reset: title matches GT', async ({ page }) => { | |
| await page.goto('/account/reset/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('account_reset: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/account/reset/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - community_contributors', () => { | |
| test('community_contributors: title matches GT', async ({ page }) => { | |
| await page.goto('/community/contributors/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('community_contributors: h1 "PostgreSQL Contributor Profile"', async ({ page }) => { | |
| await page.goto('/community/contributors/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'PostgreSQL Contributor Profiles' || t.startsWith('PostgreSQL Contributor Profiles'))).toBeTruthy(); | |
| }); | |
| test('community_contributors: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/community/contributors/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('community_contributors: h2 "Core Team"', async ({ page }) => { | |
| await page.goto('/community/contributors/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Core Team' || t.startsWith('Core Team'))).toBeTruthy(); | |
| }); | |
| test('community_contributors: h2 "Major Contributors"', async ({ page }) => { | |
| await page.goto('/community/contributors/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Major Contributors' || t.startsWith('Major Contributors'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - community_international', () => { | |
| test('community_international: title matches GT', async ({ page }) => { | |
| await page.goto('/community/international/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('community_international: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/community/international/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - community_irc', () => { | |
| test('community_irc: title matches GT', async ({ page }) => { | |
| await page.goto('/community/irc/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('community_irc: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/community/irc/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('community_irc: h2 "PostgreSQL Channels:"', async ({ page }) => { | |
| await page.goto('/community/irc/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'PostgreSQL Channels:' || t.startsWith('PostgreSQL Channels:'))).toBeTruthy(); | |
| }); | |
| test('community_irc: h2 "Language Specific Channels:"', async ({ page }) => { | |
| await page.goto('/community/irc/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Language Specific Channels:' || t.startsWith('Language Specific Channels:'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - community_recognised_npos', () => { | |
| test('community_recognised_npos: title matches GT', async ({ page }) => { | |
| await page.goto('/community/recognised-npos/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('community_recognised_npos: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/community/recognised-npos/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('community_recognised_npos: h2 "PostgreSQL Europe"', async ({ page }) => { | |
| await page.goto('/community/recognised-npos/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'PostgreSQL Europe' || t.startsWith('PostgreSQL Europe'))).toBeTruthy(); | |
| }); | |
| test('community_recognised_npos: h2 "PostgreSQLFr"', async ({ page }) => { | |
| await page.goto('/community/recognised-npos/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'PostgreSQLFr' || t.startsWith('PostgreSQLFr'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - community_user_groups', () => { | |
| test('community_user_groups: title matches GT', async ({ page }) => { | |
| await page.goto('/community/user-groups/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('community_user_groups: h1 "Local User Groups"', async ({ page }) => { | |
| await page.goto('/community/user-groups/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Local User Groups' || t.startsWith('Local User Groups'))).toBeTruthy(); | |
| }); | |
| test('community_user_groups: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/community/user-groups/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('community_user_groups: h2 "Argentina"', async ({ page }) => { | |
| await page.goto('/community/user-groups/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Argentina' || t.startsWith('Argentina'))).toBeTruthy(); | |
| }); | |
| test('community_user_groups: h2 "Armenia"', async ({ page }) => { | |
| await page.goto('/community/user-groups/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Armenia' || t.startsWith('Armenia'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - developer_beta', () => { | |
| test('developer_beta: title matches GT', async ({ page }) => { | |
| await page.goto('/developer/beta/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('developer_beta: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/developer/beta/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - developer_coding', () => { | |
| test('developer_coding: title matches GT', async ({ page }) => { | |
| await page.goto('/developer/coding/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('developer_coding: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/developer/coding/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('developer_coding: h2 "Code access and information"', async ({ page }) => { | |
| await page.goto('/developer/coding/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Code access and information' || t.startsWith('Code access and information'))).toBeTruthy(); | |
| }); | |
| test('developer_coding: h2 "Search Code By Git Commit Hash"', async ({ page }) => { | |
| await page.goto('/developer/coding/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Search Code By Git Commit Hash' || t.startsWith('Search Code By Git Commit Hash'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - developer_committers', () => { | |
| test('developer_committers: title matches GT', async ({ page }) => { | |
| await page.goto('/developer/committers/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('developer_committers: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/developer/committers/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('developer_committers: h2 "Notes on the Commit Log"', async ({ page }) => { | |
| await page.goto('/developer/committers/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Notes on the Commit Log' || t.startsWith('Notes on the Commit Log'))).toBeTruthy(); | |
| }); | |
| test('developer_committers: h2 "New Committers and Removing Co"', async ({ page }) => { | |
| await page.goto('/developer/committers/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'New Committers and Removing Committers' || t.startsWith('New Committers and Removing Committers'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - developer_core', () => { | |
| test('developer_core: title matches GT', async ({ page }) => { | |
| await page.goto('/developer/core/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('developer_core: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/developer/core/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('developer_core: h2 "Activity Reports"', async ({ page }) => { | |
| await page.goto('/developer/core/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Activity Reports' || t.startsWith('Activity Reports'))).toBeTruthy(); | |
| }); | |
| test('developer_core: h2 "Contact"', async ({ page }) => { | |
| await page.goto('/developer/core/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Contact' || t.startsWith('Contact'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - developer_related_projects', () => { | |
| test('developer_related_projects: title matches GT', async ({ page }) => { | |
| await page.goto('/developer/related-projects/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('developer_related_projects: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/developer/related-projects/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('developer_related_projects: h2 "Website Infrastructure"', async ({ page }) => { | |
| await page.goto('/developer/related-projects/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Website Infrastructure' || t.startsWith('Website Infrastructure'))).toBeTruthy(); | |
| }); | |
| test('developer_related_projects: h2 "Mailing List Infrastructure"', async ({ page }) => { | |
| await page.goto('/developer/related-projects/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Mailing List Infrastructure' || t.startsWith('Mailing List Infrastructure'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - developer_roadmap', () => { | |
| test('developer_roadmap: title matches GT', async ({ page }) => { | |
| await page.goto('/developer/roadmap/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('developer_roadmap: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/developer/roadmap/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('developer_roadmap: h2 "Upcoming minor releases"', async ({ page }) => { | |
| await page.goto('/developer/roadmap/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Upcoming minor releases' || t.startsWith('Upcoming minor releases'))).toBeTruthy(); | |
| }); | |
| test('developer_roadmap: h2 "Next major release"', async ({ page }) => { | |
| await page.goto('/developer/roadmap/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Next major release' || t.startsWith('Next major release'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - developer_testing', () => { | |
| test('developer_testing: title matches GT', async ({ page }) => { | |
| await page.goto('/developer/testing/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('developer_testing: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/developer/testing/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('developer_testing: h2 "Test Builds"', async ({ page }) => { | |
| await page.goto('/developer/testing/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Test Builds' || t.startsWith('Test Builds'))).toBeTruthy(); | |
| }); | |
| test('developer_testing: h2 "Documentation"', async ({ page }) => { | |
| await page.goto('/developer/testing/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - docs_14_index_html', () => { | |
| test('docs_14_index_html: title matches GT', async ({ page }) => { | |
| await page.goto('/docs/14/index.html'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('docs_14_index_html: h1 "PostgreSQL 14.22 Documentation"', async ({ page }) => { | |
| await page.goto('/docs/14/index.html'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'PostgreSQL 14.22 Documentation' || t.startsWith('PostgreSQL 14.22 Documentation'))).toBeTruthy(); | |
| }); | |
| test('docs_14_index_html: h2 "Submit correction"', async ({ page }) => { | |
| await page.goto('/docs/14/index.html'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Submit correction' || t.startsWith('Submit correction'))).toBeTruthy(); | |
| }); | |
| test('docs_14_index_html: h3 "The PostgreSQL Global Developm"', async ({ page }) => { | |
| await page.goto('/docs/14/index.html'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The PostgreSQL Global Development Group' || t.startsWith('The PostgreSQL Global Development Group'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - docs_15_index_html', () => { | |
| test('docs_15_index_html: title matches GT', async ({ page }) => { | |
| await page.goto('/docs/15/index.html'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('docs_15_index_html: h1 "PostgreSQL 15.17 Documentation"', async ({ page }) => { | |
| await page.goto('/docs/15/index.html'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'PostgreSQL 15.17 Documentation' || t.startsWith('PostgreSQL 15.17 Documentation'))).toBeTruthy(); | |
| }); | |
| test('docs_15_index_html: h2 "Submit correction"', async ({ page }) => { | |
| await page.goto('/docs/15/index.html'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Submit correction' || t.startsWith('Submit correction'))).toBeTruthy(); | |
| }); | |
| test('docs_15_index_html: h3 "The PostgreSQL Global Developm"', async ({ page }) => { | |
| await page.goto('/docs/15/index.html'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The PostgreSQL Global Development Group' || t.startsWith('The PostgreSQL Global Development Group'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - docs_16_index_html', () => { | |
| test('docs_16_index_html: title matches GT', async ({ page }) => { | |
| await page.goto('/docs/16/index.html'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('docs_16_index_html: h1 "PostgreSQL 16.13 Documentation"', async ({ page }) => { | |
| await page.goto('/docs/16/index.html'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'PostgreSQL 16.13 Documentation' || t.startsWith('PostgreSQL 16.13 Documentation'))).toBeTruthy(); | |
| }); | |
| test('docs_16_index_html: h2 "Submit correction"', async ({ page }) => { | |
| await page.goto('/docs/16/index.html'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Submit correction' || t.startsWith('Submit correction'))).toBeTruthy(); | |
| }); | |
| test('docs_16_index_html: h3 "The PostgreSQL Global Developm"', async ({ page }) => { | |
| await page.goto('/docs/16/index.html'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The PostgreSQL Global Development Group' || t.startsWith('The PostgreSQL Global Development Group'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - docs_17_index_html', () => { | |
| test('docs_17_index_html: title matches GT', async ({ page }) => { | |
| await page.goto('/docs/17/index.html'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('docs_17_index_html: h1 "PostgreSQL 17.9 Documentation"', async ({ page }) => { | |
| await page.goto('/docs/17/index.html'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'PostgreSQL 17.9 Documentation' || t.startsWith('PostgreSQL 17.9 Documentation'))).toBeTruthy(); | |
| }); | |
| test('docs_17_index_html: h2 "Submit correction"', async ({ page }) => { | |
| await page.goto('/docs/17/index.html'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Submit correction' || t.startsWith('Submit correction'))).toBeTruthy(); | |
| }); | |
| test('docs_17_index_html: h3 "The PostgreSQL Global Developm"', async ({ page }) => { | |
| await page.goto('/docs/17/index.html'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The PostgreSQL Global Development Group' || t.startsWith('The PostgreSQL Global Development Group'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - docs_books', () => { | |
| test('docs_books: title matches GT', async ({ page }) => { | |
| await page.goto('/docs/books/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('docs_books: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/docs/books/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - docs_current', () => { | |
| test('docs_current: title matches GT', async ({ page }) => { | |
| await page.goto('/docs/current/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('docs_current: h2 "Submit correction"', async ({ page }) => { | |
| await page.goto('/docs/current/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Submit correction' || t.startsWith('Submit correction'))).toBeTruthy(); | |
| }); | |
| test('docs_current: h3 "The PostgreSQL Global Developm"', async ({ page }) => { | |
| await page.goto('/docs/current/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The PostgreSQL Global Development Group' || t.startsWith('The PostgreSQL Global Development Group'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - docs_current_features_html', () => { | |
| test('docs_current_features_html: title matches GT', async ({ page }) => { | |
| await page.goto('/docs/current/features.html'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('docs_current_features_html: h2 "Appendix D. SQL Conformance"', async ({ page }) => { | |
| await page.goto('/docs/current/features.html'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Appendix D. SQL Conformance' || t.startsWith('Appendix D. SQL Conformance'))).toBeTruthy(); | |
| }); | |
| test('docs_current_features_html: h2 "Submit correction"', async ({ page }) => { | |
| await page.goto('/docs/current/features.html'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Submit correction' || t.startsWith('Submit correction'))).toBeTruthy(); | |
| }); | |
| test('docs_current_features_html: h3 "Note"', async ({ page }) => { | |
| await page.goto('/docs/current/features.html'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Note' || t.startsWith('Note'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - docs_current_history_html', () => { | |
| test('docs_current_history_html: title matches GT', async ({ page }) => { | |
| await page.goto('/docs/current/history.html'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('docs_current_history_html: h2 "2. A Brief History of PostgreS"', async ({ page }) => { | |
| await page.goto('/docs/current/history.html'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === '2. A Brief History of PostgreSQL #' || t.startsWith('2. A Brief History of PostgreSQL #'))).toBeTruthy(); | |
| }); | |
| test('docs_current_history_html: h2 "Submit correction"', async ({ page }) => { | |
| await page.goto('/docs/current/history.html'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Submit correction' || t.startsWith('Submit correction'))).toBeTruthy(); | |
| }); | |
| test('docs_current_history_html: h3 "2.1. The Berkeley POSTGRES Pro"', async ({ page }) => { | |
| await page.goto('/docs/current/history.html'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === '2.1. The Berkeley POSTGRES Project #' || t.startsWith('2.1. The Berkeley POSTGRES Project #'))).toBeTruthy(); | |
| }); | |
| test('docs_current_history_html: h3 "2.2. Postgres95 #"', async ({ page }) => { | |
| await page.goto('/docs/current/history.html'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === '2.2. Postgres95 #' || t.startsWith('2.2. Postgres95 #'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - docs_current_installation_html', () => { | |
| test('docs_current_installation_html: title matches GT', async ({ page }) => { | |
| await page.goto('/docs/current/installation.html'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('docs_current_installation_html: h2 "Chapter 17. Installation from "', async ({ page }) => { | |
| await page.goto('/docs/current/installation.html'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Chapter 17. Installation from Source Code' || t.startsWith('Chapter 17. Installation from Source Code'))).toBeTruthy(); | |
| }); | |
| test('docs_current_installation_html: h2 "Submit correction"', async ({ page }) => { | |
| await page.goto('/docs/current/installation.html'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Submit correction' || t.startsWith('Submit correction'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - docs_current_tutorial_html', () => { | |
| test('docs_current_tutorial_html: title matches GT', async ({ page }) => { | |
| await page.goto('/docs/current/tutorial.html'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('docs_current_tutorial_html: h1 "Part I. Tutorial"', async ({ page }) => { | |
| await page.goto('/docs/current/tutorial.html'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Part I. Tutorial' || t.startsWith('Part I. Tutorial'))).toBeTruthy(); | |
| }); | |
| test('docs_current_tutorial_html: h2 "Submit correction"', async ({ page }) => { | |
| await page.goto('/docs/current/tutorial.html'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Submit correction' || t.startsWith('Submit correction'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - docs_current_xplang_html', () => { | |
| test('docs_current_xplang_html: title matches GT', async ({ page }) => { | |
| await page.goto('/docs/current/xplang.html'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('docs_current_xplang_html: h2 "Chapter 40. Procedural Languag"', async ({ page }) => { | |
| await page.goto('/docs/current/xplang.html'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Chapter 40. Procedural Languages' || t.startsWith('Chapter 40. Procedural Languages'))).toBeTruthy(); | |
| }); | |
| test('docs_current_xplang_html: h2 "Submit correction"', async ({ page }) => { | |
| await page.goto('/docs/current/xplang.html'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Submit correction' || t.startsWith('Submit correction'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - docs_devel_index_html', () => { | |
| test('docs_devel_index_html: title matches GT', async ({ page }) => { | |
| await page.goto('/docs/devel/index.html'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('docs_devel_index_html: h1 "PostgreSQL 19devel Documentati"', async ({ page }) => { | |
| await page.goto('/docs/devel/index.html'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'PostgreSQL 19devel Documentation' || t.startsWith('PostgreSQL 19devel Documentation'))).toBeTruthy(); | |
| }); | |
| test('docs_devel_index_html: h3 "The PostgreSQL Global Developm"', async ({ page }) => { | |
| await page.goto('/docs/devel/index.html'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'The PostgreSQL Global Development Group' || t.startsWith('The PostgreSQL Global Development Group'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - docs_faq', () => { | |
| test('docs_faq: title matches GT', async ({ page }) => { | |
| await page.goto('/docs/faq/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('docs_faq: h1 "Frequently Asked Questions"', async ({ page }) => { | |
| await page.goto('/docs/faq/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Frequently Asked Questions' || t.startsWith('Frequently Asked Questions'))).toBeTruthy(); | |
| }); | |
| test('docs_faq: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/docs/faq/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('docs_faq: h2 "Press FAQ"', async ({ page }) => { | |
| await page.goto('/docs/faq/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Press FAQ' || t.startsWith('Press FAQ'))).toBeTruthy(); | |
| }); | |
| test('docs_faq: h2 "General FAQ"', async ({ page }) => { | |
| await page.goto('/docs/faq/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'General FAQ' || t.startsWith('General FAQ'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - docs_manuals_archive', () => { | |
| test('docs_manuals_archive: title matches GT', async ({ page }) => { | |
| await page.goto('/docs/manuals/archive/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('docs_manuals_archive: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/docs/manuals/archive/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - docs_online_resources', () => { | |
| test('docs_online_resources: title matches GT', async ({ page }) => { | |
| await page.goto('/docs/online-resources/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('docs_online_resources: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/docs/online-resources/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - download_linux', () => { | |
| test('download_linux: title matches GT', async ({ page }) => { | |
| await page.goto('/download/linux/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('download_linux: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/download/linux/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('download_linux: h2 "Generic linux distributions"', async ({ page }) => { | |
| await page.goto('/download/linux/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Generic linux distributions' || t.startsWith('Generic linux distributions'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - download_linux_debian', () => { | |
| test('download_linux_debian: title matches GT', async ({ page }) => { | |
| await page.goto('/download/linux/debian/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('download_linux_debian: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/download/linux/debian/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('download_linux_debian: h2 "Included in Distribution"', async ({ page }) => { | |
| await page.goto('/download/linux/debian/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Included in Distribution' || t.startsWith('Included in Distribution'))).toBeTruthy(); | |
| }); | |
| test('download_linux_debian: h2 "PostgreSQL Apt Repository"', async ({ page }) => { | |
| await page.goto('/download/linux/debian/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'PostgreSQL Apt Repository' || t.startsWith('PostgreSQL Apt Repository'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - download_linux_redhat', () => { | |
| test('download_linux_redhat: title matches GT', async ({ page }) => { | |
| await page.goto('/download/linux/redhat/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('download_linux_redhat: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/download/linux/redhat/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('download_linux_redhat: h2 "PostgreSQL Yum Repository"', async ({ page }) => { | |
| await page.goto('/download/linux/redhat/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'PostgreSQL Yum Repository' || t.startsWith('PostgreSQL Yum Repository'))).toBeTruthy(); | |
| }); | |
| test('download_linux_redhat: h2 "Included in Distribution"', async ({ page }) => { | |
| await page.goto('/download/linux/redhat/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Included in Distribution' || t.startsWith('Included in Distribution'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - download_linux_suse', () => { | |
| test('download_linux_suse: title matches GT', async ({ page }) => { | |
| await page.goto('/download/linux/suse/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('download_linux_suse: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/download/linux/suse/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('download_linux_suse: h2 "PostgreSQL RPM Repository"', async ({ page }) => { | |
| await page.goto('/download/linux/suse/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'PostgreSQL RPM Repository' || t.startsWith('PostgreSQL RPM Repository'))).toBeTruthy(); | |
| }); | |
| test('download_linux_suse: h2 "Included in distribution"', async ({ page }) => { | |
| await page.goto('/download/linux/suse/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Included in distribution' || t.startsWith('Included in distribution'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - download_linux_ubuntu', () => { | |
| test('download_linux_ubuntu: title matches GT', async ({ page }) => { | |
| await page.goto('/download/linux/ubuntu/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('download_linux_ubuntu: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/download/linux/ubuntu/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('download_linux_ubuntu: h2 "Included in Distribution"', async ({ page }) => { | |
| await page.goto('/download/linux/ubuntu/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Included in Distribution' || t.startsWith('Included in Distribution'))).toBeTruthy(); | |
| }); | |
| test('download_linux_ubuntu: h2 "PostgreSQL Apt Repository"', async ({ page }) => { | |
| await page.goto('/download/linux/ubuntu/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'PostgreSQL Apt Repository' || t.startsWith('PostgreSQL Apt Repository'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - download_macosx', () => { | |
| test('download_macosx: title matches GT', async ({ page }) => { | |
| await page.goto('/download/macosx/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('download_macosx: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/download/macosx/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('download_macosx: h2 "Interactive installer by EDB"', async ({ page }) => { | |
| await page.goto('/download/macosx/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Interactive installer by EDB' || t.startsWith('Interactive installer by EDB'))).toBeTruthy(); | |
| }); | |
| test('download_macosx: h2 "Postgres.app"', async ({ page }) => { | |
| await page.goto('/download/macosx/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Postgres.app' || t.startsWith('Postgres.app'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - download_product_categories', () => { | |
| test('download_product_categories: title matches GT', async ({ page }) => { | |
| await page.goto('/download/product-categories/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('download_product_categories: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/download/product-categories/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - download_snapshots', () => { | |
| test('download_snapshots: title matches GT', async ({ page }) => { | |
| await page.goto('/download/snapshots/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('download_snapshots: h1 "Beta/RC Releases and Developme"', async ({ page }) => { | |
| await page.goto('/download/snapshots/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Beta/RC Releases and Development snapshots (unstable)' || t.startsWith('Beta/RC Releases and Development snapshots (unstable)'))).toBeTruthy(); | |
| }); | |
| test('download_snapshots: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/download/snapshots/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('download_snapshots: h2 "Source code"', async ({ page }) => { | |
| await page.goto('/download/snapshots/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Source code' || t.startsWith('Source code'))).toBeTruthy(); | |
| }); | |
| test('download_snapshots: h2 "Red Hat, Rocky Linux, AlmaLinu"', async ({ page }) => { | |
| await page.goto('/download/snapshots/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Red Hat, Rocky Linux, AlmaLinux and Fedora' || t.startsWith('Red Hat, Rocky Linux, AlmaLinux and Fedora'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - download_windows', () => { | |
| test('download_windows: title matches GT', async ({ page }) => { | |
| await page.goto('/download/windows/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('download_windows: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/download/windows/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('download_windows: h2 "Interactive installer by EDB"', async ({ page }) => { | |
| await page.goto('/download/windows/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Interactive installer by EDB' || t.startsWith('Interactive installer by EDB'))).toBeTruthy(); | |
| }); | |
| test('download_windows: h3 "Platform support"', async ({ page }) => { | |
| await page.goto('/download/windows/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Platform support' || t.startsWith('Platform support'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - ftp_source', () => { | |
| test('ftp_source: title matches GT', async ({ page }) => { | |
| await page.goto('/ftp/source/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('ftp_source: h1 "File Browser"', async ({ page }) => { | |
| await page.goto('/ftp/source/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'File Browser' || t.startsWith('File Browser'))).toBeTruthy(); | |
| }); | |
| test('ftp_source: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/ftp/source/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('ftp_source: h2 "Directories"', async ({ page }) => { | |
| await page.goto('/ftp/source/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Directories' || t.startsWith('Directories'))).toBeTruthy(); | |
| }); | |
| test('ftp_source: h3 "Top → source"', async ({ page }) => { | |
| await page.goto('/ftp/source/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Top → source' || t.startsWith('Top → source'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - list_pgsql_announce', () => { | |
| test('list_pgsql_announce: title matches GT', async ({ page }) => { | |
| await page.goto('/list/pgsql-announce/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('list_pgsql_announce: h1 "pgsql-announce"', async ({ page }) => { | |
| await page.goto('/list/pgsql-announce/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'pgsql-announce' || t.startsWith('pgsql-announce'))).toBeTruthy(); | |
| }); | |
| test('list_pgsql_announce: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/list/pgsql-announce/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('list_pgsql_announce: h2 "View Archives"', async ({ page }) => { | |
| await page.goto('/list/pgsql-announce/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'View Archives' || t.startsWith('View Archives'))).toBeTruthy(); | |
| }); | |
| test('list_pgsql_announce: h3 "Search the Archives"', async ({ page }) => { | |
| await page.goto('/list/pgsql-announce/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Search the Archives' || t.startsWith('Search the Archives'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - list_pgsql_general', () => { | |
| test('list_pgsql_general: title matches GT', async ({ page }) => { | |
| await page.goto('/list/pgsql-general/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('list_pgsql_general: h1 "pgsql-general"', async ({ page }) => { | |
| await page.goto('/list/pgsql-general/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'pgsql-general' || t.startsWith('pgsql-general'))).toBeTruthy(); | |
| }); | |
| test('list_pgsql_general: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/list/pgsql-general/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('list_pgsql_general: h2 "View Archives"', async ({ page }) => { | |
| await page.goto('/list/pgsql-general/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'View Archives' || t.startsWith('View Archives'))).toBeTruthy(); | |
| }); | |
| test('list_pgsql_general: h3 "Search the Archives"', async ({ page }) => { | |
| await page.goto('/list/pgsql-general/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Search the Archives' || t.startsWith('Search the Archives'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - list_pgsql_hackers', () => { | |
| test('list_pgsql_hackers: title matches GT', async ({ page }) => { | |
| await page.goto('/list/pgsql-hackers/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('list_pgsql_hackers: h1 "pgsql-hackers"', async ({ page }) => { | |
| await page.goto('/list/pgsql-hackers/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'pgsql-hackers' || t.startsWith('pgsql-hackers'))).toBeTruthy(); | |
| }); | |
| test('list_pgsql_hackers: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/list/pgsql-hackers/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('list_pgsql_hackers: h2 "View Archives"', async ({ page }) => { | |
| await page.goto('/list/pgsql-hackers/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'View Archives' || t.startsWith('View Archives'))).toBeTruthy(); | |
| }); | |
| test('list_pgsql_hackers: h3 "Search the Archives"', async ({ page }) => { | |
| await page.goto('/list/pgsql-hackers/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Search the Archives' || t.startsWith('Search the Archives'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - list_pgsql_jobs', () => { | |
| test('list_pgsql_jobs: title matches GT', async ({ page }) => { | |
| await page.goto('/list/pgsql-jobs/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('list_pgsql_jobs: h1 "pgsql-jobs"', async ({ page }) => { | |
| await page.goto('/list/pgsql-jobs/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'pgsql-jobs' || t.startsWith('pgsql-jobs'))).toBeTruthy(); | |
| }); | |
| test('list_pgsql_jobs: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/list/pgsql-jobs/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('list_pgsql_jobs: h2 "View Archives"', async ({ page }) => { | |
| await page.goto('/list/pgsql-jobs/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'View Archives' || t.startsWith('View Archives'))).toBeTruthy(); | |
| }); | |
| test('list_pgsql_jobs: h3 "Search the Archives"', async ({ page }) => { | |
| await page.goto('/list/pgsql-jobs/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Search the Archives' || t.startsWith('Search the Archives'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_event_how2026_postgresql_ivorysql_ecosystem_conference_2575', () => { | |
| test('about_event_how2026_postgresql_ivorysql_ecosystem_conference_2575: page loads without error', async ({ page }) => { | |
| const response = await page.goto('/about/event/how2026-postgresql-ivorysql-ecosystem-conference-2575/'); | |
| expect(response?.status()).toBeLessThan(400); | |
| await expect(page.locator('body')).toBeVisible(); | |
| }); | |
| test('about_event_how2026_postgresql_ivorysql_ecosystem_conference_2575: title matches GT', async ({ page }) => { | |
| await page.goto('/about/event/how2026-postgresql-ivorysql-ecosystem-conference-2575/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_event_how2026_postgresql_ivorysql_ecosystem_conference_2575: h1 "HOW2026: PostgreSQL & IvorySQL"', async ({ page }) => { | |
| await page.goto('/about/event/how2026-postgresql-ivorysql-ecosystem-conference-2575/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'HOW2026: PostgreSQL & IvorySQL Ecosystem Conference' || t.startsWith('HOW2026: PostgreSQL & IvorySQL Ecosystem Conference'))).toBeTruthy(); | |
| }); | |
| test('about_event_how2026_postgresql_ivorysql_ecosystem_conference_2575: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/event/how2026-postgresql-ivorysql-ecosystem-conference-2575/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('about_event_how2026_postgresql_ivorysql_ecosystem_conference_2575: nav link "Home"', async ({ page }) => { | |
| await page.goto('/about/event/how2026-postgresql-ivorysql-ecosystem-conference-2575/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| }); | |
| test('about_event_how2026_postgresql_ivorysql_ecosystem_conference_2575: nav link "About"', async ({ page }) => { | |
| await page.goto('/about/event/how2026-postgresql-ivorysql-ecosystem-conference-2575/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_event_how2026_postgresql_ivorysql_ecosystem_conference_2575: nav link "Download"', async ({ page }) => { | |
| await page.goto('/about/event/how2026-postgresql-ivorysql-ecosystem-conference-2575/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Download' || t.startsWith('Download')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('download')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_event_how2026_postgresql_ivorysql_ecosystem_conference_2575: nav link "Documentation"', async ({ page }) => { | |
| await page.goto('/about/event/how2026-postgresql-ivorysql-ecosystem-conference-2575/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_event_pgconfbe_2026_2564', () => { | |
| test('about_event_pgconfbe_2026_2564: page loads without error', async ({ page }) => { | |
| const response = await page.goto('/about/event/pgconfbe-2026-2564/'); | |
| expect(response?.status()).toBeLessThan(400); | |
| await expect(page.locator('body')).toBeVisible(); | |
| }); | |
| test('about_event_pgconfbe_2026_2564: title matches GT', async ({ page }) => { | |
| await page.goto('/about/event/pgconfbe-2026-2564/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_event_pgconfbe_2026_2564: h1 "PGConf.BE 2026"', async ({ page }) => { | |
| await page.goto('/about/event/pgconfbe-2026-2564/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'PGConf.BE 2026' || t.startsWith('PGConf.BE 2026'))).toBeTruthy(); | |
| }); | |
| test('about_event_pgconfbe_2026_2564: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/event/pgconfbe-2026-2564/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('about_event_pgconfbe_2026_2564: nav link "Home"', async ({ page }) => { | |
| await page.goto('/about/event/pgconfbe-2026-2564/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| }); | |
| test('about_event_pgconfbe_2026_2564: nav link "About"', async ({ page }) => { | |
| await page.goto('/about/event/pgconfbe-2026-2564/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_event_pgconfbe_2026_2564: nav link "Download"', async ({ page }) => { | |
| await page.goto('/about/event/pgconfbe-2026-2564/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Download' || t.startsWith('Download')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('download')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_event_pgconfbe_2026_2564: nav link "Documentation"', async ({ page }) => { | |
| await page.goto('/about/event/pgconfbe-2026-2564/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_event_pgday_armenia_2026_2586', () => { | |
| test('about_event_pgday_armenia_2026_2586: page loads without error', async ({ page }) => { | |
| const response = await page.goto('/about/event/pgday-armenia-2026-2586/'); | |
| expect(response?.status()).toBeLessThan(400); | |
| await expect(page.locator('body')).toBeVisible(); | |
| }); | |
| test('about_event_pgday_armenia_2026_2586: title matches GT', async ({ page }) => { | |
| await page.goto('/about/event/pgday-armenia-2026-2586/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_event_pgday_armenia_2026_2586: h1 "PGDay Armenia 2026"', async ({ page }) => { | |
| await page.goto('/about/event/pgday-armenia-2026-2586/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'PGDay Armenia 2026' || t.startsWith('PGDay Armenia 2026'))).toBeTruthy(); | |
| }); | |
| test('about_event_pgday_armenia_2026_2586: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/event/pgday-armenia-2026-2586/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('about_event_pgday_armenia_2026_2586: nav link "Home"', async ({ page }) => { | |
| await page.goto('/about/event/pgday-armenia-2026-2586/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| }); | |
| test('about_event_pgday_armenia_2026_2586: nav link "About"', async ({ page }) => { | |
| await page.goto('/about/event/pgday-armenia-2026-2586/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_event_pgday_armenia_2026_2586: nav link "Download"', async ({ page }) => { | |
| await page.goto('/about/event/pgday-armenia-2026-2586/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Download' || t.startsWith('Download')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('download')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_event_pgday_armenia_2026_2586: nav link "Documentation"', async ({ page }) => { | |
| await page.goto('/about/event/pgday-armenia-2026-2586/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_event_pgday_france_2026_2581', () => { | |
| test('about_event_pgday_france_2026_2581: page loads without error', async ({ page }) => { | |
| const response = await page.goto('/about/event/pgday-france-2026-2581/'); | |
| expect(response?.status()).toBeLessThan(400); | |
| await expect(page.locator('body')).toBeVisible(); | |
| }); | |
| test('about_event_pgday_france_2026_2581: title matches GT', async ({ page }) => { | |
| await page.goto('/about/event/pgday-france-2026-2581/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_event_pgday_france_2026_2581: h1 "PGDay France 2026"', async ({ page }) => { | |
| await page.goto('/about/event/pgday-france-2026-2581/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'PGDay France 2026' || t.startsWith('PGDay France 2026'))).toBeTruthy(); | |
| }); | |
| test('about_event_pgday_france_2026_2581: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/event/pgday-france-2026-2581/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('about_event_pgday_france_2026_2581: nav link "Home"', async ({ page }) => { | |
| await page.goto('/about/event/pgday-france-2026-2581/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| }); | |
| test('about_event_pgday_france_2026_2581: nav link "About"', async ({ page }) => { | |
| await page.goto('/about/event/pgday-france-2026-2581/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_event_pgday_france_2026_2581: nav link "Download"', async ({ page }) => { | |
| await page.goto('/about/event/pgday-france-2026-2581/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Download' || t.startsWith('Download')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('download')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_event_pgday_france_2026_2581: nav link "Documentation"', async ({ page }) => { | |
| await page.goto('/about/event/pgday-france-2026-2581/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_event_postgresql_conference_ankara_2026_2589', () => { | |
| test('about_event_postgresql_conference_ankara_2026_2589: page loads without error', async ({ page }) => { | |
| const response = await page.goto('/about/event/postgresql-conference-ankara-2026-2589/'); | |
| expect(response?.status()).toBeLessThan(400); | |
| await expect(page.locator('body')).toBeVisible(); | |
| }); | |
| test('about_event_postgresql_conference_ankara_2026_2589: title matches GT', async ({ page }) => { | |
| await page.goto('/about/event/postgresql-conference-ankara-2026-2589/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_event_postgresql_conference_ankara_2026_2589: h1 "PostgreSQL Conference Ankara 2"', async ({ page }) => { | |
| await page.goto('/about/event/postgresql-conference-ankara-2026-2589/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'PostgreSQL Conference Ankara 2026' || t.startsWith('PostgreSQL Conference Ankara 2026'))).toBeTruthy(); | |
| }); | |
| test('about_event_postgresql_conference_ankara_2026_2589: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/event/postgresql-conference-ankara-2026-2589/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('about_event_postgresql_conference_ankara_2026_2589: h2 "Overview"', async ({ page }) => { | |
| await page.goto('/about/event/postgresql-conference-ankara-2026-2589/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Overview' || t.startsWith('Overview'))).toBeTruthy(); | |
| }); | |
| test('about_event_postgresql_conference_ankara_2026_2589: h2 "Themes and topics"', async ({ page }) => { | |
| await page.goto('/about/event/postgresql-conference-ankara-2026-2589/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Themes and topics' || t.startsWith('Themes and topics'))).toBeTruthy(); | |
| }); | |
| test('about_event_postgresql_conference_ankara_2026_2589: nav link "Home"', async ({ page }) => { | |
| await page.goto('/about/event/postgresql-conference-ankara-2026-2589/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| }); | |
| test('about_event_postgresql_conference_ankara_2026_2589: nav link "About"', async ({ page }) => { | |
| await page.goto('/about/event/postgresql-conference-ankara-2026-2589/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_event_postgresql_conference_ankara_2026_2589: nav link "Download"', async ({ page }) => { | |
| await page.goto('/about/event/postgresql-conference-ankara-2026-2589/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Download' || t.startsWith('Download')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('download')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_event_postgresql_conference_ankara_2026_2589: nav link "Documentation"', async ({ page }) => { | |
| await page.goto('/about/event/postgresql-conference-ankara-2026-2589/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_event_postgresql_conference_germany_2026_2568', () => { | |
| test('about_event_postgresql_conference_germany_2026_2568: page loads without error', async ({ page }) => { | |
| const response = await page.goto('/about/event/postgresql-conference-germany-2026-2568/'); | |
| expect(response?.status()).toBeLessThan(400); | |
| await expect(page.locator('body')).toBeVisible(); | |
| }); | |
| test('about_event_postgresql_conference_germany_2026_2568: title matches GT', async ({ page }) => { | |
| await page.goto('/about/event/postgresql-conference-germany-2026-2568/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_event_postgresql_conference_germany_2026_2568: h1 "PostgreSQL Conference Germany "', async ({ page }) => { | |
| await page.goto('/about/event/postgresql-conference-germany-2026-2568/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'PostgreSQL Conference Germany 2026' || t.startsWith('PostgreSQL Conference Germany 2026'))).toBeTruthy(); | |
| }); | |
| test('about_event_postgresql_conference_germany_2026_2568: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/event/postgresql-conference-germany-2026-2568/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('about_event_postgresql_conference_germany_2026_2568: nav link "Home"', async ({ page }) => { | |
| await page.goto('/about/event/postgresql-conference-germany-2026-2568/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| }); | |
| test('about_event_postgresql_conference_germany_2026_2568: nav link "About"', async ({ page }) => { | |
| await page.goto('/about/event/postgresql-conference-germany-2026-2568/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_event_postgresql_conference_germany_2026_2568: nav link "Download"', async ({ page }) => { | |
| await page.goto('/about/event/postgresql-conference-germany-2026-2568/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Download' || t.startsWith('Download')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('download')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_event_postgresql_conference_germany_2026_2568: nav link "Documentation"', async ({ page }) => { | |
| await page.goto('/about/event/postgresql-conference-germany-2026-2568/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_event_postgresql_development_conference_2026_pgconfdev_2543', () => { | |
| test('about_event_postgresql_development_conference_2026_pgconfdev_2543: page loads without error', async ({ page }) => { | |
| const response = await page.goto('/about/event/postgresql-development-conference-2026-pgconfdev-2543/'); | |
| expect(response?.status()).toBeLessThan(400); | |
| await expect(page.locator('body')).toBeVisible(); | |
| }); | |
| test('about_event_postgresql_development_conference_2026_pgconfdev_2543: title matches GT', async ({ page }) => { | |
| await page.goto('/about/event/postgresql-development-conference-2026-pgconfdev-2543/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_event_postgresql_development_conference_2026_pgconfdev_2543: h1 "PostgreSQL Development Confere"', async ({ page }) => { | |
| await page.goto('/about/event/postgresql-development-conference-2026-pgconfdev-2543/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'PostgreSQL Development Conference 2026 (pgconf.dev)' || t.startsWith('PostgreSQL Development Conference 2026 (pgconf.dev)'))).toBeTruthy(); | |
| }); | |
| test('about_event_postgresql_development_conference_2026_pgconfdev_2543: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/event/postgresql-development-conference-2026-pgconfdev-2543/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('about_event_postgresql_development_conference_2026_pgconfdev_2543: nav link "Home"', async ({ page }) => { | |
| await page.goto('/about/event/postgresql-development-conference-2026-pgconfdev-2543/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| }); | |
| test('about_event_postgresql_development_conference_2026_pgconfdev_2543: nav link "About"', async ({ page }) => { | |
| await page.goto('/about/event/postgresql-development-conference-2026-pgconfdev-2543/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_event_postgresql_development_conference_2026_pgconfdev_2543: nav link "Download"', async ({ page }) => { | |
| await page.goto('/about/event/postgresql-development-conference-2026-pgconfdev-2543/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Download' || t.startsWith('Download')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('download')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_event_postgresql_development_conference_2026_pgconfdev_2543: nav link "Documentation"', async ({ page }) => { | |
| await page.goto('/about/event/postgresql-development-conference-2026-pgconfdev-2543/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_news_autobase_270_released_3269', () => { | |
| test('about_news_autobase_270_released_3269: page loads without error', async ({ page }) => { | |
| const response = await page.goto('/about/news/autobase-270-released-3269/'); | |
| expect(response?.status()).toBeLessThan(400); | |
| await expect(page.locator('body')).toBeVisible(); | |
| }); | |
| test('about_news_autobase_270_released_3269: title matches GT', async ({ page }) => { | |
| await page.goto('/about/news/autobase-270-released-3269/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_news_autobase_270_released_3269: h1 "Autobase 2.7.0 released"', async ({ page }) => { | |
| await page.goto('/about/news/autobase-270-released-3269/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Autobase 2.7.0 released' || t.startsWith('Autobase 2.7.0 released'))).toBeTruthy(); | |
| }); | |
| test('about_news_autobase_270_released_3269: h1 "About Autobase"', async ({ page }) => { | |
| await page.goto('/about/news/autobase-270-released-3269/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'About Autobase' || t.startsWith('About Autobase'))).toBeTruthy(); | |
| }); | |
| test('about_news_autobase_270_released_3269: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/news/autobase-270-released-3269/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('about_news_autobase_270_released_3269: h2 "✨ Highlights"', async ({ page }) => { | |
| await page.goto('/about/news/autobase-270-released-3269/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === '✨ Highlights' || t.startsWith('✨ Highlights'))).toBeTruthy(); | |
| }); | |
| test('about_news_autobase_270_released_3269: nav link "Home"', async ({ page }) => { | |
| await page.goto('/about/news/autobase-270-released-3269/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| }); | |
| test('about_news_autobase_270_released_3269: nav link "About"', async ({ page }) => { | |
| await page.goto('/about/news/autobase-270-released-3269/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_news_autobase_270_released_3269: nav link "Download"', async ({ page }) => { | |
| await page.goto('/about/news/autobase-270-released-3269/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Download' || t.startsWith('Download')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('download')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_news_autobase_270_released_3269: nav link "Documentation"', async ({ page }) => { | |
| await page.goto('/about/news/autobase-270-released-3269/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_news_dbconvert_streams_20_released_with_postgresql_cdc_and_cross_database_querying_3268', () => { | |
| test('about_news_dbconvert_streams_20_released_with_postgresql_cdc_and_cross_database_querying_3268: page loads without error', async ({ page }) => { | |
| const response = await page.goto('/about/news/dbconvert-streams-20-released-with-postgresql-cdc-and-cross-database-querying-3268/'); | |
| expect(response?.status()).toBeLessThan(400); | |
| await expect(page.locator('body')).toBeVisible(); | |
| }); | |
| test('about_news_dbconvert_streams_20_released_with_postgresql_cdc_and_cross_database_querying_3268: title matches GT', async ({ page }) => { | |
| await page.goto('/about/news/dbconvert-streams-20-released-with-postgresql-cdc-and-cross-database-querying-3268/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_news_dbconvert_streams_20_released_with_postgresql_cdc_and_cross_database_querying_3268: h1 "DBConvert Streams 2.0 released"', async ({ page }) => { | |
| await page.goto('/about/news/dbconvert-streams-20-released-with-postgresql-cdc-and-cross-database-querying-3268/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'DBConvert Streams 2.0 released with PostgreSQL CDC and cross-database querying' || t.startsWith('DBConvert Streams 2.0 released with PostgreSQL CDC and cross-database querying'))).toBeTruthy(); | |
| }); | |
| test('about_news_dbconvert_streams_20_released_with_postgresql_cdc_and_cross_database_querying_3268: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/news/dbconvert-streams-20-released-with-postgresql-cdc-and-cross-database-querying-3268/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('about_news_dbconvert_streams_20_released_with_postgresql_cdc_and_cross_database_querying_3268: nav link "Home"', async ({ page }) => { | |
| await page.goto('/about/news/dbconvert-streams-20-released-with-postgresql-cdc-and-cross-database-querying-3268/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| }); | |
| test('about_news_dbconvert_streams_20_released_with_postgresql_cdc_and_cross_database_querying_3268: nav link "About"', async ({ page }) => { | |
| await page.goto('/about/news/dbconvert-streams-20-released-with-postgresql-cdc-and-cross-database-querying-3268/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_news_dbconvert_streams_20_released_with_postgresql_cdc_and_cross_database_querying_3268: nav link "Download"', async ({ page }) => { | |
| await page.goto('/about/news/dbconvert-streams-20-released-with-postgresql-cdc-and-cross-database-querying-3268/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Download' || t.startsWith('Download')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('download')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_news_dbconvert_streams_20_released_with_postgresql_cdc_and_cross_database_querying_3268: nav link "Documentation"', async ({ page }) => { | |
| await page.goto('/about/news/dbconvert-streams-20-released-with-postgresql-cdc-and-cross-database-querying-3268/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_news_dotconnect_for_postgresql_91_new_release_3260', () => { | |
| test('about_news_dotconnect_for_postgresql_91_new_release_3260: page loads without error', async ({ page }) => { | |
| const response = await page.goto('/about/news/dotconnect-for-postgresql-91-new-release-3260/'); | |
| expect(response?.status()).toBeLessThan(400); | |
| await expect(page.locator('body')).toBeVisible(); | |
| }); | |
| test('about_news_dotconnect_for_postgresql_91_new_release_3260: title matches GT', async ({ page }) => { | |
| await page.goto('/about/news/dotconnect-for-postgresql-91-new-release-3260/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_news_dotconnect_for_postgresql_91_new_release_3260: h1 "dotConnect for PostgreSQL 9.1:"', async ({ page }) => { | |
| await page.goto('/about/news/dotconnect-for-postgresql-91-new-release-3260/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'dotConnect for PostgreSQL 9.1: New Release' || t.startsWith('dotConnect for PostgreSQL 9.1: New Release'))).toBeTruthy(); | |
| }); | |
| test('about_news_dotconnect_for_postgresql_91_new_release_3260: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/news/dotconnect-for-postgresql-91-new-release-3260/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('about_news_dotconnect_for_postgresql_91_new_release_3260: nav link "Home"', async ({ page }) => { | |
| await page.goto('/about/news/dotconnect-for-postgresql-91-new-release-3260/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| }); | |
| test('about_news_dotconnect_for_postgresql_91_new_release_3260: nav link "About"', async ({ page }) => { | |
| await page.goto('/about/news/dotconnect-for-postgresql-91-new-release-3260/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_news_dotconnect_for_postgresql_91_new_release_3260: nav link "Download"', async ({ page }) => { | |
| await page.goto('/about/news/dotconnect-for-postgresql-91-new-release-3260/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Download' || t.startsWith('Download')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('download')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_news_dotconnect_for_postgresql_91_new_release_3260: nav link "Documentation"', async ({ page }) => { | |
| await page.goto('/about/news/dotconnect-for-postgresql-91-new-release-3260/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_news_out_of_cycle_release_scheduled_for_february_26_2026_3241', () => { | |
| test('about_news_out_of_cycle_release_scheduled_for_february_26_2026_3241: page loads without error', async ({ page }) => { | |
| const response = await page.goto('/about/news/out-of-cycle-release-scheduled-for-february-26-2026-3241/'); | |
| expect(response?.status()).toBeLessThan(400); | |
| await expect(page.locator('body')).toBeVisible(); | |
| }); | |
| test('about_news_out_of_cycle_release_scheduled_for_february_26_2026_3241: title matches GT', async ({ page }) => { | |
| await page.goto('/about/news/out-of-cycle-release-scheduled-for-february-26-2026-3241/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_news_out_of_cycle_release_scheduled_for_february_26_2026_3241: h1 "Out-of-cycle release scheduled"', async ({ page }) => { | |
| await page.goto('/about/news/out-of-cycle-release-scheduled-for-february-26-2026-3241/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Out-of-cycle release scheduled for February 26, 2026' || t.startsWith('Out-of-cycle release scheduled for February 26, 2026'))).toBeTruthy(); | |
| }); | |
| test('about_news_out_of_cycle_release_scheduled_for_february_26_2026_3241: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/news/out-of-cycle-release-scheduled-for-february-26-2026-3241/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('about_news_out_of_cycle_release_scheduled_for_february_26_2026_3241: nav link "Home"', async ({ page }) => { | |
| await page.goto('/about/news/out-of-cycle-release-scheduled-for-february-26-2026-3241/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| }); | |
| test('about_news_out_of_cycle_release_scheduled_for_february_26_2026_3241: nav link "About"', async ({ page }) => { | |
| await page.goto('/about/news/out-of-cycle-release-scheduled-for-february-26-2026-3241/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_news_out_of_cycle_release_scheduled_for_february_26_2026_3241: nav link "Download"', async ({ page }) => { | |
| await page.goto('/about/news/out-of-cycle-release-scheduled-for-february-26-2026-3241/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Download' || t.startsWith('Download')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('download')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_news_out_of_cycle_release_scheduled_for_february_26_2026_3241: nav link "Documentation"', async ({ page }) => { | |
| await page.goto('/about/news/out-of-cycle-release-scheduled-for-february-26-2026-3241/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_news_pgconfbe_preliminary_schedule_registrations_open_and_speakers_online_3272', () => { | |
| test('about_news_pgconfbe_preliminary_schedule_registrations_open_and_speakers_online_3272: page loads without error', async ({ page }) => { | |
| const response = await page.goto('/about/news/pgconfbe-preliminary-schedule-registrations-open-and-speakers-online-3272/'); | |
| expect(response?.status()).toBeLessThan(400); | |
| await expect(page.locator('body')).toBeVisible(); | |
| }); | |
| test('about_news_pgconfbe_preliminary_schedule_registrations_open_and_speakers_online_3272: title matches GT', async ({ page }) => { | |
| await page.goto('/about/news/pgconfbe-preliminary-schedule-registrations-open-and-speakers-online-3272/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_news_pgconfbe_preliminary_schedule_registrations_open_and_speakers_online_3272: h1 "PGConf.BE : Preliminary schedu"', async ({ page }) => { | |
| await page.goto('/about/news/pgconfbe-preliminary-schedule-registrations-open-and-speakers-online-3272/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'PGConf.BE : Preliminary schedule, registrations open and speakers online' || t.startsWith('PGConf.BE : Preliminary schedule, registrations open and speakers online'))).toBeTruthy(); | |
| }); | |
| test('about_news_pgconfbe_preliminary_schedule_registrations_open_and_speakers_online_3272: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/news/pgconfbe-preliminary-schedule-registrations-open-and-speakers-online-3272/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('about_news_pgconfbe_preliminary_schedule_registrations_open_and_speakers_online_3272: nav link "Home"', async ({ page }) => { | |
| await page.goto('/about/news/pgconfbe-preliminary-schedule-registrations-open-and-speakers-online-3272/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| }); | |
| test('about_news_pgconfbe_preliminary_schedule_registrations_open_and_speakers_online_3272: nav link "About"', async ({ page }) => { | |
| await page.goto('/about/news/pgconfbe-preliminary-schedule-registrations-open-and-speakers-online-3272/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_news_pgconfbe_preliminary_schedule_registrations_open_and_speakers_online_3272: nav link "Download"', async ({ page }) => { | |
| await page.goto('/about/news/pgconfbe-preliminary-schedule-registrations-open-and-speakers-online-3272/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Download' || t.startsWith('Download')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('download')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_news_pgconfbe_preliminary_schedule_registrations_open_and_speakers_online_3272: nav link "Documentation"', async ({ page }) => { | |
| await page.goto('/about/news/pgconfbe-preliminary-schedule-registrations-open-and-speakers-online-3272/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_news_postgresql_183_179_1613_1517_and_1422_released_3246', () => { | |
| test('about_news_postgresql_183_179_1613_1517_and_1422_released_3246: page loads without error', async ({ page }) => { | |
| const response = await page.goto('/about/news/postgresql-183-179-1613-1517-and-1422-released-3246/'); | |
| expect(response?.status()).toBeLessThan(400); | |
| await expect(page.locator('body')).toBeVisible(); | |
| }); | |
| test('about_news_postgresql_183_179_1613_1517_and_1422_released_3246: title matches GT', async ({ page }) => { | |
| await page.goto('/about/news/postgresql-183-179-1613-1517-and-1422-released-3246/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_news_postgresql_183_179_1613_1517_and_1422_released_3246: h1 "PostgreSQL 18.3, 17.9, 16.13, "', async ({ page }) => { | |
| await page.goto('/about/news/postgresql-183-179-1613-1517-and-1422-released-3246/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'PostgreSQL 18.3, 17.9, 16.13, 15.17, and 14.22 Released!' || t.startsWith('PostgreSQL 18.3, 17.9, 16.13, 15.17, and 14.22 Released!'))).toBeTruthy(); | |
| }); | |
| test('about_news_postgresql_183_179_1613_1517_and_1422_released_3246: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/news/postgresql-183-179-1613-1517-and-1422-released-3246/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('about_news_postgresql_183_179_1613_1517_and_1422_released_3246: h2 "Bug Fixes and Improvements"', async ({ page }) => { | |
| await page.goto('/about/news/postgresql-183-179-1613-1517-and-1422-released-3246/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Bug Fixes and Improvements' || t.startsWith('Bug Fixes and Improvements'))).toBeTruthy(); | |
| }); | |
| test('about_news_postgresql_183_179_1613_1517_and_1422_released_3246: h2 "Updating"', async ({ page }) => { | |
| await page.goto('/about/news/postgresql-183-179-1613-1517-and-1422-released-3246/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Updating' || t.startsWith('Updating'))).toBeTruthy(); | |
| }); | |
| test('about_news_postgresql_183_179_1613_1517_and_1422_released_3246: nav link "Home"', async ({ page }) => { | |
| await page.goto('/about/news/postgresql-183-179-1613-1517-and-1422-released-3246/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| }); | |
| test('about_news_postgresql_183_179_1613_1517_and_1422_released_3246: nav link "About"', async ({ page }) => { | |
| await page.goto('/about/news/postgresql-183-179-1613-1517-and-1422-released-3246/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_news_postgresql_183_179_1613_1517_and_1422_released_3246: nav link "Download"', async ({ page }) => { | |
| await page.goto('/about/news/postgresql-183-179-1613-1517-and-1422-released-3246/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Download' || t.startsWith('Download')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('download')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_news_postgresql_183_179_1613_1517_and_1422_released_3246: nav link "Documentation"', async ({ page }) => { | |
| await page.goto('/about/news/postgresql-183-179-1613-1517-and-1422-released-3246/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_news_swiss_pgday_2026_open_for_registration_3273', () => { | |
| test('about_news_swiss_pgday_2026_open_for_registration_3273: page loads without error', async ({ page }) => { | |
| const response = await page.goto('/about/news/swiss-pgday-2026-open-for-registration-3273/'); | |
| expect(response?.status()).toBeLessThan(400); | |
| await expect(page.locator('body')).toBeVisible(); | |
| }); | |
| test('about_news_swiss_pgday_2026_open_for_registration_3273: title matches GT', async ({ page }) => { | |
| await page.goto('/about/news/swiss-pgday-2026-open-for-registration-3273/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_news_swiss_pgday_2026_open_for_registration_3273: h1 "Swiss PGDay 2026: Open for reg"', async ({ page }) => { | |
| await page.goto('/about/news/swiss-pgday-2026-open-for-registration-3273/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Swiss PGDay 2026: Open for registration' || t.startsWith('Swiss PGDay 2026: Open for registration'))).toBeTruthy(); | |
| }); | |
| test('about_news_swiss_pgday_2026_open_for_registration_3273: h1 "Swiss PGDay 2026"', async ({ page }) => { | |
| await page.goto('/about/news/swiss-pgday-2026-open-for-registration-3273/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Swiss PGDay 2026' || t.startsWith('Swiss PGDay 2026'))).toBeTruthy(); | |
| }); | |
| test('about_news_swiss_pgday_2026_open_for_registration_3273: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/news/swiss-pgday-2026-open-for-registration-3273/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('about_news_swiss_pgday_2026_open_for_registration_3273: h2 "Registration Now Open"', async ({ page }) => { | |
| await page.goto('/about/news/swiss-pgday-2026-open-for-registration-3273/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Registration Now Open' || t.startsWith('Registration Now Open'))).toBeTruthy(); | |
| }); | |
| test('about_news_swiss_pgday_2026_open_for_registration_3273: nav link "Home"', async ({ page }) => { | |
| await page.goto('/about/news/swiss-pgday-2026-open-for-registration-3273/'); | |
| const links = page.locator('nav 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 nav').toBeTruthy(); | |
| }); | |
| test('about_news_swiss_pgday_2026_open_for_registration_3273: nav link "About"', async ({ page }) => { | |
| await page.goto('/about/news/swiss-pgday-2026-open-for-registration-3273/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_news_swiss_pgday_2026_open_for_registration_3273: nav link "Download"', async ({ page }) => { | |
| await page.goto('/about/news/swiss-pgday-2026-open-for-registration-3273/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Download' || t.startsWith('Download')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('download')), 'href fragment present').toBeTruthy(); | |
| }); | |
| test('about_news_swiss_pgday_2026_open_for_registration_3273: nav link "Documentation"', async ({ page }) => { | |
| await page.goto('/about/news/swiss-pgday-2026-open-for-registration-3273/'); | |
| const links = page.locator('nav a'); | |
| const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Documentation' || t.startsWith('Documentation')), 'link text in nav').toBeTruthy(); | |
| const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase())); | |
| expect(hrefs.some(h => h.includes('docs')), 'href fragment present').toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_policies_coc', () => { | |
| test('about_policies_coc: title matches GT', async ({ page }) => { | |
| await page.goto('/about/policies/coc/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_policies_coc: h1 "Translations"', async ({ page }) => { | |
| await page.goto('/about/policies/coc/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Translations' || t.startsWith('Translations'))).toBeTruthy(); | |
| }); | |
| test('about_policies_coc: h1 "Committee"', async ({ page }) => { | |
| await page.goto('/about/policies/coc/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Committee' || t.startsWith('Committee'))).toBeTruthy(); | |
| }); | |
| test('about_policies_coc: h1 "Annual Reports"', async ({ page }) => { | |
| await page.goto('/about/policies/coc/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Annual Reports' || t.startsWith('Annual Reports'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_policies_conferences', () => { | |
| test('about_policies_conferences: title matches GT', async ({ page }) => { | |
| await page.goto('/about/policies/conferences/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_policies_conferences: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/policies/conferences/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('about_policies_conferences: h3 "General"', async ({ page }) => { | |
| await page.goto('/about/policies/conferences/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'General' || t.startsWith('General'))).toBeTruthy(); | |
| }); | |
| test('about_policies_conferences: h3 "Organisers"', async ({ page }) => { | |
| await page.goto('/about/policies/conferences/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Organisers' || t.startsWith('Organisers'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - about_policies_npos', () => { | |
| test('about_policies_npos: title matches GT', async ({ page }) => { | |
| await page.goto('/about/policies/npos/'); | |
| const t = (await page.title()).toLowerCase(); | |
| expect(t).toContain('postgresql'); | |
| }); | |
| test('about_policies_npos: h1 "Recognised PostgreSQL Nonprofi"', async ({ page }) => { | |
| await page.goto('/about/policies/npos/'); | |
| const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Recognised PostgreSQL Nonprofit Organisations' || t.startsWith('Recognised PostgreSQL Nonprofit Organisations'))).toBeTruthy(); | |
| }); | |
| test('about_policies_npos: h2 "Quick Links"', async ({ page }) => { | |
| await page.goto('/about/policies/npos/'); | |
| const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Quick Links' || t.startsWith('Quick Links'))).toBeTruthy(); | |
| }); | |
| test('about_policies_npos: h3 "General"', async ({ page }) => { | |
| await page.goto('/about/policies/npos/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'General' || t.startsWith('General'))).toBeTruthy(); | |
| }); | |
| test('about_policies_npos: h3 "Membership"', async ({ page }) => { | |
| await page.goto('/about/policies/npos/'); | |
| const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim()); | |
| expect(texts.some(t => t === 'Membership' || t.startsWith('Membership'))).toBeTruthy(); | |
| }); | |
| }); | |
| test.describe('Functional - Routing', () => { | |
| test('navigate to about via "About"', async ({ page }) => { | |
| await page.goto('/'); | |
| const link = page.locator('a[href*="about"]').first(); | |
| expect(await link.count(), 'nav link to about exists').toBeGreaterThan(0); | |
| await link.click(); | |
| await page.waitForTimeout(1200); | |
| expect(page.url().toLowerCase(), 'URL changed to destination').toContain('about'); | |
| const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' '); | |
| expect(bodyText, 'destination distinctive content shown').toContain('About'); | |
| }); | |
| }); | |