discourse/test/javascripts/integration/topic-test.js.es6

17 lines
446 B
Plaintext
Raw Normal View History

integration("View Topic");
test("Enter a Topic", function() {
2014-07-31 01:27:14 +08:00
visit("/t/internationalization-localization/280");
andThen(function() {
ok(exists("#topic"), "The topic was rendered");
ok(exists("#topic .post-cloak"), "The topic has cloaked posts");
});
});
test("Enter without an id", function() {
visit("/t/internationalization-localization");
andThen(function() {
ok(exists("#topic"), "The topic was rendered");
});
});