Compose icon indicating copy to clipboard operation
Compose copied to clipboard

DatePicker Compose testing

Open noloman opened this issue 1 year ago • 1 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 avatar Feb 13 '24 11:02 noloman

@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

Vacxe avatar Mar 04 '24 23:03 Vacxe