Some checks failed
build-images / web (push) Has been cancelled
vision2026-ci / Python SDK resource tests (push) Has been cancelled
build-images / api (push) Has been cancelled
build-images / worker-gpu (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Has been cancelled
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Has been cancelled
codeql / Analyze (javascript-typescript) (push) Has been cancelled
codeql / Analyze (python) (push) Has been cancelled
perf / API hot-path micro-smoke (budgeted) (push) Has been cancelled
perf / Desktop engine crates (release build check) (push) Has been cancelled
vision2026-ci / API phase modules (ruff + pytest) (push) Has been cancelled
vision2026-ci / Alembic upgrade + drift check (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Has been cancelled
Paid, hosted product at menivor.com, now retired as a company project. Fresh squashed history of the cleaned working tree (secret-scanned, no .env, no customer data, no outreach logs). Built on MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
37 lines
1.5 KiB
TypeScript
37 lines
1.5 KiB
TypeScript
/**
|
||
* The /pricing headline sits directly above the monthly plans and the credit
|
||
* packs, so it has to name both offers (DISTRIBUTION-WAVE funnel fix). It
|
||
* used to read "Pay per reel, not per month" above a monthly plan.
|
||
*/
|
||
|
||
import * as fs from "node:fs";
|
||
import * as path from "node:path";
|
||
import { describe, expect, it } from "vitest";
|
||
import { en } from "@/lib/i18n/dictionaries/en";
|
||
import { es } from "@/lib/i18n/dictionaries/es";
|
||
import { tr } from "@/lib/i18n/dictionaries/tr";
|
||
|
||
const NOT_MONTHLY = /not per month|no (?:por|al) mes|aylık değil|no subscription|sin suscripción|abonelik yok/i;
|
||
|
||
describe("/pricing headline", () => {
|
||
it("the page renders monthly plans next to the packs", () => {
|
||
const checkout = fs.readFileSync(path.join(__dirname, "PricingCheckout.tsx"), "utf8");
|
||
expect(checkout).toMatch(/<MonthlyPlans\b/);
|
||
});
|
||
|
||
for (const [locale, messages] of [["en", en], ["es", es], ["tr", tr]] as const) {
|
||
it(`${locale}: names both offers and never denies the monthly plan`, () => {
|
||
const { title, intro } = messages.pricing;
|
||
expect(title).not.toMatch(NOT_MONTHLY);
|
||
expect(intro).not.toMatch(NOT_MONTHLY);
|
||
expect(`${title} ${intro}`).toMatch(/month|mes|aylık|ay\b/i);
|
||
expect(`${title} ${intro}`).toMatch(/pack|paket/i);
|
||
});
|
||
}
|
||
|
||
it("the per-reel billing explainer matches", () => {
|
||
const features = fs.readFileSync(path.resolve(__dirname, "../../../lib/seo/features.ts"), "utf8");
|
||
expect(features).not.toMatch(NOT_MONTHLY);
|
||
});
|
||
});
|