diff --git a/scripts/test_debate_me_campaign.mjs b/scripts/test_debate_me_campaign.mjs index afba695d..2652b4d9 100644 --- a/scripts/test_debate_me_campaign.mjs +++ b/scripts/test_debate_me_campaign.mjs @@ -32,3 +32,35 @@ test("existing GA4 per-position event data remains intact", () => { assert.match(html, /a\.getAttribute\('data-position'\)/); assert.doesNotMatch(html, /support_debate_me_hero/); }); + + +test("Debate Me search snippet, Open Graph and SoftwareApplication describe the same actual app", () => { + const title = html.match(/([^<]+)<\/title>/)?.[1]; + const meta = html.match(/<meta name="description" content="([^"]+)"\s*\/>/)?.[1]; + const og = html.match(/<meta property="og:description" content="([^"]+)"/)?.[1]; + const structured = JSON.parse(html.match(/<script type="application\/ld\+json">\s*([\s\S]*?)\s*<\/script>/)?.[1] || "null"); + assert.equal(title, "Debate Me – AI Debate Practice App for Android | SK APPS"); + assert.ok(title.length <= 65); + assert.ok(meta && meta.length >= 100 && meta.length <= 160); + assert.equal(meta, og); + assert.equal(meta, structured?.description); + assert.equal(structured?.name, "Debate Me"); + assert.equal(structured?.operatingSystem, "Android"); + assert.equal(structured?.downloadUrl, "https://play.google.com/store/apps/details?id=jp.appdevelopsk.debate_me"); + assert.match(meta, /AI debate practice app/); + assert.match(meta, /rebuttals/); + assert.match(meta, /Google Play/); +}); + +test("the sample exercise is concrete, accessible and preserves help guide links", () => { + const guide = html.match(/<section class="card" id="debate-practice-guide"[\s\S]*?<\/section>/)?.[0]; + assert.ok(guide); + assert.match(guide, /Should homework be optional\?/); + assert.match(guide, /<h2 id="debate-practice-guide-heading">/); + assert.match(guide, /<ol lang="en"/); + assert.equal((guide.match(/<li>/g) || []).length, 3); + for (const part of ["Claim:", "Reason:", "Rebuttal:"]) assert.ok(guide.includes(part)); + assert.match(guide, /href="\/guides\/ai-debate-practice\/"/); + assert.match(guide, /href="\/guides\/ai-debate-practice\/ja\/"/); + assert.ok(html.includes('href="https://appdevelopsk.com/support/debate-me/"')); +}); diff --git a/support/debate-me/index.html b/support/debate-me/index.html index a6f6563c..05bad7fb 100644 --- a/support/debate-me/index.html +++ b/support/debate-me/index.html @@ -5,8 +5,8 @@ <link rel="canonical" href="https://appdevelopsk.com/support/debate-me/"> <meta property="og:type" content="website"> <meta property="og:site_name" content="SK APPS"> - <meta property="og:title" content="Debate Me – Practice Debating with AI on Android | SK APPS"> - <meta property="og:description" content="Want to get better at debating? Debate Me lets you challenge an AI opponent, practice rebuttals, and review feedback. Explore the Android app on Google Play."> + <meta property="og:title" content="Debate Me – AI Debate Practice App for Android | SK APPS"> + <meta property="og:description" content="Debate Me is an Android AI debate practice app. Choose a topic, practise claims and rebuttals with an AI opponent, and review feedback. Explore Google Play."> <meta property="og:url" content="https://appdevelopsk.com/support/debate-me/"> <meta property="og:image" content="https://appdevelopsk.com/icons/apps/debate-me.png"> <script type="application/ld+json"> @@ -18,14 +18,14 @@ "operatingSystem": "Android", "applicationCategory": "EducationalApplication", "downloadUrl": "https://play.google.com/store/apps/details?id=jp.appdevelopsk.debate_me", - "description": "Want to get better at debating? Debate Me lets you challenge an AI opponent, practice rebuttals, and review feedback. Explore the Android app on Google Play." + "description": "Debate Me is an Android AI debate practice app. Choose a topic, practise claims and rebuttals with an AI opponent, and review feedback. Explore Google Play." } </script> <meta name="twitter:card" content="summary"> <meta charset="UTF-8"/> <meta name="viewport" content="width=device-width,initial-scale=1.0"/> - <title>Debate Me – Practice Debating with AI on Android | SK APPS - + Debate Me – AI Debate Practice App for Android | SK APPS +