<?php

use Inertia\Testing\AssertableInertia;

it('renders the help center homepage with key platform help links', function () {
    $this->get(route('help'))
        ->assertOk()
        ->assertInertia(fn (AssertableInertia $page) => $page
            ->component('Help/HelpCenterPage')
            ->where('title', 'Help Center')
            ->where('seo.canonical', route('help'))
            ->where('links.studio_help', route('help.studio'))
            ->where('links.upload_help', route('help.upload'))
            ->where('links.help_worlds', route('help.worlds'))
            ->where('links.groups_documentation', route('help.groups'))
            ->where('links.groups_quickstart', route('help.groups.quickstart'))
            ->where('links.groups_faq', route('help.groups.faq'))
            ->where('links.open_studio', route('studio.index'))
            ->where('links.studio_home', route('studio.index'))
            ->where('links.studio_worlds', route('studio.worlds.index'))
            ->where('links.create_world', route('worlds.create.redirect'))
            ->where('links.upload', route('upload'))
            ->where('links.worlds_index', route('worlds.index'))
            ->where('links.help_cards', route('help.cards'))
            ->where('links.help_profile', route('help.profile'))
            ->where('links.help_auth', route('help.auth'))
            ->where('links.help_account', route('help.account'))
            ->where('links.help_troubleshooting', route('help.troubleshooting'))
            ->where('links.cards_create', route('studio.cards.create'))
            ->where('links.profile_settings', route('dashboard.profile'))
            ->where('links.login', route('login'))
            ->where('links.register', route('register'))
            ->where('links.contact_support', route('contact.show'))
            ->where('links.report_issue', route('bug-report'))
        );
});