Fixed
Status Update
Comments
gg...@google.com <gg...@google.com> #2
Thank you for reporting this issue. We are not able reproduce issue please provide below details, For us to further investigate this issue, please provide the following additional information:
Please provide source code or apk of a sample application to reproduce the issue.
Also kindly mention the steps to be followed for reproducing the issue with the given sample application.
Expected output
What is the expected output?
Current output
What is the current output?
Please provide source code or apk of a sample application to reproduce the issue.
Also kindly mention the steps to be followed for reproducing the issue with the given sample application.
Expected output
What is the expected output?
Current output
What is the current output?
ra...@gmail.com <ra...@gmail.com> #3
Hello, I created a repository at
https://github.com/RafaRuiz/Espresso_withText_issue.git
The MainActivity looks like this:
[image: Inline images 1]
There are three Instrumented tests to reproduce the issue (they are been
reproduced in Emulator and in my OnePlus3)
The first test tests that text above is "LOW STOCK" and it fails. * ----- @Test
allCapsTextView*
The second test tests that text above is "Low Stock" and it succeeds ---- @Test
allCapsTextView2()
The third test tests that below is "Low Stock" and it succeeds. ----- @Test
defaultTextView()
So in:
Expected output
> What is the expected output?
Current output
> What is the current output?
The expected output in the first test (*@Test allCapsTextView*) to work, as
in the UI I can see "LOW STOCK" but it doesn't pass
The expected output in the second test (*@Test allCapsTextView2*) to fail,
as in the UI I can see "LOW STOCK" but not "Low Stock"
The expected output in the third text is ok.
The current output in the first test (*@Test allCapsTextView*) fails.
The current output in the second test (*@Test allCapsTextView2*) succeeds
Hope that is the information you need.
On 2 February 2018 at 09:38, <buganizer-system@google.com> wrote:
The MainActivity looks like this:
[image: Inline images 1]
There are three Instrumented tests to reproduce the issue (they are been
reproduced in Emulator and in my OnePlus3)
The first test tests that text above is "LOW STOCK" and it fails. * ----- @Test
allCapsTextView*
The second test tests that text above is "Low Stock" and it succeeds ---- @Test
allCapsTextView2()
The third test tests that below is "Low Stock" and it succeeds. ----- @Test
defaultTextView()
So in:
Expected output
> What is the expected output?
Current output
> What is the current output?
The expected output in the first test (*@Test allCapsTextView*) to work, as
in the UI I can see "LOW STOCK" but it doesn't pass
The expected output in the second test (*@Test allCapsTextView2*) to fail,
as in the UI I can see "LOW STOCK" but not "Low Stock"
The expected output in the third text is ok.
The current output in the first test (*@Test allCapsTextView*) fails.
The current output in the second test (*@Test allCapsTextView2*) succeeds
Hope that is the information you need.
On 2 February 2018 at 09:38, <buganizer-system@google.com> wrote:
gg...@google.com <gg...@google.com> #4
We have shared this with our engineering team and will update this issue with more information as it becomes available.
gg...@google.com <gg...@google.com> #5
Our engineering team has fixed this issue. It will be available in a future Android release.
ni...@gmail.com <ni...@gmail.com> #6
Its a great worderful
dy...@gmail.com <dy...@gmail.com> #8
Hi
[Deleted User] <[Deleted User]> #9
Need help with traveling by charter service and other resources learning here
co...@gmail.com <co...@gmail.com> #10
Them cut internet..Oppo spy and collect data .and more tender to robber GOV public sector.maxis and other
ma...@gmail.com <ma...@gmail.com> #11
https://developer.android.com/guide/app-compatibility/restrictions-non-sdk-interfaces#test-strictmode-apiadb shell settings put global hidden_api_policy_pre_p_apps 1
adb shell settings put global hidden_api_policy_p_apps 1
ma...@gmail.com <ma...@gmail.com> #12
https://issuetracker.google.com/72798625#attachment62278513
ma...@gmail.com <ma...@gmail.com> #13
https://issuetracker.google.com/72798625#attachment62278513
Description
Version used: 3.0.1
What steps will reproduce the problem?
1. Put an AppCompatTextView in your UI with android:textAllCaps="true" and android:text="Low Stock" in your XML (I'm using android:id="@+id/lowStockTV")
2. Launch your activity through a Test. AppCompatTextView will be shown as "LOW STOCK"
3. Check that that view has text with Espresso in the following way:
onView(withId(R.id.lowStockTV))
.check(
matches(withText("LOW STOCK"))
)
How are you running your tests (via Android Studio, Gradle, adb, etc.)? Android Studio
What is the expected output?
The expected output is obtaining a valid ViewInteraction with no throw (AssertionFailedWithCausedError)
What do you see instead?
AssertionFailedWithCausedError with message:
'with text: is "LOW STOCK"' doesn't match the selected view.
Expected: with text: is "LOW STOCK"
Got: "AppCompatTextView{id=2131296406, res-name=lowStockTV, visibility=VISIBLE, width=1002, height=57, has-focus=false, has-focusable=false, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=android.widget.LinearLayout$LayoutParams@5155c10, tag=null, root-is-layout-requested=false, has-input-connection=false, x=39.0, y=39.0, text=Low Stock, input-type=0, ime-target=false, has-links=false}"
if I use:
onView(withId(R.id.lowStockTV))
.check(
matches(withText("Low Stock"))
)
it works perfectly, I get my ViewInteraction, but that's not why I see in my UI