Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Enhancement - add description parameter for NodeAssertions #45

Open
EvgeniyVirin opened this issue Mar 31, 2023 · 0 comments
Open

Enhancement - add description parameter for NodeAssertions #45

EvgeniyVirin opened this issue Mar 31, 2023 · 0 comments
Assignees

Comments

@EvgeniyVirin
Copy link

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

@Vacxe Vacxe self-assigned this Jul 11, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants