Suche ohne Begriff, scrollbare Dialoge auf dem Handy
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m36s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m32s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 4m1s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m54s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 5m16s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 5m15s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 4m38s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 4m33s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m15s
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m36s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m32s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 4m1s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m54s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 5m16s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 5m15s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 4m38s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 4m33s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m15s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
99c038462c
commit
742eaa691f
109 changed files with 465 additions and 452 deletions
|
|
@ -60,6 +60,14 @@ class GlobalSearchTest extends TestCase
|
|||
->where('groups.0.items.0.title', 'Blühwiese am Standort'));
|
||||
}
|
||||
|
||||
public function test_search_page_without_query_opens_empty(): void
|
||||
{
|
||||
// Lupe im Kopf (Handy) führt ohne Suchbegriff auf die Seite
|
||||
$this->actingAs(User::factory()->create())->get('/suche')->assertOk()->assertInertia(fn (Assert $page) => $page
|
||||
->component('Search/Index')->where('query', '')->where('groups', []));
|
||||
$this->actingAs(User::factory()->create())->getJson('/suche/live')->assertOk()->assertJson(['groups' => []]);
|
||||
}
|
||||
|
||||
public function test_excerpt_centers_on_the_match(): void
|
||||
{
|
||||
$text = str_repeat('Füllwort ', 60).'Hier steht der Treffer Dienstplan im Text. '.str_repeat('Ende ', 40);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue