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