mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 17:40:43 +08:00
TESTS: Integration tests for badge pages
This commit is contained in:
14
test/javascripts/integration/badges-test.js.es6
Normal file
14
test/javascripts/integration/badges-test.js.es6
Normal file
@ -0,0 +1,14 @@
|
||||
integration("Badges");
|
||||
|
||||
test("Visit Badge Pages", function() {
|
||||
visit("/badges");
|
||||
andThen(function() {
|
||||
ok(exists('.badges-listing tr'), "has a list of badges");
|
||||
});
|
||||
|
||||
visit("/badges/9/autobiographer");
|
||||
andThen(function() {
|
||||
ok(exists('.badges-listing tr'), "has the badge in the listing");
|
||||
ok(exists('.badge-user'), "has the list of users with that badge");
|
||||
});
|
||||
});
|
@ -20,6 +20,6 @@ test("Visit Discovery Pages", function() {
|
||||
|
||||
visit("/top");
|
||||
andThen(function() {
|
||||
ok(exists('.topic-list .topic-list-item'), "has topics");
|
||||
ok(exists('.topic-list tr td.main-link'), "has topics");
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user