e43cc867f9
Shared AppSheetHeader (title + Done) for the Runs filter/sort and Needs you sheets; Runs filter single-choice groups as check rows and statuses in sentence case; Cupertino decision options as a check list; run action sheet titled with the run; usage page without the duplicate title and with honest empty states; Settings Reconnect wording, compact notifications row and a tinted Cupertino Save workspace; friendly artifact preview failures with Retry.
28 lines
859 B
Dart
28 lines
859 B
Dart
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:pipelines_app/features/artifacts/domain/artifact_preview_failure.dart';
|
|
|
|
void main() {
|
|
test('fetch failures read as plain language, never raw errors', () {
|
|
expect(
|
|
artifactPreviewFailureMessage(),
|
|
'The preview could not be loaded. Check the connection and try again.',
|
|
);
|
|
expect(
|
|
artifactPreviewFailureMessage(status: 404),
|
|
'This file is no longer on the server.',
|
|
);
|
|
expect(
|
|
artifactPreviewFailureMessage(status: 403),
|
|
'The server did not allow this file to be opened.',
|
|
);
|
|
expect(
|
|
artifactPreviewFailureMessage(status: 502),
|
|
'The server could not send this file right now.',
|
|
);
|
|
expect(
|
|
artifactPreviewFailureMessage(status: 418),
|
|
'The preview could not be loaded (status 418).',
|
|
);
|
|
});
|
|
}
|