Ausstehenden Erstimport von veraltetem Kalender unterscheiden
Deploy FeWo mit PipelineManager / deploy (push) Successful in 2m41s

This commit is contained in:
Lars committed 2026-10-27 17:58:07 +01:00
1 parent 0be1cfcdb8
commit e5a083ce71
4 files changed
+35 -2

No files matched your search

+16
View File
@@ -135,6 +135,22 @@ public function test_another_landlords_channel_cannot_be_seen_or_edited(): void
Livewire::test(EditChannel::class, ['record' => $other->id])->assertNotFound();
}
public function test_a_new_enabled_import_is_waiting_for_its_first_run_rather_than_outdated(): void
{
$property = $this->property();
$channel = Channel::factory()->for($property)->create();
$this->actingAs(User::factory()->create());
Livewire::test(ListChannels::class)->assertCanSeeTableRecords([$channel])
->assertSee('Erster Import ausstehend')->assertDontSee('Import veraltet');
$channel->forceFill(['last_success_at' => now()->subHours(2)])->save();
Livewire::test(ListChannels::class)->assertSee('Import veraltet')->assertDontSee('Erster Import ausstehend');
$channel->forceFill(['last_success_at' => null, 'last_error' => 'Synthetischer Abruffehler'])->save();
Livewire::test(ListChannels::class)->assertSee('Importfehler')->assertDontSee('Erster Import ausstehend');
}
private function property(): Property
{
$this->travelTo(CarbonImmutable::parse('2026-10-27 12:00'));