RecreationBench / web /sonivex.example /tests /static /content.scripted.spec.ts
VoyagerXHF's picture
Upload folder using huggingface_hub (part 74)
0fd83e9 verified
Raw History Blame Contribute Delete
325 kB
import { test, expect } from '@playwright/test';
test.describe('Functional - homepage', () => {
test('homepage: h1 "Sonivex"', async ({ page }) => {
await page.goto('/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('homepage: h2 "menu"', async ({ page }) => {
await page.goto('/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('homepage: h2 "Grip 3"', async ({ page }) => {
await page.goto('/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3' || t.startsWith('Grip 3'))).toBeTruthy();
});
test('homepage: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('homepage: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('homepage: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - about', () => {
test('about: title matches GT', async ({ page }) => {
await page.goto('/about/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('about sonivex');
});
test('about: h1 "Sonivex"', async ({ page }) => {
await page.goto('/about/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('about: h2 "menu"', 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 === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('about: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/about/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('about: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/about/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('about: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/about/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - artists', () => {
test('artists: title matches GT', async ({ page }) => {
await page.goto('/artists/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex featured artists');
});
test('artists: h1 "Sonivex"', async ({ page }) => {
await page.goto('/artists/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('artists: h2 "menu"', async ({ page }) => {
await page.goto('/artists/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('artists: h2 "Featured artists"', async ({ page }) => {
await page.goto('/artists/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Featured artists' || t.startsWith('Featured artists'))).toBeTruthy();
});
test('artists: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/artists/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('artists: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/artists/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('artists: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/artists/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - download', () => {
test('download: title matches GT', async ({ page }) => {
await page.goto('/download/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex download vst vst3 au clap aax au');
});
test('download: h1 "Sonivex"', async ({ page }) => {
await page.goto('/download/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('download: h2 "menu"', 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 === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('download: h2 "Download Sonivex Total bundle"', 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 === 'Download Sonivex Total bundle' || t.startsWith('Download Sonivex Total bundle'))).toBeTruthy();
});
test('download: h2 "Studio-grade mixing and master"', 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 === 'Studio-grade mixing and mastering tools' || t.startsWith('Studio-grade mixing and mastering tools'))).toBeTruthy();
});
test('download: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/download/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('download: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/download/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('download: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/download/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - forum', () => {
test('forum: title matches GT', async ({ page }) => {
await page.goto('/forum/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex user forum');
});
test('forum: h2 "menu"', async ({ page }) => {
await page.goto('/forum/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('forum: h2 "Sonivex User Forum"', async ({ page }) => {
await page.goto('/forum/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex User Forum' || t.startsWith('Sonivex User Forum'))).toBeTruthy();
});
test('forum: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/forum/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('forum: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/forum/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('forum: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/forum/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help', () => {
test('help: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help: h2 "menu"', async ({ page }) => {
await page.goto('/help/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help: h2 "Product help and PDF manuals"', async ({ page }) => {
await page.goto('/help/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product help and PDF manuals' || t.startsWith('Product help and PDF manuals'))).toBeTruthy();
});
test('help: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - jobs', () => {
test('jobs: title matches GT', async ({ page }) => {
await page.goto('/jobs/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('career openings at sonivex');
});
test('jobs: h1 "Sonivex"', async ({ page }) => {
await page.goto('/jobs/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('jobs: h2 "menu"', async ({ page }) => {
await page.goto('/jobs/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('jobs: h2 "Career openings at Sonivex"', async ({ page }) => {
await page.goto('/jobs/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Career openings at Sonivex' || t.startsWith('Career openings at Sonivex'))).toBeTruthy();
});
test('jobs: h2 "Operations Head"', async ({ page }) => {
await page.goto('/jobs/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Operations Head' || t.startsWith('Operations Head'))).toBeTruthy();
});
test('jobs: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/jobs/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('jobs: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/jobs/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('jobs: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/jobs/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - learn', () => {
test('learn: title matches GT', async ({ page }) => {
await page.goto('/learn/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex learn');
});
test('learn: h1 "Sonivex"', async ({ page }) => {
await page.goto('/learn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('learn: h1 "Featured Articles"', async ({ page }) => {
await page.goto('/learn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Featured Articles' || t.startsWith('Featured Articles'))).toBeTruthy();
});
test('learn: h1 "Watch and learn"', async ({ page }) => {
await page.goto('/learn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Watch and learn' || t.startsWith('Watch and learn'))).toBeTruthy();
});
test('learn: h2 "menu"', async ({ page }) => {
await page.goto('/learn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('learn: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/learn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('learn: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/learn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('learn: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/learn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - license_agreement', () => {
test('license_agreement: title matches GT', async ({ page }) => {
await page.goto('/license-agreement/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('license agreement');
});
test('license_agreement: h1 "Sonivex"', async ({ page }) => {
await page.goto('/license-agreement/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('license_agreement: h2 "menu"', async ({ page }) => {
await page.goto('/license-agreement/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('license_agreement: h2 "License Agreement"', async ({ page }) => {
await page.goto('/license-agreement/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'License Agreement' || t.startsWith('License Agreement'))).toBeTruthy();
});
test('license_agreement: h2 "Applicability"', async ({ page }) => {
await page.goto('/license-agreement/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Applicability' || t.startsWith('Applicability'))).toBeTruthy();
});
test('license_agreement: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/license-agreement/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('license_agreement: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/license-agreement/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('license_agreement: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/license-agreement/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - myaccount', () => {
test('myaccount: title matches GT', async ({ page }) => {
await page.goto('/myaccount/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('my sonivex account');
});
test('myaccount: h1 "Sonivex"', async ({ page }) => {
await page.goto('/myaccount/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('myaccount: h2 "menu"', async ({ page }) => {
await page.goto('/myaccount/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('myaccount: h2 "My Sonivex Account"', async ({ page }) => {
await page.goto('/myaccount/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'My Sonivex Account' || t.startsWith('My Sonivex Account'))).toBeTruthy();
});
test('myaccount: h2 "Sign in to your account"', async ({ page }) => {
await page.goto('/myaccount/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sign in to your account' || t.startsWith('Sign in to your account'))).toBeTruthy();
});
test('myaccount: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/myaccount/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('myaccount: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/myaccount/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('myaccount: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/myaccount/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - news', () => {
test('news: h2 "menu"', async ({ page }) => {
await page.goto('/news/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('news: h2 "Sonivex News"', async ({ page }) => {
await page.goto('/news/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex News' || t.startsWith('Sonivex News'))).toBeTruthy();
});
test('news: h2 "Minor bug fixes across all plu"', async ({ page }) => {
await page.goto('/news/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Minor bug fixes across all plug-ins' || t.startsWith('Minor bug fixes across all plug-ins'))).toBeTruthy();
});
test('news: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/news/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('news: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/news/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('news: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/news/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - press', () => {
test('press: title matches GT', async ({ page }) => {
await page.goto('/press/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('press room');
});
test('press: h2 "menu"', async ({ page }) => {
await page.goto('/press/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('press: h2 "Sonivex Press Room"', async ({ page }) => {
await page.goto('/press/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Press Room' || t.startsWith('Sonivex Press Room'))).toBeTruthy();
});
test('press: h2 "Get our press kits"', async ({ page }) => {
await page.goto('/press/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get our press kits' || t.startsWith('Get our press kits'))).toBeTruthy();
});
test('press: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/press/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('press: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/press/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('press: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/press/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - privacy_policy', () => {
test('privacy_policy: title matches GT', async ({ page }) => {
await page.goto('/privacy-policy/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('privacy policy');
});
test('privacy_policy: h1 "Sonivex"', async ({ page }) => {
await page.goto('/privacy-policy/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('privacy_policy: h2 "menu"', async ({ page }) => {
await page.goto('/privacy-policy/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('privacy_policy: h2 "Privacy policy"', async ({ page }) => {
await page.goto('/privacy-policy/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Privacy policy' || t.startsWith('Privacy policy'))).toBeTruthy();
});
test('privacy_policy: h2 "Controller of your personal da"', async ({ page }) => {
await page.goto('/privacy-policy/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Controller of your personal data' || t.startsWith('Controller of your personal data'))).toBeTruthy();
});
test('privacy_policy: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/privacy-policy/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('privacy_policy: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/privacy-policy/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('privacy_policy: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/privacy-policy/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products', () => {
test('products: title matches GT', async ({ page }) => {
await page.goto('/products/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex plug');
});
test('products: h2 "menu"', async ({ page }) => {
await page.goto('/products/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('products: h2 "Precision tools for mixing and"', async ({ page }) => {
await page.goto('/products/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Precision tools for mixing and mastering' || t.startsWith('Precision tools for mixing and mastering'))).toBeTruthy();
});
test('products: h2 "Inventive effect and synthesiz"', async ({ page }) => {
await page.goto('/products/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Inventive effect and synthesizer plug-ins' || t.startsWith('Inventive effect and synthesizer plug-ins'))).toBeTruthy();
});
test('products: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/products/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('products: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/products/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('products: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/products/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - quotes', () => {
test('quotes: h1 "Sonivex"', async ({ page }) => {
await page.goto('/quotes/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('quotes: h2 "menu"', async ({ page }) => {
await page.goto('/quotes/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('quotes: h2 "Press Quotes"', async ({ page }) => {
await page.goto('/quotes/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Press Quotes' || t.startsWith('Press Quotes'))).toBeTruthy();
});
test('quotes: h2 "Sonivex Contour 4"', async ({ page }) => {
await page.goto('/quotes/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Contour 4' || t.startsWith('Sonivex Contour 4'))).toBeTruthy();
});
test('quotes: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/quotes/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('quotes: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/quotes/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('quotes: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/quotes/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - shop', () => {
test('shop: page loads without error', async ({ page }) => {
const response = await page.goto('/shop/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('shop: title matches GT', async ({ page }) => {
await page.goto('/shop/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex shop');
});
test('shop: h1 "Sonivex"', async ({ page }) => {
await page.goto('/shop/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('shop: h2 "menu"', async ({ page }) => {
await page.goto('/shop/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('shop: h2 "Total bundle MacOS & Windows"', async ({ page }) => {
await page.goto('/shop/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Total bundle MacOS & Windows' || t.startsWith('Total bundle MacOS & Windows'))).toBeTruthy();
});
test('shop: h2 "Bundles"', async ({ page }) => {
await page.goto('/shop/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Bundles' || t.startsWith('Bundles'))).toBeTruthy();
});
test('shop: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/shop/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('shop: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/shop/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('shop: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/shop/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('shop: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/shop/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').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('sonivex support');
});
test('support: h1 "Sonivex"', 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 === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('support: h2 "menu"', 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 === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('support: h2 "Support Center"', 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 === 'Support Center' || t.startsWith('Support Center'))).toBeTruthy();
});
test('support: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/support/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('support: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/support/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('support: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/support/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - terms_of_use', () => {
test('terms_of_use: title matches GT', async ({ page }) => {
await page.goto('/terms-of-use/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('terms of use');
});
test('terms_of_use: h1 "Sonivex"', async ({ page }) => {
await page.goto('/terms-of-use/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('terms_of_use: h2 "menu"', async ({ page }) => {
await page.goto('/terms-of-use/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('terms_of_use: h2 "Terms of use"', async ({ page }) => {
await page.goto('/terms-of-use/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Terms of use' || t.startsWith('Terms of use'))).toBeTruthy();
});
test('terms_of_use: h2 "Ownership and content rights"', async ({ page }) => {
await page.goto('/terms-of-use/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Ownership and content rights' || t.startsWith('Ownership and content rights'))).toBeTruthy();
});
test('terms_of_use: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/terms-of-use/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('terms_of_use: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/terms-of-use/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('terms_of_use: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/terms-of-use/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - artists_dana_nielsen', () => {
test('artists_dana_nielsen: title matches GT', async ({ page }) => {
await page.goto('/artists/dana-nielsen/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('elias thorne');
});
test('artists_dana_nielsen: h1 "Sonivex"', async ({ page }) => {
await page.goto('/artists/dana-nielsen/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('artists_dana_nielsen: h2 "menu"', async ({ page }) => {
await page.goto('/artists/dana-nielsen/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('artists_dana_nielsen: h2 "Elias Thorne"', async ({ page }) => {
await page.goto('/artists/dana-nielsen/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Elias Thorne' || t.startsWith('Elias Thorne'))).toBeTruthy();
});
test('artists_dana_nielsen: h2 "Elias Thorne and Sonivex"', async ({ page }) => {
await page.goto('/artists/dana-nielsen/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Elias Thorne and Sonivex' || t.startsWith('Elias Thorne and Sonivex'))).toBeTruthy();
});
test('artists_dana_nielsen: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/artists/dana-nielsen/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('artists_dana_nielsen: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/artists/dana-nielsen/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('artists_dana_nielsen: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/artists/dana-nielsen/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - artists_dave_pensado', () => {
test('artists_dave_pensado: title matches GT', async ({ page }) => {
await page.goto('/artists/dave-pensado/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('rowan merrick');
});
test('artists_dave_pensado: h1 "Sonivex"', async ({ page }) => {
await page.goto('/artists/dave-pensado/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('artists_dave_pensado: h2 "menu"', async ({ page }) => {
await page.goto('/artists/dave-pensado/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('artists_dave_pensado: h2 "Rowan Merrick"', async ({ page }) => {
await page.goto('/artists/dave-pensado/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Rowan Merrick' || t.startsWith('Rowan Merrick'))).toBeTruthy();
});
test('artists_dave_pensado: h2 "Rowan Merrick and Sonivex"', async ({ page }) => {
await page.goto('/artists/dave-pensado/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Rowan Merrick and Sonivex' || t.startsWith('Rowan Merrick and Sonivex'))).toBeTruthy();
});
test('artists_dave_pensado: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/artists/dave-pensado/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('artists_dave_pensado: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/artists/dave-pensado/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('artists_dave_pensado: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/artists/dave-pensado/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - artists_dj_nu_mark', () => {
test('artists_dj_nu_mark: title matches GT', async ({ page }) => {
await page.goto('/artists/dj-nu-mark/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('dj kova reed');
});
test('artists_dj_nu_mark: h1 "Sonivex"', async ({ page }) => {
await page.goto('/artists/dj-nu-mark/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('artists_dj_nu_mark: h2 "menu"', async ({ page }) => {
await page.goto('/artists/dj-nu-mark/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('artists_dj_nu_mark: h2 "DJ Kova Reed"', async ({ page }) => {
await page.goto('/artists/dj-nu-mark/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'DJ Kova Reed' || t.startsWith('DJ Kova Reed'))).toBeTruthy();
});
test('artists_dj_nu_mark: h2 "DJ Kova Reed and Sonivex"', async ({ page }) => {
await page.goto('/artists/dj-nu-mark/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'DJ Kova Reed and Sonivex' || t.startsWith('DJ Kova Reed and Sonivex'))).toBeTruthy();
});
test('artists_dj_nu_mark: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/artists/dj-nu-mark/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('artists_dj_nu_mark: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/artists/dj-nu-mark/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('artists_dj_nu_mark: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/artists/dj-nu-mark/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - artists_tony_maserati', () => {
test('artists_tony_maserati: title matches GT', async ({ page }) => {
await page.goto('/artists/tony-maserati/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('marcus rhodes');
});
test('artists_tony_maserati: h1 "Sonivex"', async ({ page }) => {
await page.goto('/artists/tony-maserati/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('artists_tony_maserati: h2 "menu"', async ({ page }) => {
await page.goto('/artists/tony-maserati/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('artists_tony_maserati: h2 "Marcus Rhodes"', async ({ page }) => {
await page.goto('/artists/tony-maserati/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Marcus Rhodes' || t.startsWith('Marcus Rhodes'))).toBeTruthy();
});
test('artists_tony_maserati: h2 "Marcus Rhodes and Sonivex"', async ({ page }) => {
await page.goto('/artists/tony-maserati/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Marcus Rhodes and Sonivex' || t.startsWith('Marcus Rhodes and Sonivex'))).toBeTruthy();
});
test('artists_tony_maserati: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/artists/tony-maserati/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('artists_tony_maserati: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/artists/tony-maserati/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('artists_tony_maserati: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/artists/tony-maserati/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_c', () => {
test('help_pro_c: title matches GT', async ({ page }) => {
await page.goto('/help/pro-c/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex grip 3 help');
});
test('help_pro_c: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-c/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_c: h1 "About Sonivex Grip 3"', async ({ page }) => {
await page.goto('/help/pro-c/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'About Sonivex Grip 3' || t.startsWith('About Sonivex Grip 3'))).toBeTruthy();
});
test('help_pro_c: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-c/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_c: h2 "Sonivex Grip 3 online help"', async ({ page }) => {
await page.goto('/help/pro-c/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Grip 3 online help' || t.startsWith('Sonivex Grip 3 online help'))).toBeTruthy();
});
test('help_pro_c: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-c/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_c: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-c/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_c: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-c/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_q', () => {
test('help_pro_q: title matches GT', async ({ page }) => {
await page.goto('/help/pro-q/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex contour 4 help');
});
test('help_pro_q: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-q/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_q: h1 "About Sonivex Contour 4"', async ({ page }) => {
await page.goto('/help/pro-q/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'About Sonivex Contour 4' || t.startsWith('About Sonivex Contour 4'))).toBeTruthy();
});
test('help_pro_q: h2 "Menu"', async ({ page }) => {
await page.goto('/help/pro-q/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Menu' || t.startsWith('Menu'))).toBeTruthy();
});
test('help_pro_q: h2 "Sonivex Contour 4 online help"', async ({ page }) => {
await page.goto('/help/pro-q/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Contour 4 online help' || t.startsWith('Sonivex Contour 4 online help'))).toBeTruthy();
});
test('help_pro_q: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-q/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_q: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-q/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_q: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-q/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - learn_compression', () => {
test('learn_compression: title matches GT', async ({ page }) => {
await page.goto('/learn/compression/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex learn');
});
test('learn_compression: h1 "Sonivex"', async ({ page }) => {
await page.goto('/learn/compression/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('learn_compression: h2 "menu"', async ({ page }) => {
await page.goto('/learn/compression/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('learn_compression: h2 "Compression"', async ({ page }) => {
await page.goto('/learn/compression/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Compression' || t.startsWith('Compression'))).toBeTruthy();
});
test('learn_compression: h2 "An introduction to compression"', async ({ page }) => {
await page.goto('/learn/compression/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'An introduction to compression' || t.startsWith('An introduction to compression'))).toBeTruthy();
});
test('learn_compression: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/learn/compression/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('learn_compression: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/learn/compression/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('learn_compression: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/learn/compression/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - learn_equalization', () => {
test('learn_equalization: title matches GT', async ({ page }) => {
await page.goto('/learn/equalization/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex learn');
});
test('learn_equalization: h1 "Sonivex"', async ({ page }) => {
await page.goto('/learn/equalization/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('learn_equalization: h2 "menu"', async ({ page }) => {
await page.goto('/learn/equalization/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('learn_equalization: h2 "Equalization"', async ({ page }) => {
await page.goto('/learn/equalization/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Equalization' || t.startsWith('Equalization'))).toBeTruthy();
});
test('learn_equalization: h2 "Getting to know EQ"', async ({ page }) => {
await page.goto('/learn/equalization/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Getting to know EQ' || t.startsWith('Getting to know EQ'))).toBeTruthy();
});
test('learn_equalization: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/learn/equalization/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('learn_equalization: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/learn/equalization/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('learn_equalization: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/learn/equalization/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - learn_mixing', () => {
test('learn_mixing: title matches GT', async ({ page }) => {
await page.goto('/learn/mixing/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex learn');
});
test('learn_mixing: h1 "Sonivex"', async ({ page }) => {
await page.goto('/learn/mixing/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('learn_mixing: h2 "menu"', async ({ page }) => {
await page.goto('/learn/mixing/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('learn_mixing: h2 "Mixing"', async ({ page }) => {
await page.goto('/learn/mixing/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing' || t.startsWith('Mixing'))).toBeTruthy();
});
test('learn_mixing: h2 "Building a mix: finding your f"', async ({ page }) => {
await page.goto('/learn/mixing/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Building a mix: finding your footing' || t.startsWith('Building a mix: finding your footing'))).toBeTruthy();
});
test('learn_mixing: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/learn/mixing/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('learn_mixing: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/learn/mixing/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('learn_mixing: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/learn/mixing/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - learn_reverb', () => {
test('learn_reverb: title matches GT', async ({ page }) => {
await page.goto('/learn/reverb/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex learn');
});
test('learn_reverb: h1 "Sonivex"', async ({ page }) => {
await page.goto('/learn/reverb/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('learn_reverb: h2 "menu"', async ({ page }) => {
await page.goto('/learn/reverb/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('learn_reverb: h2 "Reverb"', async ({ page }) => {
await page.goto('/learn/reverb/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Reverb' || t.startsWith('Reverb'))).toBeTruthy();
});
test('learn_reverb: h2 "Understanding reverb"', async ({ page }) => {
await page.goto('/learn/reverb/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Understanding reverb' || t.startsWith('Understanding reverb'))).toBeTruthy();
});
test('learn_reverb: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/learn/reverb/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('learn_reverb: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/learn/reverb/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('learn_reverb: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/learn/reverb/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - learn_science_of_sound', () => {
test('learn_science_of_sound: title matches GT', async ({ page }) => {
await page.goto('/learn/science-of-sound/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex learn');
});
test('learn_science_of_sound: h1 "Sonivex"', async ({ page }) => {
await page.goto('/learn/science-of-sound/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('learn_science_of_sound: h2 "menu"', async ({ page }) => {
await page.goto('/learn/science-of-sound/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('learn_science_of_sound: h2 "The Science Of Sound"', async ({ page }) => {
await page.goto('/learn/science-of-sound/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The Science Of Sound' || t.startsWith('The Science Of Sound'))).toBeTruthy();
});
test('learn_science_of_sound: h2 "Wave theory fundamentals"', async ({ page }) => {
await page.goto('/learn/science-of-sound/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Wave theory fundamentals' || t.startsWith('Wave theory fundamentals'))).toBeTruthy();
});
test('learn_science_of_sound: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/learn/science-of-sound/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('learn_science_of_sound: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/learn/science-of-sound/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('learn_science_of_sound: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/learn/science-of-sound/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - learn_synthesis_and_sound_design', () => {
test('learn_synthesis_and_sound_design: title matches GT', async ({ page }) => {
await page.goto('/learn/synthesis-and-sound-design/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex learn');
});
test('learn_synthesis_and_sound_design: h1 "Sonivex"', async ({ page }) => {
await page.goto('/learn/synthesis-and-sound-design/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('learn_synthesis_and_sound_design: h2 "menu"', async ({ page }) => {
await page.goto('/learn/synthesis-and-sound-design/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('learn_synthesis_and_sound_design: h2 "Synthesis And Sound Design"', async ({ page }) => {
await page.goto('/learn/synthesis-and-sound-design/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Synthesis And Sound Design' || t.startsWith('Synthesis And Sound Design'))).toBeTruthy();
});
test('learn_synthesis_and_sound_design: h2 "Fundamentals: Subtractive"', async ({ page }) => {
await page.goto('/learn/synthesis-and-sound-design/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fundamentals: Subtractive' || t.startsWith('Fundamentals: Subtractive'))).toBeTruthy();
});
test('learn_synthesis_and_sound_design: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/learn/synthesis-and-sound-design/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('learn_synthesis_and_sound_design: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/learn/synthesis-and-sound-design/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('learn_synthesis_and_sound_design: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/learn/synthesis-and-sound-design/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - learn_videos', () => {
test('learn_videos: title matches GT', async ({ page }) => {
await page.goto('/learn/videos/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex video tutorials');
});
test('learn_videos: h2 "menu"', async ({ page }) => {
await page.goto('/learn/videos/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('learn_videos: h2 "Sonivex Contour 4 equalizer tu"', async ({ page }) => {
await page.goto('/learn/videos/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Contour 4 equalizer tutorial' || t.startsWith('Sonivex Contour 4 equalizer tutorial'))).toBeTruthy();
});
test('learn_videos: h2 "Mastering, mixing and beyond"', async ({ page }) => {
await page.goto('/learn/videos/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mastering, mixing and beyond' || t.startsWith('Mastering, mixing and beyond'))).toBeTruthy();
});
test('learn_videos: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/learn/videos/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('learn_videos: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/learn/videos/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('learn_videos: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/learn/videos/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products_micro_mini_filter_plug_in', () => {
test('products_micro_mini_filter_plug_in: title matches GT', async ({ page }) => {
await page.goto('/products/micro-mini-filter-plug-in/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex nano');
});
test('products_micro_mini_filter_plug_in: h1 "Sonivex"', async ({ page }) => {
await page.goto('/products/micro-mini-filter-plug-in/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('products_micro_mini_filter_plug_in: h2 "menu"', async ({ page }) => {
await page.goto('/products/micro-mini-filter-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('products_micro_mini_filter_plug_in: h2 "Nano"', async ({ page }) => {
await page.goto('/products/micro-mini-filter-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Nano' || t.startsWith('Nano'))).toBeTruthy();
});
test('products_micro_mini_filter_plug_in: h2 "The signature Sonivex sound"', async ({ page }) => {
await page.goto('/products/micro-mini-filter-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The signature Sonivex sound' || t.startsWith('The signature Sonivex sound'))).toBeTruthy();
});
test('products_micro_mini_filter_plug_in: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/products/micro-mini-filter-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('products_micro_mini_filter_plug_in: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/products/micro-mini-filter-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('products_micro_mini_filter_plug_in: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/products/micro-mini-filter-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products_one_basic_synthesizer_plug_in', () => {
test('products_one_basic_synthesizer_plug_in: title matches GT', async ({ page }) => {
await page.goto('/products/one-basic-synthesizer-plug-in/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex mono');
});
test('products_one_basic_synthesizer_plug_in: h1 "Sonivex"', async ({ page }) => {
await page.goto('/products/one-basic-synthesizer-plug-in/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('products_one_basic_synthesizer_plug_in: h2 "menu"', async ({ page }) => {
await page.goto('/products/one-basic-synthesizer-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('products_one_basic_synthesizer_plug_in: h2 "Mono"', async ({ page }) => {
await page.goto('/products/one-basic-synthesizer-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mono' || t.startsWith('Mono'))).toBeTruthy();
});
test('products_one_basic_synthesizer_plug_in: h2 "Rich oscillators, distinctive "', async ({ page }) => {
await page.goto('/products/one-basic-synthesizer-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Rich oscillators, distinctive filters' || t.startsWith('Rich oscillators, distinctive filters'))).toBeTruthy();
});
test('products_one_basic_synthesizer_plug_in: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/products/one-basic-synthesizer-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('products_one_basic_synthesizer_plug_in: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/products/one-basic-synthesizer-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('products_one_basic_synthesizer_plug_in: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/products/one-basic-synthesizer-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products_pro_c_3_compressor_plug_in', () => {
test('products_pro_c_3_compressor_plug_in: title matches GT', async ({ page }) => {
await page.goto('/products/pro-c-3-compressor-plug-in/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex grip 3');
});
test('products_pro_c_3_compressor_plug_in: h1 "Sonivex"', async ({ page }) => {
await page.goto('/products/pro-c-3-compressor-plug-in/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('products_pro_c_3_compressor_plug_in: h2 "menu"', async ({ page }) => {
await page.goto('/products/pro-c-3-compressor-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('products_pro_c_3_compressor_plug_in: h2 "Grip 3"', async ({ page }) => {
await page.goto('/products/pro-c-3-compressor-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3' || t.startsWith('Grip 3'))).toBeTruthy();
});
test('products_pro_c_3_compressor_plug_in: h2 "Remarkable tone and personalit"', async ({ page }) => {
await page.goto('/products/pro-c-3-compressor-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Remarkable tone and personality' || t.startsWith('Remarkable tone and personality'))).toBeTruthy();
});
test('products_pro_c_3_compressor_plug_in: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/products/pro-c-3-compressor-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('products_pro_c_3_compressor_plug_in: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/products/pro-c-3-compressor-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('products_pro_c_3_compressor_plug_in: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/products/pro-c-3-compressor-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products_pro_ds_de_esser_plug_in', () => {
test('products_pro_ds_de_esser_plug_in: title matches GT', async ({ page }) => {
await page.goto('/products/pro-ds-de-esser-plug-in/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex sibil');
});
test('products_pro_ds_de_esser_plug_in: h1 "Sonivex"', async ({ page }) => {
await page.goto('/products/pro-ds-de-esser-plug-in/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('products_pro_ds_de_esser_plug_in: h2 "menu"', async ({ page }) => {
await page.goto('/products/pro-ds-de-esser-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('products_pro_ds_de_esser_plug_in: h2 "Sibil"', async ({ page }) => {
await page.goto('/products/pro-ds-de-esser-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sibil' || t.startsWith('Sibil'))).toBeTruthy();
});
test('products_pro_ds_de_esser_plug_in: h2 "Precise and utterly natural"', async ({ page }) => {
await page.goto('/products/pro-ds-de-esser-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Precise and utterly natural' || t.startsWith('Precise and utterly natural'))).toBeTruthy();
});
test('products_pro_ds_de_esser_plug_in: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/products/pro-ds-de-esser-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('products_pro_ds_de_esser_plug_in: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/products/pro-ds-de-esser-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('products_pro_ds_de_esser_plug_in: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/products/pro-ds-de-esser-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products_pro_g_gate_expander_plug_in', () => {
test('products_pro_g_gate_expander_plug_in: title matches GT', async ({ page }) => {
await page.goto('/products/pro-g-gate-expander-plug-in/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex barrier');
});
test('products_pro_g_gate_expander_plug_in: h1 "Sonivex"', async ({ page }) => {
await page.goto('/products/pro-g-gate-expander-plug-in/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('products_pro_g_gate_expander_plug_in: h2 "menu"', async ({ page }) => {
await page.goto('/products/pro-g-gate-expander-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('products_pro_g_gate_expander_plug_in: h2 "Barrier"', async ({ page }) => {
await page.goto('/products/pro-g-gate-expander-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Barrier' || t.startsWith('Barrier'))).toBeTruthy();
});
test('products_pro_g_gate_expander_plug_in: h2 "Gate with finesse"', async ({ page }) => {
await page.goto('/products/pro-g-gate-expander-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Gate with finesse' || t.startsWith('Gate with finesse'))).toBeTruthy();
});
test('products_pro_g_gate_expander_plug_in: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/products/pro-g-gate-expander-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('products_pro_g_gate_expander_plug_in: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/products/pro-g-gate-expander-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('products_pro_g_gate_expander_plug_in: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/products/pro-g-gate-expander-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products_pro_l_2_limiter_plug_in', () => {
test('products_pro_l_2_limiter_plug_in: title matches GT', async ({ page }) => {
await page.goto('/products/pro-l-2-limiter-plug-in/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex ceiling 2');
});
test('products_pro_l_2_limiter_plug_in: h1 "Sonivex"', async ({ page }) => {
await page.goto('/products/pro-l-2-limiter-plug-in/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('products_pro_l_2_limiter_plug_in: h2 "menu"', async ({ page }) => {
await page.goto('/products/pro-l-2-limiter-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('products_pro_l_2_limiter_plug_in: h2 "Ceiling 2"', async ({ page }) => {
await page.goto('/products/pro-l-2-limiter-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Ceiling 2' || t.startsWith('Ceiling 2'))).toBeTruthy();
});
test('products_pro_l_2_limiter_plug_in: h2 "Bold and precise"', async ({ page }) => {
await page.goto('/products/pro-l-2-limiter-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Bold and precise' || t.startsWith('Bold and precise'))).toBeTruthy();
});
test('products_pro_l_2_limiter_plug_in: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/products/pro-l-2-limiter-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('products_pro_l_2_limiter_plug_in: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/products/pro-l-2-limiter-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('products_pro_l_2_limiter_plug_in: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/products/pro-l-2-limiter-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products_pro_mb_multiband_compressor_plug_in', () => {
test('products_pro_mb_multiband_compressor_plug_in: title matches GT', async ({ page }) => {
await page.goto('/products/pro-mb-multiband-compressor-plug-in/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex spectra');
});
test('products_pro_mb_multiband_compressor_plug_in: h1 "Sonivex"', async ({ page }) => {
await page.goto('/products/pro-mb-multiband-compressor-plug-in/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('products_pro_mb_multiband_compressor_plug_in: h2 "menu"', async ({ page }) => {
await page.goto('/products/pro-mb-multiband-compressor-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('products_pro_mb_multiband_compressor_plug_in: h2 "Spectra"', async ({ page }) => {
await page.goto('/products/pro-mb-multiband-compressor-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Spectra' || t.startsWith('Spectra'))).toBeTruthy();
});
test('products_pro_mb_multiband_compressor_plug_in: h2 "Capable and effortless"', async ({ page }) => {
await page.goto('/products/pro-mb-multiband-compressor-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Capable and effortless' || t.startsWith('Capable and effortless'))).toBeTruthy();
});
test('products_pro_mb_multiband_compressor_plug_in: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/products/pro-mb-multiband-compressor-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('products_pro_mb_multiband_compressor_plug_in: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/products/pro-mb-multiband-compressor-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('products_pro_mb_multiband_compressor_plug_in: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/products/pro-mb-multiband-compressor-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products_pro_q_4_equalizer_plug_in', () => {
test('products_pro_q_4_equalizer_plug_in: title matches GT', async ({ page }) => {
await page.goto('/products/pro-q-4-equalizer-plug-in/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex contour 4');
});
test('products_pro_q_4_equalizer_plug_in: h1 "Sonivex"', async ({ page }) => {
await page.goto('/products/pro-q-4-equalizer-plug-in/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('products_pro_q_4_equalizer_plug_in: h2 "menu"', async ({ page }) => {
await page.goto('/products/pro-q-4-equalizer-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('products_pro_q_4_equalizer_plug_in: h2 "Contour 4"', async ({ page }) => {
await page.goto('/products/pro-q-4-equalizer-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4' || t.startsWith('Contour 4'))).toBeTruthy();
});
test('products_pro_q_4_equalizer_plug_in: h2 "Exceptional sound and workflow"', async ({ page }) => {
await page.goto('/products/pro-q-4-equalizer-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Exceptional sound and workflow' || t.startsWith('Exceptional sound and workflow'))).toBeTruthy();
});
test('products_pro_q_4_equalizer_plug_in: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/products/pro-q-4-equalizer-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('products_pro_q_4_equalizer_plug_in: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/products/pro-q-4-equalizer-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('products_pro_q_4_equalizer_plug_in: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/products/pro-q-4-equalizer-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products_pro_r_2_reverb_plug_in', () => {
test('products_pro_r_2_reverb_plug_in: title matches GT', async ({ page }) => {
await page.goto('/products/pro-r-2-reverb-plug-in/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex chamber 2');
});
test('products_pro_r_2_reverb_plug_in: h1 "Sonivex"', async ({ page }) => {
await page.goto('/products/pro-r-2-reverb-plug-in/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('products_pro_r_2_reverb_plug_in: h2 "menu"', async ({ page }) => {
await page.goto('/products/pro-r-2-reverb-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('products_pro_r_2_reverb_plug_in: h2 "Chamber 2"', async ({ page }) => {
await page.goto('/products/pro-r-2-reverb-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Chamber 2' || t.startsWith('Chamber 2'))).toBeTruthy();
});
test('products_pro_r_2_reverb_plug_in: h2 "Lifelike sound, musical contro"', async ({ page }) => {
await page.goto('/products/pro-r-2-reverb-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Lifelike sound, musical controls' || t.startsWith('Lifelike sound, musical controls'))).toBeTruthy();
});
test('products_pro_r_2_reverb_plug_in: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/products/pro-r-2-reverb-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('products_pro_r_2_reverb_plug_in: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/products/pro-r-2-reverb-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('products_pro_r_2_reverb_plug_in: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/products/pro-r-2-reverb-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products_saturn_2_multiband_distortion_saturation_plug_in', () => {
test('products_saturn_2_multiband_distortion_saturation_plug_in: title matches GT', async ({ page }) => {
await page.goto('/products/saturn-2-multiband-distortion-saturation-plug-in/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex ember 2');
});
test('products_saturn_2_multiband_distortion_saturation_plug_in: h1 "Sonivex"', async ({ page }) => {
await page.goto('/products/saturn-2-multiband-distortion-saturation-plug-in/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('products_saturn_2_multiband_distortion_saturation_plug_in: h2 "menu"', async ({ page }) => {
await page.goto('/products/saturn-2-multiband-distortion-saturation-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('products_saturn_2_multiband_distortion_saturation_plug_in: h2 "Ember 2"', async ({ page }) => {
await page.goto('/products/saturn-2-multiband-distortion-saturation-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Ember 2' || t.startsWith('Ember 2'))).toBeTruthy();
});
test('products_saturn_2_multiband_distortion_saturation_plug_in: h2 "Fall for the grit"', async ({ page }) => {
await page.goto('/products/saturn-2-multiband-distortion-saturation-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fall for the grit' || t.startsWith('Fall for the grit'))).toBeTruthy();
});
test('products_saturn_2_multiband_distortion_saturation_plug_in: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/products/saturn-2-multiband-distortion-saturation-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('products_saturn_2_multiband_distortion_saturation_plug_in: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/products/saturn-2-multiband-distortion-saturation-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('products_saturn_2_multiband_distortion_saturation_plug_in: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/products/saturn-2-multiband-distortion-saturation-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products_simplon_basic_filter_plug_in', () => {
test('products_simplon_basic_filter_plug_in: title matches GT', async ({ page }) => {
await page.goto('/products/simplon-basic-filter-plug-in/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex simplex');
});
test('products_simplon_basic_filter_plug_in: h1 "Sonivex"', async ({ page }) => {
await page.goto('/products/simplon-basic-filter-plug-in/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('products_simplon_basic_filter_plug_in: h2 "menu"', async ({ page }) => {
await page.goto('/products/simplon-basic-filter-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('products_simplon_basic_filter_plug_in: h2 "Simplex"', async ({ page }) => {
await page.goto('/products/simplon-basic-filter-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Simplex' || t.startsWith('Simplex'))).toBeTruthy();
});
test('products_simplon_basic_filter_plug_in: h2 "Characterful filters, clean vi"', async ({ page }) => {
await page.goto('/products/simplon-basic-filter-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Characterful filters, clean view' || t.startsWith('Characterful filters, clean view'))).toBeTruthy();
});
test('products_simplon_basic_filter_plug_in: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/products/simplon-basic-filter-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('products_simplon_basic_filter_plug_in: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/products/simplon-basic-filter-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('products_simplon_basic_filter_plug_in: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/products/simplon-basic-filter-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products_timeless_3_delay_plug_in', () => {
test('products_timeless_3_delay_plug_in: title matches GT', async ({ page }) => {
await page.goto('/products/timeless-3-delay-plug-in/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex cascade 3');
});
test('products_timeless_3_delay_plug_in: h1 "Sonivex"', async ({ page }) => {
await page.goto('/products/timeless-3-delay-plug-in/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('products_timeless_3_delay_plug_in: h2 "menu"', async ({ page }) => {
await page.goto('/products/timeless-3-delay-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('products_timeless_3_delay_plug_in: h2 "Cascade 3"', async ({ page }) => {
await page.goto('/products/timeless-3-delay-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cascade 3' || t.startsWith('Cascade 3'))).toBeTruthy();
});
test('products_timeless_3_delay_plug_in: h2 "From tidy echoes to deep modul"', async ({ page }) => {
await page.goto('/products/timeless-3-delay-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'From tidy echoes to deep modulated washes' || t.startsWith('From tidy echoes to deep modulated washes'))).toBeTruthy();
});
test('products_timeless_3_delay_plug_in: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/products/timeless-3-delay-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('products_timeless_3_delay_plug_in: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/products/timeless-3-delay-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('products_timeless_3_delay_plug_in: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/products/timeless-3-delay-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products_twin_3_synthesizer_plug_in', () => {
test('products_twin_3_synthesizer_plug_in: title matches GT', async ({ page }) => {
await page.goto('/products/twin-3-synthesizer-plug-in/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex duo 3');
});
test('products_twin_3_synthesizer_plug_in: h1 "Sonivex"', async ({ page }) => {
await page.goto('/products/twin-3-synthesizer-plug-in/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('products_twin_3_synthesizer_plug_in: h2 "menu"', async ({ page }) => {
await page.goto('/products/twin-3-synthesizer-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('products_twin_3_synthesizer_plug_in: h2 "Duo 3"', async ({ page }) => {
await page.goto('/products/twin-3-synthesizer-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Duo 3' || t.startsWith('Duo 3'))).toBeTruthy();
});
test('products_twin_3_synthesizer_plug_in: h2 "Warm analog tone, pristine eff"', async ({ page }) => {
await page.goto('/products/twin-3-synthesizer-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Warm analog tone, pristine effects' || t.startsWith('Warm analog tone, pristine effects'))).toBeTruthy();
});
test('products_twin_3_synthesizer_plug_in: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/products/twin-3-synthesizer-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('products_twin_3_synthesizer_plug_in: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/products/twin-3-synthesizer-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('products_twin_3_synthesizer_plug_in: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/products/twin-3-synthesizer-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - products_volcano_3_filter_plug_in', () => {
test('products_volcano_3_filter_plug_in: title matches GT', async ({ page }) => {
await page.goto('/products/volcano-3-filter-plug-in/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex basalt 3');
});
test('products_volcano_3_filter_plug_in: h1 "Sonivex"', async ({ page }) => {
await page.goto('/products/volcano-3-filter-plug-in/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('products_volcano_3_filter_plug_in: h2 "menu"', async ({ page }) => {
await page.goto('/products/volcano-3-filter-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('products_volcano_3_filter_plug_in: h2 "Basalt 3"', async ({ page }) => {
await page.goto('/products/volcano-3-filter-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Basalt 3' || t.startsWith('Basalt 3'))).toBeTruthy();
});
test('products_volcano_3_filter_plug_in: h2 "Filters without peer"', async ({ page }) => {
await page.goto('/products/volcano-3-filter-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Filters without peer' || t.startsWith('Filters without peer'))).toBeTruthy();
});
test('products_volcano_3_filter_plug_in: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/products/volcano-3-filter-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('products_volcano_3_filter_plug_in: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/products/volcano-3-filter-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('products_volcano_3_filter_plug_in: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/products/volcano-3-filter-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - shop_fx_bundle', () => {
test('shop_fx_bundle: page loads without error', async ({ page }) => {
const response = await page.goto('/shop/fx-bundle/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('shop_fx_bundle: title matches GT', async ({ page }) => {
await page.goto('/shop/fx-bundle/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex shop');
});
test('shop_fx_bundle: h1 "Sonivex"', async ({ page }) => {
await page.goto('/shop/fx-bundle/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('shop_fx_bundle: h2 "menu"', async ({ page }) => {
await page.goto('/shop/fx-bundle/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('shop_fx_bundle: h2 "FX bundle MacOS & Windows"', async ({ page }) => {
await page.goto('/shop/fx-bundle/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'FX bundle MacOS & Windows' || t.startsWith('FX bundle MacOS & Windows'))).toBeTruthy();
});
test('shop_fx_bundle: h2 "Bundles"', async ({ page }) => {
await page.goto('/shop/fx-bundle/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Bundles' || t.startsWith('Bundles'))).toBeTruthy();
});
test('shop_fx_bundle: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/shop/fx-bundle/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('shop_fx_bundle: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/shop/fx-bundle/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('shop_fx_bundle: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/shop/fx-bundle/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('shop_fx_bundle: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/shop/fx-bundle/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - shop_pro_bundle', () => {
test('shop_pro_bundle: page loads without error', async ({ page }) => {
const response = await page.goto('/shop/pro-bundle/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('shop_pro_bundle: title matches GT', async ({ page }) => {
await page.goto('/shop/pro-bundle/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex shop');
});
test('shop_pro_bundle: h1 "Sonivex"', async ({ page }) => {
await page.goto('/shop/pro-bundle/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('shop_pro_bundle: h2 "menu"', async ({ page }) => {
await page.goto('/shop/pro-bundle/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('shop_pro_bundle: h2 "Pro bundle for MacOS & Windows"', async ({ page }) => {
await page.goto('/shop/pro-bundle/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro bundle for MacOS & Windows' || t.startsWith('Pro bundle for MacOS & Windows'))).toBeTruthy();
});
test('shop_pro_bundle: h2 "Bundles"', async ({ page }) => {
await page.goto('/shop/pro-bundle/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Bundles' || t.startsWith('Bundles'))).toBeTruthy();
});
test('shop_pro_bundle: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/shop/pro-bundle/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('shop_pro_bundle: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/shop/pro-bundle/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('shop_pro_bundle: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/shop/pro-bundle/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('shop_pro_bundle: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/shop/pro-bundle/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - shop_pro_c_3_compressor_plug_in', () => {
test('shop_pro_c_3_compressor_plug_in: title matches GT', async ({ page }) => {
await page.goto('/shop/pro-c-3-compressor-plug-in/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex shop');
});
test('shop_pro_c_3_compressor_plug_in: h2 "menu"', async ({ page }) => {
await page.goto('/shop/pro-c-3-compressor-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('shop_pro_c_3_compressor_plug_in: h2 "Sonivex Grip 3 MacOS & Windows"', async ({ page }) => {
await page.goto('/shop/pro-c-3-compressor-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Grip 3 MacOS & Windows' || t.startsWith('Sonivex Grip 3 MacOS & Windows'))).toBeTruthy();
});
test('shop_pro_c_3_compressor_plug_in: h2 "Bundled Within"', async ({ page }) => {
await page.goto('/shop/pro-c-3-compressor-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Bundled Within' || t.startsWith('Bundled Within'))).toBeTruthy();
});
test('shop_pro_c_3_compressor_plug_in: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/shop/pro-c-3-compressor-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('shop_pro_c_3_compressor_plug_in: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/shop/pro-c-3-compressor-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('shop_pro_c_3_compressor_plug_in: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/shop/pro-c-3-compressor-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - shop_pro_l_2_limiter_plug_in', () => {
test('shop_pro_l_2_limiter_plug_in: title matches GT', async ({ page }) => {
await page.goto('/shop/pro-l-2-limiter-plug-in/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex shop');
});
test('shop_pro_l_2_limiter_plug_in: h2 "menu"', async ({ page }) => {
await page.goto('/shop/pro-l-2-limiter-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('shop_pro_l_2_limiter_plug_in: h2 "Sonivex Ceiling 2 MacOS & Wind"', async ({ page }) => {
await page.goto('/shop/pro-l-2-limiter-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Ceiling 2 MacOS & Windows' || t.startsWith('Sonivex Ceiling 2 MacOS & Windows'))).toBeTruthy();
});
test('shop_pro_l_2_limiter_plug_in: h2 "Bundled With"', async ({ page }) => {
await page.goto('/shop/pro-l-2-limiter-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Bundled With' || t.startsWith('Bundled With'))).toBeTruthy();
});
test('shop_pro_l_2_limiter_plug_in: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/shop/pro-l-2-limiter-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('shop_pro_l_2_limiter_plug_in: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/shop/pro-l-2-limiter-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('shop_pro_l_2_limiter_plug_in: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/shop/pro-l-2-limiter-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - shop_pro_q_4_equalizer_plug_in', () => {
test('shop_pro_q_4_equalizer_plug_in: title matches GT', async ({ page }) => {
await page.goto('/shop/pro-q-4-equalizer-plug-in/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex store');
});
test('shop_pro_q_4_equalizer_plug_in: h2 "menu"', async ({ page }) => {
await page.goto('/shop/pro-q-4-equalizer-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('shop_pro_q_4_equalizer_plug_in: h2 "Sonivex Contour 4 MacOS & Wind"', async ({ page }) => {
await page.goto('/shop/pro-q-4-equalizer-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Contour 4 MacOS & Windows' || t.startsWith('Sonivex Contour 4 MacOS & Windows'))).toBeTruthy();
});
test('shop_pro_q_4_equalizer_plug_in: h2 "Bundled In"', async ({ page }) => {
await page.goto('/shop/pro-q-4-equalizer-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Bundled In' || t.startsWith('Bundled In'))).toBeTruthy();
});
test('shop_pro_q_4_equalizer_plug_in: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/shop/pro-q-4-equalizer-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('shop_pro_q_4_equalizer_plug_in: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/shop/pro-q-4-equalizer-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('shop_pro_q_4_equalizer_plug_in: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/shop/pro-q-4-equalizer-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - shop_total_bundle', () => {
test('shop_total_bundle: page loads without error', async ({ page }) => {
const response = await page.goto('/shop/total-bundle/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('shop_total_bundle: title matches GT', async ({ page }) => {
await page.goto('/shop/total-bundle/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex shop');
});
test('shop_total_bundle: h1 "Sonivex"', async ({ page }) => {
await page.goto('/shop/total-bundle/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('shop_total_bundle: h2 "menu"', async ({ page }) => {
await page.goto('/shop/total-bundle/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('shop_total_bundle: h2 "Total bundle for MacOS & Windo"', async ({ page }) => {
await page.goto('/shop/total-bundle/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Total bundle for MacOS & Windows' || t.startsWith('Total bundle for MacOS & Windows'))).toBeTruthy();
});
test('shop_total_bundle: h2 "Bundles"', async ({ page }) => {
await page.goto('/shop/total-bundle/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Bundles' || t.startsWith('Bundles'))).toBeTruthy();
});
test('shop_total_bundle: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/shop/total-bundle/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('shop_total_bundle: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/shop/total-bundle/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('shop_total_bundle: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/shop/total-bundle/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('shop_total_bundle: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/shop/total-bundle/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - support_faq', () => {
test('support_faq: title matches GT', async ({ page }) => {
await page.goto('/support/faq/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex support');
});
test('support_faq: h1 "Sonivex"', async ({ page }) => {
await page.goto('/support/faq/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('support_faq: h2 "menu"', async ({ page }) => {
await page.goto('/support/faq/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('support_faq: h2 "Frequently Asked Questions"', async ({ page }) => {
await page.goto('/support/faq/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Frequently Asked Questions' || t.startsWith('Frequently Asked Questions'))).toBeTruthy();
});
test('support_faq: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/support/faq/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('support_faq: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/support/faq/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('support_faq: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/support/faq/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - news_1768467601_sonivex_releases_pro_c_3_compressor_plug_in', () => {
test('news_1768467601_sonivex_releases_pro_c_3_compressor_plug_in: page loads without error', async ({ page }) => {
const response = await page.goto('/news/1768467601/sonivex-releases-pro-c-3-compressor-plug-in/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('news_1768467601_sonivex_releases_pro_c_3_compressor_plug_in: title matches GT', async ({ page }) => {
await page.goto('/news/1768467601/sonivex-releases-pro-c-3-compressor-plug-in/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex news');
});
test('news_1768467601_sonivex_releases_pro_c_3_compressor_plug_in: h1 "Sonivex"', async ({ page }) => {
await page.goto('/news/1768467601/sonivex-releases-pro-c-3-compressor-plug-in/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('news_1768467601_sonivex_releases_pro_c_3_compressor_plug_in: h2 "menu"', async ({ page }) => {
await page.goto('/news/1768467601/sonivex-releases-pro-c-3-compressor-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('news_1768467601_sonivex_releases_pro_c_3_compressor_plug_in: h2 "Sonivex News"', async ({ page }) => {
await page.goto('/news/1768467601/sonivex-releases-pro-c-3-compressor-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex News' || t.startsWith('Sonivex News'))).toBeTruthy();
});
test('news_1768467601_sonivex_releases_pro_c_3_compressor_plug_in: h2 "Sonivex introduces Grip 3 comp"', async ({ page }) => {
await page.goto('/news/1768467601/sonivex-releases-pro-c-3-compressor-plug-in/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex introduces Grip 3 compressor plug-in' || t.startsWith('Sonivex introduces Grip 3 compressor plug-in'))).toBeTruthy();
});
test('news_1768467601_sonivex_releases_pro_c_3_compressor_plug_in: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/news/1768467601/sonivex-releases-pro-c-3-compressor-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('news_1768467601_sonivex_releases_pro_c_3_compressor_plug_in: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/news/1768467601/sonivex-releases-pro-c-3-compressor-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('news_1768467601_sonivex_releases_pro_c_3_compressor_plug_in: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/news/1768467601/sonivex-releases-pro-c-3-compressor-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('news_1768467601_sonivex_releases_pro_c_3_compressor_plug_in: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/news/1768467601/sonivex-releases-pro-c-3-compressor-plug-in/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - news_1773907200_all_plug_ins_updated_with_bug_fixes', () => {
test('news_1773907200_all_plug_ins_updated_with_bug_fixes: page loads without error', async ({ page }) => {
const response = await page.goto('/news/1773907200/all-plug-ins-updated-with-bug-fixes/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('news_1773907200_all_plug_ins_updated_with_bug_fixes: title matches GT', async ({ page }) => {
await page.goto('/news/1773907200/all-plug-ins-updated-with-bug-fixes/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex news');
});
test('news_1773907200_all_plug_ins_updated_with_bug_fixes: h1 "Sonivex"', async ({ page }) => {
await page.goto('/news/1773907200/all-plug-ins-updated-with-bug-fixes/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('news_1773907200_all_plug_ins_updated_with_bug_fixes: h2 "menu"', async ({ page }) => {
await page.goto('/news/1773907200/all-plug-ins-updated-with-bug-fixes/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('news_1773907200_all_plug_ins_updated_with_bug_fixes: h2 "Sonivex News"', async ({ page }) => {
await page.goto('/news/1773907200/all-plug-ins-updated-with-bug-fixes/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex News' || t.startsWith('Sonivex News'))).toBeTruthy();
});
test('news_1773907200_all_plug_ins_updated_with_bug_fixes: h2 "Every plug-in refreshed with f"', async ({ page }) => {
await page.goto('/news/1773907200/all-plug-ins-updated-with-bug-fixes/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Every plug-in refreshed with fixes' || t.startsWith('Every plug-in refreshed with fixes'))).toBeTruthy();
});
test('news_1773907200_all_plug_ins_updated_with_bug_fixes: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/news/1773907200/all-plug-ins-updated-with-bug-fixes/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('news_1773907200_all_plug_ins_updated_with_bug_fixes: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/news/1773907200/all-plug-ins-updated-with-bug-fixes/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('news_1773907200_all_plug_ins_updated_with_bug_fixes: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/news/1773907200/all-plug-ins-updated-with-bug-fixes/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('news_1773907200_all_plug_ins_updated_with_bug_fixes: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/news/1773907200/all-plug-ins-updated-with-bug-fixes/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - news_1776330000_small_bug_fixes_for_all_plug_ins', () => {
test('news_1776330000_small_bug_fixes_for_all_plug_ins: page loads without error', async ({ page }) => {
const response = await page.goto('/news/1776330000/small-bug-fixes-for-all-plug-ins/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('news_1776330000_small_bug_fixes_for_all_plug_ins: title matches GT', async ({ page }) => {
await page.goto('/news/1776330000/small-bug-fixes-for-all-plug-ins/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex news');
});
test('news_1776330000_small_bug_fixes_for_all_plug_ins: h1 "Sonivex"', async ({ page }) => {
await page.goto('/news/1776330000/small-bug-fixes-for-all-plug-ins/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('news_1776330000_small_bug_fixes_for_all_plug_ins: h2 "menu"', async ({ page }) => {
await page.goto('/news/1776330000/small-bug-fixes-for-all-plug-ins/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('news_1776330000_small_bug_fixes_for_all_plug_ins: h2 "Sonivex News"', async ({ page }) => {
await page.goto('/news/1776330000/small-bug-fixes-for-all-plug-ins/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex News' || t.startsWith('Sonivex News'))).toBeTruthy();
});
test('news_1776330000_small_bug_fixes_for_all_plug_ins: h2 "Minor bug fixes across all plu"', async ({ page }) => {
await page.goto('/news/1776330000/small-bug-fixes-for-all-plug-ins/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Minor bug fixes across all plug-ins' || t.startsWith('Minor bug fixes across all plug-ins'))).toBeTruthy();
});
test('news_1776330000_small_bug_fixes_for_all_plug_ins: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/news/1776330000/small-bug-fixes-for-all-plug-ins/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('news_1776330000_small_bug_fixes_for_all_plug_ins: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/news/1776330000/small-bug-fixes-for-all-plug-ins/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('news_1776330000_small_bug_fixes_for_all_plug_ins: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/news/1776330000/small-bug-fixes-for-all-plug-ins/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('news_1776330000_small_bug_fixes_for_all_plug_ins: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/news/1776330000/small-bug-fixes-for-all-plug-ins/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_c_presets_loadingpresets', () => {
test('help_pro_c_presets_loadingpresets: page loads without error', async ({ page }) => {
const response = await page.goto('/help/pro-c/presets/loadingpresets/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('help_pro_c_presets_loadingpresets: title matches GT', async ({ page }) => {
await page.goto('/help/pro-c/presets/loadingpresets/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex grip 3 help');
});
test('help_pro_c_presets_loadingpresets: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-c/presets/loadingpresets/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_c_presets_loadingpresets: h1 "Loading presets"', async ({ page }) => {
await page.goto('/help/pro-c/presets/loadingpresets/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Loading presets' || t.startsWith('Loading presets'))).toBeTruthy();
});
test('help_pro_c_presets_loadingpresets: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-c/presets/loadingpresets/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_c_presets_loadingpresets: h2 "Sonivex Grip 3 online help"', async ({ page }) => {
await page.goto('/help/pro-c/presets/loadingpresets/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Grip 3 online help' || t.startsWith('Sonivex Grip 3 online help'))).toBeTruthy();
});
test('help_pro_c_presets_loadingpresets: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/help/pro-c/presets/loadingpresets/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('help_pro_c_presets_loadingpresets: nav link "Mix and master"', async ({ page }) => {
await page.goto('/help/pro-c/presets/loadingpresets/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mix and master' || t.startsWith('Mix and master')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_c_presets_loadingpresets: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-c/presets/loadingpresets/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_c_presets_loadingpresets: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-c/presets/loadingpresets/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_c_using_displays', () => {
test('help_pro_c_using_displays: page loads without error', async ({ page }) => {
const response = await page.goto('/help/pro-c/using/displays/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('help_pro_c_using_displays: title matches GT', async ({ page }) => {
await page.goto('/help/pro-c/using/displays/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex grip 3 help');
});
test('help_pro_c_using_displays: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-c/using/displays/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_c_using_displays: h1 "Displays and metering"', async ({ page }) => {
await page.goto('/help/pro-c/using/displays/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Displays and metering' || t.startsWith('Displays and metering'))).toBeTruthy();
});
test('help_pro_c_using_displays: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-c/using/displays/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_c_using_displays: h2 "Sonivex Grip 3 online help"', async ({ page }) => {
await page.goto('/help/pro-c/using/displays/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Grip 3 online help' || t.startsWith('Sonivex Grip 3 online help'))).toBeTruthy();
});
test('help_pro_c_using_displays: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/help/pro-c/using/displays/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('help_pro_c_using_displays: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-c/using/displays/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_c_using_displays: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-c/using/displays/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_c_using_displays: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-c/using/displays/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_c_using_dynamicscontrols', () => {
test('help_pro_c_using_dynamicscontrols: page loads without error', async ({ page }) => {
const response = await page.goto('/help/pro-c/using/dynamicscontrols/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('help_pro_c_using_dynamicscontrols: title matches GT', async ({ page }) => {
await page.goto('/help/pro-c/using/dynamicscontrols/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex grip 3 help');
});
test('help_pro_c_using_dynamicscontrols: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-c/using/dynamicscontrols/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_c_using_dynamicscontrols: h1 "Dynamics controls"', async ({ page }) => {
await page.goto('/help/pro-c/using/dynamicscontrols/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Dynamics controls' || t.startsWith('Dynamics controls'))).toBeTruthy();
});
test('help_pro_c_using_dynamicscontrols: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-c/using/dynamicscontrols/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_c_using_dynamicscontrols: h2 "Sonivex Grip 3 online help"', async ({ page }) => {
await page.goto('/help/pro-c/using/dynamicscontrols/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Grip 3 online help' || t.startsWith('Sonivex Grip 3 online help'))).toBeTruthy();
});
test('help_pro_c_using_dynamicscontrols: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/help/pro-c/using/dynamicscontrols/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('help_pro_c_using_dynamicscontrols: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-c/using/dynamicscontrols/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_c_using_dynamicscontrols: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-c/using/dynamicscontrols/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_c_using_dynamicscontrols: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-c/using/dynamicscontrols/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_c_using_midilearn', () => {
test('help_pro_c_using_midilearn: page loads without error', async ({ page }) => {
const response = await page.goto('/help/pro-c/using/midilearn/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('help_pro_c_using_midilearn: title matches GT', async ({ page }) => {
await page.goto('/help/pro-c/using/midilearn/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex grip 3 help');
});
test('help_pro_c_using_midilearn: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-c/using/midilearn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_c_using_midilearn: h1 "MIDI Learn"', async ({ page }) => {
await page.goto('/help/pro-c/using/midilearn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'MIDI Learn' || t.startsWith('MIDI Learn'))).toBeTruthy();
});
test('help_pro_c_using_midilearn: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-c/using/midilearn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_c_using_midilearn: h2 "Sonivex Grip 3 online help"', async ({ page }) => {
await page.goto('/help/pro-c/using/midilearn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Grip 3 online help' || t.startsWith('Sonivex Grip 3 online help'))).toBeTruthy();
});
test('help_pro_c_using_midilearn: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/help/pro-c/using/midilearn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('help_pro_c_using_midilearn: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-c/using/midilearn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_c_using_midilearn: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-c/using/midilearn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_c_using_midilearn: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-c/using/midilearn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_c_using_oversampling', () => {
test('help_pro_c_using_oversampling: page loads without error', async ({ page }) => {
const response = await page.goto('/help/pro-c/using/oversampling/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('help_pro_c_using_oversampling: title matches GT', async ({ page }) => {
await page.goto('/help/pro-c/using/oversampling/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex grip 3 help');
});
test('help_pro_c_using_oversampling: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-c/using/oversampling/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_c_using_oversampling: h1 "Oversampling"', async ({ page }) => {
await page.goto('/help/pro-c/using/oversampling/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Oversampling' || t.startsWith('Oversampling'))).toBeTruthy();
});
test('help_pro_c_using_oversampling: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-c/using/oversampling/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_c_using_oversampling: h2 "Sonivex Grip 3 online help"', async ({ page }) => {
await page.goto('/help/pro-c/using/oversampling/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Grip 3 online help' || t.startsWith('Sonivex Grip 3 online help'))).toBeTruthy();
});
test('help_pro_c_using_oversampling: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/help/pro-c/using/oversampling/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('help_pro_c_using_oversampling: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-c/using/oversampling/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_c_using_oversampling: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-c/using/oversampling/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_c_using_oversampling: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-c/using/oversampling/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_c_using_sidechainsection', () => {
test('help_pro_c_using_sidechainsection: page loads without error', async ({ page }) => {
const response = await page.goto('/help/pro-c/using/sidechainsection/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('help_pro_c_using_sidechainsection: title matches GT', async ({ page }) => {
await page.goto('/help/pro-c/using/sidechainsection/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex grip 3 help');
});
test('help_pro_c_using_sidechainsection: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-c/using/sidechainsection/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_c_using_sidechainsection: h1 "Side chain controls"', async ({ page }) => {
await page.goto('/help/pro-c/using/sidechainsection/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Side chain controls' || t.startsWith('Side chain controls'))).toBeTruthy();
});
test('help_pro_c_using_sidechainsection: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-c/using/sidechainsection/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_c_using_sidechainsection: h2 "Sonivex Grip 3 online help"', async ({ page }) => {
await page.goto('/help/pro-c/using/sidechainsection/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Grip 3 online help' || t.startsWith('Sonivex Grip 3 online help'))).toBeTruthy();
});
test('help_pro_c_using_sidechainsection: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/help/pro-c/using/sidechainsection/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('help_pro_c_using_sidechainsection: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-c/using/sidechainsection/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_c_using_sidechainsection: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-c/using/sidechainsection/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_c_using_sidechainsection: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-c/using/sidechainsection/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_c_using_styleandcharacter', () => {
test('help_pro_c_using_styleandcharacter: page loads without error', async ({ page }) => {
const response = await page.goto('/help/pro-c/using/styleandcharacter/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('help_pro_c_using_styleandcharacter: title matches GT', async ({ page }) => {
await page.goto('/help/pro-c/using/styleandcharacter/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex grip 3 help');
});
test('help_pro_c_using_styleandcharacter: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-c/using/styleandcharacter/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_c_using_styleandcharacter: h1 "Style and character"', async ({ page }) => {
await page.goto('/help/pro-c/using/styleandcharacter/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Style and character' || t.startsWith('Style and character'))).toBeTruthy();
});
test('help_pro_c_using_styleandcharacter: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-c/using/styleandcharacter/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_c_using_styleandcharacter: h2 "Sonivex Grip 3 online help"', async ({ page }) => {
await page.goto('/help/pro-c/using/styleandcharacter/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Grip 3 online help' || t.startsWith('Sonivex Grip 3 online help'))).toBeTruthy();
});
test('help_pro_c_using_styleandcharacter: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/help/pro-c/using/styleandcharacter/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('help_pro_c_using_styleandcharacter: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-c/using/styleandcharacter/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_c_using_styleandcharacter: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-c/using/styleandcharacter/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_c_using_styleandcharacter: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-c/using/styleandcharacter/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_c_using_surround', () => {
test('help_pro_c_using_surround: page loads without error', async ({ page }) => {
const response = await page.goto('/help/pro-c/using/surround/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('help_pro_c_using_surround: title matches GT', async ({ page }) => {
await page.goto('/help/pro-c/using/surround/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex grip 3 help');
});
test('help_pro_c_using_surround: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-c/using/surround/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_c_using_surround: h1 "Surround and 3D audio"', async ({ page }) => {
await page.goto('/help/pro-c/using/surround/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Surround and 3D audio' || t.startsWith('Surround and 3D audio'))).toBeTruthy();
});
test('help_pro_c_using_surround: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-c/using/surround/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_c_using_surround: h2 "Sonivex Grip 3 online help"', async ({ page }) => {
await page.goto('/help/pro-c/using/surround/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Grip 3 online help' || t.startsWith('Sonivex Grip 3 online help'))).toBeTruthy();
});
test('help_pro_c_using_surround: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/help/pro-c/using/surround/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('help_pro_c_using_surround: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-c/using/surround/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_c_using_surround: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-c/using/surround/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_c_using_surround: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-c/using/surround/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_c_using_timecontrols', () => {
test('help_pro_c_using_timecontrols: page loads without error', async ({ page }) => {
const response = await page.goto('/help/pro-c/using/timecontrols/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('help_pro_c_using_timecontrols: title matches GT', async ({ page }) => {
await page.goto('/help/pro-c/using/timecontrols/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex grip 3 help');
});
test('help_pro_c_using_timecontrols: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-c/using/timecontrols/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_c_using_timecontrols: h1 "Time controls"', async ({ page }) => {
await page.goto('/help/pro-c/using/timecontrols/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Time controls' || t.startsWith('Time controls'))).toBeTruthy();
});
test('help_pro_c_using_timecontrols: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-c/using/timecontrols/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_c_using_timecontrols: h2 "Sonivex Grip 3 online help"', async ({ page }) => {
await page.goto('/help/pro-c/using/timecontrols/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Grip 3 online help' || t.startsWith('Sonivex Grip 3 online help'))).toBeTruthy();
});
test('help_pro_c_using_timecontrols: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/help/pro-c/using/timecontrols/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('help_pro_c_using_timecontrols: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-c/using/timecontrols/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_c_using_timecontrols: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-c/using/timecontrols/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_c_using_timecontrols: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-c/using/timecontrols/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_l_using_advancedsettings', () => {
test('help_pro_l_using_advancedsettings: page loads without error', async ({ page }) => {
const response = await page.goto('/help/pro-l/using/advancedsettings/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('help_pro_l_using_advancedsettings: title matches GT', async ({ page }) => {
await page.goto('/help/pro-l/using/advancedsettings/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex ceiling 2 help');
});
test('help_pro_l_using_advancedsettings: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-l/using/advancedsettings/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_l_using_advancedsettings: h1 "Advanced settings"', async ({ page }) => {
await page.goto('/help/pro-l/using/advancedsettings/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Advanced settings' || t.startsWith('Advanced settings'))).toBeTruthy();
});
test('help_pro_l_using_advancedsettings: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-l/using/advancedsettings/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_l_using_advancedsettings: h2 "Sonivex Ceiling 2 online help"', async ({ page }) => {
await page.goto('/help/pro-l/using/advancedsettings/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Ceiling 2 online help' || t.startsWith('Sonivex Ceiling 2 online help'))).toBeTruthy();
});
test('help_pro_l_using_advancedsettings: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/help/pro-l/using/advancedsettings/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('help_pro_l_using_advancedsettings: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-l/using/advancedsettings/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_l_using_advancedsettings: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-l/using/advancedsettings/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_l_using_advancedsettings: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-l/using/advancedsettings/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_l_using_dithering', () => {
test('help_pro_l_using_dithering: page loads without error', async ({ page }) => {
const response = await page.goto('/help/pro-l/using/dithering/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('help_pro_l_using_dithering: title matches GT', async ({ page }) => {
await page.goto('/help/pro-l/using/dithering/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex ceiling 2 help');
});
test('help_pro_l_using_dithering: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-l/using/dithering/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_l_using_dithering: h1 "Dithering and noise shaping"', async ({ page }) => {
await page.goto('/help/pro-l/using/dithering/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Dithering and noise shaping' || t.startsWith('Dithering and noise shaping'))).toBeTruthy();
});
test('help_pro_l_using_dithering: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-l/using/dithering/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_l_using_dithering: h2 "Sonivex Ceiling 2 online help"', async ({ page }) => {
await page.goto('/help/pro-l/using/dithering/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Ceiling 2 online help' || t.startsWith('Sonivex Ceiling 2 online help'))).toBeTruthy();
});
test('help_pro_l_using_dithering: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/help/pro-l/using/dithering/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('help_pro_l_using_dithering: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-l/using/dithering/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_l_using_dithering: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-l/using/dithering/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_l_using_dithering: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-l/using/dithering/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_l_using_loudnessmetering', () => {
test('help_pro_l_using_loudnessmetering: page loads without error', async ({ page }) => {
const response = await page.goto('/help/pro-l/using/loudnessmetering/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('help_pro_l_using_loudnessmetering: title matches GT', async ({ page }) => {
await page.goto('/help/pro-l/using/loudnessmetering/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex ceiling 2 help');
});
test('help_pro_l_using_loudnessmetering: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-l/using/loudnessmetering/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_l_using_loudnessmetering: h1 "Loudness metering"', async ({ page }) => {
await page.goto('/help/pro-l/using/loudnessmetering/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Loudness metering' || t.startsWith('Loudness metering'))).toBeTruthy();
});
test('help_pro_l_using_loudnessmetering: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-l/using/loudnessmetering/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_l_using_loudnessmetering: h2 "Sonivex Ceiling 2 online help"', async ({ page }) => {
await page.goto('/help/pro-l/using/loudnessmetering/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Ceiling 2 online help' || t.startsWith('Sonivex Ceiling 2 online help'))).toBeTruthy();
});
test('help_pro_l_using_loudnessmetering: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/help/pro-l/using/loudnessmetering/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('help_pro_l_using_loudnessmetering: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-l/using/loudnessmetering/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_l_using_loudnessmetering: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-l/using/loudnessmetering/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_l_using_loudnessmetering: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-l/using/loudnessmetering/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_l_using_metering', () => {
test('help_pro_l_using_metering: page loads without error', async ({ page }) => {
const response = await page.goto('/help/pro-l/using/metering/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('help_pro_l_using_metering: title matches GT', async ({ page }) => {
await page.goto('/help/pro-l/using/metering/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex ceiling 2 help');
});
test('help_pro_l_using_metering: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-l/using/metering/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_l_using_metering: h1 "Metering"', async ({ page }) => {
await page.goto('/help/pro-l/using/metering/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Metering' || t.startsWith('Metering'))).toBeTruthy();
});
test('help_pro_l_using_metering: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-l/using/metering/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_l_using_metering: h2 "Sonivex Ceiling 2 online help"', async ({ page }) => {
await page.goto('/help/pro-l/using/metering/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Ceiling 2 online help' || t.startsWith('Sonivex Ceiling 2 online help'))).toBeTruthy();
});
test('help_pro_l_using_metering: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/help/pro-l/using/metering/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('help_pro_l_using_metering: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-l/using/metering/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_l_using_metering: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-l/using/metering/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_l_using_metering: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-l/using/metering/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_l_using_oversampling', () => {
test('help_pro_l_using_oversampling: page loads without error', async ({ page }) => {
const response = await page.goto('/help/pro-l/using/oversampling/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('help_pro_l_using_oversampling: title matches GT', async ({ page }) => {
await page.goto('/help/pro-l/using/oversampling/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex ceiling 2 help');
});
test('help_pro_l_using_oversampling: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-l/using/oversampling/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_l_using_oversampling: h1 "Oversampling"', async ({ page }) => {
await page.goto('/help/pro-l/using/oversampling/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Oversampling' || t.startsWith('Oversampling'))).toBeTruthy();
});
test('help_pro_l_using_oversampling: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-l/using/oversampling/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_l_using_oversampling: h2 "Sonivex Ceiling 2 online help"', async ({ page }) => {
await page.goto('/help/pro-l/using/oversampling/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Ceiling 2 online help' || t.startsWith('Sonivex Ceiling 2 online help'))).toBeTruthy();
});
test('help_pro_l_using_oversampling: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/help/pro-l/using/oversampling/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('help_pro_l_using_oversampling: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-l/using/oversampling/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_l_using_oversampling: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-l/using/oversampling/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_l_using_oversampling: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-l/using/oversampling/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_q_using_analyzer', () => {
test('help_pro_q_using_analyzer: page loads without error', async ({ page }) => {
const response = await page.goto('/help/pro-q/using/analyzer/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('help_pro_q_using_analyzer: title matches GT', async ({ page }) => {
await page.goto('/help/pro-q/using/analyzer/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex contour 4 help');
});
test('help_pro_q_using_analyzer: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-q/using/analyzer/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_q_using_analyzer: h1 "Spectrum analyzer"', async ({ page }) => {
await page.goto('/help/pro-q/using/analyzer/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Spectrum analyzer' || t.startsWith('Spectrum analyzer'))).toBeTruthy();
});
test('help_pro_q_using_analyzer: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-q/using/analyzer/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_q_using_analyzer: h2 "Sonivex Contour 4 online help"', async ({ page }) => {
await page.goto('/help/pro-q/using/analyzer/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Contour 4 online help' || t.startsWith('Sonivex Contour 4 online help'))).toBeTruthy();
});
test('help_pro_q_using_analyzer: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/help/pro-q/using/analyzer/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_analyzer: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-q/using/analyzer/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_analyzer: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-q/using/analyzer/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_analyzer: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-q/using/analyzer/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_q_using_character_mode', () => {
test('help_pro_q_using_character_mode: page loads without error', async ({ page }) => {
const response = await page.goto('/help/pro-q/using/character-mode/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('help_pro_q_using_character_mode: title matches GT', async ({ page }) => {
await page.goto('/help/pro-q/using/character-mode/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex contour 4 help');
});
test('help_pro_q_using_character_mode: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-q/using/character-mode/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_q_using_character_mode: h1 "Character modes"', async ({ page }) => {
await page.goto('/help/pro-q/using/character-mode/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Character modes' || t.startsWith('Character modes'))).toBeTruthy();
});
test('help_pro_q_using_character_mode: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-q/using/character-mode/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_q_using_character_mode: h2 "Sonivex Contour 4 online help"', async ({ page }) => {
await page.goto('/help/pro-q/using/character-mode/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Contour 4 online help' || t.startsWith('Sonivex Contour 4 online help'))).toBeTruthy();
});
test('help_pro_q_using_character_mode: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/help/pro-q/using/character-mode/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_character_mode: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-q/using/character-mode/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_character_mode: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-q/using/character-mode/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_character_mode: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-q/using/character-mode/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_q_using_dynamic_eq', () => {
test('help_pro_q_using_dynamic_eq: page loads without error', async ({ page }) => {
const response = await page.goto('/help/pro-q/using/dynamic-eq/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('help_pro_q_using_dynamic_eq: title matches GT', async ({ page }) => {
await page.goto('/help/pro-q/using/dynamic-eq/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex contour 4 help');
});
test('help_pro_q_using_dynamic_eq: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-q/using/dynamic-eq/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_q_using_dynamic_eq: h1 "Dynamic EQ"', async ({ page }) => {
await page.goto('/help/pro-q/using/dynamic-eq/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Dynamic EQ' || t.startsWith('Dynamic EQ'))).toBeTruthy();
});
test('help_pro_q_using_dynamic_eq: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-q/using/dynamic-eq/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_q_using_dynamic_eq: h2 "Sonivex Contour 4 online help"', async ({ page }) => {
await page.goto('/help/pro-q/using/dynamic-eq/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Contour 4 online help' || t.startsWith('Sonivex Contour 4 online help'))).toBeTruthy();
});
test('help_pro_q_using_dynamic_eq: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/help/pro-q/using/dynamic-eq/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_dynamic_eq: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-q/using/dynamic-eq/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_dynamic_eq: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-q/using/dynamic-eq/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_dynamic_eq: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-q/using/dynamic-eq/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_q_using_eq_sketch', () => {
test('help_pro_q_using_eq_sketch: page loads without error', async ({ page }) => {
const response = await page.goto('/help/pro-q/using/eq-sketch/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('help_pro_q_using_eq_sketch: title matches GT', async ({ page }) => {
await page.goto('/help/pro-q/using/eq-sketch/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex contour 4 help');
});
test('help_pro_q_using_eq_sketch: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-q/using/eq-sketch/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_q_using_eq_sketch: h1 "EQ Sketch"', async ({ page }) => {
await page.goto('/help/pro-q/using/eq-sketch/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'EQ Sketch' || t.startsWith('EQ Sketch'))).toBeTruthy();
});
test('help_pro_q_using_eq_sketch: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-q/using/eq-sketch/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_q_using_eq_sketch: h2 "Sonivex Contour 4 online help"', async ({ page }) => {
await page.goto('/help/pro-q/using/eq-sketch/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Contour 4 online help' || t.startsWith('Sonivex Contour 4 online help'))).toBeTruthy();
});
test('help_pro_q_using_eq_sketch: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/help/pro-q/using/eq-sketch/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_eq_sketch: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-q/using/eq-sketch/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_eq_sketch: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-q/using/eq-sketch/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_eq_sketch: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-q/using/eq-sketch/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_q_using_eqdisplay', () => {
test('help_pro_q_using_eqdisplay: page loads without error', async ({ page }) => {
const response = await page.goto('/help/pro-q/using/eqdisplay/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('help_pro_q_using_eqdisplay: title matches GT', async ({ page }) => {
await page.goto('/help/pro-q/using/eqdisplay/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex contour 4 help');
});
test('help_pro_q_using_eqdisplay: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-q/using/eqdisplay/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_q_using_eqdisplay: h1 "Editing and workflow"', async ({ page }) => {
await page.goto('/help/pro-q/using/eqdisplay/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Editing and workflow' || t.startsWith('Editing and workflow'))).toBeTruthy();
});
test('help_pro_q_using_eqdisplay: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-q/using/eqdisplay/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_q_using_eqdisplay: h2 "Sonivex Contour 4 online help"', async ({ page }) => {
await page.goto('/help/pro-q/using/eqdisplay/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Contour 4 online help' || t.startsWith('Sonivex Contour 4 online help'))).toBeTruthy();
});
test('help_pro_q_using_eqdisplay: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/help/pro-q/using/eqdisplay/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_eqdisplay: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-q/using/eqdisplay/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_eqdisplay: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-q/using/eqdisplay/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_eqdisplay: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-q/using/eqdisplay/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_q_using_eqmatch', () => {
test('help_pro_q_using_eqmatch: page loads without error', async ({ page }) => {
const response = await page.goto('/help/pro-q/using/eqmatch/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('help_pro_q_using_eqmatch: title matches GT', async ({ page }) => {
await page.goto('/help/pro-q/using/eqmatch/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex contour 4 help');
});
test('help_pro_q_using_eqmatch: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-q/using/eqmatch/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_q_using_eqmatch: h1 "EQ Match"', async ({ page }) => {
await page.goto('/help/pro-q/using/eqmatch/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'EQ Match' || t.startsWith('EQ Match'))).toBeTruthy();
});
test('help_pro_q_using_eqmatch: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-q/using/eqmatch/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_q_using_eqmatch: h2 "Sonivex Contour 4 online help"', async ({ page }) => {
await page.goto('/help/pro-q/using/eqmatch/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Contour 4 online help' || t.startsWith('Sonivex Contour 4 online help'))).toBeTruthy();
});
test('help_pro_q_using_eqmatch: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/help/pro-q/using/eqmatch/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_eqmatch: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-q/using/eqmatch/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_eqmatch: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-q/using/eqmatch/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_eqmatch: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-q/using/eqmatch/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_q_using_fullscreenandresize', () => {
test('help_pro_q_using_fullscreenandresize: page loads without error', async ({ page }) => {
const response = await page.goto('/help/pro-q/using/fullscreenandresize/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('help_pro_q_using_fullscreenandresize: title matches GT', async ({ page }) => {
await page.goto('/help/pro-q/using/fullscreenandresize/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex contour 4 help');
});
test('help_pro_q_using_fullscreenandresize: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-q/using/fullscreenandresize/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_q_using_fullscreenandresize: h1 "Full screen view, resizing and"', async ({ page }) => {
await page.goto('/help/pro-q/using/fullscreenandresize/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Full screen view, resizing and scaling' || t.startsWith('Full screen view, resizing and scaling'))).toBeTruthy();
});
test('help_pro_q_using_fullscreenandresize: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-q/using/fullscreenandresize/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_q_using_fullscreenandresize: h2 "Sonivex Contour 4 online help"', async ({ page }) => {
await page.goto('/help/pro-q/using/fullscreenandresize/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Contour 4 online help' || t.startsWith('Sonivex Contour 4 online help'))).toBeTruthy();
});
test('help_pro_q_using_fullscreenandresize: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/help/pro-q/using/fullscreenandresize/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_fullscreenandresize: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-q/using/fullscreenandresize/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_fullscreenandresize: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-q/using/fullscreenandresize/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_fullscreenandresize: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-q/using/fullscreenandresize/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_q_using_instance_list', () => {
test('help_pro_q_using_instance_list: page loads without error', async ({ page }) => {
const response = await page.goto('/help/pro-q/using/instance-list/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('help_pro_q_using_instance_list: title matches GT', async ({ page }) => {
await page.goto('/help/pro-q/using/instance-list/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex contour 4 help');
});
test('help_pro_q_using_instance_list: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-q/using/instance-list/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_q_using_instance_list: h1 "Instance List"', async ({ page }) => {
await page.goto('/help/pro-q/using/instance-list/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Instance List' || t.startsWith('Instance List'))).toBeTruthy();
});
test('help_pro_q_using_instance_list: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-q/using/instance-list/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_q_using_instance_list: h2 "Sonivex Contour 4 online help"', async ({ page }) => {
await page.goto('/help/pro-q/using/instance-list/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Contour 4 online help' || t.startsWith('Sonivex Contour 4 online help'))).toBeTruthy();
});
test('help_pro_q_using_instance_list: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/help/pro-q/using/instance-list/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_instance_list: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-q/using/instance-list/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_instance_list: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-q/using/instance-list/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_instance_list: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-q/using/instance-list/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_q_using_midilearn', () => {
test('help_pro_q_using_midilearn: page loads without error', async ({ page }) => {
const response = await page.goto('/help/pro-q/using/midilearn/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('help_pro_q_using_midilearn: title matches GT', async ({ page }) => {
await page.goto('/help/pro-q/using/midilearn/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex contour 4 help');
});
test('help_pro_q_using_midilearn: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-q/using/midilearn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_q_using_midilearn: h1 "MIDI Learn"', async ({ page }) => {
await page.goto('/help/pro-q/using/midilearn/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'MIDI Learn' || t.startsWith('MIDI Learn'))).toBeTruthy();
});
test('help_pro_q_using_midilearn: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-q/using/midilearn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_q_using_midilearn: h2 "Sonivex Contour 4 online help"', async ({ page }) => {
await page.goto('/help/pro-q/using/midilearn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Contour 4 online help' || t.startsWith('Sonivex Contour 4 online help'))).toBeTruthy();
});
test('help_pro_q_using_midilearn: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/help/pro-q/using/midilearn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_midilearn: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-q/using/midilearn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_midilearn: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-q/using/midilearn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_midilearn: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-q/using/midilearn/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_q_using_output', () => {
test('help_pro_q_using_output: page loads without error', async ({ page }) => {
const response = await page.goto('/help/pro-q/using/output/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('help_pro_q_using_output: title matches GT', async ({ page }) => {
await page.goto('/help/pro-q/using/output/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex contour 4 help');
});
test('help_pro_q_using_output: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-q/using/output/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_q_using_output: h1 "Output settings"', async ({ page }) => {
await page.goto('/help/pro-q/using/output/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Output settings' || t.startsWith('Output settings'))).toBeTruthy();
});
test('help_pro_q_using_output: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-q/using/output/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_q_using_output: h2 "Sonivex Contour 4 online help"', async ({ page }) => {
await page.goto('/help/pro-q/using/output/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Contour 4 online help' || t.startsWith('Sonivex Contour 4 online help'))).toBeTruthy();
});
test('help_pro_q_using_output: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/help/pro-q/using/output/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_output: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-q/using/output/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_output: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-q/using/output/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_output: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-q/using/output/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_q_using_processingmode', () => {
test('help_pro_q_using_processingmode: page loads without error', async ({ page }) => {
const response = await page.goto('/help/pro-q/using/processingmode/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('help_pro_q_using_processingmode: title matches GT', async ({ page }) => {
await page.goto('/help/pro-q/using/processingmode/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex contour 4 help');
});
test('help_pro_q_using_processingmode: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-q/using/processingmode/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_q_using_processingmode: h1 "Processing mode"', async ({ page }) => {
await page.goto('/help/pro-q/using/processingmode/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Processing mode' || t.startsWith('Processing mode'))).toBeTruthy();
});
test('help_pro_q_using_processingmode: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-q/using/processingmode/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_q_using_processingmode: h2 "Sonivex Contour 4 online help"', async ({ page }) => {
await page.goto('/help/pro-q/using/processingmode/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Contour 4 online help' || t.startsWith('Sonivex Contour 4 online help'))).toBeTruthy();
});
test('help_pro_q_using_processingmode: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/help/pro-q/using/processingmode/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_processingmode: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-q/using/processingmode/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_processingmode: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-q/using/processingmode/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_processingmode: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-q/using/processingmode/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_q_using_solo', () => {
test('help_pro_q_using_solo: page loads without error', async ({ page }) => {
const response = await page.goto('/help/pro-q/using/solo/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('help_pro_q_using_solo: title matches GT', async ({ page }) => {
await page.goto('/help/pro-q/using/solo/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex contour 4 help');
});
test('help_pro_q_using_solo: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-q/using/solo/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_q_using_solo: h1 "Solo"', async ({ page }) => {
await page.goto('/help/pro-q/using/solo/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Solo' || t.startsWith('Solo'))).toBeTruthy();
});
test('help_pro_q_using_solo: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-q/using/solo/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_q_using_solo: h2 "Sonivex Contour 4 online help"', async ({ page }) => {
await page.goto('/help/pro-q/using/solo/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Contour 4 online help' || t.startsWith('Sonivex Contour 4 online help'))).toBeTruthy();
});
test('help_pro_q_using_solo: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/help/pro-q/using/solo/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_solo: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-q/using/solo/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_solo: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-q/using/solo/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_solo: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-q/using/solo/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_q_using_spectral_dynamics', () => {
test('help_pro_q_using_spectral_dynamics: page loads without error', async ({ page }) => {
const response = await page.goto('/help/pro-q/using/spectral-dynamics/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('help_pro_q_using_spectral_dynamics: title matches GT', async ({ page }) => {
await page.goto('/help/pro-q/using/spectral-dynamics/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex contour 4 help');
});
test('help_pro_q_using_spectral_dynamics: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-q/using/spectral-dynamics/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_q_using_spectral_dynamics: h1 "Spectral dynamics"', async ({ page }) => {
await page.goto('/help/pro-q/using/spectral-dynamics/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Spectral dynamics' || t.startsWith('Spectral dynamics'))).toBeTruthy();
});
test('help_pro_q_using_spectral_dynamics: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-q/using/spectral-dynamics/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_q_using_spectral_dynamics: h2 "Sonivex Contour 4 online help"', async ({ page }) => {
await page.goto('/help/pro-q/using/spectral-dynamics/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Contour 4 online help' || t.startsWith('Sonivex Contour 4 online help'))).toBeTruthy();
});
test('help_pro_q_using_spectral_dynamics: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/help/pro-q/using/spectral-dynamics/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_spectral_dynamics: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-q/using/spectral-dynamics/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_spectral_dynamics: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-q/using/spectral-dynamics/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_spectral_dynamics: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-q/using/spectral-dynamics/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_q_using_spectrumgrab', () => {
test('help_pro_q_using_spectrumgrab: page loads without error', async ({ page }) => {
const response = await page.goto('/help/pro-q/using/spectrumgrab/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('help_pro_q_using_spectrumgrab: title matches GT', async ({ page }) => {
await page.goto('/help/pro-q/using/spectrumgrab/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex contour 4 help');
});
test('help_pro_q_using_spectrumgrab: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-q/using/spectrumgrab/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_q_using_spectrumgrab: h1 "Spectrum Grab"', async ({ page }) => {
await page.goto('/help/pro-q/using/spectrumgrab/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Spectrum Grab' || t.startsWith('Spectrum Grab'))).toBeTruthy();
});
test('help_pro_q_using_spectrumgrab: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-q/using/spectrumgrab/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_q_using_spectrumgrab: h2 "Sonivex Contour 4 online help"', async ({ page }) => {
await page.goto('/help/pro-q/using/spectrumgrab/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Contour 4 online help' || t.startsWith('Sonivex Contour 4 online help'))).toBeTruthy();
});
test('help_pro_q_using_spectrumgrab: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/help/pro-q/using/spectrumgrab/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_spectrumgrab: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-q/using/spectrumgrab/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_spectrumgrab: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-q/using/spectrumgrab/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_spectrumgrab: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-q/using/spectrumgrab/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_q_using_stereo', () => {
test('help_pro_q_using_stereo: page loads without error', async ({ page }) => {
const response = await page.goto('/help/pro-q/using/stereo/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('help_pro_q_using_stereo: title matches GT', async ({ page }) => {
await page.goto('/help/pro-q/using/stereo/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex contour 4 help');
});
test('help_pro_q_using_stereo: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-q/using/stereo/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_q_using_stereo: h1 "Stereo placement"', async ({ page }) => {
await page.goto('/help/pro-q/using/stereo/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stereo placement' || t.startsWith('Stereo placement'))).toBeTruthy();
});
test('help_pro_q_using_stereo: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-q/using/stereo/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_q_using_stereo: h2 "Sonivex Contour 4 online help"', async ({ page }) => {
await page.goto('/help/pro-q/using/stereo/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Contour 4 online help' || t.startsWith('Sonivex Contour 4 online help'))).toBeTruthy();
});
test('help_pro_q_using_stereo: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/help/pro-q/using/stereo/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_stereo: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-q/using/stereo/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_stereo: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-q/using/stereo/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_stereo: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-q/using/stereo/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help_pro_q_using_surround', () => {
test('help_pro_q_using_surround: page loads without error', async ({ page }) => {
const response = await page.goto('/help/pro-q/using/surround/');
expect(response?.status()).toBeLessThan(400);
await expect(page.locator('body')).toBeVisible();
});
test('help_pro_q_using_surround: title matches GT', async ({ page }) => {
await page.goto('/help/pro-q/using/surround/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sonivex contour 4 help');
});
test('help_pro_q_using_surround: h1 "Sonivex"', async ({ page }) => {
await page.goto('/help/pro-q/using/surround/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex' || t.startsWith('Sonivex'))).toBeTruthy();
});
test('help_pro_q_using_surround: h1 "Surround and 3D audio"', async ({ page }) => {
await page.goto('/help/pro-q/using/surround/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Surround and 3D audio' || t.startsWith('Surround and 3D audio'))).toBeTruthy();
});
test('help_pro_q_using_surround: h2 "menu"', async ({ page }) => {
await page.goto('/help/pro-q/using/surround/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'menu' || t.startsWith('menu'))).toBeTruthy();
});
test('help_pro_q_using_surround: h2 "Sonivex Contour 4 online help"', async ({ page }) => {
await page.goto('/help/pro-q/using/surround/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sonivex Contour 4 online help' || t.startsWith('Sonivex Contour 4 online help'))).toBeTruthy();
});
test('help_pro_q_using_surround: nav link "Plug-ins"', async ({ page }) => {
await page.goto('/help/pro-q/using/surround/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Plug-ins' || t.startsWith('Plug-ins')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_surround: nav link "Mixing and mastering"', async ({ page }) => {
await page.goto('/help/pro-q/using/surround/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mixing and mastering' || t.startsWith('Mixing and mastering')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('products#mixing-and-mastering')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_surround: nav link "Contour 4 equalizer"', async ({ page }) => {
await page.goto('/help/pro-q/using/surround/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contour 4 equalizer' || t.startsWith('Contour 4 equalizer')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-q-4-equalizer-plug-in')), 'href fragment present').toBeTruthy();
});
test('help_pro_q_using_surround: nav link "Grip 3 compressor"', async ({ page }) => {
await page.goto('/help/pro-q/using/surround/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Grip 3 compressor' || t.startsWith('Grip 3 compressor')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('pro-c-3-compressor-plug-in')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Routing', () => {
});