-
Notifications
You must be signed in to change notification settings - Fork 29.7k
[Windows] Add app startup integration test #110114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Windows] Add app startup integration test #110114
Conversation
dev/integration_tests/windows_startup_test/test_driver/main_test.dart
Outdated
Show resolved
Hide resolved
yaakovschectman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM code-wise other than failing tests, possibly all due to the one newline.
|
|
||
| Future<void> main() async { | ||
| deviceOperatingSystem = DeviceOperatingSystem.windows; | ||
| await task(createWindowsStartupDriverTest(deviceIdOverride: 'windows')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please let me know if this deviceIdOverride is unnecessary
dev/integration_tests/windows_startup_test/windows/flutter/generated_plugin_registrant.cc
Outdated
Show resolved
Hide resolved
dev/integration_tests/windows_startup_test/windows/flutter/generated_plugins.cmake
Show resolved
Hide resolved
| MethodChannel('tests.flutter.dev/windows_startup_test'); | ||
|
|
||
| final bool? visible = await methodChannel.invokeMethod('isWindowVisible'); | ||
| if (visible == null || visible == false) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't the window not be visible at startup (until beginFirstFrame)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Sorry forgot to reply to this comment!)
Hiding the app's window until after the first frame was moved into its own pull request: #109816
cbracken
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

Add a basic integration test for the Windows's app startup. In a subsequent change (#109816), this test will be updated to verify the app's window isn't visible until after the first frame has been drawn.
Commits:
flutter create. No need to review this!Part of #41980
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.