KakaoCup / Compose

Nice and simple DSL for Espresso Compose UI testing in Kotlin

Home Page:https://kakaocup.github.io/Compose/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enhancement - add description parameter for NodeAssertions

EvgeniyVirin opened this issue · comments

Hello.
All assertions in the "NodeAssertions" interface are use the "check()" function, which has a "description" parameter.
But this parameter has not been added to the assert functions in interface "NodeAssertions"

I would like to modify assert functions, for example:

fun assertTextContains(
        assertDescription: String? = null,
        value: String,
        substring: Boolean = false,
        ignoreCase: Boolean = false
    ) {
        delegate.check(description = assertDescription, ComposeBaseAssertionType.ASSERT_TEXT_CONTAINS) { assertTextContains(value, substring, ignoreCase) }
    }

Снимок экрана 2023-03-31 в 20 26 34