FIX: handles not found reports in bulk loading (#6582)
This commit is contained in:
@@ -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"
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -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
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user