RecreationBench / web /praxide.example /tests /static /content.scripted.spec.ts
VoyagerXHF's picture
Upload folder using huggingface_hub (part 55)
16a5250 verified
Raw History Blame Contribute Delete
300 kB
import { test, expect } from '@playwright/test';
test.describe('Functional - homepage', () => {
test('homepage: title matches GT', async ({ page }) => {
await page.goto('/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('praxide // build coding skills with 10,0');
});
test('homepage: h2 "Talia OkonkwoPraxide is such a"', async ({ page }) => {
await page.goto('/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Talia Okonkwo"Praxide is such a wildly fun way to learn, drill, and truly own your coding skills ...' || t.startsWith('Talia Okonkwo"Praxide is such a wildly fun way to learn, drill, and truly own your coding skills ...'))).toBeTruthy();
});
test('homepage: footer link "Contact"', async ({ page }) => {
await page.goto('/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Contact' || t.startsWith('Contact')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('contact')), 'href fragment present').toBeTruthy();
});
test('homepage: footer link "About"', async ({ page }) => {
await page.goto('/');
const links = page.locator('footer a, [role="contentinfo"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'About' || t.startsWith('About')), 'link text in footer').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('about')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - about', () => {
test('about: title matches GT', async ({ page }) => {
await page.goto('/about/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('about // praxide');
});
test('about: header link "Tutorials"', async ({ page }) => {
await page.goto('/about/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('about: header link "Challenges"', async ({ page }) => {
await page.goto('/about/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - affiliates', () => {
test('affiliates: title matches GT', async ({ page }) => {
await page.goto('/affiliates/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('affiliate program // praxide');
});
test('affiliates: h1 "25 deals"', async ({ page }) => {
await page.goto('/affiliates/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '25 deals' || t.startsWith('25 deals'))).toBeTruthy();
});
test('affiliates: h2 "60% Every TimeOut-earn us. Poc"', async ({ page }) => {
await page.goto('/affiliates/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '60% Every TimeOut-earn us. Pocket a generous 60% commission on each PRO referral you send our way.' || t.startsWith('60% Every TimeOut-earn us. Pocket a generous 60% commission on each PRO referral you send our way.'))).toBeTruthy();
});
test('affiliates: header link "Tutorials"', async ({ page }) => {
await page.goto('/affiliates/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('affiliates: header link "Challenges"', async ({ page }) => {
await page.goto('/affiliates/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenges', () => {
test('challenges: title matches GT', async ({ page }) => {
await page.goto('/challenges/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('10,000+ bite');
});
test('challenges: h3 "How Praxide Works"', async ({ page }) => {
await page.goto('/challenges/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How Praxide Works' || t.startsWith('How Praxide Works'))).toBeTruthy();
});
test('challenges: h3 "Return the Total of Two Number"', async ({ page }) => {
await page.goto('/challenges/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Return the Total of Two Numbers' || t.startsWith('Return the Total of Two Numbers'))).toBeTruthy();
});
test('challenges: h3 "Return the Number That Follows"', async ({ page }) => {
await page.goto('/challenges/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Return the Number That Follows the Given Integer' || t.startsWith('Return the Number That Follows the Given Integer'))).toBeTruthy();
});
test('challenges: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenges/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenges: header link "Challenges"', async ({ page }) => {
await page.goto('/challenges/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenges_cpp', () => {
test('challenges_cpp: title matches GT', async ({ page }) => {
await page.goto('/challenges/cpp/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('1,500+ c++ coding challenges // praxide');
});
test('challenges_cpp: h3 "How Praxide Works"', async ({ page }) => {
await page.goto('/challenges/cpp/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How Praxide Works' || t.startsWith('How Praxide Works'))).toBeTruthy();
});
test('challenges_cpp: h3 "Sum Two Numbers and Return It"', async ({ page }) => {
await page.goto('/challenges/cpp/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sum Two Numbers and Return It' || t.startsWith('Sum Two Numbers and Return It'))).toBeTruthy();
});
test('challenges_cpp: h3 "Give Back the Next Number Afte"', async ({ page }) => {
await page.goto('/challenges/cpp/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Give Back the Next Number After the Integer' || t.startsWith('Give Back the Next Number After the Integer'))).toBeTruthy();
});
test('challenges_cpp: header link "Praxide"', async ({ page }) => {
await page.goto('/challenges/cpp/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Praxide' || t.startsWith('Praxide')), 'link text in header').toBeTruthy();
});
test('challenges_cpp: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenges/cpp/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenges_cpp: header link "Challenges"', async ({ page }) => {
await page.goto('/challenges/cpp/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenges_csharp', () => {
test('challenges_csharp: title matches GT', async ({ page }) => {
await page.goto('/challenges/csharp/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('350+ bite');
});
test('challenges_csharp: h3 "How Praxide Works"', async ({ page }) => {
await page.goto('/challenges/csharp/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How Praxide Works' || t.startsWith('How Praxide Works'))).toBeTruthy();
});
test('challenges_csharp: h3 "Sum Two Numbers and Return It"', async ({ page }) => {
await page.goto('/challenges/csharp/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sum Two Numbers and Return It' || t.startsWith('Sum Two Numbers and Return It'))).toBeTruthy();
});
test('challenges_csharp: h3 "Change Minutes into Seconds"', async ({ page }) => {
await page.goto('/challenges/csharp/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Change Minutes into Seconds' || t.startsWith('Change Minutes into Seconds'))).toBeTruthy();
});
test('challenges_csharp: h3 "Increment an Integer and Hand "', async ({ page }) => {
await page.goto('/challenges/csharp/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Increment an Integer and Hand Back the Result' || t.startsWith('Increment an Integer and Hand Back the Result'))).toBeTruthy();
});
test('challenges_csharp: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenges/csharp/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenges_csharp: header link "Challenges"', async ({ page }) => {
await page.goto('/challenges/csharp/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenges_java', () => {
test('challenges_java: title matches GT', async ({ page }) => {
await page.goto('/challenges/java/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('800+ java coding challenges // praxide');
});
test('challenges_java: h3 "How Praxide Works"', async ({ page }) => {
await page.goto('/challenges/java/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How Praxide Works' || t.startsWith('How Praxide Works'))).toBeTruthy();
});
test('challenges_java: h3 "Return the Sum of Two Integers"', async ({ page }) => {
await page.goto('/challenges/java/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Return the Sum of Two Integers' || t.startsWith('Return the Sum of Two Integers'))).toBeTruthy();
});
test('challenges_java: h3 "Give Back the Integer That Com"', async ({ page }) => {
await page.goto('/challenges/java/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Give Back the Integer That Comes Right After' || t.startsWith('Give Back the Integer That Comes Right After'))).toBeTruthy();
});
test('challenges_java: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenges/java/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenges_java: header link "Challenges"', async ({ page }) => {
await page.goto('/challenges/java/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenges_javascript', () => {
test('challenges_javascript: title matches GT', async ({ page }) => {
await page.goto('/challenges/javascript/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('2,500+ javascript practice challenges //');
});
test('challenges_javascript: h3 "How Praxide Works"', async ({ page }) => {
await page.goto('/challenges/javascript/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How Praxide Works' || t.startsWith('How Praxide Works'))).toBeTruthy();
});
test('challenges_javascript: h3 "Sum Two Numbers and Return It"', async ({ page }) => {
await page.goto('/challenges/javascript/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sum Two Numbers and Return It' || t.startsWith('Sum Two Numbers and Return It'))).toBeTruthy();
});
test('challenges_javascript: h3 "Turn Minutes into Total Second"', async ({ page }) => {
await page.goto('/challenges/javascript/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Turn Minutes into Total Seconds' || t.startsWith('Turn Minutes into Total Seconds'))).toBeTruthy();
});
test('challenges_javascript: h3 "Return the Value That Follows "', async ({ page }) => {
await page.goto('/challenges/javascript/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Return the Value That Follows the Given Integer' || t.startsWith('Return the Value That Follows the Given Integer'))).toBeTruthy();
});
test('challenges_javascript: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenges/javascript/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenges_javascript: header link "Challenges"', async ({ page }) => {
await page.goto('/challenges/javascript/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenges_php', () => {
test('challenges_php: title matches GT', async ({ page }) => {
await page.goto('/challenges/php/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('350+ php practice challenges // praxide');
});
test('challenges_php: h3 "How Praxide Works"', async ({ page }) => {
await page.goto('/challenges/php/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How Praxide Works' || t.startsWith('How Praxide Works'))).toBeTruthy();
});
test('challenges_php: h3 "Sum Two Numbers and Return It"', async ({ page }) => {
await page.goto('/challenges/php/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sum Two Numbers and Return It' || t.startsWith('Sum Two Numbers and Return It'))).toBeTruthy();
});
test('challenges_php: h3 "Return the Number That Comes A"', async ({ page }) => {
await page.goto('/challenges/php/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Return the Number That Comes After the Integer' || t.startsWith('Return the Number That Comes After the Integer'))).toBeTruthy();
});
test('challenges_php: h3 "Transform Minutes Into Seconds"', async ({ page }) => {
await page.goto('/challenges/php/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Transform Minutes Into Seconds' || t.startsWith('Transform Minutes Into Seconds'))).toBeTruthy();
});
test('challenges_php: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenges/php/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenges_php: header link "Challenges"', async ({ page }) => {
await page.goto('/challenges/php/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenges_python3', () => {
test('challenges_python3: title matches GT', async ({ page }) => {
await page.goto('/challenges/python3/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('2,500+ python practice challenges // pra');
});
test('challenges_python3: h3 "How Praxide Works"', async ({ page }) => {
await page.goto('/challenges/python3/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How Praxide Works' || t.startsWith('How Praxide Works'))).toBeTruthy();
});
test('challenges_python3: h3 "Sum Two Numbers and Return It"', async ({ page }) => {
await page.goto('/challenges/python3/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sum Two Numbers and Return It' || t.startsWith('Sum Two Numbers and Return It'))).toBeTruthy();
});
test('challenges_python3: h3 "Return the Next Value After th"', async ({ page }) => {
await page.goto('/challenges/python3/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Return the Next Value After the Given Integer' || t.startsWith('Return the Next Value After the Given Integer'))).toBeTruthy();
});
test('challenges_python3: h3 "Change Minutes into Seconds"', async ({ page }) => {
await page.goto('/challenges/python3/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Change Minutes into Seconds' || t.startsWith('Change Minutes into Seconds'))).toBeTruthy();
});
test('challenges_python3: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenges/python3/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenges_python3: header link "Challenges"', async ({ page }) => {
await page.goto('/challenges/python3/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenges_ruby', () => {
test('challenges_ruby: title matches GT', async ({ page }) => {
await page.goto('/challenges/ruby/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('3,000+ ruby coding challenges // praxide');
});
test('challenges_ruby: h3 "How Praxide Works"', async ({ page }) => {
await page.goto('/challenges/ruby/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How Praxide Works' || t.startsWith('How Praxide Works'))).toBeTruthy();
});
test('challenges_ruby: h3 "Return the Number Right After "', async ({ page }) => {
await page.goto('/challenges/ruby/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Return the Number Right After the Integer Given' || t.startsWith('Return the Number Right After the Integer Given'))).toBeTruthy();
});
test('challenges_ruby: h3 "Return the Total of Two Number"', async ({ page }) => {
await page.goto('/challenges/ruby/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Return the Total of Two Numbers' || t.startsWith('Return the Total of Two Numbers'))).toBeTruthy();
});
test('challenges_ruby: header link "Praxide"', async ({ page }) => {
await page.goto('/challenges/ruby/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Praxide' || t.startsWith('Praxide')), 'link text in header').toBeTruthy();
});
test('challenges_ruby: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenges/ruby/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenges_ruby: header link "Challenges"', async ({ page }) => {
await page.goto('/challenges/ruby/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenges_swift', () => {
test('challenges_swift: title matches GT', async ({ page }) => {
await page.goto('/challenges/swift/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('350+ swift coding challenges // praxide');
});
test('challenges_swift: h3 "How Praxide Works"', async ({ page }) => {
await page.goto('/challenges/swift/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How Praxide Works' || t.startsWith('How Praxide Works'))).toBeTruthy();
});
test('challenges_swift: h3 "Give Back the Sum of Two Numbe"', async ({ page }) => {
await page.goto('/challenges/swift/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Give Back the Sum of Two Numbers' || t.startsWith('Give Back the Sum of Two Numbers'))).toBeTruthy();
});
test('challenges_swift: h3 "Turn an Age Into Days"', async ({ page }) => {
await page.goto('/challenges/swift/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Turn an Age Into Days' || t.startsWith('Turn an Age Into Days'))).toBeTruthy();
});
test('challenges_swift: h3 "Triangle Area Finder"', async ({ page }) => {
await page.goto('/challenges/swift/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Triangle Area Finder' || t.startsWith('Triangle Area Finder'))).toBeTruthy();
});
test('challenges_swift: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenges/swift/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenges_swift: header link "Challenges"', async ({ page }) => {
await page.goto('/challenges/swift/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - docs_privacy', () => {
test('docs_privacy: title matches GT', async ({ page }) => {
await page.goto('/docs/privacy/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('privacy policy // praxide');
});
test('docs_privacy: header link "Learning"', async ({ page }) => {
await page.goto('/docs/privacy/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Learning' || t.startsWith('Learning')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('docs_privacy: header link "Exercises"', async ({ page }) => {
await page.goto('/docs/privacy/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Exercises' || t.startsWith('Exercises')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - docs_terms', () => {
test('docs_terms: title matches GT', async ({ page }) => {
await page.goto('/docs/terms/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('terms of use // praxide');
});
test('docs_terms: header link "Tutorials"', async ({ page }) => {
await page.goto('/docs/terms/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('docs_terms: header link "Challenges"', async ({ page }) => {
await page.goto('/docs/terms/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - help', () => {
test('help: title matches GT', async ({ page }) => {
await page.goto('/help/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('help center // praxide');
});
test('help: h2 "Popular QuestionsThe questions"', 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 === 'Popular QuestionsThe questions people ask most.' || t.startsWith('Popular QuestionsThe questions people ask most.'))).toBeTruthy();
});
test('help: h2 "Partner ProgramEarn a 60% cut "', 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 === 'Partner ProgramEarn a 60% cut on recurring sales.' || t.startsWith('Partner ProgramEarn a 60% cut on recurring sales.'))).toBeTruthy();
});
test('help: header link "Workshops"', async ({ page }) => {
await page.goto('/help/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Workshops' || t.startsWith('Workshops')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('help: header link "Exercises"', async ({ page }) => {
await page.goto('/help/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Exercises' || t.startsWith('Exercises')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
test('help: header link "Training"', async ({ page }) => {
await page.goto('/help/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Training' || t.startsWith('Training')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('practice')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - pro', () => {
test('pro: title matches GT', async ({ page }) => {
await page.goto('/pro/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('go pro // praxide');
});
test('pro: header link "Tutorials"', async ({ page }) => {
await page.goto('/pro/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('pro: header link "Challenges"', async ({ page }) => {
await page.goto('/pro/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - roadmap', () => {
test('roadmap: title matches GT', async ({ page }) => {
await page.goto('/roadmap/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('public roadmap // praxide');
});
test('roadmap: header link "Tutorials"', async ({ page }) => {
await page.goto('/roadmap/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('roadmap: header link "Challenges"', async ({ page }) => {
await page.goto('/roadmap/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_2t8JDxF7wLrg7yJ5E', () => {
test('challenge_2t8JDxF7wLrg7yJ5E: title matches GT', async ({ page }) => {
await page.goto('/challenge/2t8JDxF7wLrg7yJ5E/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('turn minutes into seconds // praxide');
});
test('challenge_2t8JDxF7wLrg7yJ5E: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/2t8JDxF7wLrg7yJ5E/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_2t8JDxF7wLrg7yJ5E: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/2t8JDxF7wLrg7yJ5E/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_2t8JDxF7wLrg7yJ5E: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/2t8JDxF7wLrg7yJ5E/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_3CaszbdZYGN4otQD8', () => {
test('challenge_3CaszbdZYGN4otQD8: title matches GT', async ({ page }) => {
await page.goto('/challenge/3CaszbdZYGN4otQD8/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('area of a triangle // praxide');
});
test('challenge_3CaszbdZYGN4otQD8: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/3CaszbdZYGN4otQD8/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_3CaszbdZYGN4otQD8: header link "Praxide"', async ({ page }) => {
await page.goto('/challenge/3CaszbdZYGN4otQD8/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Praxide' || t.startsWith('Praxide')), 'link text in header').toBeTruthy();
});
test('challenge_3CaszbdZYGN4otQD8: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/3CaszbdZYGN4otQD8/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_3CaszbdZYGN4otQD8: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/3CaszbdZYGN4otQD8/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_3ZwEJFANGaSpqnzrs', () => {
test('challenge_3ZwEJFANGaSpqnzrs: title matches GT', async ({ page }) => {
await page.goto('/challenge/3ZwEJFANGaSpqnzrs/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('less than 100? // praxide');
});
test('challenge_3ZwEJFANGaSpqnzrs: h2 "Less Than 100?"', async ({ page }) => {
await page.goto('/challenge/3ZwEJFANGaSpqnzrs/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Less Than 100?' || t.startsWith('Less Than 100?'))).toBeTruthy();
});
test('challenge_3ZwEJFANGaSpqnzrs: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/3ZwEJFANGaSpqnzrs/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_3ZwEJFANGaSpqnzrs: h3 "Notes"', async ({ page }) => {
await page.goto('/challenge/3ZwEJFANGaSpqnzrs/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Notes' || t.startsWith('Notes'))).toBeTruthy();
});
test('challenge_3ZwEJFANGaSpqnzrs: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/3ZwEJFANGaSpqnzrs/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_3ZwEJFANGaSpqnzrs: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/3ZwEJFANGaSpqnzrs/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_3nvowenHHLynoTX9d', () => {
test('challenge_3nvowenHHLynoTX9d: title matches GT', async ({ page }) => {
await page.goto('/challenge/3nvowenHHLynoTX9d/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('do the two numbers match? // praxide');
});
test('challenge_3nvowenHHLynoTX9d: h2 "Do the Two Numbers Match?"', async ({ page }) => {
await page.goto('/challenge/3nvowenHHLynoTX9d/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Do the Two Numbers Match?' || t.startsWith('Do the Two Numbers Match?'))).toBeTruthy();
});
test('challenge_3nvowenHHLynoTX9d: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/3nvowenHHLynoTX9d/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_3nvowenHHLynoTX9d: h3 "Notes"', async ({ page }) => {
await page.goto('/challenge/3nvowenHHLynoTX9d/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Notes' || t.startsWith('Notes'))).toBeTruthy();
});
test('challenge_3nvowenHHLynoTX9d: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/3nvowenHHLynoTX9d/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_3nvowenHHLynoTX9d: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/3nvowenHHLynoTX9d/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_4p5WBxogs2ENAb4Wu', () => {
test('challenge_4p5WBxogs2ENAb4Wu: title matches GT', async ({ page }) => {
await page.goto('/challenge/4p5WBxogs2ENAb4Wu/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('find the remainder of two numbers // pra');
});
test('challenge_4p5WBxogs2ENAb4Wu: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/4p5WBxogs2ENAb4Wu/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_4p5WBxogs2ENAb4Wu: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/4p5WBxogs2ENAb4Wu/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_4p5WBxogs2ENAb4Wu: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/4p5WBxogs2ENAb4Wu/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_54fNDDddnW5WcwS8n', () => {
test('challenge_54fNDDddnW5WcwS8n: title matches GT', async ({ page }) => {
await page.goto('/challenge/54fNDDddnW5WcwS8n/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('give back the next integer for the numbe');
});
test('challenge_54fNDDddnW5WcwS8n: h2 "Give Back the Next Integer for"', async ({ page }) => {
await page.goto('/challenge/54fNDDddnW5WcwS8n/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Give Back the Next Integer for the Number Provided' || t.startsWith('Give Back the Next Integer for the Number Provided'))).toBeTruthy();
});
test('challenge_54fNDDddnW5WcwS8n: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/54fNDDddnW5WcwS8n/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_54fNDDddnW5WcwS8n: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/54fNDDddnW5WcwS8n/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_54fNDDddnW5WcwS8n: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/54fNDDddnW5WcwS8n/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_56XXwAkLJGbEccYfn', () => {
test('challenge_56XXwAkLJGbEccYfn: title matches GT', async ({ page }) => {
await page.goto('/challenge/56XXwAkLJGbEccYfn/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('longest possible third side // praxide');
});
test('challenge_56XXwAkLJGbEccYfn: h2 "Longest Possible Third Side"', async ({ page }) => {
await page.goto('/challenge/56XXwAkLJGbEccYfn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Longest Possible Third Side' || t.startsWith('Longest Possible Third Side'))).toBeTruthy();
});
test('challenge_56XXwAkLJGbEccYfn: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/56XXwAkLJGbEccYfn/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_56XXwAkLJGbEccYfn: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/56XXwAkLJGbEccYfn/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_56XXwAkLJGbEccYfn: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/56XXwAkLJGbEccYfn/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_5JzZhNdpRkDKsWwFW', () => {
test('challenge_5JzZhNdpRkDKsWwFW: title matches GT', async ({ page }) => {
await page.goto('/challenge/5JzZhNdpRkDKsWwFW/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('return a rectangle\'s perimeter // praxid');
});
test('challenge_5JzZhNdpRkDKsWwFW: h2 "Return a Rectangle\'s Perimeter"', async ({ page }) => {
await page.goto('/challenge/5JzZhNdpRkDKsWwFW/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Return a Rectangle\'s Perimeter' || t.startsWith('Return a Rectangle\'s Perimeter'))).toBeTruthy();
});
test('challenge_5JzZhNdpRkDKsWwFW: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/5JzZhNdpRkDKsWwFW/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_5JzZhNdpRkDKsWwFW: header link "Praxide"', async ({ page }) => {
await page.goto('/challenge/5JzZhNdpRkDKsWwFW/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Praxide' || t.startsWith('Praxide')), 'link text in header').toBeTruthy();
});
test('challenge_5JzZhNdpRkDKsWwFW: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/5JzZhNdpRkDKsWwFW/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_5JzZhNdpRkDKsWwFW: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/5JzZhNdpRkDKsWwFW/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_5gpukjfi5rAH8MvKF', () => {
test('challenge_5gpukjfi5rAH8MvKF: title matches GT', async ({ page }) => {
await page.goto('/challenge/5gpukjfi5rAH8MvKF/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('do two numbers match? // praxide');
});
test('challenge_5gpukjfi5rAH8MvKF: h2 "Do Two Numbers Match?"', async ({ page }) => {
await page.goto('/challenge/5gpukjfi5rAH8MvKF/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Do Two Numbers Match?' || t.startsWith('Do Two Numbers Match?'))).toBeTruthy();
});
test('challenge_5gpukjfi5rAH8MvKF: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/5gpukjfi5rAH8MvKF/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_5gpukjfi5rAH8MvKF: h3 "Notes"', async ({ page }) => {
await page.goto('/challenge/5gpukjfi5rAH8MvKF/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Notes' || t.startsWith('Notes'))).toBeTruthy();
});
test('challenge_5gpukjfi5rAH8MvKF: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/5gpukjfi5rAH8MvKF/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_5gpukjfi5rAH8MvKF: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/5gpukjfi5rAH8MvKF/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_5kBJ65NLF6Bph6FXo', () => {
test('challenge_5kBJ65NLF6Bph6FXo: title matches GT', async ({ page }) => {
await page.goto('/challenge/5kBJ65NLF6Bph6FXo/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('add together two given numbers // praxid');
});
test('challenge_5kBJ65NLF6Bph6FXo: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/5kBJ65NLF6Bph6FXo/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_5kBJ65NLF6Bph6FXo: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/5kBJ65NLF6Bph6FXo/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_5kBJ65NLF6Bph6FXo: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/5kBJ65NLF6Bph6FXo/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_6AnQqiEjkJdZrWhPS', () => {
test('challenge_6AnQqiEjkJdZrWhPS: title matches GT', async ({ page }) => {
await page.goto('/challenge/6AnQqiEjkJdZrWhPS/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('convert hours into seconds // praxide');
});
test('challenge_6AnQqiEjkJdZrWhPS: h2 "Convert Hours into Seconds"', async ({ page }) => {
await page.goto('/challenge/6AnQqiEjkJdZrWhPS/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Convert Hours into Seconds' || t.startsWith('Convert Hours into Seconds'))).toBeTruthy();
});
test('challenge_6AnQqiEjkJdZrWhPS: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/6AnQqiEjkJdZrWhPS/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_6AnQqiEjkJdZrWhPS: header link "Praxide"', async ({ page }) => {
await page.goto('/challenge/6AnQqiEjkJdZrWhPS/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Praxide' || t.startsWith('Praxide')), 'link text in header').toBeTruthy();
});
test('challenge_6AnQqiEjkJdZrWhPS: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/6AnQqiEjkJdZrWhPS/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_6AnQqiEjkJdZrWhPS: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/6AnQqiEjkJdZrWhPS/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_6MTtawFBLqDRSqiSf', () => {
test('challenge_6MTtawFBLqDRSqiSf: title matches GT', async ({ page }) => {
await page.goto('/challenge/6MTtawFBLqDRSqiSf/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('power calculator // praxide');
});
test('challenge_6MTtawFBLqDRSqiSf: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/6MTtawFBLqDRSqiSf/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_6MTtawFBLqDRSqiSf: h3 "Notes"', async ({ page }) => {
await page.goto('/challenge/6MTtawFBLqDRSqiSf/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Notes' || t.startsWith('Notes'))).toBeTruthy();
});
test('challenge_6MTtawFBLqDRSqiSf: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/6MTtawFBLqDRSqiSf/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_6MTtawFBLqDRSqiSf: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/6MTtawFBLqDRSqiSf/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_6Q9QLnFf73Cp4QwRK', () => {
test('challenge_6Q9QLnFf73Cp4QwRK: title matches GT', async ({ page }) => {
await page.goto('/challenge/6Q9QLnFf73Cp4QwRK/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('convert hours into seconds // praxide');
});
test('challenge_6Q9QLnFf73Cp4QwRK: h2 "Convert Hours into Seconds"', async ({ page }) => {
await page.goto('/challenge/6Q9QLnFf73Cp4QwRK/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Convert Hours into Seconds' || t.startsWith('Convert Hours into Seconds'))).toBeTruthy();
});
test('challenge_6Q9QLnFf73Cp4QwRK: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/6Q9QLnFf73Cp4QwRK/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_6Q9QLnFf73Cp4QwRK: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/6Q9QLnFf73Cp4QwRK/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_6Q9QLnFf73Cp4QwRK: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/6Q9QLnFf73Cp4QwRK/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_6nkKjnsN7JoF8Pw8r', () => {
test('challenge_6nkKjnsN7JoF8Pw8r: title matches GT', async ({ page }) => {
await page.goto('/challenge/6nkKjnsN7JoF8Pw8r/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('minutes to seconds converter // praxide');
});
test('challenge_6nkKjnsN7JoF8Pw8r: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/6nkKjnsN7JoF8Pw8r/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_6nkKjnsN7JoF8Pw8r: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/6nkKjnsN7JoF8Pw8r/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_6nkKjnsN7JoF8Pw8r: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/6nkKjnsN7JoF8Pw8r/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_7KFAJSSp3pmE8bHhK', () => {
test('challenge_7KFAJSSp3pmE8bHhK: title matches GT', async ({ page }) => {
await page.goto('/challenge/7KFAJSSp3pmE8bHhK/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('is the number less than or equal to zero');
});
test('challenge_7KFAJSSp3pmE8bHhK: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/7KFAJSSp3pmE8bHhK/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_7KFAJSSp3pmE8bHhK: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/7KFAJSSp3pmE8bHhK/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_7KFAJSSp3pmE8bHhK: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/7KFAJSSp3pmE8bHhK/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_7KX5NogxnTzrKEd5P', () => {
test('challenge_7KX5NogxnTzrKEd5P: title matches GT', async ({ page }) => {
await page.goto('/challenge/7KX5NogxnTzrKEd5P/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('check if a number is zero or negative //');
});
test('challenge_7KX5NogxnTzrKEd5P: h2 "Check Whether a Number Is Zero"', async ({ page }) => {
await page.goto('/challenge/7KX5NogxnTzrKEd5P/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Check Whether a Number Is Zero or Negative' || t.startsWith('Check Whether a Number Is Zero or Negative'))).toBeTruthy();
});
test('challenge_7KX5NogxnTzrKEd5P: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/7KX5NogxnTzrKEd5P/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_7KX5NogxnTzrKEd5P: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/7KX5NogxnTzrKEd5P/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_7KX5NogxnTzrKEd5P: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/7KX5NogxnTzrKEd5P/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_7d8kQJZHpSKkp7ZbD', () => {
test('challenge_7d8kQJZHpSKkp7ZbD: title matches GT', async ({ page }) => {
await page.goto('/challenge/7d8kQJZHpSKkp7ZbD/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('fix the bug (part 6) // praxide');
});
test('challenge_7d8kQJZHpSKkp7ZbD: h2 "Fix the Bug (Part 6)"', async ({ page }) => {
await page.goto('/challenge/7d8kQJZHpSKkp7ZbD/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fix the Bug (Part 6)' || t.startsWith('Fix the Bug (Part 6)'))).toBeTruthy();
});
test('challenge_7d8kQJZHpSKkp7ZbD: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/7d8kQJZHpSKkp7ZbD/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_7d8kQJZHpSKkp7ZbD: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/7d8kQJZHpSKkp7ZbD/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_7d8kQJZHpSKkp7ZbD: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/7d8kQJZHpSKkp7ZbD/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_8Ty2vq2YtcBp6CFc8', () => {
test('challenge_8Ty2vq2YtcBp6CFc8: title matches GT', async ({ page }) => {
await page.goto('/challenge/8Ty2vq2YtcBp6CFc8/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('return the total of two numbers // praxi');
});
test('challenge_8Ty2vq2YtcBp6CFc8: h2 "Return the Total of Two Number"', async ({ page }) => {
await page.goto('/challenge/8Ty2vq2YtcBp6CFc8/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Return the Total of Two Numbers' || t.startsWith('Return the Total of Two Numbers'))).toBeTruthy();
});
test('challenge_8Ty2vq2YtcBp6CFc8: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/8Ty2vq2YtcBp6CFc8/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_8Ty2vq2YtcBp6CFc8: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/8Ty2vq2YtcBp6CFc8/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_8Ty2vq2YtcBp6CFc8: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/8Ty2vq2YtcBp6CFc8/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_8XcJiiJv2nAHsPWoj', () => {
test('challenge_8XcJiiJv2nAHsPWoj: title matches GT', async ({ page }) => {
await page.goto('/challenge/8XcJiiJv2nAHsPWoj/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('grab the final item of an array // praxi');
});
test('challenge_8XcJiiJv2nAHsPWoj: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/8XcJiiJv2nAHsPWoj/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_8XcJiiJv2nAHsPWoj: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/8XcJiiJv2nAHsPWoj/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_8XcJiiJv2nAHsPWoj: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/8XcJiiJv2nAHsPWoj/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_8q54MKnRrm89pSLmW', () => {
test('challenge_8q54MKnRrm89pSLmW: title matches GT', async ({ page }) => {
await page.goto('/challenge/8q54MKnRrm89pSLmW/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('convert minutes into seconds // praxide');
});
test('challenge_8q54MKnRrm89pSLmW: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/8q54MKnRrm89pSLmW/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_8q54MKnRrm89pSLmW: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/8q54MKnRrm89pSLmW/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_8q54MKnRrm89pSLmW: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/8q54MKnRrm89pSLmW/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_8ym3dKrL3svkYr4h4', () => {
test('challenge_8ym3dKrL3svkYr4h4: title matches GT', async ({ page }) => {
await page.goto('/challenge/8ym3dKrL3svkYr4h4/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('how praxide works // praxide');
});
test('challenge_8ym3dKrL3svkYr4h4: h2 "How Praxide Works"', async ({ page }) => {
await page.goto('/challenge/8ym3dKrL3svkYr4h4/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How Praxide Works' || t.startsWith('How Praxide Works'))).toBeTruthy();
});
test('challenge_8ym3dKrL3svkYr4h4: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/8ym3dKrL3svkYr4h4/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_8ym3dKrL3svkYr4h4: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/8ym3dKrL3svkYr4h4/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_8ym3dKrL3svkYr4h4: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/8ym3dKrL3svkYr4h4/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_9MjEpkL7yAjAqiH58', () => {
test('challenge_9MjEpkL7yAjAqiH58: title matches GT', async ({ page }) => {
await page.goto('/challenge/9MjEpkL7yAjAqiH58/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sum under 100? // praxide');
});
test('challenge_9MjEpkL7yAjAqiH58: h2 "Sum Under 100?"', async ({ page }) => {
await page.goto('/challenge/9MjEpkL7yAjAqiH58/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sum Under 100?' || t.startsWith('Sum Under 100?'))).toBeTruthy();
});
test('challenge_9MjEpkL7yAjAqiH58: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/9MjEpkL7yAjAqiH58/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_9MjEpkL7yAjAqiH58: h3 "Notes"', async ({ page }) => {
await page.goto('/challenge/9MjEpkL7yAjAqiH58/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Notes' || t.startsWith('Notes'))).toBeTruthy();
});
test('challenge_9MjEpkL7yAjAqiH58: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/9MjEpkL7yAjAqiH58/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_9MjEpkL7yAjAqiH58: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/9MjEpkL7yAjAqiH58/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_ARr5tA458o2tC9FTN', () => {
test('challenge_ARr5tA458o2tC9FTN: title matches GT', async ({ page }) => {
await page.goto('/challenge/ARr5tA458o2tC9FTN/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('how praxide works // praxide');
});
test('challenge_ARr5tA458o2tC9FTN: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/ARr5tA458o2tC9FTN/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_ARr5tA458o2tC9FTN: header link "Praxide"', async ({ page }) => {
await page.goto('/challenge/ARr5tA458o2tC9FTN/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Praxide' || t.startsWith('Praxide')), 'link text in header').toBeTruthy();
});
test('challenge_ARr5tA458o2tC9FTN: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/ARr5tA458o2tC9FTN/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_ARr5tA458o2tC9FTN: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/ARr5tA458o2tC9FTN/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_AoMSgAXDBNN9RuBGR', () => {
test('challenge_AoMSgAXDBNN9RuBGR: title matches GT', async ({ page }) => {
await page.goto('/challenge/AoMSgAXDBNN9RuBGR/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('barnyard leg tally // praxide');
});
test('challenge_AoMSgAXDBNN9RuBGR: h2 "Barnyard Leg Tally"', async ({ page }) => {
await page.goto('/challenge/AoMSgAXDBNN9RuBGR/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Barnyard Leg Tally' || t.startsWith('Barnyard Leg Tally'))).toBeTruthy();
});
test('challenge_AoMSgAXDBNN9RuBGR: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/AoMSgAXDBNN9RuBGR/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_AoMSgAXDBNN9RuBGR: h3 "Hints"', async ({ page }) => {
await page.goto('/challenge/AoMSgAXDBNN9RuBGR/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Hints' || t.startsWith('Hints'))).toBeTruthy();
});
test('challenge_AoMSgAXDBNN9RuBGR: header link "Praxide"', async ({ page }) => {
await page.goto('/challenge/AoMSgAXDBNN9RuBGR/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Praxide' || t.startsWith('Praxide')), 'link text in header').toBeTruthy();
});
test('challenge_AoMSgAXDBNN9RuBGR: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/AoMSgAXDBNN9RuBGR/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_AoMSgAXDBNN9RuBGR: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/AoMSgAXDBNN9RuBGR/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_B4HjZbBh9yuELmjna', () => {
test('challenge_B4HjZbBh9yuELmjna: title matches GT', async ({ page }) => {
await page.goto('/challenge/B4HjZbBh9yuELmjna/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('area of a triangle // praxide');
});
test('challenge_B4HjZbBh9yuELmjna: h2 "Area of a Triangle"', async ({ page }) => {
await page.goto('/challenge/B4HjZbBh9yuELmjna/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Area of a Triangle' || t.startsWith('Area of a Triangle'))).toBeTruthy();
});
test('challenge_B4HjZbBh9yuELmjna: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/B4HjZbBh9yuELmjna/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_B4HjZbBh9yuELmjna: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/B4HjZbBh9yuELmjna/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_B4HjZbBh9yuELmjna: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/B4HjZbBh9yuELmjna/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_BXshCsqwtB6NMuQWH', () => {
test('challenge_BXshCsqwtB6NMuQWH: title matches GT', async ({ page }) => {
await page.goto('/challenge/BXshCsqwtB6NMuQWH/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('combine two name parts into a single str');
});
test('challenge_BXshCsqwtB6NMuQWH: h2 "Combine Two Name Parts into a "', async ({ page }) => {
await page.goto('/challenge/BXshCsqwtB6NMuQWH/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Combine Two Name Parts into a Single String' || t.startsWith('Combine Two Name Parts into a Single String'))).toBeTruthy();
});
test('challenge_BXshCsqwtB6NMuQWH: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/BXshCsqwtB6NMuQWH/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_BXshCsqwtB6NMuQWH: h3 "Hints"', async ({ page }) => {
await page.goto('/challenge/BXshCsqwtB6NMuQWH/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Hints' || t.startsWith('Hints'))).toBeTruthy();
});
test('challenge_BXshCsqwtB6NMuQWH: header link "Coursework"', async ({ page }) => {
await page.goto('/challenge/BXshCsqwtB6NMuQWH/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Coursework' || t.startsWith('Coursework')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_BXshCsqwtB6NMuQWH: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/BXshCsqwtB6NMuQWH/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_BeW6HMLCfGzHxkzbe', () => {
test('challenge_BeW6HMLCfGzHxkzbe: title matches GT', async ({ page }) => {
await page.goto('/challenge/BeW6HMLCfGzHxkzbe/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('mend the comparison // praxide');
});
test('challenge_BeW6HMLCfGzHxkzbe: h2 "Mend the Comparison"', async ({ page }) => {
await page.goto('/challenge/BeW6HMLCfGzHxkzbe/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mend the Comparison' || t.startsWith('Mend the Comparison'))).toBeTruthy();
});
test('challenge_BeW6HMLCfGzHxkzbe: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/BeW6HMLCfGzHxkzbe/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_BeW6HMLCfGzHxkzbe: h3 "Notes"', async ({ page }) => {
await page.goto('/challenge/BeW6HMLCfGzHxkzbe/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Notes' || t.startsWith('Notes'))).toBeTruthy();
});
test('challenge_BeW6HMLCfGzHxkzbe: header link "Praxide"', async ({ page }) => {
await page.goto('/challenge/BeW6HMLCfGzHxkzbe/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Praxide' || t.startsWith('Praxide')), 'link text in header').toBeTruthy();
});
test('challenge_BeW6HMLCfGzHxkzbe: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/BeW6HMLCfGzHxkzbe/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_BeW6HMLCfGzHxkzbe: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/BeW6HMLCfGzHxkzbe/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_Bk9wcbQJDopzS64yZ', () => {
test('challenge_Bk9wcbQJDopzS64yZ: title matches GT', async ({ page }) => {
await page.goto('/challenge/Bk9wcbQJDopzS64yZ/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('check whether a number divides evenly by');
});
test('challenge_Bk9wcbQJDopzS64yZ: h2 "Tell Whether a Whole Number Sp"', async ({ page }) => {
await page.goto('/challenge/Bk9wcbQJDopzS64yZ/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tell Whether a Whole Number Splits By Five' || t.startsWith('Tell Whether a Whole Number Splits By Five'))).toBeTruthy();
});
test('challenge_Bk9wcbQJDopzS64yZ: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/Bk9wcbQJDopzS64yZ/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_Bk9wcbQJDopzS64yZ: header link "Praxide"', async ({ page }) => {
await page.goto('/challenge/Bk9wcbQJDopzS64yZ/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Praxide' || t.startsWith('Praxide')), 'link text in header').toBeTruthy();
});
test('challenge_Bk9wcbQJDopzS64yZ: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/Bk9wcbQJDopzS64yZ/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_Bk9wcbQJDopzS64yZ: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/Bk9wcbQJDopzS64yZ/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_C6pdpgxDQFh7KpX9j', () => {
test('challenge_C6pdpgxDQFh7KpX9j: title matches GT', async ({ page }) => {
await page.goto('/challenge/C6pdpgxDQFh7KpX9j/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('combine two values into one total // pra');
});
test('challenge_C6pdpgxDQFh7KpX9j: h2 "Combine Two Values into One To"', async ({ page }) => {
await page.goto('/challenge/C6pdpgxDQFh7KpX9j/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Combine Two Values into One Total' || t.startsWith('Combine Two Values into One Total'))).toBeTruthy();
});
test('challenge_C6pdpgxDQFh7KpX9j: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/C6pdpgxDQFh7KpX9j/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_C6pdpgxDQFh7KpX9j: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/C6pdpgxDQFh7KpX9j/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_C6pdpgxDQFh7KpX9j: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/C6pdpgxDQFh7KpX9j/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_CjXamaNRmKxwkmBxq', () => {
test('challenge_CjXamaNRmKxwkmBxq: title matches GT', async ({ page }) => {
await page.goto('/challenge/CjXamaNRmKxwkmBxq/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('syntax slips (part 1) // praxide');
});
test('challenge_CjXamaNRmKxwkmBxq: h2 "Syntax Slips (Part 1)"', async ({ page }) => {
await page.goto('/challenge/CjXamaNRmKxwkmBxq/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Syntax Slips (Part 1)' || t.startsWith('Syntax Slips (Part 1)'))).toBeTruthy();
});
test('challenge_CjXamaNRmKxwkmBxq: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/CjXamaNRmKxwkmBxq/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_CjXamaNRmKxwkmBxq: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/CjXamaNRmKxwkmBxq/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_CjXamaNRmKxwkmBxq: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/CjXamaNRmKxwkmBxq/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_CtzPuYwxvZwkqxLda', () => {
test('challenge_CtzPuYwxvZwkqxLda: title matches GT', async ({ page }) => {
await page.goto('/challenge/CtzPuYwxvZwkqxLda/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('convert hours into seconds // praxide');
});
test('challenge_CtzPuYwxvZwkqxLda: h2 "Convert Hours into Seconds"', async ({ page }) => {
await page.goto('/challenge/CtzPuYwxvZwkqxLda/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Convert Hours into Seconds' || t.startsWith('Convert Hours into Seconds'))).toBeTruthy();
});
test('challenge_CtzPuYwxvZwkqxLda: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/CtzPuYwxvZwkqxLda/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_CtzPuYwxvZwkqxLda: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/CtzPuYwxvZwkqxLda/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_CtzPuYwxvZwkqxLda: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/CtzPuYwxvZwkqxLda/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_D8C4E74i37zSt8SzQ', () => {
test('challenge_D8C4E74i37zSt8SzQ: title matches GT', async ({ page }) => {
await page.goto('/challenge/D8C4E74i37zSt8SzQ/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('fetch the first value from an array // p');
});
test('challenge_D8C4E74i37zSt8SzQ: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/D8C4E74i37zSt8SzQ/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_D8C4E74i37zSt8SzQ: h3 "Notes"', async ({ page }) => {
await page.goto('/challenge/D8C4E74i37zSt8SzQ/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Notes' || t.startsWith('Notes'))).toBeTruthy();
});
test('challenge_D8C4E74i37zSt8SzQ: header link "Praxide"', async ({ page }) => {
await page.goto('/challenge/D8C4E74i37zSt8SzQ/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Praxide' || t.startsWith('Praxide')), 'link text in header').toBeTruthy();
});
test('challenge_D8C4E74i37zSt8SzQ: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/D8C4E74i37zSt8SzQ/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_D8C4E74i37zSt8SzQ: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/D8C4E74i37zSt8SzQ/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_DmFnzAQzWhyRWdKPi', () => {
test('challenge_DmFnzAQzWhyRWdKPi: title matches GT', async ({ page }) => {
await page.goto('/challenge/DmFnzAQzWhyRWdKPi/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('convert hours into seconds // praxide');
});
test('challenge_DmFnzAQzWhyRWdKPi: h2 "Convert Hours into Seconds"', async ({ page }) => {
await page.goto('/challenge/DmFnzAQzWhyRWdKPi/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Convert Hours into Seconds' || t.startsWith('Convert Hours into Seconds'))).toBeTruthy();
});
test('challenge_DmFnzAQzWhyRWdKPi: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/DmFnzAQzWhyRWdKPi/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_DmFnzAQzWhyRWdKPi: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/DmFnzAQzWhyRWdKPi/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_DmFnzAQzWhyRWdKPi: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/DmFnzAQzWhyRWdKPi/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_EP66YmuNMWhRZdniY', () => {
test('challenge_EP66YmuNMWhRZdniY: title matches GT', async ({ page }) => {
await page.goto('/challenge/EP66YmuNMWhRZdniY/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('is the given integer zero or negative? /');
});
test('challenge_EP66YmuNMWhRZdniY: h2 "Is the Given Integer Zero or N"', async ({ page }) => {
await page.goto('/challenge/EP66YmuNMWhRZdniY/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Is the Given Integer Zero or Negative?' || t.startsWith('Is the Given Integer Zero or Negative?'))).toBeTruthy();
});
test('challenge_EP66YmuNMWhRZdniY: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/EP66YmuNMWhRZdniY/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_EP66YmuNMWhRZdniY: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/EP66YmuNMWhRZdniY/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_EP66YmuNMWhRZdniY: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/EP66YmuNMWhRZdniY/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_EcF624DNjhkAZHz6i', () => {
test('challenge_EcF624DNjhkAZHz6i: title matches GT', async ({ page }) => {
await page.goto('/challenge/EcF624DNjhkAZHz6i/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('greet by name! // praxide');
});
test('challenge_EcF624DNjhkAZHz6i: h2 "Greet by Name!"', async ({ page }) => {
await page.goto('/challenge/EcF624DNjhkAZHz6i/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Greet by Name!' || t.startsWith('Greet by Name!'))).toBeTruthy();
});
test('challenge_EcF624DNjhkAZHz6i: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/EcF624DNjhkAZHz6i/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_EcF624DNjhkAZHz6i: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/EcF624DNjhkAZHz6i/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_EcF624DNjhkAZHz6i: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/EcF624DNjhkAZHz6i/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_ErLPB5BcrE7yhHhKN', () => {
test('challenge_ErLPB5BcrE7yhHhKN: title matches GT', async ({ page }) => {
await page.goto('/challenge/ErLPB5BcrE7yhHhKN/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('how praxide works // praxide');
});
test('challenge_ErLPB5BcrE7yhHhKN: h2 "How Praxide Works"', async ({ page }) => {
await page.goto('/challenge/ErLPB5BcrE7yhHhKN/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How Praxide Works' || t.startsWith('How Praxide Works'))).toBeTruthy();
});
test('challenge_ErLPB5BcrE7yhHhKN: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/ErLPB5BcrE7yhHhKN/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_ErLPB5BcrE7yhHhKN: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/ErLPB5BcrE7yhHhKN/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_ErLPB5BcrE7yhHhKN: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/ErLPB5BcrE7yhHhKN/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_F49nF24spzt4H2KuZ', () => {
test('challenge_F49nF24spzt4H2KuZ: title matches GT', async ({ page }) => {
await page.goto('/challenge/F49nF24spzt4H2KuZ/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sum two numbers and return it // praxide');
});
test('challenge_F49nF24spzt4H2KuZ: h2 "Sum Two Numbers and Return It"', async ({ page }) => {
await page.goto('/challenge/F49nF24spzt4H2KuZ/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sum Two Numbers and Return It' || t.startsWith('Sum Two Numbers and Return It'))).toBeTruthy();
});
test('challenge_F49nF24spzt4H2KuZ: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/F49nF24spzt4H2KuZ/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_F49nF24spzt4H2KuZ: header link "Praxide"', async ({ page }) => {
await page.goto('/challenge/F49nF24spzt4H2KuZ/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Praxide' || t.startsWith('Praxide')), 'link text in header').toBeTruthy();
});
test('challenge_F49nF24spzt4H2KuZ: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/F49nF24spzt4H2KuZ/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_F49nF24spzt4H2KuZ: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/F49nF24spzt4H2KuZ/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_FQyaaJx7orS7tiwz8', () => {
test('challenge_FQyaaJx7orS7tiwz8: title matches GT', async ({ page }) => {
await page.goto('/challenge/FQyaaJx7orS7tiwz8/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('turn minutes into seconds // praxide');
});
test('challenge_FQyaaJx7orS7tiwz8: h2 "Turn Minutes into Seconds"', async ({ page }) => {
await page.goto('/challenge/FQyaaJx7orS7tiwz8/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Turn Minutes into Seconds' || t.startsWith('Turn Minutes into Seconds'))).toBeTruthy();
});
test('challenge_FQyaaJx7orS7tiwz8: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/FQyaaJx7orS7tiwz8/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_FQyaaJx7orS7tiwz8: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/FQyaaJx7orS7tiwz8/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_FQyaaJx7orS7tiwz8: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/FQyaaJx7orS7tiwz8/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_FSKb2sKrGoejfJLrd', () => {
test('challenge_FSKb2sKrGoejfJLrd: title matches GT', async ({ page }) => {
await page.goto('/challenge/FSKb2sKrGoejfJLrd/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('less than 100? // praxide');
});
test('challenge_FSKb2sKrGoejfJLrd: h2 "Less Than 100?"', async ({ page }) => {
await page.goto('/challenge/FSKb2sKrGoejfJLrd/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Less Than 100?' || t.startsWith('Less Than 100?'))).toBeTruthy();
});
test('challenge_FSKb2sKrGoejfJLrd: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/FSKb2sKrGoejfJLrd/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_FSKb2sKrGoejfJLrd: h3 "Notes"', async ({ page }) => {
await page.goto('/challenge/FSKb2sKrGoejfJLrd/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Notes' || t.startsWith('Notes'))).toBeTruthy();
});
test('challenge_FSKb2sKrGoejfJLrd: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/FSKb2sKrGoejfJLrd/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_FSKb2sKrGoejfJLrd: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/FSKb2sKrGoejfJLrd/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_FZK5rECZMiqu9bv9i', () => {
test('challenge_FZK5rECZMiqu9bv9i: title matches GT', async ({ page }) => {
await page.goto('/challenge/FZK5rECZMiqu9bv9i/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('do the two values match? // praxide');
});
test('challenge_FZK5rECZMiqu9bv9i: h2 "Do the Two Values Match?"', async ({ page }) => {
await page.goto('/challenge/FZK5rECZMiqu9bv9i/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Do the Two Values Match?' || t.startsWith('Do the Two Values Match?'))).toBeTruthy();
});
test('challenge_FZK5rECZMiqu9bv9i: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/FZK5rECZMiqu9bv9i/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_FZK5rECZMiqu9bv9i: h3 "Notes"', async ({ page }) => {
await page.goto('/challenge/FZK5rECZMiqu9bv9i/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Notes' || t.startsWith('Notes'))).toBeTruthy();
});
test('challenge_FZK5rECZMiqu9bv9i: header link "Learning"', async ({ page }) => {
await page.goto('/challenge/FZK5rECZMiqu9bv9i/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Learning' || t.startsWith('Learning')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_FZK5rECZMiqu9bv9i: header link "Exercises"', async ({ page }) => {
await page.goto('/challenge/FZK5rECZMiqu9bv9i/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Exercises' || t.startsWith('Exercises')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
test('challenge_FZK5rECZMiqu9bv9i: header link "Training"', async ({ page }) => {
await page.goto('/challenge/FZK5rECZMiqu9bv9i/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Training' || t.startsWith('Training')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('practice')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_G7akPxKJaw7qT6MDq', () => {
test('challenge_G7akPxKJaw7qT6MDq: title matches GT', async ({ page }) => {
await page.goto('/challenge/G7akPxKJaw7qT6MDq/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('string concatenation fix // praxide');
});
test('challenge_G7akPxKJaw7qT6MDq: h2 "String Concatenation Fix"', async ({ page }) => {
await page.goto('/challenge/G7akPxKJaw7qT6MDq/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'String Concatenation Fix' || t.startsWith('String Concatenation Fix'))).toBeTruthy();
});
test('challenge_G7akPxKJaw7qT6MDq: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/G7akPxKJaw7qT6MDq/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_G7akPxKJaw7qT6MDq: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/G7akPxKJaw7qT6MDq/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_G7akPxKJaw7qT6MDq: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/G7akPxKJaw7qT6MDq/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_GGprgywyorQnhfDjh', () => {
test('challenge_GGprgywyorQnhfDjh: title matches GT', async ({ page }) => {
await page.goto('/challenge/GGprgywyorQnhfDjh/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('how praxide works // praxide');
});
test('challenge_GGprgywyorQnhfDjh: h2 "How Praxide Works"', async ({ page }) => {
await page.goto('/challenge/GGprgywyorQnhfDjh/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How Praxide Works' || t.startsWith('How Praxide Works'))).toBeTruthy();
});
test('challenge_GGprgywyorQnhfDjh: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/GGprgywyorQnhfDjh/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_GGprgywyorQnhfDjh: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/GGprgywyorQnhfDjh/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_GGprgywyorQnhfDjh: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/GGprgywyorQnhfDjh/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_GKapGRSNrQtJwk6TK', () => {
test('challenge_GKapGRSNrQtJwk6TK: title matches GT', async ({ page }) => {
await page.goto('/challenge/GKapGRSNrQtJwk6TK/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('circuit wattage // praxide');
});
test('challenge_GKapGRSNrQtJwk6TK: h2 "Circuit Wattage"', async ({ page }) => {
await page.goto('/challenge/GKapGRSNrQtJwk6TK/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Circuit Wattage' || t.startsWith('Circuit Wattage'))).toBeTruthy();
});
test('challenge_GKapGRSNrQtJwk6TK: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/GKapGRSNrQtJwk6TK/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_GKapGRSNrQtJwk6TK: h3 "Notes"', async ({ page }) => {
await page.goto('/challenge/GKapGRSNrQtJwk6TK/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Notes' || t.startsWith('Notes'))).toBeTruthy();
});
test('challenge_GKapGRSNrQtJwk6TK: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/GKapGRSNrQtJwk6TK/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_GKapGRSNrQtJwk6TK: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/GKapGRSNrQtJwk6TK/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_GPmoRCZKkyNtoJMcN', () => {
test('challenge_GPmoRCZKkyNtoJMcN: title matches GT', async ({ page }) => {
await page.goto('/challenge/GPmoRCZKkyNtoJMcN/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('parse a string to an integer // praxide');
});
test('challenge_GPmoRCZKkyNtoJMcN: h2 "Parse a String to an Integer"', async ({ page }) => {
await page.goto('/challenge/GPmoRCZKkyNtoJMcN/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Parse a String to an Integer' || t.startsWith('Parse a String to an Integer'))).toBeTruthy();
});
test('challenge_GPmoRCZKkyNtoJMcN: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/GPmoRCZKkyNtoJMcN/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_GPmoRCZKkyNtoJMcN: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/GPmoRCZKkyNtoJMcN/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_GPmoRCZKkyNtoJMcN: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/GPmoRCZKkyNtoJMcN/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_HvYiBXgfPtnDHitym', () => {
test('challenge_HvYiBXgfPtnDHitym: title matches GT', async ({ page }) => {
await page.goto('/challenge/HvYiBXgfPtnDHitym/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('area of a triangle // praxide');
});
test('challenge_HvYiBXgfPtnDHitym: h2 "Area of a Triangle"', async ({ page }) => {
await page.goto('/challenge/HvYiBXgfPtnDHitym/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Area of a Triangle' || t.startsWith('Area of a Triangle'))).toBeTruthy();
});
test('challenge_HvYiBXgfPtnDHitym: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/HvYiBXgfPtnDHitym/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_HvYiBXgfPtnDHitym: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/HvYiBXgfPtnDHitym/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_HvYiBXgfPtnDHitym: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/HvYiBXgfPtnDHitym/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_HxJ7XYSQe4qkJjf2s', () => {
test('challenge_HxJ7XYSQe4qkJjf2s: title matches GT', async ({ page }) => {
await page.goto('/challenge/HxJ7XYSQe4qkJjf2s/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('multiple of 100 // praxide');
});
test('challenge_HxJ7XYSQe4qkJjf2s: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/HxJ7XYSQe4qkJjf2s/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_HxJ7XYSQe4qkJjf2s: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/HxJ7XYSQe4qkJjf2s/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_HxJ7XYSQe4qkJjf2s: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/HxJ7XYSQe4qkJjf2s/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_JAtN6KLtahAkmT3n3', () => {
test('challenge_JAtN6KLtahAkmT3n3: title matches GT', async ({ page }) => {
await page.goto('/challenge/JAtN6KLtahAkmT3n3/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('greet by name! // praxide');
});
test('challenge_JAtN6KLtahAkmT3n3: h2 "Greet by Name!"', async ({ page }) => {
await page.goto('/challenge/JAtN6KLtahAkmT3n3/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Greet by Name!' || t.startsWith('Greet by Name!'))).toBeTruthy();
});
test('challenge_JAtN6KLtahAkmT3n3: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/JAtN6KLtahAkmT3n3/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_JAtN6KLtahAkmT3n3: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/JAtN6KLtahAkmT3n3/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_JAtN6KLtahAkmT3n3: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/JAtN6KLtahAkmT3n3/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_JKEzNHZgRoz2Jv7oy', () => {
test('challenge_JKEzNHZgRoz2Jv7oy: title matches GT', async ({ page }) => {
await page.goto('/challenge/JKEzNHZgRoz2Jv7oy/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('check whether the number is zero or nega');
});
test('challenge_JKEzNHZgRoz2Jv7oy: h2 "Check Whether the Number Is Ze"', async ({ page }) => {
await page.goto('/challenge/JKEzNHZgRoz2Jv7oy/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Check Whether the Number Is Zero or Negative' || t.startsWith('Check Whether the Number Is Zero or Negative'))).toBeTruthy();
});
test('challenge_JKEzNHZgRoz2Jv7oy: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/JKEzNHZgRoz2Jv7oy/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_JKEzNHZgRoz2Jv7oy: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/JKEzNHZgRoz2Jv7oy/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_JKEzNHZgRoz2Jv7oy: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/JKEzNHZgRoz2Jv7oy/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_KQ64xseukeew4ZTg5', () => {
test('challenge_KQ64xseukeew4ZTg5: title matches GT', async ({ page }) => {
await page.goto('/challenge/KQ64xseukeew4ZTg5/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('basketball points // praxide');
});
test('challenge_KQ64xseukeew4ZTg5: h2 "Basketball Points"', async ({ page }) => {
await page.goto('/challenge/KQ64xseukeew4ZTg5/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Basketball Points' || t.startsWith('Basketball Points'))).toBeTruthy();
});
test('challenge_KQ64xseukeew4ZTg5: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/KQ64xseukeew4ZTg5/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_KQ64xseukeew4ZTg5: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/KQ64xseukeew4ZTg5/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_KQ64xseukeew4ZTg5: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/KQ64xseukeew4ZTg5/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_KWoj7kWiHRqJtG6S2', () => {
test('challenge_KWoj7kWiHRqJtG6S2: title matches GT', async ({ page }) => {
await page.goto('/challenge/KWoj7kWiHRqJtG6S2/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('compute the remainder of two numbers // ');
});
test('challenge_KWoj7kWiHRqJtG6S2: h2 "Get the Remainder of Two Whole"', async ({ page }) => {
await page.goto('/challenge/KWoj7kWiHRqJtG6S2/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get the Remainder of Two Whole Numbers' || t.startsWith('Get the Remainder of Two Whole Numbers'))).toBeTruthy();
});
test('challenge_KWoj7kWiHRqJtG6S2: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/KWoj7kWiHRqJtG6S2/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_KWoj7kWiHRqJtG6S2: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/KWoj7kWiHRqJtG6S2/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_KWoj7kWiHRqJtG6S2: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/KWoj7kWiHRqJtG6S2/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_KjCS7occ9hfu5snpb', () => {
test('challenge_KjCS7occ9hfu5snpb: title matches GT', async ({ page }) => {
await page.goto('/challenge/KjCS7occ9hfu5snpb/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('give back the integer that comes right a');
});
test('challenge_KjCS7occ9hfu5snpb: h2 "Give Back the Integer That Com"', async ({ page }) => {
await page.goto('/challenge/KjCS7occ9hfu5snpb/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Give Back the Integer That Comes Right After' || t.startsWith('Give Back the Integer That Comes Right After'))).toBeTruthy();
});
test('challenge_KjCS7occ9hfu5snpb: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/KjCS7occ9hfu5snpb/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_KjCS7occ9hfu5snpb: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/KjCS7occ9hfu5snpb/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_KjCS7occ9hfu5snpb: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/KjCS7occ9hfu5snpb/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_L2fwjYi9YixY8kJfK', () => {
test('challenge_L2fwjYi9YixY8kJfK: title matches GT', async ({ page }) => {
await page.goto('/challenge/L2fwjYi9YixY8kJfK/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('circuit power calculator // praxide');
});
test('challenge_L2fwjYi9YixY8kJfK: h2 "Circuit Power Calculator"', async ({ page }) => {
await page.goto('/challenge/L2fwjYi9YixY8kJfK/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Circuit Power Calculator' || t.startsWith('Circuit Power Calculator'))).toBeTruthy();
});
test('challenge_L2fwjYi9YixY8kJfK: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/L2fwjYi9YixY8kJfK/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_L2fwjYi9YixY8kJfK: h3 "Notes"', async ({ page }) => {
await page.goto('/challenge/L2fwjYi9YixY8kJfK/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Notes' || t.startsWith('Notes'))).toBeTruthy();
});
test('challenge_L2fwjYi9YixY8kJfK: header link "Lessons"', async ({ page }) => {
await page.goto('/challenge/L2fwjYi9YixY8kJfK/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Lessons' || t.startsWith('Lessons')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_L2fwjYi9YixY8kJfK: header link "Exercises"', async ({ page }) => {
await page.goto('/challenge/L2fwjYi9YixY8kJfK/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Exercises' || t.startsWith('Exercises')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
test('challenge_L2fwjYi9YixY8kJfK: header link "Training"', async ({ page }) => {
await page.goto('/challenge/L2fwjYi9YixY8kJfK/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Training' || t.startsWith('Training')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('practice')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_L7z5EW4MSoGBi6cXP', () => {
test('challenge_L7z5EW4MSoGBi6cXP: title matches GT', async ({ page }) => {
await page.goto('/challenge/L7z5EW4MSoGBi6cXP/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('how praxide works // praxide');
});
test('challenge_L7z5EW4MSoGBi6cXP: h2 "How Praxide Works"', async ({ page }) => {
await page.goto('/challenge/L7z5EW4MSoGBi6cXP/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How Praxide Works' || t.startsWith('How Praxide Works'))).toBeTruthy();
});
test('challenge_L7z5EW4MSoGBi6cXP: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/L7z5EW4MSoGBi6cXP/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_L7z5EW4MSoGBi6cXP: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/L7z5EW4MSoGBi6cXP/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_L7z5EW4MSoGBi6cXP: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/L7z5EW4MSoGBi6cXP/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_M8ADkDJ3R5cQChWCe', () => {
test('challenge_M8ADkDJ3R5cQChWCe: title matches GT', async ({ page }) => {
await page.goto('/challenge/M8ADkDJ3R5cQChWCe/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('do both numbers match? // praxide');
});
test('challenge_M8ADkDJ3R5cQChWCe: h2 "Do Both Numbers Match?"', async ({ page }) => {
await page.goto('/challenge/M8ADkDJ3R5cQChWCe/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Do Both Numbers Match?' || t.startsWith('Do Both Numbers Match?'))).toBeTruthy();
});
test('challenge_M8ADkDJ3R5cQChWCe: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/M8ADkDJ3R5cQChWCe/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_M8ADkDJ3R5cQChWCe: h3 "Notes"', async ({ page }) => {
await page.goto('/challenge/M8ADkDJ3R5cQChWCe/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Notes' || t.startsWith('Notes'))).toBeTruthy();
});
test('challenge_M8ADkDJ3R5cQChWCe: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/M8ADkDJ3R5cQChWCe/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_M8ADkDJ3R5cQChWCe: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/M8ADkDJ3R5cQChWCe/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_MnqxydpcA8K22tTss', () => {
test('challenge_MnqxydpcA8K22tTss: title matches GT', async ({ page }) => {
await page.goto('/challenge/MnqxydpcA8K22tTss/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('hours to seconds conversion // praxide');
});
test('challenge_MnqxydpcA8K22tTss: h2 "Hours to Seconds Conversion"', async ({ page }) => {
await page.goto('/challenge/MnqxydpcA8K22tTss/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Hours to Seconds Conversion' || t.startsWith('Hours to Seconds Conversion'))).toBeTruthy();
});
test('challenge_MnqxydpcA8K22tTss: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/MnqxydpcA8K22tTss/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_MnqxydpcA8K22tTss: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/MnqxydpcA8K22tTss/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_MnqxydpcA8K22tTss: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/MnqxydpcA8K22tTss/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_MpnuiiNfFYdMZkJ88', () => {
test('challenge_MpnuiiNfFYdMZkJ88: title matches GT', async ({ page }) => {
await page.goto('/challenge/MpnuiiNfFYdMZkJ88/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('inches to feet // praxide');
});
test('challenge_MpnuiiNfFYdMZkJ88: h2 "Inches to Feet"', async ({ page }) => {
await page.goto('/challenge/MpnuiiNfFYdMZkJ88/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Inches to Feet' || t.startsWith('Inches to Feet'))).toBeTruthy();
});
test('challenge_MpnuiiNfFYdMZkJ88: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/MpnuiiNfFYdMZkJ88/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_MpnuiiNfFYdMZkJ88: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/MpnuiiNfFYdMZkJ88/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_MpnuiiNfFYdMZkJ88: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/MpnuiiNfFYdMZkJ88/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_MtNAJmJZ49i5Xf3AW', () => {
test('challenge_MtNAJmJZ49i5Xf3AW: title matches GT', async ({ page }) => {
await page.goto('/challenge/MtNAJmJZ49i5Xf3AW/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('convert minutes into seconds // praxide');
});
test('challenge_MtNAJmJZ49i5Xf3AW: h2 "Convert Minutes into Seconds"', async ({ page }) => {
await page.goto('/challenge/MtNAJmJZ49i5Xf3AW/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Convert Minutes into Seconds' || t.startsWith('Convert Minutes into Seconds'))).toBeTruthy();
});
test('challenge_MtNAJmJZ49i5Xf3AW: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/MtNAJmJZ49i5Xf3AW/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_MtNAJmJZ49i5Xf3AW: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/MtNAJmJZ49i5Xf3AW/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_MtNAJmJZ49i5Xf3AW: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/MtNAJmJZ49i5Xf3AW/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_MvZK536X7fyrWH8Qc', () => {
test('challenge_MvZK536X7fyrWH8Qc: title matches GT', async ({ page }) => {
await page.goto('/challenge/MvZK536X7fyrWH8Qc/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('the great string handoff // praxide');
});
test('challenge_MvZK536X7fyrWH8Qc: h2 "The Great String Handoff"', async ({ page }) => {
await page.goto('/challenge/MvZK536X7fyrWH8Qc/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The Great String Handoff' || t.startsWith('The Great String Handoff'))).toBeTruthy();
});
test('challenge_MvZK536X7fyrWH8Qc: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/MvZK536X7fyrWH8Qc/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_MvZK536X7fyrWH8Qc: h3 "Notes"', async ({ page }) => {
await page.goto('/challenge/MvZK536X7fyrWH8Qc/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Notes' || t.startsWith('Notes'))).toBeTruthy();
});
test('challenge_MvZK536X7fyrWH8Qc: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/MvZK536X7fyrWH8Qc/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_MvZK536X7fyrWH8Qc: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/MvZK536X7fyrWH8Qc/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_N36QkjKFyue9pwpZr', () => {
test('challenge_N36QkjKFyue9pwpZr: title matches GT', async ({ page }) => {
await page.goto('/challenge/N36QkjKFyue9pwpZr/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('fix the comparison // praxide');
});
test('challenge_N36QkjKFyue9pwpZr: h2 "Fix the Comparison"', async ({ page }) => {
await page.goto('/challenge/N36QkjKFyue9pwpZr/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fix the Comparison' || t.startsWith('Fix the Comparison'))).toBeTruthy();
});
test('challenge_N36QkjKFyue9pwpZr: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/N36QkjKFyue9pwpZr/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_N36QkjKFyue9pwpZr: h3 "Notes"', async ({ page }) => {
await page.goto('/challenge/N36QkjKFyue9pwpZr/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Notes' || t.startsWith('Notes'))).toBeTruthy();
});
test('challenge_N36QkjKFyue9pwpZr: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/N36QkjKFyue9pwpZr/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_N36QkjKFyue9pwpZr: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/N36QkjKFyue9pwpZr/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_NAQhEoxbofPidLxm9', () => {
test('challenge_NAQhEoxbofPidLxm9: title matches GT', async ({ page }) => {
await page.goto('/challenge/NAQhEoxbofPidLxm9/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('increment the whole number you are given');
});
test('challenge_NAQhEoxbofPidLxm9: h2 "Increment the Whole Number You"', async ({ page }) => {
await page.goto('/challenge/NAQhEoxbofPidLxm9/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Increment the Whole Number You Are Given by One' || t.startsWith('Increment the Whole Number You Are Given by One'))).toBeTruthy();
});
test('challenge_NAQhEoxbofPidLxm9: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/NAQhEoxbofPidLxm9/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_NAQhEoxbofPidLxm9: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/NAQhEoxbofPidLxm9/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_NAQhEoxbofPidLxm9: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/NAQhEoxbofPidLxm9/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_NyAFty4To88YCFMij', () => {
test('challenge_NyAFty4To88YCFMij: title matches GT', async ({ page }) => {
await page.goto('/challenge/NyAFty4To88YCFMij/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('how praxide works // praxide');
});
test('challenge_NyAFty4To88YCFMij: h2 "How Praxide Works"', async ({ page }) => {
await page.goto('/challenge/NyAFty4To88YCFMij/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How Praxide Works' || t.startsWith('How Praxide Works'))).toBeTruthy();
});
test('challenge_NyAFty4To88YCFMij: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/NyAFty4To88YCFMij/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_NyAFty4To88YCFMij: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/NyAFty4To88YCFMij/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_NyAFty4To88YCFMij: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/NyAFty4To88YCFMij/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_PTiLYyb4A69KZtBCg', () => {
test('challenge_PTiLYyb4A69KZtBCg: title matches GT', async ({ page }) => {
await page.goto('/challenge/PTiLYyb4A69KZtBCg/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('determine if a number is zero or negativ');
});
test('challenge_PTiLYyb4A69KZtBCg: h2 "Determine If a Number Is Zero "', async ({ page }) => {
await page.goto('/challenge/PTiLYyb4A69KZtBCg/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Determine If a Number Is Zero or Negative' || t.startsWith('Determine If a Number Is Zero or Negative'))).toBeTruthy();
});
test('challenge_PTiLYyb4A69KZtBCg: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/PTiLYyb4A69KZtBCg/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_PTiLYyb4A69KZtBCg: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/PTiLYyb4A69KZtBCg/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_PTiLYyb4A69KZtBCg: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/PTiLYyb4A69KZtBCg/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_PfLPXg8yFiE7T92i4', () => {
test('challenge_PfLPXg8yFiE7T92i4: title matches GT', async ({ page }) => {
await page.goto('/challenge/PfLPXg8yFiE7T92i4/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('spot and fix the bugs // praxide');
});
test('challenge_PfLPXg8yFiE7T92i4: h2 "Spot and Fix the Bugs"', async ({ page }) => {
await page.goto('/challenge/PfLPXg8yFiE7T92i4/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Spot and Fix the Bugs' || t.startsWith('Spot and Fix the Bugs'))).toBeTruthy();
});
test('challenge_PfLPXg8yFiE7T92i4: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/PfLPXg8yFiE7T92i4/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_PfLPXg8yFiE7T92i4: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/PfLPXg8yFiE7T92i4/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_PfLPXg8yFiE7T92i4: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/PfLPXg8yFiE7T92i4/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_Phy3ESenwRH6KNytm', () => {
test('challenge_Phy3ESenwRH6KNytm: title matches GT', async ({ page }) => {
await page.goto('/challenge/Phy3ESenwRH6KNytm/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('simple variable assignment // praxide');
});
test('challenge_Phy3ESenwRH6KNytm: h2 "Simple Variable Assignment"', async ({ page }) => {
await page.goto('/challenge/Phy3ESenwRH6KNytm/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Simple Variable Assignment' || t.startsWith('Simple Variable Assignment'))).toBeTruthy();
});
test('challenge_Phy3ESenwRH6KNytm: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/Phy3ESenwRH6KNytm/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_Phy3ESenwRH6KNytm: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/Phy3ESenwRH6KNytm/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_Phy3ESenwRH6KNytm: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/Phy3ESenwRH6KNytm/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_PjZCAgDagKBaubYbb', () => {
test('challenge_PjZCAgDagKBaubYbb: title matches GT', async ({ page }) => {
await page.goto('/challenge/PjZCAgDagKBaubYbb/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('convert hours and minutes into seconds /');
});
test('challenge_PjZCAgDagKBaubYbb: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/PjZCAgDagKBaubYbb/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_PjZCAgDagKBaubYbb: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/PjZCAgDagKBaubYbb/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_PjZCAgDagKBaubYbb: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/PjZCAgDagKBaubYbb/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_Q2j5FTFtsk7PdzrQk', () => {
test('challenge_Q2j5FTFtsk7PdzrQk: title matches GT', async ({ page }) => {
await page.goto('/challenge/Q2j5FTFtsk7PdzrQk/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('find the remainder of two numbers // pra');
});
test('challenge_Q2j5FTFtsk7PdzrQk: h2 "Find the Remainder of Two Numb"', async ({ page }) => {
await page.goto('/challenge/Q2j5FTFtsk7PdzrQk/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find the Remainder of Two Numbers' || t.startsWith('Find the Remainder of Two Numbers'))).toBeTruthy();
});
test('challenge_Q2j5FTFtsk7PdzrQk: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/Q2j5FTFtsk7PdzrQk/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_Q2j5FTFtsk7PdzrQk: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/Q2j5FTFtsk7PdzrQk/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_Q2j5FTFtsk7PdzrQk: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/Q2j5FTFtsk7PdzrQk/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_QQp2o22huzBCkHesy', () => {
test('challenge_QQp2o22huzBCkHesy: title matches GT', async ({ page }) => {
await page.goto('/challenge/QQp2o22huzBCkHesy/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('convert a boolean to a string // praxide');
});
test('challenge_QQp2o22huzBCkHesy: h2 "Convert a Boolean to a String"', async ({ page }) => {
await page.goto('/challenge/QQp2o22huzBCkHesy/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Convert a Boolean to a String' || t.startsWith('Convert a Boolean to a String'))).toBeTruthy();
});
test('challenge_QQp2o22huzBCkHesy: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/QQp2o22huzBCkHesy/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_QQp2o22huzBCkHesy: header link "Praxide"', async ({ page }) => {
await page.goto('/challenge/QQp2o22huzBCkHesy/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Praxide' || t.startsWith('Praxide')), 'link text in header').toBeTruthy();
});
test('challenge_QQp2o22huzBCkHesy: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/QQp2o22huzBCkHesy/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_QQp2o22huzBCkHesy: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/QQp2o22huzBCkHesy/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_QgCMMMyMmckvHbfKv', () => {
test('challenge_QgCMMMyMmckvHbfKv: title matches GT', async ({ page }) => {
await page.goto('/challenge/QgCMMMyMmckvHbfKv/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('add one and return the following integer');
});
test('challenge_QgCMMMyMmckvHbfKv: h2 "Add One and Return the Next In"', async ({ page }) => {
await page.goto('/challenge/QgCMMMyMmckvHbfKv/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Add One and Return the Next Integer in Line' || t.startsWith('Add One and Return the Next Integer in Line'))).toBeTruthy();
});
test('challenge_QgCMMMyMmckvHbfKv: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/QgCMMMyMmckvHbfKv/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_QgCMMMyMmckvHbfKv: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/QgCMMMyMmckvHbfKv/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_QgCMMMyMmckvHbfKv: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/QgCMMMyMmckvHbfKv/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_Qir2pQ2Qp3uwrfJNZ', () => {
test('challenge_Qir2pQ2Qp3uwrfJNZ: title matches GT', async ({ page }) => {
await page.goto('/challenge/Qir2pQ2Qp3uwrfJNZ/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('give back the next value of the integer ');
});
test('challenge_Qir2pQ2Qp3uwrfJNZ: h2 "Give Back the Next Value of th"', async ({ page }) => {
await page.goto('/challenge/Qir2pQ2Qp3uwrfJNZ/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Give Back the Next Value of the Integer Passed' || t.startsWith('Give Back the Next Value of the Integer Passed'))).toBeTruthy();
});
test('challenge_Qir2pQ2Qp3uwrfJNZ: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/Qir2pQ2Qp3uwrfJNZ/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_Qir2pQ2Qp3uwrfJNZ: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/Qir2pQ2Qp3uwrfJNZ/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_Qir2pQ2Qp3uwrfJNZ: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/Qir2pQ2Qp3uwrfJNZ/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_QzXtDnSZL6y4ZcEvT', () => {
test('challenge_QzXtDnSZL6y4ZcEvT: title matches GT', async ({ page }) => {
await page.goto('/challenge/QzXtDnSZL6y4ZcEvT/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('the barnyard count // praxide');
});
test('challenge_QzXtDnSZL6y4ZcEvT: h2 "The Barnyard Count"', async ({ page }) => {
await page.goto('/challenge/QzXtDnSZL6y4ZcEvT/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The Barnyard Count' || t.startsWith('The Barnyard Count'))).toBeTruthy();
});
test('challenge_QzXtDnSZL6y4ZcEvT: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/QzXtDnSZL6y4ZcEvT/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_QzXtDnSZL6y4ZcEvT: h3 "Samples"', async ({ page }) => {
await page.goto('/challenge/QzXtDnSZL6y4ZcEvT/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Samples' || t.startsWith('Samples'))).toBeTruthy();
});
test('challenge_QzXtDnSZL6y4ZcEvT: h3 "Hints"', async ({ page }) => {
await page.goto('/challenge/QzXtDnSZL6y4ZcEvT/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Hints' || t.startsWith('Hints'))).toBeTruthy();
});
test('challenge_QzXtDnSZL6y4ZcEvT: header link "Coursework"', async ({ page }) => {
await page.goto('/challenge/QzXtDnSZL6y4ZcEvT/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Coursework' || t.startsWith('Coursework')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_QzXtDnSZL6y4ZcEvT: header link "Exercises"', async ({ page }) => {
await page.goto('/challenge/QzXtDnSZL6y4ZcEvT/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Exercises' || t.startsWith('Exercises')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
test('challenge_QzXtDnSZL6y4ZcEvT: header link "Workouts"', async ({ page }) => {
await page.goto('/challenge/QzXtDnSZL6y4ZcEvT/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Workouts' || t.startsWith('Workouts')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('practice')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_RNMKdSEhxdxf2fWsa', () => {
test('challenge_RNMKdSEhxdxf2fWsa: title matches GT', async ({ page }) => {
await page.goto('/challenge/RNMKdSEhxdxf2fWsa/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('find the remainder of two numbers // pra');
});
test('challenge_RNMKdSEhxdxf2fWsa: h2 "Find the Remainder of Two Numb"', async ({ page }) => {
await page.goto('/challenge/RNMKdSEhxdxf2fWsa/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find the Remainder of Two Numbers' || t.startsWith('Find the Remainder of Two Numbers'))).toBeTruthy();
});
test('challenge_RNMKdSEhxdxf2fWsa: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/RNMKdSEhxdxf2fWsa/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_RNMKdSEhxdxf2fWsa: header link "Praxide"', async ({ page }) => {
await page.goto('/challenge/RNMKdSEhxdxf2fWsa/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Praxide' || t.startsWith('Praxide')), 'link text in header').toBeTruthy();
});
test('challenge_RNMKdSEhxdxf2fWsa: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/RNMKdSEhxdxf2fWsa/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_RNMKdSEhxdxf2fWsa: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/RNMKdSEhxdxf2fWsa/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_RTEiB6WTEPwjfvF9o', () => {
test('challenge_RTEiB6WTEPwjfvF9o: title matches GT', async ({ page }) => {
await page.goto('/challenge/RTEiB6WTEPwjfvF9o/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('return the word to me! // praxide');
});
test('challenge_RTEiB6WTEPwjfvF9o: h2 "Return the Word to Me!"', async ({ page }) => {
await page.goto('/challenge/RTEiB6WTEPwjfvF9o/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Return the Word to Me!' || t.startsWith('Return the Word to Me!'))).toBeTruthy();
});
test('challenge_RTEiB6WTEPwjfvF9o: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/RTEiB6WTEPwjfvF9o/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_RTEiB6WTEPwjfvF9o: h3 "Notes"', async ({ page }) => {
await page.goto('/challenge/RTEiB6WTEPwjfvF9o/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Notes' || t.startsWith('Notes'))).toBeTruthy();
});
test('challenge_RTEiB6WTEPwjfvF9o: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/RTEiB6WTEPwjfvF9o/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_RTEiB6WTEPwjfvF9o: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/RTEiB6WTEPwjfvF9o/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_RugMPn3chRq32rTK9', () => {
test('challenge_RugMPn3chRq32rTK9: title matches GT', async ({ page }) => {
await page.goto('/challenge/RugMPn3chRq32rTK9/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('how praxide works // praxide');
});
test('challenge_RugMPn3chRq32rTK9: h2 "How Praxide Works"', async ({ page }) => {
await page.goto('/challenge/RugMPn3chRq32rTK9/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How Praxide Works' || t.startsWith('How Praxide Works'))).toBeTruthy();
});
test('challenge_RugMPn3chRq32rTK9: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/RugMPn3chRq32rTK9/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_RugMPn3chRq32rTK9: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/RugMPn3chRq32rTK9/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_RugMPn3chRq32rTK9: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/RugMPn3chRq32rTK9/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_RzkLShpDgDqG3c45H', () => {
test('challenge_RzkLShpDgDqG3c45H: title matches GT', async ({ page }) => {
await page.goto('/challenge/RzkLShpDgDqG3c45H/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('give back the successor of the given int');
});
test('challenge_RzkLShpDgDqG3c45H: h2 "Give Back the Successor of the"', async ({ page }) => {
await page.goto('/challenge/RzkLShpDgDqG3c45H/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Give Back the Successor of the Given Integer' || t.startsWith('Give Back the Successor of the Given Integer'))).toBeTruthy();
});
test('challenge_RzkLShpDgDqG3c45H: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/RzkLShpDgDqG3c45H/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_RzkLShpDgDqG3c45H: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/RzkLShpDgDqG3c45H/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_RzkLShpDgDqG3c45H: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/RzkLShpDgDqG3c45H/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_SFzHtm63XT6EYNHWY', () => {
test('challenge_SFzHtm63XT6EYNHWY: title matches GT', async ({ page }) => {
await page.goto('/challenge/SFzHtm63XT6EYNHWY/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sum up two given numbers // praxide');
});
test('challenge_SFzHtm63XT6EYNHWY: h2 "Sum Up Two Given Numbers"', async ({ page }) => {
await page.goto('/challenge/SFzHtm63XT6EYNHWY/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sum Up Two Given Numbers' || t.startsWith('Sum Up Two Given Numbers'))).toBeTruthy();
});
test('challenge_SFzHtm63XT6EYNHWY: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/SFzHtm63XT6EYNHWY/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_SFzHtm63XT6EYNHWY: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/SFzHtm63XT6EYNHWY/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_SFzHtm63XT6EYNHWY: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/SFzHtm63XT6EYNHWY/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_TYo6r3g3ZXBhnHHgg', () => {
test('challenge_TYo6r3g3ZXBhnHHgg: title matches GT', async ({ page }) => {
await page.goto('/challenge/TYo6r3g3ZXBhnHHgg/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('fix the broken code // praxide');
});
test('challenge_TYo6r3g3ZXBhnHHgg: h2 "Fix the Broken Code"', async ({ page }) => {
await page.goto('/challenge/TYo6r3g3ZXBhnHHgg/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fix the Broken Code' || t.startsWith('Fix the Broken Code'))).toBeTruthy();
});
test('challenge_TYo6r3g3ZXBhnHHgg: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/TYo6r3g3ZXBhnHHgg/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_TYo6r3g3ZXBhnHHgg: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/TYo6r3g3ZXBhnHHgg/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_TYo6r3g3ZXBhnHHgg: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/TYo6r3g3ZXBhnHHgg/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_XJxu5LCnqN9K8SXm5', () => {
test('challenge_XJxu5LCnqN9K8SXm5: title matches GT', async ({ page }) => {
await page.goto('/challenge/XJxu5LCnqN9K8SXm5/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('upvotes vs downvotes // praxide');
});
test('challenge_XJxu5LCnqN9K8SXm5: h2 "Upvotes vs Downvotes"', async ({ page }) => {
await page.goto('/challenge/XJxu5LCnqN9K8SXm5/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Upvotes vs Downvotes' || t.startsWith('Upvotes vs Downvotes'))).toBeTruthy();
});
test('challenge_XJxu5LCnqN9K8SXm5: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/XJxu5LCnqN9K8SXm5/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_XJxu5LCnqN9K8SXm5: h3 "Notes"', async ({ page }) => {
await page.goto('/challenge/XJxu5LCnqN9K8SXm5/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Notes' || t.startsWith('Notes'))).toBeTruthy();
});
test('challenge_XJxu5LCnqN9K8SXm5: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/XJxu5LCnqN9K8SXm5/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_XJxu5LCnqN9K8SXm5: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/XJxu5LCnqN9K8SXm5/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_XbEHoTtE28BpnJFeS', () => {
test('challenge_XbEHoTtE28BpnJFeS: title matches GT', async ({ page }) => {
await page.goto('/challenge/XbEHoTtE28BpnJFeS/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('area of a triangle // praxide');
});
test('challenge_XbEHoTtE28BpnJFeS: h2 "Area of a Triangle"', async ({ page }) => {
await page.goto('/challenge/XbEHoTtE28BpnJFeS/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Area of a Triangle' || t.startsWith('Area of a Triangle'))).toBeTruthy();
});
test('challenge_XbEHoTtE28BpnJFeS: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/XbEHoTtE28BpnJFeS/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_XbEHoTtE28BpnJFeS: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/XbEHoTtE28BpnJFeS/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_XbEHoTtE28BpnJFeS: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/XbEHoTtE28BpnJFeS/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_XnJ24rWW7iJkNrtsh', () => {
test('challenge_XnJ24rWW7iJkNrtsh: title matches GT', async ({ page }) => {
await page.goto('/challenge/XnJ24rWW7iJkNrtsh/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('return a rectangle\'s perimeter // praxid');
});
test('challenge_XnJ24rWW7iJkNrtsh: h2 "Return a Rectangle\'s Perimeter"', async ({ page }) => {
await page.goto('/challenge/XnJ24rWW7iJkNrtsh/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Return a Rectangle\'s Perimeter' || t.startsWith('Return a Rectangle\'s Perimeter'))).toBeTruthy();
});
test('challenge_XnJ24rWW7iJkNrtsh: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/XnJ24rWW7iJkNrtsh/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_XnJ24rWW7iJkNrtsh: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/XnJ24rWW7iJkNrtsh/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_XnJ24rWW7iJkNrtsh: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/XnJ24rWW7iJkNrtsh/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_Y46Xp2pcvTB77bmdD', () => {
test('challenge_Y46Xp2pcvTB77bmdD: title matches GT', async ({ page }) => {
await page.goto('/challenge/Y46Xp2pcvTB77bmdD/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('basketball points // praxide');
});
test('challenge_Y46Xp2pcvTB77bmdD: h2 "Basketball Points"', async ({ page }) => {
await page.goto('/challenge/Y46Xp2pcvTB77bmdD/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Basketball Points' || t.startsWith('Basketball Points'))).toBeTruthy();
});
test('challenge_Y46Xp2pcvTB77bmdD: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/Y46Xp2pcvTB77bmdD/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_Y46Xp2pcvTB77bmdD: h3 "Notes"', async ({ page }) => {
await page.goto('/challenge/Y46Xp2pcvTB77bmdD/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Notes' || t.startsWith('Notes'))).toBeTruthy();
});
test('challenge_Y46Xp2pcvTB77bmdD: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/Y46Xp2pcvTB77bmdD/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_Y46Xp2pcvTB77bmdD: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/Y46Xp2pcvTB77bmdD/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_Y9vPTkr43sfYdDzeM', () => {
test('challenge_Y9vPTkr43sfYdDzeM: title matches GT', async ({ page }) => {
await page.goto('/challenge/Y9vPTkr43sfYdDzeM/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('how praxide works // praxide');
});
test('challenge_Y9vPTkr43sfYdDzeM: h2 "How Praxide Works"', async ({ page }) => {
await page.goto('/challenge/Y9vPTkr43sfYdDzeM/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How Praxide Works' || t.startsWith('How Praxide Works'))).toBeTruthy();
});
test('challenge_Y9vPTkr43sfYdDzeM: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/Y9vPTkr43sfYdDzeM/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_Y9vPTkr43sfYdDzeM: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/Y9vPTkr43sfYdDzeM/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_Y9vPTkr43sfYdDzeM: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/Y9vPTkr43sfYdDzeM/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_YQvcsY6soWd7RTk28', () => {
test('challenge_YQvcsY6soWd7RTk28: title matches GT', async ({ page }) => {
await page.goto('/challenge/YQvcsY6soWd7RTk28/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('convert age to days // praxide');
});
test('challenge_YQvcsY6soWd7RTk28: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/YQvcsY6soWd7RTk28/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_YQvcsY6soWd7RTk28: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/YQvcsY6soWd7RTk28/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_YQvcsY6soWd7RTk28: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/YQvcsY6soWd7RTk28/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_Yx2a9B57vXRuPevGh', () => {
test('challenge_Yx2a9B57vXRuPevGh: title matches GT', async ({ page }) => {
await page.goto('/challenge/Yx2a9B57vXRuPevGh/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('find the perimeter of a rectangle // pra');
});
test('challenge_Yx2a9B57vXRuPevGh: h2 "Find the Perimeter of a Rectan"', async ({ page }) => {
await page.goto('/challenge/Yx2a9B57vXRuPevGh/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Find the Perimeter of a Rectangle' || t.startsWith('Find the Perimeter of a Rectangle'))).toBeTruthy();
});
test('challenge_Yx2a9B57vXRuPevGh: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/Yx2a9B57vXRuPevGh/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_Yx2a9B57vXRuPevGh: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/Yx2a9B57vXRuPevGh/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_Yx2a9B57vXRuPevGh: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/Yx2a9B57vXRuPevGh/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_ZNwHGgHvsdnYwJ5WK', () => {
test('challenge_ZNwHGgHvsdnYwJ5WK: title matches GT', async ({ page }) => {
await page.goto('/challenge/ZNwHGgHvsdnYwJ5WK/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('assign your first variable // praxide');
});
test('challenge_ZNwHGgHvsdnYwJ5WK: h2 "Assign Your First Variable"', async ({ page }) => {
await page.goto('/challenge/ZNwHGgHvsdnYwJ5WK/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Assign Your First Variable' || t.startsWith('Assign Your First Variable'))).toBeTruthy();
});
test('challenge_ZNwHGgHvsdnYwJ5WK: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/ZNwHGgHvsdnYwJ5WK/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_ZNwHGgHvsdnYwJ5WK: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/ZNwHGgHvsdnYwJ5WK/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_ZNwHGgHvsdnYwJ5WK: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/ZNwHGgHvsdnYwJ5WK/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_Zerwo2AENbvRZTe83', () => {
test('challenge_Zerwo2AENbvRZTe83: title matches GT', async ({ page }) => {
await page.goto('/challenge/Zerwo2AENbvRZTe83/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('longest possible third edge // praxide');
});
test('challenge_Zerwo2AENbvRZTe83: h2 "Longest Possible Third Edge"', async ({ page }) => {
await page.goto('/challenge/Zerwo2AENbvRZTe83/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Longest Possible Third Edge' || t.startsWith('Longest Possible Third Edge'))).toBeTruthy();
});
test('challenge_Zerwo2AENbvRZTe83: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/Zerwo2AENbvRZTe83/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_Zerwo2AENbvRZTe83: header link "Praxide"', async ({ page }) => {
await page.goto('/challenge/Zerwo2AENbvRZTe83/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Praxide' || t.startsWith('Praxide')), 'link text in header').toBeTruthy();
});
test('challenge_Zerwo2AENbvRZTe83: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/Zerwo2AENbvRZTe83/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_Zerwo2AENbvRZTe83: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/Zerwo2AENbvRZTe83/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_a2D3cva6PKrHyqdXC', () => {
test('challenge_a2D3cva6PKrHyqdXC: title matches GT', async ({ page }) => {
await page.goto('/challenge/a2D3cva6PKrHyqdXC/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('circuit wattage // praxide');
});
test('challenge_a2D3cva6PKrHyqdXC: h2 "Circuit Wattage"', async ({ page }) => {
await page.goto('/challenge/a2D3cva6PKrHyqdXC/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Circuit Wattage' || t.startsWith('Circuit Wattage'))).toBeTruthy();
});
test('challenge_a2D3cva6PKrHyqdXC: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/a2D3cva6PKrHyqdXC/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_a2D3cva6PKrHyqdXC: h3 "Notes"', async ({ page }) => {
await page.goto('/challenge/a2D3cva6PKrHyqdXC/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Notes' || t.startsWith('Notes'))).toBeTruthy();
});
test('challenge_a2D3cva6PKrHyqdXC: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/a2D3cva6PKrHyqdXC/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_a2D3cva6PKrHyqdXC: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/a2D3cva6PKrHyqdXC/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_aiaLK9Tg6qc8sLDjv', () => {
test('challenge_aiaLK9Tg6qc8sLDjv: title matches GT', async ({ page }) => {
await page.goto('/challenge/aiaLK9Tg6qc8sLDjv/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('area of a triangle // praxide');
});
test('challenge_aiaLK9Tg6qc8sLDjv: h2 "Area of a Triangle"', async ({ page }) => {
await page.goto('/challenge/aiaLK9Tg6qc8sLDjv/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Area of a Triangle' || t.startsWith('Area of a Triangle'))).toBeTruthy();
});
test('challenge_aiaLK9Tg6qc8sLDjv: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/aiaLK9Tg6qc8sLDjv/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_aiaLK9Tg6qc8sLDjv: header link "Lessons"', async ({ page }) => {
await page.goto('/challenge/aiaLK9Tg6qc8sLDjv/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Lessons' || t.startsWith('Lessons')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_aiaLK9Tg6qc8sLDjv: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/aiaLK9Tg6qc8sLDjv/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_bL7hSc6Zh4zZJzGmw', () => {
test('challenge_bL7hSc6Zh4zZJzGmw: title matches GT', async ({ page }) => {
await page.goto('/challenge/bL7hSc6Zh4zZJzGmw/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('compute age in days // praxide');
});
test('challenge_bL7hSc6Zh4zZJzGmw: h2 "Compute Age in Days"', async ({ page }) => {
await page.goto('/challenge/bL7hSc6Zh4zZJzGmw/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Compute Age in Days' || t.startsWith('Compute Age in Days'))).toBeTruthy();
});
test('challenge_bL7hSc6Zh4zZJzGmw: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/bL7hSc6Zh4zZJzGmw/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_bL7hSc6Zh4zZJzGmw: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/bL7hSc6Zh4zZJzGmw/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_bL7hSc6Zh4zZJzGmw: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/bL7hSc6Zh4zZJzGmw/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_bSvKBepvXpMGP7Fjh', () => {
test('challenge_bSvKBepvXpMGP7Fjh: title matches GT', async ({ page }) => {
await page.goto('/challenge/bSvKBepvXpMGP7Fjh/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('less than 100? // praxide');
});
test('challenge_bSvKBepvXpMGP7Fjh: h2 "Less Than 100?"', async ({ page }) => {
await page.goto('/challenge/bSvKBepvXpMGP7Fjh/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Less Than 100?' || t.startsWith('Less Than 100?'))).toBeTruthy();
});
test('challenge_bSvKBepvXpMGP7Fjh: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/bSvKBepvXpMGP7Fjh/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_bSvKBepvXpMGP7Fjh: h3 "Notes"', async ({ page }) => {
await page.goto('/challenge/bSvKBepvXpMGP7Fjh/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Notes' || t.startsWith('Notes'))).toBeTruthy();
});
test('challenge_bSvKBepvXpMGP7Fjh: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/bSvKBepvXpMGP7Fjh/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_bSvKBepvXpMGP7Fjh: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/bSvKBepvXpMGP7Fjh/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_bTrM8t39vjrAtYytA', () => {
test('challenge_bTrM8t39vjrAtYytA: title matches GT', async ({ page }) => {
await page.goto('/challenge/bTrM8t39vjrAtYytA/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('compute the remainder of two integers //');
});
test('challenge_bTrM8t39vjrAtYytA: h2 "Compute the Remainder of Two I"', async ({ page }) => {
await page.goto('/challenge/bTrM8t39vjrAtYytA/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Compute the Remainder of Two Integers' || t.startsWith('Compute the Remainder of Two Integers'))).toBeTruthy();
});
test('challenge_bTrM8t39vjrAtYytA: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/bTrM8t39vjrAtYytA/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_bTrM8t39vjrAtYytA: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/bTrM8t39vjrAtYytA/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_bTrM8t39vjrAtYytA: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/bTrM8t39vjrAtYytA/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_bizjGL4wyd8PwR4Ke', () => {
test('challenge_bizjGL4wyd8PwR4Ke: title matches GT', async ({ page }) => {
await page.goto('/challenge/bizjGL4wyd8PwR4Ke/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('turn minutes into seconds // praxide');
});
test('challenge_bizjGL4wyd8PwR4Ke: h2 "Turn Minutes into Seconds"', async ({ page }) => {
await page.goto('/challenge/bizjGL4wyd8PwR4Ke/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Turn Minutes into Seconds' || t.startsWith('Turn Minutes into Seconds'))).toBeTruthy();
});
test('challenge_bizjGL4wyd8PwR4Ke: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/bizjGL4wyd8PwR4Ke/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_bizjGL4wyd8PwR4Ke: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/bizjGL4wyd8PwR4Ke/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_bizjGL4wyd8PwR4Ke: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/bizjGL4wyd8PwR4Ke/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_e7Bxnaspmr3kMPYWg', () => {
test('challenge_e7Bxnaspmr3kMPYWg: title matches GT', async ({ page }) => {
await page.goto('/challenge/e7Bxnaspmr3kMPYWg/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('do both numbers match? // praxide');
});
test('challenge_e7Bxnaspmr3kMPYWg: h2 "Do Both Numbers Match?"', async ({ page }) => {
await page.goto('/challenge/e7Bxnaspmr3kMPYWg/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Do Both Numbers Match?' || t.startsWith('Do Both Numbers Match?'))).toBeTruthy();
});
test('challenge_e7Bxnaspmr3kMPYWg: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/e7Bxnaspmr3kMPYWg/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_e7Bxnaspmr3kMPYWg: h3 "Notes"', async ({ page }) => {
await page.goto('/challenge/e7Bxnaspmr3kMPYWg/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Notes' || t.startsWith('Notes'))).toBeTruthy();
});
test('challenge_e7Bxnaspmr3kMPYWg: header link "Lessons"', async ({ page }) => {
await page.goto('/challenge/e7Bxnaspmr3kMPYWg/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Lessons' || t.startsWith('Lessons')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_e7Bxnaspmr3kMPYWg: header link "Exercises"', async ({ page }) => {
await page.goto('/challenge/e7Bxnaspmr3kMPYWg/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Exercises' || t.startsWith('Exercises')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
test('challenge_e7Bxnaspmr3kMPYWg: header link "Training"', async ({ page }) => {
await page.goto('/challenge/e7Bxnaspmr3kMPYWg/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Training' || t.startsWith('Training')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('practice')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_fBJyQSe5Jmbm9hPAG', () => {
test('challenge_fBJyQSe5Jmbm9hPAG: title matches GT', async ({ page }) => {
await page.goto('/challenge/fBJyQSe5Jmbm9hPAG/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('sum of polygon angles // praxide');
});
test('challenge_fBJyQSe5Jmbm9hPAG: h2 "Sum of Polygon Angles"', async ({ page }) => {
await page.goto('/challenge/fBJyQSe5Jmbm9hPAG/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sum of Polygon Angles' || t.startsWith('Sum of Polygon Angles'))).toBeTruthy();
});
test('challenge_fBJyQSe5Jmbm9hPAG: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/fBJyQSe5Jmbm9hPAG/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_fBJyQSe5Jmbm9hPAG: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/fBJyQSe5Jmbm9hPAG/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_fBJyQSe5Jmbm9hPAG: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/fBJyQSe5Jmbm9hPAG/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_gdRGePvnZDfQGDS8g', () => {
test('challenge_gdRGePvnZDfQGDS8g: title matches GT', async ({ page }) => {
await page.goto('/challenge/gdRGePvnZDfQGDS8g/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('do these integers match? // praxide');
});
test('challenge_gdRGePvnZDfQGDS8g: h2 "Do These Integers Match?"', async ({ page }) => {
await page.goto('/challenge/gdRGePvnZDfQGDS8g/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Do These Integers Match?' || t.startsWith('Do These Integers Match?'))).toBeTruthy();
});
test('challenge_gdRGePvnZDfQGDS8g: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/gdRGePvnZDfQGDS8g/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_gdRGePvnZDfQGDS8g: h3 "Samples"', async ({ page }) => {
await page.goto('/challenge/gdRGePvnZDfQGDS8g/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Samples' || t.startsWith('Samples'))).toBeTruthy();
});
test('challenge_gdRGePvnZDfQGDS8g: h3 "Hints"', async ({ page }) => {
await page.goto('/challenge/gdRGePvnZDfQGDS8g/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Hints' || t.startsWith('Hints'))).toBeTruthy();
});
test('challenge_gdRGePvnZDfQGDS8g: header link "Coursework"', async ({ page }) => {
await page.goto('/challenge/gdRGePvnZDfQGDS8g/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Coursework' || t.startsWith('Coursework')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_gdRGePvnZDfQGDS8g: header link "Exercises"', async ({ page }) => {
await page.goto('/challenge/gdRGePvnZDfQGDS8g/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Exercises' || t.startsWith('Exercises')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
test('challenge_gdRGePvnZDfQGDS8g: header link "Workouts"', async ({ page }) => {
await page.goto('/challenge/gdRGePvnZDfQGDS8g/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Workouts' || t.startsWith('Workouts')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('practice')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_hd5o7BEDPvduGhzD7', () => {
test('challenge_hd5o7BEDPvduGhzD7: title matches GT', async ({ page }) => {
await page.goto('/challenge/hd5o7BEDPvduGhzD7/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('invert the boolean // praxide');
});
test('challenge_hd5o7BEDPvduGhzD7: h2 "Invert the Boolean"', async ({ page }) => {
await page.goto('/challenge/hd5o7BEDPvduGhzD7/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Invert the Boolean' || t.startsWith('Invert the Boolean'))).toBeTruthy();
});
test('challenge_hd5o7BEDPvduGhzD7: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/hd5o7BEDPvduGhzD7/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_hd5o7BEDPvduGhzD7: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/hd5o7BEDPvduGhzD7/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_hd5o7BEDPvduGhzD7: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/hd5o7BEDPvduGhzD7/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_huxpwewKXKxWWdcsr', () => {
test('challenge_huxpwewKXKxWWdcsr: title matches GT', async ({ page }) => {
await page.goto('/challenge/huxpwewKXKxWWdcsr/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('cracking the "&&" operator // praxide');
});
test('challenge_huxpwewKXKxWWdcsr: h2 "Cracking the && Operator"', async ({ page }) => {
await page.goto('/challenge/huxpwewKXKxWWdcsr/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cracking the "&&" Operator' || t.startsWith('Cracking the "&&" Operator'))).toBeTruthy();
});
test('challenge_huxpwewKXKxWWdcsr: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/huxpwewKXKxWWdcsr/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_huxpwewKXKxWWdcsr: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/huxpwewKXKxWWdcsr/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_huxpwewKXKxWWdcsr: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/huxpwewKXKxWWdcsr/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_j7yQbF3J3rToHsDBP', () => {
test('challenge_j7yQbF3J3rToHsDBP: title matches GT', async ({ page }) => {
await page.goto('/challenge/j7yQbF3J3rToHsDBP/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('fix the bug (part 1) // praxide');
});
test('challenge_j7yQbF3J3rToHsDBP: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/j7yQbF3J3rToHsDBP/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_j7yQbF3J3rToHsDBP: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/j7yQbF3J3rToHsDBP/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_j7yQbF3J3rToHsDBP: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/j7yQbF3J3rToHsDBP/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_jkK6QYQeokdRFPCi7', () => {
test('challenge_jkK6QYQeokdRFPCi7: title matches GT', async ({ page }) => {
await page.goto('/challenge/jkK6QYQeokdRFPCi7/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('polygon angle totals // praxide');
});
test('challenge_jkK6QYQeokdRFPCi7: h2 "Polygon Angle Totals"', async ({ page }) => {
await page.goto('/challenge/jkK6QYQeokdRFPCi7/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Polygon Angle Totals' || t.startsWith('Polygon Angle Totals'))).toBeTruthy();
});
test('challenge_jkK6QYQeokdRFPCi7: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/jkK6QYQeokdRFPCi7/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_jkK6QYQeokdRFPCi7: h3 "Samples"', async ({ page }) => {
await page.goto('/challenge/jkK6QYQeokdRFPCi7/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Samples' || t.startsWith('Samples'))).toBeTruthy();
});
test('challenge_jkK6QYQeokdRFPCi7: h3 "Hints"', async ({ page }) => {
await page.goto('/challenge/jkK6QYQeokdRFPCi7/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Hints' || t.startsWith('Hints'))).toBeTruthy();
});
test('challenge_jkK6QYQeokdRFPCi7: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/jkK6QYQeokdRFPCi7/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_jkK6QYQeokdRFPCi7: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/jkK6QYQeokdRFPCi7/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_kcPbQts3m7Qb7Xvwe', () => {
test('challenge_kcPbQts3m7Qb7Xvwe: title matches GT', async ({ page }) => {
await page.goto('/challenge/kcPbQts3m7Qb7Xvwe/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('hand me back a string! // praxide');
});
test('challenge_kcPbQts3m7Qb7Xvwe: h2 "Hand Me Back a String!"', async ({ page }) => {
await page.goto('/challenge/kcPbQts3m7Qb7Xvwe/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Hand Me Back a String!' || t.startsWith('Hand Me Back a String!'))).toBeTruthy();
});
test('challenge_kcPbQts3m7Qb7Xvwe: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/kcPbQts3m7Qb7Xvwe/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_kcPbQts3m7Qb7Xvwe: h3 "Notes"', async ({ page }) => {
await page.goto('/challenge/kcPbQts3m7Qb7Xvwe/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Notes' || t.startsWith('Notes'))).toBeTruthy();
});
test('challenge_kcPbQts3m7Qb7Xvwe: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/kcPbQts3m7Qb7Xvwe/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_kcPbQts3m7Qb7Xvwe: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/kcPbQts3m7Qb7Xvwe/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_mKLy6ZN4ZhHdWTeQm', () => {
test('challenge_mKLy6ZN4ZhHdWTeQm: title matches GT', async ({ page }) => {
await page.goto('/challenge/mKLy6ZN4ZhHdWTeQm/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('hoops scoreboard // praxide');
});
test('challenge_mKLy6ZN4ZhHdWTeQm: h2 "Hoops Scoreboard"', async ({ page }) => {
await page.goto('/challenge/mKLy6ZN4ZhHdWTeQm/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Hoops Scoreboard' || t.startsWith('Hoops Scoreboard'))).toBeTruthy();
});
test('challenge_mKLy6ZN4ZhHdWTeQm: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/mKLy6ZN4ZhHdWTeQm/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_mKLy6ZN4ZhHdWTeQm: h3 "Notes"', async ({ page }) => {
await page.goto('/challenge/mKLy6ZN4ZhHdWTeQm/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Notes' || t.startsWith('Notes'))).toBeTruthy();
});
test('challenge_mKLy6ZN4ZhHdWTeQm: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/mKLy6ZN4ZhHdWTeQm/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_mKLy6ZN4ZhHdWTeQm: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/mKLy6ZN4ZhHdWTeQm/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_nkkKguC5TgWnBiMLA', () => {
test('challenge_nkkKguC5TgWnBiMLA: title matches GT', async ({ page }) => {
await page.goto('/challenge/nkkKguC5TgWnBiMLA/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('lifetime in days // praxide');
});
test('challenge_nkkKguC5TgWnBiMLA: h2 "Your Lifetime in Days"', async ({ page }) => {
await page.goto('/challenge/nkkKguC5TgWnBiMLA/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Your Lifetime in Days' || t.startsWith('Your Lifetime in Days'))).toBeTruthy();
});
test('challenge_nkkKguC5TgWnBiMLA: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/nkkKguC5TgWnBiMLA/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_nkkKguC5TgWnBiMLA: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/nkkKguC5TgWnBiMLA/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_nkkKguC5TgWnBiMLA: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/nkkKguC5TgWnBiMLA/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_oDnoAHEnAsL78sQh9', () => {
test('challenge_oDnoAHEnAsL78sQh9: title matches GT', async ({ page }) => {
await page.goto('/challenge/oDnoAHEnAsL78sQh9/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('match the two numbers? // praxide');
});
test('challenge_oDnoAHEnAsL78sQh9: h2 "Match the Two Numbers?"', async ({ page }) => {
await page.goto('/challenge/oDnoAHEnAsL78sQh9/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Match the Two Numbers?' || t.startsWith('Match the Two Numbers?'))).toBeTruthy();
});
test('challenge_oDnoAHEnAsL78sQh9: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/oDnoAHEnAsL78sQh9/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_oDnoAHEnAsL78sQh9: h3 "Notes"', async ({ page }) => {
await page.goto('/challenge/oDnoAHEnAsL78sQh9/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Notes' || t.startsWith('Notes'))).toBeTruthy();
});
test('challenge_oDnoAHEnAsL78sQh9: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/oDnoAHEnAsL78sQh9/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_oDnoAHEnAsL78sQh9: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/oDnoAHEnAsL78sQh9/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_sGuHGZP73huvBTT7i', () => {
test('challenge_sGuHGZP73huvBTT7i: title matches GT', async ({ page }) => {
await page.goto('/challenge/sGuHGZP73huvBTT7i/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('inches to feet // praxide');
});
test('challenge_sGuHGZP73huvBTT7i: h2 "Inches to Feet"', async ({ page }) => {
await page.goto('/challenge/sGuHGZP73huvBTT7i/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Inches to Feet' || t.startsWith('Inches to Feet'))).toBeTruthy();
});
test('challenge_sGuHGZP73huvBTT7i: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/sGuHGZP73huvBTT7i/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_sGuHGZP73huvBTT7i: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/sGuHGZP73huvBTT7i/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_sGuHGZP73huvBTT7i: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/sGuHGZP73huvBTT7i/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_seB6cQjuSqgudatyF', () => {
test('challenge_seB6cQjuSqgudatyF: title matches GT', async ({ page }) => {
await page.goto('/challenge/seB6cQjuSqgudatyF/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('negate the boolean // praxide');
});
test('challenge_seB6cQjuSqgudatyF: h2 "Negate the Boolean"', async ({ page }) => {
await page.goto('/challenge/seB6cQjuSqgudatyF/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Negate the Boolean' || t.startsWith('Negate the Boolean'))).toBeTruthy();
});
test('challenge_seB6cQjuSqgudatyF: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/seB6cQjuSqgudatyF/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_seB6cQjuSqgudatyF: header link "Praxide"', async ({ page }) => {
await page.goto('/challenge/seB6cQjuSqgudatyF/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Praxide' || t.startsWith('Praxide')), 'link text in header').toBeTruthy();
});
test('challenge_seB6cQjuSqgudatyF: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/seB6cQjuSqgudatyF/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_seB6cQjuSqgudatyF: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/seB6cQjuSqgudatyF/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_uSiEPX7YrhNsqtzMr', () => {
test('challenge_uSiEPX7YrhNsqtzMr: title matches GT', async ({ page }) => {
await page.goto('/challenge/uSiEPX7YrhNsqtzMr/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('do both numbers match? // praxide');
});
test('challenge_uSiEPX7YrhNsqtzMr: h2 "Do Both Numbers Match?"', async ({ page }) => {
await page.goto('/challenge/uSiEPX7YrhNsqtzMr/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Do Both Numbers Match?' || t.startsWith('Do Both Numbers Match?'))).toBeTruthy();
});
test('challenge_uSiEPX7YrhNsqtzMr: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/uSiEPX7YrhNsqtzMr/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_uSiEPX7YrhNsqtzMr: h3 "Notes"', async ({ page }) => {
await page.goto('/challenge/uSiEPX7YrhNsqtzMr/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Notes' || t.startsWith('Notes'))).toBeTruthy();
});
test('challenge_uSiEPX7YrhNsqtzMr: header link "Praxide"', async ({ page }) => {
await page.goto('/challenge/uSiEPX7YrhNsqtzMr/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Praxide' || t.startsWith('Praxide')), 'link text in header').toBeTruthy();
});
test('challenge_uSiEPX7YrhNsqtzMr: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/uSiEPX7YrhNsqtzMr/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_uSiEPX7YrhNsqtzMr: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/uSiEPX7YrhNsqtzMr/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_vgBEkhQNCvtqtwZFZ', () => {
test('challenge_vgBEkhQNCvtqtwZFZ: title matches GT', async ({ page }) => {
await page.goto('/challenge/vgBEkhQNCvtqtwZFZ/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('simple string assignment // praxide');
});
test('challenge_vgBEkhQNCvtqtwZFZ: h2 "Simple String Assignment"', async ({ page }) => {
await page.goto('/challenge/vgBEkhQNCvtqtwZFZ/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Simple String Assignment' || t.startsWith('Simple String Assignment'))).toBeTruthy();
});
test('challenge_vgBEkhQNCvtqtwZFZ: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/vgBEkhQNCvtqtwZFZ/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_vgBEkhQNCvtqtwZFZ: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/vgBEkhQNCvtqtwZFZ/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_vgBEkhQNCvtqtwZFZ: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/vgBEkhQNCvtqtwZFZ/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_xfRucdwGksiyjZq4K', () => {
test('challenge_xfRucdwGksiyjZq4K: title matches GT', async ({ page }) => {
await page.goto('/challenge/xfRucdwGksiyjZq4K/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('compute the sum of two numbers // praxid');
});
test('challenge_xfRucdwGksiyjZq4K: h2 "Compute the Sum of Two Numbers"', async ({ page }) => {
await page.goto('/challenge/xfRucdwGksiyjZq4K/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Compute the Sum of Two Numbers' || t.startsWith('Compute the Sum of Two Numbers'))).toBeTruthy();
});
test('challenge_xfRucdwGksiyjZq4K: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/xfRucdwGksiyjZq4K/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_xfRucdwGksiyjZq4K: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/xfRucdwGksiyjZq4K/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_xfRucdwGksiyjZq4K: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/xfRucdwGksiyjZq4K/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_y9Jhs33vdts5GPMW7', () => {
test('challenge_y9Jhs33vdts5GPMW7: title matches GT', async ({ page }) => {
await page.goto('/challenge/y9Jhs33vdts5GPMW7/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('turn hours into seconds // praxide');
});
test('challenge_y9Jhs33vdts5GPMW7: h2 "Turn Hours into Seconds"', async ({ page }) => {
await page.goto('/challenge/y9Jhs33vdts5GPMW7/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Turn Hours into Seconds' || t.startsWith('Turn Hours into Seconds'))).toBeTruthy();
});
test('challenge_y9Jhs33vdts5GPMW7: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/y9Jhs33vdts5GPMW7/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_y9Jhs33vdts5GPMW7: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/y9Jhs33vdts5GPMW7/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_y9Jhs33vdts5GPMW7: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/y9Jhs33vdts5GPMW7/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - challenge_zBhuXyFeSQdizC5LW', () => {
test('challenge_zBhuXyFeSQdizC5LW: title matches GT', async ({ page }) => {
await page.goto('/challenge/zBhuXyFeSQdizC5LW/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('longest possible third edge // praxide');
});
test('challenge_zBhuXyFeSQdizC5LW: h2 "Longest Possible Third Edge"', async ({ page }) => {
await page.goto('/challenge/zBhuXyFeSQdizC5LW/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Longest Possible Third Edge' || t.startsWith('Longest Possible Third Edge'))).toBeTruthy();
});
test('challenge_zBhuXyFeSQdizC5LW: h2 "Pro Tip"', async ({ page }) => {
await page.goto('/challenge/zBhuXyFeSQdizC5LW/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pro Tip' || t.startsWith('Pro Tip'))).toBeTruthy();
});
test('challenge_zBhuXyFeSQdizC5LW: header link "Tutorials"', async ({ page }) => {
await page.goto('/challenge/zBhuXyFeSQdizC5LW/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tutorials' || t.startsWith('Tutorials')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('tutorials')), 'href fragment present').toBeTruthy();
});
test('challenge_zBhuXyFeSQdizC5LW: header link "Challenges"', async ({ page }) => {
await page.goto('/challenge/zBhuXyFeSQdizC5LW/');
const links = page.locator('header a, [role="banner"] a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Challenges' || t.startsWith('Challenges')), 'link text in header').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('challenges')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Routing', () => {
test('navigate to challenges via "Browse Challenges"', async ({ page }) => {
await page.goto('/');
const link = page.locator('a[href*="challenges"]').first();
expect(await link.count(), 'nav link to challenges exists').toBeGreaterThan(0);
await link.click();
await page.waitForTimeout(1200);
expect(page.url().toLowerCase(), 'URL changed to destination').toContain('challenges');
const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' ');
expect(bodyText, 'destination distinctive content shown').toContain('How Praxide Works');
});
test('navigate to challenges_csharp via "C#"', async ({ page }) => {
await page.goto('/');
const link = page.locator('a[href*="csharp"]').first();
expect(await link.count(), 'nav link to challenges_csharp exists').toBeGreaterThan(0);
await link.click();
await page.waitForTimeout(1200);
expect(page.url().toLowerCase(), 'URL changed to destination').toContain('csharp');
const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' ');
expect(bodyText, 'destination distinctive content shown').toContain('How Praxide Works');
});
test('navigate to challenges_cpp via "C++"', async ({ page }) => {
await page.goto('/');
const link = page.locator('a[href*="cpp"]').first();
expect(await link.count(), 'nav link to challenges_cpp exists').toBeGreaterThan(0);
await link.click();
await page.waitForTimeout(1200);
expect(page.url().toLowerCase(), 'URL changed to destination').toContain('cpp');
const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' ');
expect(bodyText, 'destination distinctive content shown').toContain('How Praxide Works');
});
});