KakaoCup / Kakao

Nice and simple DSL for Espresso in Kotlin
https://kakaocup.github.io/Kakao/
Apache License 2.0
325 stars 28 forks source link

Question on the use of the Awaitility library with Kakao #51

Closed braindonor closed 2 years ago

braindonor commented 2 years ago

Hi,

This a question, rather than a bug. Is there some way I could extend Kakao (+Kakao Compose) to implement the Awaitility library ? At the moment, I need to add code like this below which pollutes my test code somewhat. I'd like to hide the await.atMost statements from the test code.

The app I'm testing needs a hybrid of Espresso, Compose and UIAutomator and I use different Page Object implementations depending on the view I'm automating.

       await.atMost(TEN_SECONDS).untilAsserted {
            filesCheckedTitle {
                assertIsDisplayed()
                assertTextEquals(title.value)
            }
        }

Thanks,

Pentti

Vacxe commented 2 years ago

@braindonor hey mate. As a main concept of Kakao is being a DSL wrapper over espresso. Probably you can look on Kaspresso what providing additional sugaring around Kakao.

Vacxe commented 2 years ago

Inactivity close