Fix form tests

This commit is contained in:
philipp lang 2024-12-24 17:33:55 +01:00
parent 3ba29b9f5e
commit da567e0a73
1 changed files with 2 additions and 2 deletions
modules/Form/Components

View File

@ -20,7 +20,7 @@ it('it displays active modules', function () {
test()->withoutExceptionHandling()->login()->loginNami();
app(FormSettings::class)->fill(['registerUrl' => 'http://example.com/register', 'clearCacheUrl' => 'http://example.com/clear-cache'])->save();
Livewire::test(SettingView::class)
Livewire::test(FormSettingView::class)
->assertSee('Einstellungen für Anmeldeformulare')
->assertSee('Formular-Link')
->assertSet('registerUrl', 'http://example.com/register')
@ -31,7 +31,7 @@ it('it displays active modules', function () {
it('it saves settings', function () {
test()->withoutExceptionHandling()->login()->loginNami();
Livewire::test(SettingView::class)
Livewire::test(FormSettingView::class)
->set('clearCacheUrl', 'http://example.com/clear')
->set('registerUrl', 'http://example.com/register')
->call('save')