Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions scripts/test_support_serp_snippets_20261113.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
"use strict";

const { test } = require("node:test");
const assert = require("node:assert/strict");
const fs = require("node:fs");
const nodePath = require("node:path");

// Source-level regression checks for the low-CTR app support pages.
// These do not prove that the production host serves this commit.
const cases = [
{
slug: "debate-me",
title: "Debate Me: AI Debate Practice App for Android | SK APPS",
description: "Practice debates against an AI opponent in Debate Me for Android. Pick a topic, build your argument and review feedback. Explore the app on Google Play.",
hasPlayLink: true,
},
{
slug: "brain-burst",
title: "BrainBurst: Daily Trivia & 1v1 Quiz Battles | Android",
description: "Challenge yourself with daily AI-generated trivia in BrainBurst, then try 1v1 quiz battles. Explore the Android app on Google Play.",
hasPlayLink: true,
},
{
slug: "taletime",
title: "TaleTime: AI Story Maker for Parents & Kids | SK APPS",
description: "Create stories together in TaleTime: choose a theme and hero, take turns with your child, and save your AI-assisted story to reread. Learn how it works.",
hasPlayLink: false,
},
];

function tagContent(html, pattern) {
const matches = [...html.matchAll(pattern)];
assert.equal(matches.length, 1, "expected exactly one matching metadata tag");
return matches[0][1];
}

for (const spec of cases) {
test(`support/${spec.slug} keeps truthful unique search metadata and analytics`, () => {
const file = nodePath.resolve(__dirname, "..", "support", spec.slug, "index.html");
const html = fs.readFileSync(file, "utf8");
assert.equal(tagContent(html, /<title>([^<]*)<\/title>/g), spec.title);
assert.equal(tagContent(html, /<meta name="description" content="([^"]*)"/g), spec.description);
assert.equal(tagContent(html, /<meta property="og:description" content="([^"]*)"/g), spec.description);
assert.equal(tagContent(html, /<link rel="canonical" href="([^"]*)"/g), `https://appdevelopsk.com/support/${spec.slug}/`);
assert.equal((html.match(/googletagmanager.com\/gtag\/js/g) || []).length, 1);
assert.match(html, /gtag\('event', 'download_click'/);
if (spec.hasPlayLink) {
assert.match(html, /https:\/\/play\.google\.com\/store\/apps\/details/);
} else {
assert.doesNotMatch(html, /https:\/\/play\.google\.com\/store\/apps\/details/);
}
});
}
10 changes: 5 additions & 5 deletions support/brain-burst/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
<link rel="canonical" href="https://appdevelopsk.com/support/brain-burst/">
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
<title>BrainBurst: Daily Trivia Quiz & 1v1 Battles | Android</title>
<title>BrainBurst: Daily Trivia & 1v1 Quiz Battles | Android</title>
<meta property="og:type" content="website">
<meta property="og:title" content="BrainBurst: Daily Trivia Quiz & 1v1 Battles | Android">
<meta property="og:description" content="Play BrainBurst: answer fresh daily AI trivia questions and challenge others in 1v1 quiz battles. See the Android app on Google Play.">
<meta property="og:title" content="BrainBurst: Daily Trivia & 1v1 Quiz Battles | Android">
<meta property="og:description" content="Challenge yourself with daily AI-generated trivia in BrainBurst, then try 1v1 quiz battles. Explore the Android app on Google Play.">
<meta property="og:url" content="https://appdevelopsk.com/support/brain-burst/">
<meta property="og:image" content="https://appdevelopsk.com/og-image.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="Play BrainBurst: answer fresh daily AI trivia questions and challenge others in 1v1 quiz battles. See the Android app on Google Play.">
<meta name="twitter:description" content="Challenge yourself with daily AI-generated trivia in BrainBurst, then try 1v1 quiz battles. Explore the Android app on Google Play.">
<script type="application/ld+json">{"@context":"https://schema.org","@type":"SoftwareApplication","name":"BrainBurst - Daily Trivia Quiz","applicationCategory":"GameApplication","operatingSystem":"Android","url":"https://play.google.com/store/apps/details?id=com.brainburst.brain_burst","publisher":{"@type":"Organization","name":"SK Apps","url":"https://appdevelopsk.com/"}}</script>
<meta name="description" content="Play BrainBurst: answer fresh daily AI trivia questions and challenge others in 1v1 quiz battles. See the Android app on Google Play."/>
<meta name="description" content="Challenge yourself with daily AI-generated trivia in BrainBurst, then try 1v1 quiz battles. Explore the Android app on Google Play."/>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<style>
Expand Down
10 changes: 5 additions & 5 deletions support/debate-me/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 – Free AI Debate App for Android">
<meta property="og:description" content="Practice debates against an AI opponent in six topic categories, get feedback on your arguments, and download Debate Me free on Google Play for Android.">
<meta property="og:title" content="Debate Me: Practice Arguments with AI | Android App">
<meta property="og:description" content="Practice debates against an AI opponent in Debate Me for Android. Pick a topic, build your argument and review feedback. Explore the app on 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">
Expand All @@ -18,14 +18,14 @@
"operatingSystem": "Android",
"applicationCategory": "EducationalApplication",
"downloadUrl": "https://play.google.com/store/apps/details?id=jp.appdevelopsk.debate_me",
"description": "Practice debates against an AI opponent in six topic categories, get feedback on your arguments, and download Debate Me free on Google Play for Android."
"description": "Practice debates against an AI opponent in Debate Me for Android. Pick a topic, build your argument and review feedback. Explore the app on 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 – Free AI Debate App for Android | SK APPS</title>
<meta name="description" content="Practice debates against an AI opponent in six topic categories, get feedback on your arguments, and download Debate Me free on Google Play for Android."/>
<title>Debate Me: AI Debate Practice App for Android | SK APPS</title>
<meta name="description" content="Practice debates against an AI opponent in Debate Me for Android. Pick a topic, build your argument and review feedback. Explore the app on Google Play."/>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<style>
Expand Down
8 changes: 4 additions & 4 deletions support/taletime/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
<link rel="canonical" href="https://appdevelopsk.com/support/taletime/">
<meta property="og:type" content="website">
<meta property="og:site_name" content="SK APPS">
<meta property="og:title" content="TaleTime – Parent-Child AI Story Maker">
<meta property="og:description" content="Create personalized stories together in TaleTime. Choose six themes, name a hero, take turns with your child and save stories to revisit. Features and help.">
<meta property="og:title" content="TaleTime: AI Story Maker for Parents & Kids">
<meta property="og:description" content="Create stories together in TaleTime: choose a theme and hero, take turns with your child, and save your AI-assisted story to reread. Learn how it works.">
<meta property="og:url" content="https://appdevelopsk.com/support/taletime/">
<meta property="og:image" content="https://appdevelopsk.com/og-image.png">
<meta name="twitter:card" content="summary_large_image">
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
<title>TaleTime – AI Stories with Your Child | SK APPS</title>
<meta name="description" content="Create personalized stories together in TaleTime. Choose six themes, name a hero, take turns with your child and save stories to revisit. Features and help."/>
<title>TaleTime: AI Story Maker for Parents & Kids | SK APPS</title>
<meta name="description" content="Create stories together in TaleTime: choose a theme and hero, take turns with your child, and save your AI-assisted story to reread. Learn how it works."/>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<style>
Expand Down
Loading