KakaoCup / Compose

Nice and simple DSL for Espresso Compose UI testing in Kotlin
https://kakaocup.github.io/Compose/
Apache License 2.0
146 stars 15 forks source link

DatePicker Compose testing #80

Open noloman opened 9 months ago

noloman commented 9 months ago

Hi,

First of all, thank you very much for the library!

I'm wondering, how can I test a material3 DatePicker that I'm using in a Compose screen? I can't see any instruction about how to define it nor how to initialize it in Compose.

The most I could do is:

private val datePickerNode = KNode(semanticsProvider) {
        hasTestTag(DATE_PICKER_TAG)
    }

but this returns a KNode with which I can't do anything related to a date picker.

Thanks!

Vacxe commented 8 months ago

@noloman hi mate. First of all I want to clarify few things. This library is wrapper around Espresso. All K-classes is custom wrappers. Everyone welcome to create new one for supporting new functionality or create a feature request and I can do it when Ill have free time.

You may create a PR with KDatePicker as well ;)

Anyway, this Issue will be marked as feature request