<?php

use Inertia\Testing\AssertableInertia;

it('renders the worlds help page with real internal links', function () {
    $this->get(route('help.worlds'))
        ->assertOk()
        ->assertInertia(fn (AssertableInertia $page) => $page
            ->component('Help/WorldsHelpPage')
            ->where('title', 'Worlds Help')
            ->where('seo.canonical', route('help.worlds'))
            ->where('links.help_home', route('help'))
            ->where('links.studio_help', route('help.studio'))
            ->where('links.upload_help', route('help.upload'))
            ->where('links.help_cards', route('help.cards'))
            ->where('links.groups_help', route('help.groups'))
            ->where('links.worlds_index', route('worlds.index'))
            ->where('links.create_world', route('worlds.create.redirect'))
            ->where('links.studio_worlds', route('studio.worlds.index'))
            ->where('links.studio_worlds_create', route('studio.worlds.create'))
            ->where('links.open_studio', route('studio.index'))
            ->where('links.contact_support', route('contact.show'))
            ->where('links.report_issue', route('bug-report'))
        );
});