Add support for categories page to smoke tests

This commit is contained in:
Neil Lalonde 2014-03-13 15:03:30 -04:00
parent d450c7e0de
commit 9f8477d0c1
1 changed files with 5 additions and 1 deletions

View File

@ -101,7 +101,11 @@ page.runTests = function(){
navigate("navigate to first topic", function(){ navigate("navigate to first topic", function(){
Em.run.later(function(){ Em.run.later(function(){
$('.main-link a:first').click(); if ($('.main-link a:first').length > 0) {
$('.main-link a:first').click(); // topic list page
} else {
$('.featured-topic a.title:first').click(); // categories page
}
}, 500); }, 500);
}); });