title: Flutter Integration test: I can't target some of my widgets - Getter not found
body: <p>I am learning about integration testing in flutter and I'm running into a problem.</p>
  <p>My app contains a sign-in button widget and my test starts with pumping it.</p>
  <p>However, I can't seem to target it.</p>
  <p>Every attempt results in the following error:</p>
  <pre><code>integration_test/doctor_integration_test.dart:21:24: Error: Getter not found: 'SignInPage'.
      expect(find.byType(SignInPage), findsOneWidget);
                         ^^^^^^^^^^
                                                                          
                                                                          
  FAILURE: Build failed with an exception.
  </code></pre>
  <p>The SignInPage is called within:</p>
  <pre><code>MaterialApp _buildMaterialApp(BuildContext context) {
      return MaterialApp(
        title: 'Skinopathy: Doctor',
        theme: ThemeData(
          primarySwatch: Colors.blue,
          visualDensity: VisualDensity.adaptivePlatformDensity,
        ),
        routes: {
          '/': (context) {
            return BlocListener&lt;AppBloc, AppState&gt;(
              listener: (context, state) {
                if (state is AppAuthenticated) {
                  Navigator.pushReplacement(
                    context,
                    MaterialPageRoute(
                      builder: (_) =&gt; WelcomePage(),
                    ),
                  );
                } else if (state is AppUnauthenticated) {
                  Navigator.pushReplacementNamed(context, '/sign_in');
                } else if (state is AppOutdated) {
                  Navigator.pushReplacement(
                    context,
                    MaterialPageRoute(
                      builder: (_) =&gt; OutdatedVersionPage(),
                    ),
                  );
                }
              },
              child: Center(
                child: SplashPage(),
              ),
            );
          },
          '/sign_in': (context) {
            return SignInPage();
          },
  </code></pre>
  <p>My presumption is that the integration takes place before the SignInPage is loaded.</p>
  <p>_buildMaterialApp is also a child of Widget _buildRootLevelWidgets(BuildContext context)</p>
  <p>How do I properly target SignInPage for testing?</p>
  <p>Is there anything else I'm doing wrong?</p>
  <p>Please note: I did NOT build this app; I'm just here to test it.</p>
  <p>Thanks in advance!</p>