List all slide types on the start page
CI / Deploy / test (push) Successful in 1m2s
CI / Deploy / deploy (push) Skipped

The feature list was hard-coded and missed quiz, Q&A, content and
YouTube slides. It is now rendered from Slide::typeLabels().

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Opus 5.5 committed 2026-11-07 16:17:39 +01:00
1 parent f0c6687100
commit 69d557c15a
4 files changed
+41 -7

No files matched your search

@@ -3,6 +3,7 @@ declare(strict_types=1);
namespace App\Test\TestCase\Controller;
use App\Model\Entity\Slide;
use App\Test\TestCase\PlenarioTestTrait;
use Cake\Cache\Cache;
use Cake\Core\Configure;
@@ -42,6 +43,15 @@ class HomeControllerTest extends TestCase
$this->assertResponseContains('Teilnahme-Code');
}
public function testIndexListsAllSlideTypes(): void
{
$this->get('/');
foreach (Slide::typeLabels() as $type => $label) {
$this->assertResponseContains('type-card--' . $type, $type);
$this->assertResponseContains(h($label), $type);
}
}
public function testCreateWithValidMathCaptchaSendsAdminMail(): void
{
$this->session(['Captcha.math.create' => 7]);