Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add clickAll #140

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add clickAll #140

wants to merge 1 commit into from

Conversation

aaronranard
Copy link

clickAll is a feature to click properties that are generated dynamically from your database and should not be hardcoded

clickAll is a feature to click properties that are generated dynamically from your database and should not be hardcoded
@aaronranard
Copy link
Author

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.

@aaronranard
Copy link
Author

Gif Example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant