feat(pricing): link master keys to VK market products (v1.0.6)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+18
-2
@@ -9,6 +9,7 @@ import {
|
||||
FEATURE_VARIANTS,
|
||||
NAV_LINK_KEYS,
|
||||
NAV_HREFS,
|
||||
PRICING_TIER_BUY_URLS,
|
||||
PRICING_TIER_IDS,
|
||||
RECOMMENDED_PRICING_TIER,
|
||||
REQUIRED_SECTION_IDS,
|
||||
@@ -76,6 +77,21 @@ describe("siteContent", () => {
|
||||
assert.equal(VK_URL, "https://vk.com/ttrpgplayer");
|
||||
});
|
||||
|
||||
it("maps each pricing tier to a VK market product url", () => {
|
||||
assert.equal(
|
||||
PRICING_TIER_BUY_URLS.basic,
|
||||
"https://vk.ru/market/product/bazovy-klyuch-238917656-13366032",
|
||||
);
|
||||
assert.equal(
|
||||
PRICING_TIER_BUY_URLS.master,
|
||||
"https://vk.ru/market/product/klyuch-mastera-238917656-13366158",
|
||||
);
|
||||
assert.equal(
|
||||
PRICING_TIER_BUY_URLS.legend,
|
||||
"https://vk.ru/market/product/legenda-nri-238917656-13366160",
|
||||
);
|
||||
});
|
||||
|
||||
it("maps each feature variant to a screenshot asset", () => {
|
||||
for (const variant of FEATURE_VARIANTS) {
|
||||
assert.match(SCREENSHOT_SRC[variant], /^\/images\/screenshot-.+\.png$/u);
|
||||
@@ -103,8 +119,8 @@ describe("i18n messages", () => {
|
||||
it("documents download and support labels in both locales", () => {
|
||||
assert.equal(MESSAGES.ru.cta.download, "Скачать");
|
||||
assert.equal(MESSAGES.en.cta.download, "Download");
|
||||
assert.equal(MESSAGES.ru.cta.buy, "Поддержать");
|
||||
assert.equal(MESSAGES.en.cta.buy, "Support");
|
||||
assert.equal(MESSAGES.ru.cta.buy, "Купить");
|
||||
assert.equal(MESSAGES.en.cta.buy, "Buy");
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user