-
-
Save n1k0/3099264 to your computer and use it in GitHub Desktop.
Bootstrap Dropdown CasperJS check.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
casper.start('http://twitter.github.com/bootstrap/javascript.html#dropdowns', function() { | |
this.test.assertExists('#navbar-example'); | |
this.click('#dropdowns .nav-pills .dropdown:last-of-type a.dropdown-toggle'); | |
this.waitUntilVisible('#dropdowns .nav-pills .open', function() { | |
this.test.pass('Dropdown is open'); | |
}); | |
}); | |
casper.run(function() { | |
this.test.done(); | |
}); |
ce test a de la gueule. Tu devrais le montrer sur la home de casperJS.org.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Finalement j'ai forké :)