mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-13 21:59:34 +00:00
16 lines
582 B
PHP
16 lines
582 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace App\Tests\Template;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
final class LabelDialogTemplateTest extends TestCase
|
|
{
|
|
public function testPdfViewerHeightIsIncreased(): void
|
|
{
|
|
$tpl = file_get_contents(__DIR__ . '/../../templates/label_system/dialog.html.twig');
|
|
|
|
$this->assertStringContainsString('id="pdf_preview"', $tpl, 'PDF object id must exist');
|
|
$this->assertStringContainsString('height: 280px', $tpl, 'Default PDF viewer height should be 280px to make the toolbar visible in Chromium-based browsers');
|
|
}
|
|
}
|