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

DatePicker Compose testing

noloman opened this issue · comments

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!

@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