Enhancement - add description parameter for NodeAssertions
EvgeniyVirin opened this issue · comments
EvgeniyVirin commented
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) }
}