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

Adding assertHasOption and assertHasOptions #65

Closed
lasselehtinen opened this issue Jan 27, 2017 · 1 comment
Closed

Adding assertHasOption and assertHasOptions #65

lasselehtinen opened this issue Jan 27, 2017 · 1 comment

Comments

@lasselehtinen
Copy link

lasselehtinen commented Jan 27, 2017

It would be very nice to have an assert if the dropdown menu contains given value(s). For example:

->assertHasOption('@countries', 'Finland');
->assertHasOptions('@countries', ['Finland', 'Sweden]);

I tried to look to the Facebook Webdriver API to make a PR but it went little bit over my head. Maybe somebody more capable would like to implement this?

@splatEric
Copy link
Contributor

you can implement additional assertions as macros ... I wrote up an example of it here: https://medium.com/@splatEric/writing-tests-with-laravel-dusk-bb755c0dcb1f#.5hj9en9b8

I would imagine the intention is to avoid proliferating too many additional assertions in the core, but I could be wrong ...

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

No branches or pull requests

2 participants