Very basic "Do the subscriptions and settings pages links work" tests.

(imported from commit f941b8d5f984ffa726266dab50bfab00716c34eb)
This commit is contained in:
Waseem Daher 2013-01-07 18:00:10 -05:00
parent 2d94e4c780
commit 9ecbff26f8
1 changed files with 17 additions and 0 deletions

View File

@ -279,6 +279,23 @@ casper.then(function () {
]);
});
// Subscriptions page tests
casper.then(function() {
casper.test.info('Subscriptions page');
casper.click('a[href^="#subscriptions"]');
casper.test.assertUrlMatch(/^http:\/\/[^\/]+\/#subscriptions/, 'URL suggests we are on subscriptions page');
casper.test.assertExists('#subscriptions.tab-pane.active', 'Subscriptions page is active');
});
// Settings page tests
casper.then(function() {
casper.test.info('Settings page');
casper.click('a[href^="#settings"]');
casper.test.assertUrlMatch(/^http:\/\/[^\/]+\/#settings/, 'URL suggests we are on settings page');
casper.test.assertExists('#settings.tab-pane.active', 'Settings page is active');
});
// Run the above queued actions.
casper.run(function () {
casper.exit((casper.test.getFailures().length > 0) ? 1 : 0);