mirror of https://github.com/zulip/zulip.git
Very basic "Do the subscriptions and settings pages links work" tests.
(imported from commit f941b8d5f984ffa726266dab50bfab00716c34eb)
This commit is contained in:
parent
2d94e4c780
commit
9ecbff26f8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue