zulip/zerver/tests/frontend/casperjs
Tim Abbott e111a2f9a5 [manual] Rename Django app from zephyr to zerver.
This needs to be deployed to both staging and prod at the same
off-peak time (and the schema migration run).

At the time it is deployed, we need to make a few changes directly in
the database:

(1) UPDATE django_content_type set app_label='zerver' where app_label='zephyr';
(2) UPDATE south_migrationhistory set app_name='zerver' where app_name='zephyr';

(imported from commit eb3fd719571740189514ef0b884738cb30df1320)
2013-08-06 07:39:36 -04:00
..
batchbin [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
bin [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
modules [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
rpm [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
rubybin [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
samples [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
tests [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
.gitignore [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
.gitmodules [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
.jshintconfig [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
.jshintignore [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
.travis.yml [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
CHANGELOG.md [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
CONTRIBUTING.md [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
CONTRIBUTORS.md [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
LICENSE.md [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
README.md [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
casperjs.gemspec [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
package.json [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00

README.md

CasperJS Build Status

CasperJS is a navigation scripting & testing utility for PhantomJS. It eases the process of defining a full navigation scenario and provides useful high-level functions, methods & syntaxic sugar for doing common tasks such as:

Browse the sample examples repository. Don't hesitate to pull request for any cool example of yours as well!

Read the full documentation on casperjs dedicated website.

Subscribe to the project mailing-list

Follow the CasperJS project on twitter and Google+.

Show me some code!

Sample test to see if some dropdown can be opened:

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();
});

Run the script:

Contributing

Contributing code

Please read the CONTRIBUTING.md file contents.

Contributing documentation

CasperJS's documentation is written using the Markdown format, and hosted on Github thanks to the Github Pages Feature.

To view the source files on github, head to the gh-pages branch, and check the documentation's README for further instructions.