Clarify empty server states
Show calm, actionable empty states for pipelines, runs, and chats while keeping filtered and failed loads distinct. Add focused widget coverage and document the remaining verification limits.
This commit is contained in:
@@ -17,7 +17,7 @@ void main() {
|
||||
|
||||
expect(find.byType(Scaffold), findsWidgets);
|
||||
|
||||
const message = 'No chat sessions on this server yet.';
|
||||
const message = 'No chats yet. Use New chat to start one.';
|
||||
expect(find.text(message), findsOneWidget);
|
||||
expectNormalTextStyle(tester, message);
|
||||
});
|
||||
@@ -39,7 +39,7 @@ void main() {
|
||||
'for this operator';
|
||||
expect(find.text(message), findsOneWidget);
|
||||
expectNormalTextStyle(tester, message);
|
||||
expect(find.text('No chat sessions on this server yet.'), findsNothing);
|
||||
expect(find.text('No chats yet. Use New chat to start one.'), findsNothing);
|
||||
expect(
|
||||
find.ancestor(
|
||||
of: find.text('Retry'),
|
||||
|
||||
@@ -91,7 +91,10 @@ void main() {
|
||||
) async {
|
||||
final gateway = FakeChatGateway();
|
||||
await pumpMaterialChat(tester, gateway);
|
||||
expect(find.text('No chat sessions on this server yet.'), findsOneWidget);
|
||||
expect(
|
||||
find.text('No chats yet. Use New chat to start one.'),
|
||||
findsOneWidget,
|
||||
);
|
||||
expect(find.textContaining('No chats match'), findsNothing);
|
||||
});
|
||||
|
||||
@@ -111,7 +114,7 @@ void main() {
|
||||
'Bad state: server unavailable while listing chat sessions '
|
||||
'for this operator';
|
||||
expect(find.text(message), findsOneWidget);
|
||||
expect(find.text('No chat sessions on this server yet.'), findsNothing);
|
||||
expect(find.text('No chats yet. Use New chat to start one.'), findsNothing);
|
||||
final messageBox = tester.renderObject<RenderBox>(find.text(message));
|
||||
expect(
|
||||
messageBox.size.height,
|
||||
|
||||
Reference in New Issue
Block a user