-
Notifications
You must be signed in to change notification settings - Fork 361
Disable screens not compatible with DWDS websocket mode #9481
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
Changes from all commits
c186915
e1adde9
52b4c21
3e8c0a0
208443f
c72eae3
72f8940
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,6 +41,7 @@ void main() { | |
|
|
||
| void setupMockConnectedApp({ | ||
| bool web = false, | ||
| bool debuggableWeb = true, | ||
| bool flutter = false, | ||
| bool debugMode = true, | ||
| SemanticVersion? flutterVersion, | ||
|
|
@@ -55,6 +56,7 @@ void main() { | |
| isFlutterApp: flutter, | ||
| isProfileBuild: !debugMode, | ||
| isWebApp: web, | ||
| isDebuggableWebApp: debuggableWeb, | ||
| ); | ||
| if (flutter) { | ||
| fakeServiceConnection.serviceManager.availableLibraries.add( | ||
|
|
@@ -114,6 +116,31 @@ void main() { | |
| ); | ||
| }); | ||
|
|
||
| testWidgets('are correct for Dart Web app (DWDS websocket mode)', ( | ||
| WidgetTester tester, | ||
| ) async { | ||
| setupMockConnectedApp(web: true, debuggableWeb: false); | ||
|
|
||
| expect( | ||
| visibleScreenTypes, | ||
| equals([ | ||
| HomeScreen, | ||
| // InspectorScreen, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove commented out code 😃 (here and below) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just confirming we actually want to do this, since I think these were intentionally added to make it clear which screens should be omitted. I'm happy to remove them though if you'd prefer 😄 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah didn't realize the test was already using this pattern. Fine by me to keep! |
||
| // LegacyPerformanceScreen, | ||
| // PerformanceScreen, | ||
| // ProfilerScreen, | ||
| // MemoryScreen, | ||
| // DebuggerScreen, | ||
| // NetworkScreen, | ||
| LoggingScreen, | ||
| // AppSizeScreen, | ||
| // DeepLinksScreen, | ||
| // VMDeveloperToolsScreen, | ||
| // DTDToolsScreen, | ||
| ]), | ||
| ); | ||
| }); | ||
|
|
||
| testWidgets('are correct for Flutter (non-web) debug app', ( | ||
| WidgetTester tester, | ||
| ) async { | ||
|
|
@@ -189,6 +216,31 @@ void main() { | |
| ); | ||
| }); | ||
|
|
||
| testWidgets('are correct for Flutter web debug app (DWDS websocket mode)', ( | ||
| WidgetTester tester, | ||
| ) async { | ||
| setupMockConnectedApp(flutter: true, web: true, debuggableWeb: false); | ||
|
|
||
| expect( | ||
| visibleScreenTypes, | ||
| equals([ | ||
| HomeScreen, | ||
| InspectorScreen, | ||
| // LegacyPerformanceScreen, | ||
| // PerformanceScreen, | ||
| // ProfilerScreen, | ||
| // MemoryScreen, | ||
| // DebuggerScreen, | ||
| // NetworkScreen, | ||
| LoggingScreen, | ||
| // AppSizeScreen, | ||
| // DeepLinksScreen, | ||
| // VMDeveloperToolsScreen, | ||
| // DTDToolsScreen, | ||
| ]), | ||
| ); | ||
| }); | ||
|
|
||
| testWidgets('are correct for Flutter app on old Flutter version', ( | ||
| WidgetTester tester, | ||
| ) async { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.