Update PageTest.php

This commit is contained in:
Dan Harrin
2024-02-20 09:42:10 +00:00
committed by GitHub
parent dce99730cf
commit 14e8bcb9f7
-12
View File
@@ -1,11 +1,9 @@
<?php
use Filament\Facades\Filament;
use Filament\Notifications\Notification;
use Filament\Pages\Page;
use Filament\Tests\Panels\Fixtures\Pages\Settings;
use Filament\Tests\Panels\Pages\TestCase;
use Illuminate\Support\HtmlString;
use Illuminate\Validation\ValidationException;
use function Filament\Tests\livewire;
@@ -37,13 +35,3 @@ it('can report validation errors', function () {
->assertHasErrors(['name' => ['required']])
->assertNotified();
});
it('strips html tags from brand name in title tag', function () {
$htmlBrandName = '<span>Filament <i>HTML Title</i></span>';
Filament::getCurrentPanel()->brandName(new HtmlString($htmlBrandName));
$this->get(Settings::getUrl())
->assertSee('Filament HTML Title')
->assertDontSee($htmlBrandName);
});