2015-04-07 02:14:00 +08:00
|
|
|
import { acceptance } from "helpers/qunit-helpers";
|
|
|
|
acceptance("View Topic");
|
2013-06-21 03:02:02 +08:00
|
|
|
|
2015-03-19 19:22:56 +08:00
|
|
|
test("Enter a Topic", () => {
|
2015-04-15 02:21:02 +08:00
|
|
|
visit("/t/internationalization-localization/280/1");
|
2015-03-19 19:22:56 +08:00
|
|
|
andThen(() => {
|
2014-09-17 23:18:41 +08:00
|
|
|
ok(exists("#topic"), "The topic was rendered");
|
2013-11-21 05:33:36 +08:00
|
|
|
ok(exists("#topic .post-cloak"), "The topic has cloaked posts");
|
2013-06-21 03:02:02 +08:00
|
|
|
});
|
|
|
|
});
|
2014-09-17 23:18:41 +08:00
|
|
|
|
2015-03-19 19:22:56 +08:00
|
|
|
test("Enter without an id", () => {
|
2014-09-17 23:18:41 +08:00
|
|
|
visit("/t/internationalization-localization");
|
2015-03-19 19:22:56 +08:00
|
|
|
andThen(() => {
|
2014-09-17 23:18:41 +08:00
|
|
|
ok(exists("#topic"), "The topic was rendered");
|
|
|
|
});
|
|
|
|
});
|