This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/test/javascripts/integration/topic-test.js.es6

17 lines
426 B
JavaScript

integration("View Topic");
test("Enter a Topic", () => {
visit("/t/internationalization-localization/280");
andThen(() => {
ok(exists("#topic"), "The topic was rendered");
ok(exists("#topic .post-cloak"), "The topic has cloaked posts");
});
});
test("Enter without an id", () => {
visit("/t/internationalization-localization");
andThen(() => {
ok(exists("#topic"), "The topic was rendered");
});
});