<?php

it('leaderboard exposes normalized seo props to inertia', function () {
    $this->get('/leaderboard')
        ->assertOk()
        ->assertInertia(fn ($page) => $page
            ->component('Leaderboard/LeaderboardPage')
            ->where('seo.title', 'Top Creators & Artworks Leaderboard — Skinbase')
            ->where('seo.description', fn ($value) => is_string($value) && str_contains($value, 'leading creators'))
            ->where('seo.robots', 'index,follow')
            ->where('seo.canonical', url('/leaderboard')));
});