V2.1: nichtlineare Prozessansicht, Begründung der Pflichtschritte, Bedienelemente der neuen Einstellungen
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f8561fe0e5
commit
fdf226535b
8 files changed
+77
-8
No files matched your search
@@ -103,6 +103,25 @@ public function test_a_stored_old_setting_becomes_a_derived_capability_and_is_no
|
||||
$page->assertSee('abgeleitet aus Ihrer bisherigen Einstellung');
|
||||
}
|
||||
|
||||
/** The order is shown from the module definitions: dependencies, independence, conditions and how a duty may be fulfilled. */
|
||||
public function test_the_configurator_shows_dependencies_independence_and_allowed_fulfilment(): void
|
||||
{
|
||||
$ds = $this->channel('Destination Solution', []);
|
||||
$this->actingAs(User::factory()->create());
|
||||
|
||||
$steps = collect(Livewire::test(ChannelProcess::class, ['record' => $ds->getRouteKey()])->set('intake', 'booking')->instance()->steps())->keyBy('module');
|
||||
|
||||
$this->assertNotEmpty($steps['documents.send']['needs'], 'the contract documents need something first');
|
||||
$this->assertSame([], $steps['intake.record']['needs'], 'the intake depends on nothing');
|
||||
$this->assertNotNull($steps['documents.booking_notice']['condition']);
|
||||
foreach ($steps as $step) {
|
||||
if ($step['toggle'] === 'mandatory' && $step['executions'] !== []) {
|
||||
$this->assertNotNull($step['why'], $step['module'].': the restriction is explained');
|
||||
}
|
||||
}
|
||||
$this->assertNotEmpty(collect($steps['documents.send']['parameters'])->firstWhere('key', 'contract_delivery')['options']);
|
||||
}
|
||||
|
||||
public function test_saving_a_model_that_overrides_a_stored_setting_needs_the_confirmation_and_is_recorded(): void
|
||||
{
|
||||
$channel = $this->channel('Sonstiges Portal', ['booking' => ['payments' => 'portal', 'guest_messages' => 'portal']]);
|
||||
|
||||
Reference in new issue
Block a user