[flutter_tools] fix instructions to disable CLI animations (#139094)
Fixes https://github.com/flutter/flutter/issues/139011
This commit is contained in:
committed by
GitHub
parent
6035c5ccba
commit
6bf3ccd47d
@@ -4,6 +4,7 @@
|
||||
|
||||
import 'package:file/memory.dart';
|
||||
import 'package:flutter_tools/src/base/logger.dart';
|
||||
import 'package:flutter_tools/src/features.dart';
|
||||
import 'package:flutter_tools/src/persistent_tool_state.dart';
|
||||
import 'package:flutter_tools/src/reporting/first_run.dart';
|
||||
|
||||
@@ -16,6 +17,12 @@ void main() {
|
||||
expect(messenger.licenseTerms, contains('Welcome to Flutter'));
|
||||
});
|
||||
|
||||
testWithoutContext('FirstRunMessenger informs user how to disable animations', () {
|
||||
final FirstRunMessenger messenger = setUpFirstRunMessenger(redisplayWelcomeMessage: false);
|
||||
|
||||
expect(messenger.licenseTerms, contains('flutter config --no-$kCliAnimationsFeatureName'));
|
||||
});
|
||||
|
||||
testWithoutContext('FirstRunMessenger requires redisplay if it has never been run before', () {
|
||||
final FirstRunMessenger messenger = setUpFirstRunMessenger();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user