AdevintaSpain / AdevintaSpain/Barista

Provide methods that receive any custom Matcher

Offen
#224 3 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Kotlin
Sterne
1.7k
Forks
119
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

The changes proposed in https://github.com/SchibstedSpain/Barista/pull/223 raised the discussion of just having simple methods for searching views by id and text, or having more combinations for special cases.

Allowing a third variant to search by any `Matcher` would allow users to use their own custom rules for any special case.

For example:
```kotlin
clickOn(R.id.button)

clickOn("Button")

val customMatcher = allOf(withId(R.id.button), isEnabled()))
clickOn(customMatcher)
```

This would apply to Interactions and Assertions.

Opinions?

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.