mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FIX: makes dashboard more resilient to errors (#6217)
This commit is an attempt to limit cases where the dashboard will generate a full exception page and also make it easier to track the error.
This commit is contained in:
parent
7d8286e7ad
commit
2b2a506a7b
12 changed files with 135 additions and 76 deletions
|
@ -112,7 +112,7 @@ componentTest("timeout", {
|
|||
template: "{{admin-report dataSourceName='signups_timeout'}}",
|
||||
|
||||
test(assert) {
|
||||
assert.ok(exists(".alert-error"), "it displays a timeout error");
|
||||
assert.ok(exists(".alert-error.timeout"), "it displays a timeout error");
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -120,6 +120,14 @@ componentTest("no data", {
|
|||
template: "{{admin-report dataSourceName='posts'}}",
|
||||
|
||||
test(assert) {
|
||||
assert.ok(exists(".no-data-alert"), "it displays a no data alert");
|
||||
assert.ok(exists(".no-data"), "it displays a no data alert");
|
||||
}
|
||||
});
|
||||
|
||||
componentTest("exception", {
|
||||
template: "{{admin-report dataSourceName='signups_exception'}}",
|
||||
|
||||
test(assert) {
|
||||
assert.ok(exists(".alert-error.exception"), "it displays an error");
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue