mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-15 06:39:33 +00:00
Reduce change to a minimum, delete PHPUnit Test
Revert "Label generator: increase PDF preview height to show toolbar in Chromium (fixes #1165)"
This reverts commit 211d80adee.
This commit is contained in:
parent
211d80adee
commit
1b229dcf4b
2 changed files with 2 additions and 19 deletions
|
|
@ -1,16 +0,0 @@
|
|||
<?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');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue