FIX: handles not found reports in bulk loading (#6582)

This commit is contained in:
Joffrey JAFFEUX
2018-11-12 13:47:24 +01:00
committed by GitHub
parent 7c4d4331bc
commit 9c616e0679
7 changed files with 58 additions and 8 deletions
@@ -152,3 +152,14 @@ componentTest("rate limited", {
);
}
});
componentTest("not found", {
template: "{{admin-report dataSourceName='not_found'}}",
test(assert) {
assert.ok(
exists(".alert-error.not-found"),
"it displays a not found error"
);
}
});
+12 -1
View File
@@ -86,6 +86,11 @@ signups_fixture.type = "signups_timeout";
signups_fixture.error = "timeout";
const signups_timeout = signups_fixture;
signups_fixture = JSON.parse(JSON.stringify(signups));
signups_fixture.type = "not_found";
signups_fixture.error = "not_found";
const signups_not_found = signups_fixture;
const startDate = moment()
.locale("en")
.utc()
@@ -177,6 +182,12 @@ const page_view_total_reqs = {
export default {
"/admin/reports/bulk": {
reports: [signups, signups_exception, signups_timeout, page_view_total_reqs]
reports: [
signups,
signups_not_found,
signups_exception,
signups_timeout,
page_view_total_reqs
]
}
};