android / wear-os-samples

Multiple samples showing best practices in app and watch face development on Wear OS.
https://developer.android.com/wear
Apache License 2.0
1.12k stars 572 forks source link

Testing with GMD #989

Closed yschimke closed 8 months ago

yschimke commented 9 months ago

API 30

java.lang.AssertionError: java.lang.AssertionError: Failed to assert the following: (Text + EditableText = [00:00:12])
Semantics of the node:
Node #17 at (l=140.6, t=87.25, r=333.6, b=144.25)px, Tag: 'time'
Text = '[00:00:10]'
Actions = [SetTextSubstitution, ShowTextSubstitution, ClearTextSubstitution, GetTextLayoutResult]
Has 4 siblings
Selector used: (TestTag = 'time')
    at androidx.compose.ui.test.AssertionsKt.assert(Assertions.kt:265)
    at androidx.compose.ui.test.AssertionsKt.assert$default(Assertions.kt:255)
yschimke commented 9 months ago

API 33

java.lang.IllegalArgumentException: com.example.android.wearable.wear.alwayson: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
    at android.app.PendingIntent.checkFlags(PendingIntent.java:401)
    at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:671)
    at android.app.PendingIntent.getBroadcast(PendingIntent.java:658)
    at com.example.android.wearable.wear.alwayson.AlwaysOnAppTests$textIsCorrectAfterGoingIntoAmbientModeAndReceivingIntent$1.invokeSuspend$lambda$1(AlwaysOnAppTests.kt:186)