mirror of
https://github.com/discourse/discourse.git
synced 2024-12-04 18:26:17 +08:00
18 lines
479 B
JavaScript
18 lines
479 B
JavaScript
import { acceptance } from "helpers/qunit-helpers";
|
|
acceptance("View Topic");
|
|
|
|
test("Enter a Topic", () => {
|
|
visit("/t/internationalization-localization/280/1");
|
|
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");
|
|
});
|
|
});
|