Skip to content

Commit df85d34

Browse files
authored
Update international vault metadata
## Why The international stablecoin vault listing needs page metadata that matches the requested SEO copy. ## Lessons learnt The international vault page uses shared `MetaTags` values for the HTML title, meta description, Open Graph, Twitter card, and JSON-LD metadata, so updating the route constants keeps those surfaces aligned. ## Summary - Updated the `/trading-view/vaults/international` title and meta description. - Added integration coverage for the international vault metadata values.
1 parent 6e2b9d3 commit df85d34

2 files changed

Lines changed: 20 additions & 3 deletions

File tree

src/routes/trading-view/vaults/international/+page.svelte

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,8 @@ International vault listing for non-USD-denominated vaults.
6666
.finally(() => (loading = false));
6767
});
6868
69-
const title = 'International DeFi vaults';
70-
const description =
71-
'Non-USD-denominated DeFi vaults, with TVL converted to USD using the latest denomination token exchange rates.';
69+
const title = 'International stablecoin vaults';
70+
const description = 'DeFi vaults nominated in CHF, EUR, GBP, JPY, SGD, and TRY';
7271
let pageUrl = $derived(new URL(page.url.pathname, page.url.origin).href);
7372
let pageSubtitle = $derived.by(() => {
7473
if (!topVaults) return 'Loading non-USD vault TVL and currencies.';

tests/integration/trading-view/vaults/stablecoins.test.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,24 @@ test.describe('stablecoins index page', () => {
7878
);
7979
});
8080

81+
test('uses the updated international vault metadata title and description', async ({ page }) => {
82+
await page.goto('/trading-view/vaults/international');
83+
84+
await expect(page).toHaveTitle('International stablecoin vaults');
85+
await expect(page.locator('meta[name="description"]')).toHaveAttribute(
86+
'content',
87+
'DeFi vaults nominated in CHF, EUR, GBP, JPY, SGD, and TRY'
88+
);
89+
await expect(page.locator('meta[property="og:title"]')).toHaveAttribute(
90+
'content',
91+
'International stablecoin vaults'
92+
);
93+
await expect(page.locator('meta[property="og:description"]')).toHaveAttribute(
94+
'content',
95+
'DeFi vaults nominated in CHF, EUR, GBP, JPY, SGD, and TRY'
96+
);
97+
});
98+
8199
test('has no JavaScript errors after the chart loads', async ({ page }) => {
82100
const errors: string[] = [];
83101
page.on('pageerror', (err) => errors.push(err.message));

0 commit comments

Comments
 (0)