Skip to content
This repository has been archived by the owner on May 26, 2021. It is now read-only.

Add ViewMatcher withContentDescription with resource identifier instead of String #72

Closed
JolandaVerhoef opened this issue Jan 26, 2018 · 1 comment
Assignees
Milestone

Comments

@JolandaVerhoef
Copy link
Contributor

JolandaVerhoef commented Jan 26, 2018

Currently it's only possible to match using a String content description. I think

Steps to reproduce:

  1. Try to match a view based on it's content description id

Observed Results:

  • Compile error: Pass String instead of int

Expected Results:

  • Would like to be able to match on id, so that localisation doesn't give problems

Relevant Code:

val navigationIcon = KView {
      withContentDescription { R.string.cd_hamburger_icon }
  }
@VerachadW
Copy link
Contributor

Hi, @JolandaVerhoef Thanks for submitting the issue. We will look into this or If you can submit the PR for it. We would really appreciate it. ^^

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants