Add emotion data and lightbox share/download
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

This commit is contained in:
Codex Agent
2026-02-05 20:35:11 +01:00
parent ba56cb4e61
commit c6aaf859f5
6 changed files with 657 additions and 295 deletions

View File

@@ -29,6 +29,8 @@ class EventPhotosLocaleTest extends TestCase
$emotion = Emotion::factory()->create([
'name' => ['de' => 'Freude', 'en' => 'Joy'],
'icon' => '🙂',
'color' => '#FF00AA',
]);
$task = Task::factory()->create([
@@ -52,6 +54,9 @@ class EventPhotosLocaleTest extends TestCase
$responseEn->assertOk();
$responseEn->assertHeader('X-Content-Locale', 'en');
$responseEn->assertJsonFragment(['task_title' => 'Kiss Moment']);
$responseEn->assertJsonPath('data.0.emotion.name', 'Joy');
$responseEn->assertJsonPath('data.0.emotion.icon', '🙂');
$responseEn->assertJsonPath('data.0.emotion.color', '#FF00AA');
$etag = $responseEn->headers->get('ETag');
$this->assertNotEmpty($etag);