Skip to content

Commit

Permalink
add text in string.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
subhajitxyz committed Dec 27, 2024
1 parent f371900 commit e32b058
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
3 changes: 3 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -686,4 +686,7 @@
<string name="audio_language_fragment_text">In %s, you can listen to lessons!</string>
<string name="audio_language_fragment_subtitle">Select the audio language to listen to lessons</string>
<string name="onboarding_step_count_five">STEP 5 OF 5</string>

<!-- Ratio lesson contents -->
<string name="fourteenth_question_in_ratio">“Very good!” said Uncle Berry. He looked at the kitchen table and saw that James had a jug of orange puree that hadn\'t been used.\n\n“Now, James,\" he said, \"I know a good recipe for orange smoothie. It requires mixing orange puree and milk in the ratio 3:2. Can you tell me which of the following pictures shows a 3:2 ratio of orange puree to milk?\"\n\n(Note: The orange puree is orange, and the milk is white.)</string>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -5280,15 +5280,8 @@ class StateFragmentTest {
clickNextNavigationButton()
clickNextNavigationButton()

val expectedText = "“Very good!” said Uncle Berry. He looked at the kitchen table" +
" and saw that James had a jug of orange puree that hadn't been used.\n\n“Now," +
" James,\" he said, \"I know a good recipe for orange smoothie. It requires mixing" +
" orange puree and milk in the ratio 3:2. Can you tell me which of the" +
" following pictures shows a 3:2 ratio of orange puree to milk?\"\n\n(Note: The" +
" orange puree is orange, and the milk is white.)"

onView(withId(R.id.content_text_view))
.check(matches(withText(containsString(expectedText))))
.check(matches(withText(R.string.fourteenth_question_in_ratio)))
}
}

Expand Down

0 comments on commit e32b058

Please sign in to comment.