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 notContains support #263

Closed
nvtaveras opened this issue May 18, 2016 · 3 comments
Closed

Add notContains support #263

nvtaveras opened this issue May 18, 2016 · 3 comments

Comments

@nvtaveras
Copy link

I was using the library the other day and wrote a test that should fail if the app ever showed a div containing an error class (it could happen on random occasions).

I did a temporary work around by wrapping the contains method into a try/catch, but figured it would be good to have a notContains assertion method (as we currently have one for notDisplayed).

Thoughts? I'll be more than happy to work on it :)

@lefthandedgoat
Copy link
Owner

Yah you can add one if you like and I can do a new build.

Probably the best solution is to copy/paste/modify the existing contains

https://github.com/lefthandedgoat/canopy/blob/master/src/canopy/canopy.fs#L468-L470

@lefthandedgoat
Copy link
Owner

I will do a build tonight and include this feature.

lefthandedgoat added a commit that referenced this issue May 18, 2016
@lefthandedgoat
Copy link
Owner

You can download this now here: https://www.nuget.org/packages/canopy/0.9.54

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