同步前端文件更新
This commit is contained in:
@@ -25,6 +25,16 @@ export function runTests() {
|
||||
path.join(projectRoot, "app", "api", "analytics", "events", "route.ts"),
|
||||
"utf8",
|
||||
);
|
||||
const subscriptionsPageSource = fs.readFileSync(
|
||||
path.join(
|
||||
projectRoot,
|
||||
"components",
|
||||
"ops",
|
||||
"subscriptions",
|
||||
"SubscriptionsPageClient.tsx",
|
||||
),
|
||||
"utf8",
|
||||
);
|
||||
|
||||
assert(
|
||||
accountCenterSource.includes(
|
||||
@@ -66,4 +76,11 @@ export function runTests() {
|
||||
accountCenterSource.includes('trackAppEvent("dashboard_active"'),
|
||||
"account center must emit signup_completed and dashboard_active so the ops funnel has top-of-funnel data",
|
||||
);
|
||||
assert(
|
||||
subscriptionsPageSource.includes("getSupabaseBrowserClient") &&
|
||||
subscriptionsPageSource.includes("Authorization") &&
|
||||
subscriptionsPageSource.includes("/api/ops/subscriptions/grant") &&
|
||||
subscriptionsPageSource.includes("/api/ops/subscriptions/extend"),
|
||||
"ops manual subscription grant/extend must send the Supabase bearer token to avoid 401 when route cookies are stale",
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user