mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 12:11:12 +08:00
FIX: Support ember app routing to topics with only slugs
This commit is contained in:
@ -1,11 +1,16 @@
|
||||
integration("View Topic");
|
||||
|
||||
test("Enter a Topic", function() {
|
||||
expect(2);
|
||||
|
||||
visit("/t/internationalization-localization/280");
|
||||
andThen(function() {
|
||||
ok(exists("#topic"), "The was rendered");
|
||||
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");
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user