Set the state of ->afterStateUpdated inside a test

My page shows some text after the user selects a certain entry form a Select::make(). I use the ->afterStateUpdated method to change the text if a certain condition is met. Does anyone know how i can implement this inside a (Pest) test? The following doesn't work: $livewire = livewire(CreateReport::class) ->set('client_id', $newReport->client->getKey()) ->call('afterStateUpdated', 'client_id'); // Call the afterStateUpdated method if needed I'm in V3.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server