Merge commit '3ba124f2500ed32c7169cf3b7963b60d6c1ee0b3' into pipelines/run-20261111-1117-cupertino-out-chat-transcript-part-1-bf8b
This commit is contained in:
@@ -43,6 +43,8 @@ class ChatShownHtmlCard extends StatelessWidget {
|
||||
final open = expired
|
||||
? null
|
||||
: () => Navigator.of(context, rootNavigator: true).push(
|
||||
// The Material host: the route is a MaterialPageRoute whatever
|
||||
// this flag says, so the flag is always false here.
|
||||
artifactFullscreenRoute(
|
||||
cupertino: false,
|
||||
builder: (_) => ChatShownHtmlPage(
|
||||
|
||||
@@ -212,4 +212,20 @@ void main() {
|
||||
findsOneWidget,
|
||||
);
|
||||
});
|
||||
|
||||
testWidgets('an undelivered notify row draws the error icon in the theme', (
|
||||
tester,
|
||||
) async {
|
||||
await pump(tester, {
|
||||
'id': 'n3',
|
||||
'kind': 'notify',
|
||||
'title': 'Build done',
|
||||
'delivered': false,
|
||||
});
|
||||
final icon = find.byIcon(Icons.notifications_off_outlined);
|
||||
expect(icon, findsOneWidget);
|
||||
final theme = Theme.of(tester.element(icon));
|
||||
expect(tester.widget<Icon>(icon).color, theme.colorScheme.error);
|
||||
expect(find.byIcon(Icons.notifications_outlined), findsNothing);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user