mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
add smoke test for visiting categories
This commit is contained in:
parent
62d245dde3
commit
8491f8c48b
@ -143,6 +143,14 @@ var runTests = function() {
|
|||||||
return $(".topic-list tbody tr").length;
|
return $(".topic-list tbody tr").length;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
execAsync("go to categories page", 500, function(){
|
||||||
|
window.location = "/categories";
|
||||||
|
});
|
||||||
|
|
||||||
|
test("can see categories on the page", function() {
|
||||||
|
return $('.category-list').length;
|
||||||
|
});
|
||||||
|
|
||||||
execAsync("navigate to 1st topic", 500, function() {
|
execAsync("navigate to 1st topic", 500, function() {
|
||||||
$(".main-link a.title:first").click();
|
$(".main-link a.title:first").click();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user