feat(test): hermetic hub fake + state-matrix sweep across all pages
The widget suites used to talk to whatever listens on the real endpoint — results depended on the operator's machine (a running hub fed real data into a11y/responsive runs and its gRPC channel timers caused the historic flake). Hardening round: - HubService.instance is now injectable (debugSetInstance); FakeHubService (test/support/fake_hub.dart) answers every member the pages touch with healthy-empty defaults and scripts per-RPC failures (UNIMPLEMENTED / UNAVAILABLE / detached gate) through a GrpcError-shaped fake. Unimplemented members are recorded and fail the sweep with the exact list. - state_matrix_test.dart pins the app-wide invariants for every sidebar page x hub condition: healthy => no unreachable claims and no raw error text; hub gone => honest unreachable states; UNIMPLEMENTED => never 'not reachable' while the sidebar shows connected; detached gate => plain-language feature-off state. - a11y + responsive sweeps now inject the fake (hermetic); the 6-minute idle-timer drain workaround is gone with the cause. Real bugs the new sweep caught immediately: - every data page (store, doctor, audit, approvals, federation) folded ANY load failure into 'hub not reachable' — the runs-page bug class; they now share HubLoadErrorView, which classifies into unreachable / needs-newer-hub / load-failed-with-copyable- detail (new generic DE+EN strings) - the approvals page's hidden tab had no future listener: a load failure there surfaced as an uncaught async error - the audit status bar rendered the raw gRPC error wall verbatim; it now shows the classified friendly headline (still selectable) Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
parent
adc5fc2311
commit
66b26304fd
19 changed files with 733 additions and 97 deletions
|
|
@ -1357,6 +1357,9 @@
|
|||
"n8nHint": "Aktive n8n-Workflows erscheinen als n8n.<endpoint>.<slug> Fähigkeiten. Einmal konfigurieren, im Store sichtbar.",
|
||||
"n8nEmpty": "Keine n8n-Endpunkte konfiguriert. + klicken zum Hinzufügen.",
|
||||
"hubUnreachable": "Hub nicht erreichbar",
|
||||
"hubViewTooOldTitle": "Diese Ansicht braucht eine neuere Hub-Version",
|
||||
"hubViewTooOldHint": "Der Hub ist verbunden, aber seine Version kennt diese Ansicht noch nicht. Aktualisieren Sie den Hub (Diagnose → Update), dann erscheint der Inhalt hier.",
|
||||
"hubViewLoadFailedTitle": "Diese Ansicht konnte nicht geladen werden",
|
||||
"hubUnreachableHint": "Hub starten mit chain serve.",
|
||||
"languageEnglish": "English",
|
||||
"languageGerman": "Deutsch",
|
||||
|
|
|
|||
|
|
@ -1381,6 +1381,9 @@
|
|||
"n8nHint": "Active n8n workflows surface as n8n.<endpoint>.<slug> capabilities. Configure once, see them in the Store.",
|
||||
"n8nEmpty": "No n8n endpoints configured. Click + to add one.",
|
||||
"hubUnreachable": "Hub unreachable",
|
||||
"hubViewTooOldTitle": "This view needs a newer hub version",
|
||||
"hubViewTooOldHint": "The hub is connected, but its version does not know this view yet. Update the hub (Doctor → Update) and the content will appear here.",
|
||||
"hubViewLoadFailedTitle": "This view could not be loaded",
|
||||
"hubUnreachableHint": "Start the hub with chain serve.",
|
||||
"languageEnglish": "English",
|
||||
"languageGerman": "Deutsch",
|
||||
|
|
|
|||
|
|
@ -4076,6 +4076,24 @@ abstract class AppLocalizations {
|
|||
/// **'Hub unreachable'**
|
||||
String get hubUnreachable;
|
||||
|
||||
/// No description provided for @hubViewTooOldTitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'This view needs a newer hub version'**
|
||||
String get hubViewTooOldTitle;
|
||||
|
||||
/// No description provided for @hubViewTooOldHint.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'The hub is connected, but its version does not know this view yet. Update the hub (Doctor → Update) and the content will appear here.'**
|
||||
String get hubViewTooOldHint;
|
||||
|
||||
/// No description provided for @hubViewLoadFailedTitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'This view could not be loaded'**
|
||||
String get hubViewLoadFailedTitle;
|
||||
|
||||
/// No description provided for @hubUnreachableHint.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
|
|
|
|||
|
|
@ -2399,6 +2399,18 @@ class AppLocalizationsDe extends AppLocalizations {
|
|||
@override
|
||||
String get hubUnreachable => 'Hub nicht erreichbar';
|
||||
|
||||
@override
|
||||
String get hubViewTooOldTitle =>
|
||||
'Diese Ansicht braucht eine neuere Hub-Version';
|
||||
|
||||
@override
|
||||
String get hubViewTooOldHint =>
|
||||
'Der Hub ist verbunden, aber seine Version kennt diese Ansicht noch nicht. Aktualisieren Sie den Hub (Diagnose → Update), dann erscheint der Inhalt hier.';
|
||||
|
||||
@override
|
||||
String get hubViewLoadFailedTitle =>
|
||||
'Diese Ansicht konnte nicht geladen werden';
|
||||
|
||||
@override
|
||||
String get hubUnreachableHint => 'Hub starten mit chain serve.';
|
||||
|
||||
|
|
|
|||
|
|
@ -2400,6 +2400,16 @@ class AppLocalizationsEn extends AppLocalizations {
|
|||
@override
|
||||
String get hubUnreachable => 'Hub unreachable';
|
||||
|
||||
@override
|
||||
String get hubViewTooOldTitle => 'This view needs a newer hub version';
|
||||
|
||||
@override
|
||||
String get hubViewTooOldHint =>
|
||||
'The hub is connected, but its version does not know this view yet. Update the hub (Doctor → Update) and the content will appear here.';
|
||||
|
||||
@override
|
||||
String get hubViewLoadFailedTitle => 'This view could not be loaded';
|
||||
|
||||
@override
|
||||
String get hubUnreachableHint => 'Start the hub with chain serve.';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue