mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Compatibility between Client and Server routing.
mend
This commit is contained in:
committed by
Robin Ward
parent
c1f174f554
commit
a370d7c7fd
@@ -142,6 +142,26 @@ QUnit.test("Reply as new message", assert => {
|
||||
});
|
||||
});
|
||||
|
||||
QUnit.test("Visit topic routes", assert => {
|
||||
visit("/t/12");
|
||||
|
||||
andThen(() => {
|
||||
assert.equal(
|
||||
find('.fancy-title').text().trim(), 'PM for testing',
|
||||
'it routes to the right topic'
|
||||
);
|
||||
});
|
||||
|
||||
visit("/t/280/20");
|
||||
|
||||
andThen(() => {
|
||||
assert.equal(
|
||||
find('.fancy-title').text().trim(), 'Internationalization / localization',
|
||||
'it routes to the right topic'
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
QUnit.test("Updating the topic title with emojis", assert => {
|
||||
visit("/t/internationalization-localization/280");
|
||||
click('#topic-title .d-icon-pencil');
|
||||
|
||||
@@ -131,6 +131,7 @@ export default function() {
|
||||
this.put('/u/eviltrout.json', () => response({ user: {} }));
|
||||
|
||||
this.get("/t/280.json", () => response(fixturesByUrl['/t/280/1.json']));
|
||||
this.get("/t/280/20.json", () => response(fixturesByUrl['/t/280/1.json']));
|
||||
this.get("/t/28830.json", () => response(fixturesByUrl['/t/28830/1.json']));
|
||||
this.get("/t/9.json", () => response(fixturesByUrl['/t/9/1.json']));
|
||||
this.get("/t/12.json", () => response(fixturesByUrl['/t/12/1.json']));
|
||||
|
||||
Reference in New Issue
Block a user