use of org.fest.swing.util.PatternTextMatcher in project android by JetBrains.
the class LayoutInspectorTest method launchLayoutInspector.
/**
* <p>This is run to qualify releases. Please involve the test team in substantial changes.
* <p>TR ID: C14581570
* <pre>
* Verifies that the layout inspector launches successfully and shows relevant layout elements
* Test Steps
* 1. Import a project
* 2. Run the Project to Emulator
* 3. Click on Layout Inspector
* Verification
* 1. Verify for Layout elements in Hierarchy View of Layout Inspector
* </pre>
*/
@Ignore("http://b/30795134")
@Test
@RunIn(TestGroup.QA)
public void launchLayoutInspector() throws Exception {
guiTest.ideFrame().runApp("app").selectDevice(AVD_NAME).clickOk();
guiTest.ideFrame().getRunToolWindow().findContent("app").waitForOutput(new PatternTextMatcher(LOCAL_PATH_OUTPUT), 120);
List<String> layoutElements = guiTest.ideFrame().getAndroidToolWindow().selectProcess(PROCESS_NAME).selectDevicesTab().clickLayoutInspector().getLayoutElements();
assertThat(layoutElements).contains("android.widget.RelativeLayout");
assertThat(layoutElements).contains("android.widget.TextView");
assertThat(layoutElements).contains("android.widget.FrameLayout");
}
Aggregations