[ermine] Update e2e test to use new sl4f inspect api

Change-Id: I55230d1141a1144e08a1cf1a2706581dc03705f8
Reviewed-on: https://fuchsia-review.googlesource.com/c/experiences/+/378434
Commit-Queue: Miguel Flores <miguelfrde@google.com>
Reviewed-by: Sanjay Chouksey <sanjayc@google.com>
diff --git a/tests/e2e/test/ermine_session_shell_status_test.dart b/tests/e2e/test/ermine_session_shell_status_test.dart
index 3526c3a..ca3a657 100644
--- a/tests/e2e/test/ermine_session_shell_status_test.dart
+++ b/tests/e2e/test/ermine_session_shell_status_test.dart
@@ -50,8 +50,10 @@
 
     // Get state of screen before launching status menu. Status should be
     // missing.
-    final inspect = Inspect(sl4fDriver.ssh);
-    var json = await inspect.inspectComponentRoot('ermine');
+    final inspect = Inspect(sl4fDriver);
+    // TODO(miguelfrde): the selector here might actually be `session-*/*/ermine.cmx`
+    // where session-* = session_realm, * = runner, component name = ermine.cmx
+    var json = await inspect.snapshotRoot('ermine.cmx');
     if (json['status'] != null) {
       fail('Status should not be visible at start');
     }
@@ -62,7 +64,7 @@
     // allow time for status startup
     await Future.delayed(Duration(seconds: 1));
 
-    json = await inspect.inspectComponentRoot('ermine');
+    json = await inspect.snapshotRoot('ermine.cmx');
     if (json['status'] == null) {
       fail('Status did not launch');
     }