mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 19:32:43 +08:00
FEATURE: displays a notice if report has no data (#6178)
This commit is contained in:
@ -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");
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user