Fix form tests
This commit is contained in:
parent
3ba29b9f5e
commit
da567e0a73
modules/Form/Components
|
@ -20,7 +20,7 @@ it('it displays active modules', function () {
|
||||||
test()->withoutExceptionHandling()->login()->loginNami();
|
test()->withoutExceptionHandling()->login()->loginNami();
|
||||||
app(FormSettings::class)->fill(['registerUrl' => 'http://example.com/register', 'clearCacheUrl' => 'http://example.com/clear-cache'])->save();
|
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('Einstellungen für Anmeldeformulare')
|
||||||
->assertSee('Formular-Link')
|
->assertSee('Formular-Link')
|
||||||
->assertSet('registerUrl', 'http://example.com/register')
|
->assertSet('registerUrl', 'http://example.com/register')
|
||||||
|
@ -31,7 +31,7 @@ it('it displays active modules', function () {
|
||||||
it('it saves settings', function () {
|
it('it saves settings', function () {
|
||||||
test()->withoutExceptionHandling()->login()->loginNami();
|
test()->withoutExceptionHandling()->login()->loginNami();
|
||||||
|
|
||||||
Livewire::test(SettingView::class)
|
Livewire::test(FormSettingView::class)
|
||||||
->set('clearCacheUrl', 'http://example.com/clear')
|
->set('clearCacheUrl', 'http://example.com/clear')
|
||||||
->set('registerUrl', 'http://example.com/register')
|
->set('registerUrl', 'http://example.com/register')
|
||||||
->call('save')
|
->call('save')
|
||||||
|
|
Loading…
Reference in New Issue