AdevintaSpain / AdevintaSpain/Barista

Support for viewpager,resource idling

Aberta
#345 1 comentário 1 reação 0 responsáveis Ver no GitHub
Linguagem predominante
Kotlin
Estrelas
1.7k
Forks
119
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

Can we have support for viewpager with tablayout.
Use cases are-
- Current active tab
- Change tab selection as per index

Also, can we have something related to resource idling
the use case for this

- Click on tab layout index
- Wait till the list is visible (waitTillViewIsVisible)
- Click on 2nd pos

`fun waitTillViewIsVisible(matcher: Matcher): ViewAction = object : ViewAction {

override fun getConstraints(): Matcher {
return Matchers.any(View::class.java)
}

override fun getDescription(): String {
return StringDescription().let {
matcher.describeTo(it)
"wait until: $it"
}
}

override fun perform(uiController: UiController, view: View) {
if (!matcher.matches(view)) {
ViewPropertyChangeCallback(matcher, view).run {
try {
IdlingRegistry.getInstance().register(this)
view.viewTreeObserver.addOnDrawListener(this)
} finally {
view.viewTreeObserver.removeOnDrawListener(this)
IdlingRegistry.getInstance().unregister(this)
}
}
}
}}`

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Review the existing Android testing support for ViewPager and TabLayout, then examine the proposed waitTillViewIsVisible action and its ViewPropertyChangeCallback approach. Define separate acceptance criteria for reading and changing the active tab and for waiting on resource or view readiness; completion should include working coverage for the listed tab-selection flow.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
android, kotlin
Domínio
mobile, testing
Tipo de issue
Funcionalidade
Dificuldade
5/5
Tempo estimado
Mais de uma semana
Status de atividade
Estagnada
Clareza
Precisa de esclarecimento
Facilidade para iniciantes
20/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.