2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 10:58:38 +08:00

FEATURE: displays a notice if report has no data (#6178)

This commit is contained in:
Joffrey JAFFEUX 2018-07-25 14:28:41 -04:00 committed by GitHub
parent 6ee1ea96ef
commit ad95c24307
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 28 additions and 2 deletions

View file

@ -115,3 +115,11 @@ componentTest("timeout", {
assert.ok(exists(".alert-error"), "it displays a timeout error");
}
});
componentTest("no data", {
template: "{{admin-report dataSourceName='posts'}}",
test(assert) {
assert.ok(exists(".no-data-alert"), "it displays a no data alert");
}
});