FIX: use full screen login for new-topic route (#7467)

DEV: add javascript tests for new-topic and new-message routes

DEV: fix an existing test that was being skipped
This commit is contained in:
Arpit Jalan
2019-05-01 22:54:29 +05:30
committed by GitHub
parent da0e37512a
commit b5ea50a154
9 changed files with 103 additions and 17 deletions

View File

@ -62,6 +62,18 @@ export default function() {
return response(json);
});
this.get("/c/bug/l/latest.json", () => {
const json = fixturesByUrl["/c/bug/l/latest.json"];
if (loggedIn()) {
// Stuff to let us post
json.topic_list.can_create_topic = true;
json.topic_list.draft_key = "new_topic";
json.topic_list.draft_sequence = 1;
}
return response(json);
});
this.get("/tags", () => {
return response({
tags: [