Skip to content

Instantly share code, notes, and snippets.

View xanderblinov's full-sized avatar

Alexander Blinov xanderblinov

View GitHub Profile
{
    "items": [
        {
            "experiment_name": "short_builder_in_app",
            "user_is_affected": true,
            "paramteter" : 
            {
              "backurl": "/vacancies",
 "source" : 17
@xanderblinov
xanderblinov / RecyclerExtentions.kt
Created May 8, 2019 13:25
Pagination extantion for Kakao test
fun RecyclerActions.scrollToEndWithPagination() {
scrollToEnd()
view.perform(ViewActions.swipeUp())
}
fun <T : KRecyclerItem<T>> KRecyclerView.paginateUntilChildMatching(
childMatcher: ViewBuilder.() -> Unit,
timeoutS: Long = WAITER_TIMEOUT_S) {
while (true) {
private const val WAITER_TIMEOUT_S: Long = 10L
private const val WAITER_FREQUENCY_MS: Long = 50L
private const val VISIBLE_EXCEPTION = "'view has effective visibility=VISIBLE' doesn't match the selected view."
fun KRecyclerView.waitForChildVisible(position: Int, timeoutS: Long = WAITER_TIMEOUT_S) {
doWaitForMatchingView(timeoutS) {
childAt<KRecyclerItem<Unit>>(position) {
isVisible()
Team : Перцы
List :
- Не забыть
- Не забить