Skip to content

Commit

Permalink
Fix import. Disable detekt autoCorrect (debug with -P--auto-correct i…
Browse files Browse the repository at this point in the history
…nstead).
  • Loading branch information
ychescale9 committed Aug 26, 2020
1 parent da2569b commit 41dbde8
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import androidx.test.espresso.contrib.NavigationViewActions
import androidx.test.espresso.intent.Intents
import androidx.test.espresso.intent.matcher.IntentMatchers
import androidx.test.espresso.matcher.ViewMatchers
import androidx.test.espresso.matcher.ViewMatchers.withId
import com.google.android.material.R
import org.hamcrest.CoreMatchers
import org.hamcrest.Matcher
Expand All @@ -25,15 +26,15 @@ import reactivecircus.blueprint.testing.RobotActions
public fun RobotActions.selectBottomNavigationItem(@IdRes bottomNavigationViewResId: Int, navItemTitle: String) {
Espresso.onView(
CoreMatchers.allOf(
ViewMatchers.withId(R.id.icon),
withId(R.id.icon),
ViewMatchers.hasSibling(
ViewMatchers.hasDescendant(
ViewMatchers.withText(
navItemTitle
)
)
),
ViewMatchers.isDescendantOfA(ViewMatchers.withId(bottomNavigationViewResId))
ViewMatchers.isDescendantOfA(withId(bottomNavigationViewResId))
)
)
.perform(ViewActions.click())
Expand Down

0 comments on commit 41dbde8

Please sign in to comment.