Skip to content

Commit a083291

Browse files
authored
App website: verify real share asset and referral landings after owner release (#135)
* fix(release): verify deployed app referral JS and three real support-page bindings * test(release): lock live share asset, all three landing tags and no-side-effects probe * test(release): distinguish harmless rsync documentation from executable write commands * fix(release): align Debate Me smoke with current source and map new share assets * fix(release): align Debate Me smoke with current source and map new share assets * fix(release): align Debate Me smoke with current source and map new share assets * fix(release): align Debate Me smoke with current source and map new share assets * test(release): validate dynamic Tappitsu binding without falsely attributing it to literal grep parser * test(ci): align Debate Me description with current published-intent copy
1 parent cfcc2da commit a083291

5 files changed

Lines changed: 52 additions & 9 deletions

File tree

‎scripts/check_app_discovery_live.sh‎

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ grep -Fq 'const FEAT_T={en:{0:"Choose A or B on a question."' "$tmp/dotchi.html"
103103
fetch '/support/debate-me/' 'debate-me.html'
104104
# The post-GSC 2026-11-11 snippet must be live; rejecting the old SEO
105105
# title prevents a GitHub merge from being mistaken for a published change.
106-
grep -Fq '<title>Debate Me – Practice Debating with AI on Android | SK APPS</title>' "$tmp/debate-me.html" || { echo 'FAIL Debate Me new SEO title not live' >&2; exit 1; }
107-
grep -Fq 'content="Want to get better at debating? Debate Me lets you challenge an AI opponent' "$tmp/debate-me.html" || { echo 'FAIL Debate Me new search description not live' >&2; exit 1; }
108-
grep -Fq '<meta property="og:title" content="Debate Me – Practice Debating with AI on Android | SK APPS">' "$tmp/debate-me.html" || { echo 'FAIL Debate Me OG title not live' >&2; exit 1; }
106+
grep -Fq '<title>Debate Me – AI Debate Practice App for Android | SK APPS</title>' "$tmp/debate-me.html" || { echo 'FAIL Debate Me new SEO title not live' >&2; exit 1; }
107+
grep -Fq 'content="Debate Me is an Android AI debate practice app. Choose a topic, practise claims and rebuttals with an AI opponent' "$tmp/debate-me.html" || { echo 'FAIL Debate Me new search description not live' >&2; exit 1; }
108+
grep -Fq '<meta property="og:title" content="Debate Me – AI Debate Practice App for Android | SK APPS">' "$tmp/debate-me.html" || { echo 'FAIL Debate Me OG title not live' >&2; exit 1; }
109109
grep -Fq 'data-position="hero"' "$tmp/debate-me.html" || { echo 'FAIL Debate Me first-screen Play CTA not live' >&2; exit 1; }
110110
grep -Fq 'data-position="details"' "$tmp/debate-me.html" || { echo 'FAIL Debate Me details Play CTA missing' >&2; exit 1; }
111111
grep -Fq 'utm_campaign=support_debate-me' "$tmp/debate-me.html" || { echo 'FAIL Debate Me published Play campaign attribution missing' >&2; exit 1; }
@@ -160,6 +160,22 @@ grep -Fq 'support_future_me_hero' "$tmp/futureme.html" || { echo 'FAIL FutureMe
160160
if grep -Eiq 'Letters to future self|Time capsule feature|FutureMe Premium.*[0-9]+/(month|year)|FutureMe Premium 提供月度|NT\\$150/月' "$tmp/futureme.html"; then
161161
echo 'FAIL FutureMe support page contains outdated feature or pricing claims' >&2; exit 1
162162
fi
163+
# App referral feature release proof (PR #133): source merge is not
164+
# production delivery. A 200 HTML fallback at the .js URL is NOT proof;
165+
# check the exact asset content and three first-party landing-page script tags.
166+
# This remains a read-only smoke check, not a real user share or Play install.
167+
fetch '/scripts/app-share.js' 'app-share.js'
168+
grep -Fq 'app_support_share' "$tmp/app-share.js" || { echo 'FAIL app share asset is absent or an HTML fallback' >&2; exit 1; }
169+
grep -Fq 'navigator.share' "$tmp/app-share.js" || { echo 'FAIL native share flow not deployed' >&2; exit 1; }
170+
grep -Fq 'navigator.clipboard.writeText' "$tmp/app-share.js" || { echo 'FAIL share copy fallback missing' >&2; exit 1; }
171+
fetch '/support/tappitsu-battle/' 'tappitsu-battle.html'
172+
for entry in 'debate-me:debate-me' 'futureme:future-me' 'tappitsu-battle:tappitsu-battle'; do
173+
IFS=: read -r html_file slug <<< "$entry"
174+
grep -Fq "src=\"/scripts/app-share.js\" data-app-share-slug=\"$slug\"" "$tmp/$html_file.html" \
175+
|| { echo "FAIL opt-in sharing for $slug not deployed to its landing HTML" >&2; exit 1; }
176+
done
177+
echo 'PASS: public app sharing script and three localized app landing bindings present (browser QA still required)'
178+
163179
# Newly indexed bilingual AI debate practice articles must be live and
164180
# point to real Android app destinations, not just appear in sitemap/source.
165181
fetch '/guides/ai-debate-practice/' 'ai-debate-practice.html'

‎scripts/test_live_smoke_source_parity.py‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
"instant-judge.html": "support/instant-judge/index.html",
3636
"roastme.html": "support/roast-me/index.html",
3737
"futureme.html": "support/future-me/index.html",
38+
"app-share.js": "scripts/app-share.js",
39+
"tappitsu-battle.html": "support/tappitsu-battle/index.html",
3840
}
3941

4042
# Check only literal, single-quoted -Fq source assertions. Double-quoted
@@ -95,6 +97,13 @@ def test_expected_app_pages_are_actually_represented(self):
9597
self.assertIn("one-tap-routine.html", report["files"])
9698
self.assertIn("taletime.html", report["files"])
9799
self.assertIn("futureme.html", report["files"])
100+
self.assertIn("app-share.js", report["files"])
101+
# Tappitsu binding is checked inside the shell loop (dynamic $slug),
102+
# so the literal-only scanner deliberately does not claim it verified
103+
# that loop by expanding variable values.
104+
self.assertIn("tappitsu-battle.html", SOURCE_PATHS)
105+
self.assertIn("fetch '/support/tappitsu-battle/' 'tappitsu-battle.html'", smoke)
106+
self.assertIn("data-app-share-slug=", smoke)
98107
self.assertIn("sitemap.xml", report["files"])
99108
self.assertIn("ai-debate-practice.html", report["files"])
100109
self.assertIn("ai-debate-practice-ja.html", report["files"])

‎scripts/test_press_kit.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ def test_live_smoke_checks_all_press_locales_and_latest_support(self):
9191
self.assertIn("'press_app_click'", smoke)
9292
self.assertIn("'download_click'", smoke)
9393
self.assertIn("BrainBurst – Daily Trivia & 1v1 Quiz Battles on Android", smoke)
94-
self.assertIn("Debate Me – Practice Debating with AI on Android | SK APPS", smoke)
95-
self.assertIn('<meta property="og:title" content="Debate Me – Practice Debating with AI on Android | SK APPS">', smoke)
94+
self.assertIn("Debate Me – AI Debate Practice App for Android | SK APPS", smoke)
95+
self.assertIn('<meta property="og:title" content="Debate Me – AI Debate Practice App for Android | SK APPS">', smoke)
9696
self.assertNotIn("Debate Me: Practice Arguments with AI | Android App", smoke)
9797
self.assertNotIn("Debate Me – Free AI Debate App for Android | SK APPS", smoke)
9898
self.assertIn("utm_campaign=support_debate-me", smoke)

‎tests/app-support-share.test.mjs‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,21 @@ test("VPS and offline release bundle both contain the shared asset", () => {
6464
assert.match(manifest, /files=\(scripts\/app-share\.js index\.html/);
6565
assert.match(bundle, /len\(apps\) != 31/);
6666
});
67+
68+
69+
test("live smoke rejects missing share assets or mismatched app landing bindings", () => {
70+
const smoke = read("scripts/check_app_discovery_live.sh");
71+
assert.match(smoke, /fetch '\/scripts\/app-share\.js' 'app-share\.js'/);
72+
assert.match(smoke, /grep -Fq 'app_support_share' "\$tmp\/app-share\.js"/);
73+
assert.match(smoke, /grep -Fq 'navigator\.share' "\$tmp\/app-share\.js"/);
74+
assert.match(smoke, /grep -Fq 'navigator\.clipboard\.writeText' "\$tmp\/app-share\.js"/);
75+
assert.match(smoke, /fetch '\/support\/tappitsu-battle\/' 'tappitsu-battle\.html'/);
76+
assert.match(smoke, /'debate-me:debate-me' 'futureme:future-me' 'tappitsu-battle:tappitsu-battle'/);
77+
assert.match(smoke, /data-app-share-slug=/);
78+
assert.match(smoke, /FAIL opt-in sharing for \$slug not deployed/);
79+
assert.match(smoke, /browser QA still required/);
80+
// Source-only and read-only: do not permit the public smoke to publish
81+
// or misstate a share tap as an install or an inbound human visitor.
82+
assert.doesNotMatch(smoke, /^\s*(?:rsync|ssh|gh workflow run)\b/m);
83+
assert.doesNotMatch(smoke, /install_completed/i);
84+
});

‎tests/debate-me-support-growth.test.mjs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ function dictionary(name, after) {
1111
return runInNewContext('('+match[1]+')');
1212
}
1313
test('first paint shows real AI debate and never a food spinner', () => {
14-
assert.match(html, /<title>Debate Me – Practice Debating with AI on Android \| SK APPS<\/title>/);
15-
assert.match(html, /<meta property="og:title" content="Debate Me – Practice Debating with AI on Android \| SK APPS">/);
14+
assert.match(html, /<title>Debate Me – AI Debate Practice App for Android \| SK APPS<\/title>/);
15+
assert.match(html, /<meta property="og:title" content="Debate Me – AI Debate Practice App for Android \| SK APPS">/);
1616
assert.match(html, /<h1>Debate Me<\/h1>/);
1717
assert.match(html, /<div class="hero-emoji">🗣️<\/div>/);
1818
assert.match(html, /<div class="hero-cat">Education<\/div>/);
@@ -62,7 +62,7 @@ test('manual VPS publishing includes the landing and its read-only live validati
6262
assert.match(live,/fetch '\/support\/debate-me\/' 'debate-me.html'/);
6363
assert.match(live,/FAIL Debate Me page still describes cooking/);
6464
assert.match(live,/FAIL Debate Me first-screen Play CTA not live/);
65-
assert.match(live, /Debate Me – Practice Debating with AI on Android/);
65+
assert.match(live, /Debate Me – AI Debate Practice App for Android/);
6666
assert.match(live, /FAIL Debate Me new SEO title not live/);
6767
assert.match(live, /FAIL Debate Me new search description not live/);
6868
assert.doesNotMatch(live, /grep -Fq 'AI Debate Practice &amp; Feedback'/);
@@ -78,6 +78,6 @@ test('search snippets match the visible Debate Me product and schema', () => {
7878
assert.match(description, /Debate Me/);
7979
assert.match(description, /AI opponent/);
8080
assert.match(description, /review feedback/);
81-
assert.match(description, /on Google Play/);
81+
assert.match(description, /Explore Google Play/);
8282
assert.equal(JSON.parse(schema).description, description);
8383
});

0 commit comments

Comments
 (0)