Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.

Assertion: assertVisible() helper method #240

Merged
merged 2 commits into from
Sep 23, 2012
Merged

Assertion: assertVisible() helper method #240

merged 2 commits into from
Sep 23, 2012

Conversation

donovanh
Copy link
Contributor

Apologies if I'm approaching this wrongly, but I've found myself writing a lot of if (this.visible(x)) else statements when writing tests, and thought it would be helpful to have a specific "assertVisible" method.

I've added the method to the tester.js module. I wasn't sure if it needed a specific test written as it's essentially just returns the result of casper.visible().

Thanks,

Donovan

n1k0 added a commit that referenced this pull request Sep 23, 2012
@n1k0 n1k0 merged commit 60d3246 into casperjs:master Sep 23, 2012
@n1k0
Copy link
Member

n1k0 commented Sep 23, 2012

Thanks for contributing.

n1k0 added a commit that referenced this pull request Sep 24, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants