Skip to content

Commit

Permalink
add selectText to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert-Costello committed Jan 15, 2024
1 parent 3dc8dee commit ed8f5c1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ public void testDetailNoItemsText() {
Assert.assertEquals("Empty List", noItemsText.evaluate());
}

@Test
public void testDetailSelectText() {
Text selectText = mApp.getSession().getPlatform().getDetail("m0_case_short").getSelectText();
Assert.assertEquals("Continue With Case", selectText.evaluate());
}

@Test
public void testDemoUserRestoreParsing() throws Exception {
// Test parsing an app with a properly-formed demo user restore file
Expand Down
3 changes: 2 additions & 1 deletion src/test/resources/app_structure/app_strings.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
m0_no_items_text=Empty List
m0_no_items_text=Empty List
m0_select_text=Continue With Case
5 changes: 5 additions & 0 deletions src/test/resources/app_structure/suite.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
<locale id="m0_no_items_text"/>
</text>
</no_items_text>
<select_text>
<text>
<locale id="m0_select_text"/>
</text>
</select_text>
<global>
<geo-overlay>
<coordinates>
Expand Down

0 comments on commit ed8f5c1

Please sign in to comment.