Skip to content

Commit

Permalink
correct expectedText
Browse files Browse the repository at this point in the history
  • Loading branch information
subhajitxyz committed Dec 27, 2024
1 parent 230890b commit cfa9e0a
Showing 1 changed file with 9 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5280,20 +5280,17 @@ class StateFragmentTest {
clickNextNavigationButton()
clickNextNavigationButton()

val expectedDescription =
"""
"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.
"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?"
(Note: The orange puree is orange, and the milk is white.)
""".trimIndent()


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(expectedDescription)))
.check(matches(withText(expectedText)))
}
}

Expand Down

0 comments on commit cfa9e0a

Please sign in to comment.