livewire(ListLeads::class)
->callAction('create')
->mountFormComponentAction('mountedActionsData.0.customer_id', 'createCustomer')
->assertFormComponentActionDataSet([
'contact.first_name' => $firstName,
'contact.last_name' => fake()->lastName(),
'contact.zipcode' => fake()->postcode(),
'contact.city' => fake()->city(),
'contact.country' => 'FR',
])
->callMountedFormComponentAction()
->assertHasNoFormComponentActionErrors();
livewire(ListLeads::class)
->callAction('create')
->mountFormComponentAction('mountedActionsData.0.customer_id', 'createCustomer')
->assertFormComponentActionDataSet([
'contact.first_name' => $firstName,
'contact.last_name' => fake()->lastName(),
'contact.zipcode' => fake()->postcode(),
'contact.city' => fake()->city(),
'contact.country' => 'FR',
])
->callMountedFormComponentAction()
->assertHasNoFormComponentActionErrors();