Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/routes/trading-view/vaults/international/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@ International vault listing for non-USD-denominated vaults.
.finally(() => (loading = false));
});

const title = 'International DeFi vaults';
const description =
'Non-USD-denominated DeFi vaults, with TVL converted to USD using the latest denomination token exchange rates.';
const title = 'International stablecoin vaults';
const description = 'DeFi vaults nominated in CHF, EUR, GBP, JPY, SGD, and TRY';
let pageUrl = $derived(new URL(page.url.pathname, page.url.origin).href);
let pageSubtitle = $derived.by(() => {
if (!topVaults) return 'Loading non-USD vault TVL and currencies.';
Expand Down
18 changes: 18 additions & 0 deletions tests/integration/trading-view/vaults/stablecoins.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,24 @@ test.describe('stablecoins index page', () => {
);
});

test('uses the updated international vault metadata title and description', async ({ page }) => {
await page.goto('/trading-view/vaults/international');

await expect(page).toHaveTitle('International stablecoin vaults');
await expect(page.locator('meta[name="description"]')).toHaveAttribute(
'content',
'DeFi vaults nominated in CHF, EUR, GBP, JPY, SGD, and TRY'
);
await expect(page.locator('meta[property="og:title"]')).toHaveAttribute(
'content',
'International stablecoin vaults'
);
await expect(page.locator('meta[property="og:description"]')).toHaveAttribute(
'content',
'DeFi vaults nominated in CHF, EUR, GBP, JPY, SGD, and TRY'
);
});

test('has no JavaScript errors after the chart loads', async ({ page }) => {
const errors: string[] = [];
page.on('pageerror', (err) => errors.push(err.message));
Expand Down
Loading