get(route('landing.index'));
$response->assertOk();
$response->assertSee('
MoonWell — Лунный колодец', false);
$response->assertSee('', false);
$response->assertInertia(fn (Assert $page) => $page
->component('Landing/Main', false)
->where('realm.server_name', 'MoonWell')
->where('legalUrls.published', false)
->where('legalUrls.offer', null)
->where('legalUrls.privacy', null)
->etc()
);
}
public function test_landing_page_uses_https_assets_behind_proxy(): void
{
$response = $this->withServerVariables([
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_X_FORWARDED_HOST' => 'moon-well.online',
'HTTP_X_FORWARDED_PORT' => 443,
'HTTP_HOST' => 'moon-well.online',
'REMOTE_ADDR' => '127.0.0.1',
])->get(route('landing.index'));
$response->assertOk();
$response->assertSee('href="https://moon-well.online/build/assets/', false);
}
}