Integrated
Integrated copied to clipboard
add clickAll
clickAll is a feature to click properties that are generated dynamically from your database and should not be hardcoded
If you have elements that are populated dynamically from your database, like confirmations that a user must check, for example, they should not have to be hardcoded into tests.
$this->visit('/confirmations')
->clickAll(App\Confirmation::all(), 'label[for={$1}]', 'slug');
In this example, the Confirmation Model would have a slug field which populates the
<label for="{{ $confirmation->slug }}">
field.