Skip to content

Commit

Permalink
Test alt text parsed from suite
Browse files Browse the repository at this point in the history
  • Loading branch information
nospame committed Feb 1, 2024
1 parent e0c0fbf commit 9cf8c64
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,14 @@ public void testDetailWithFieldAction() {
assertFalse(endpoint.isRespectRelevancy());
}

@Test
public void testDetailWithAltText() {
Detail detail = mApp.getSession().getPlatform().getDetail("m0_case_short");
DetailField field = detail.getFields()[0];
Text altText = field.getAltText();
assertEquals("gold star", altText.evaluate());
}

@Test
public void testDetailWithBorder() {
Detail detail = mApp.getSession().getPlatform().getDetail("m0_case_short");
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,2 +1,3 @@
m0_no_items_text=Empty List
m0_select_text=Continue With Case
m0_select_text=Continue With Case
m0.case_short.case_starred_1.alt_text.k0=gold star
9 changes: 9 additions & 0 deletions src/test/resources/app_structure/suite.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,15 @@
<xpath function="case_name"/>
</text>
</sort>
<alt_text>
<text>
<xpath function="$k0">
<variable name="k0">
<locale id="m0.case_short.case_starred_1.alt_text.k0"/>
</variable>
</xpath>
</text>
</alt_text>
<endpoint_action endpoint_id="case_list" background="true"/>
</field>
</detail>
Expand Down

0 comments on commit 9cf8c64

Please sign in to comment.