Maestro: ensure the Rich Text Editor can be clicked by Maestro.
We cannot click on the hint "Message" anymore, since it's now a separate Text.
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
appId: ${APP_ID}
|
||||
---
|
||||
- takeScreenshot: build/maestro/510-Timeline
|
||||
- tapOn: "Message"
|
||||
- tapOn:
|
||||
id: "rich_text_editor"
|
||||
- inputText: "Hello world!"
|
||||
- tapOn: "Send"
|
||||
- hideKeyboard
|
||||
|
||||
@@ -47,6 +47,11 @@ object TestTags {
|
||||
* Welcome screen.
|
||||
*/
|
||||
val welcomeScreenTitle = TestTag("welcome_screen-title")
|
||||
|
||||
/**
|
||||
* RichTextEditor.
|
||||
*/
|
||||
val richTextEditor = TestTag("rich_text_editor")
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@ dependencies {
|
||||
implementation(projects.libraries.matrix.api)
|
||||
implementation(projects.libraries.matrixui)
|
||||
implementation(projects.libraries.designsystem)
|
||||
implementation(projects.libraries.testtags)
|
||||
implementation(libs.androidx.constraintlayout)
|
||||
implementation(libs.androidx.constraintlayout.compose)
|
||||
|
||||
|
||||
@@ -74,6 +74,8 @@ import io.element.android.libraries.matrix.api.media.MediaSource
|
||||
import io.element.android.libraries.matrix.ui.components.AttachmentThumbnail
|
||||
import io.element.android.libraries.matrix.ui.components.AttachmentThumbnailInfo
|
||||
import io.element.android.libraries.matrix.ui.components.AttachmentThumbnailType
|
||||
import io.element.android.libraries.testtags.TestTags
|
||||
import io.element.android.libraries.testtags.testTag
|
||||
import io.element.android.libraries.textcomposer.components.FormattingOption
|
||||
import io.element.android.libraries.textcomposer.components.FormattingOptionState
|
||||
import io.element.android.libraries.theme.ElementTheme
|
||||
@@ -255,7 +257,8 @@ private fun TextInput(
|
||||
start = 12.dp.applyScaleUp(),
|
||||
end = 42.dp.applyScaleUp()
|
||||
)
|
||||
),
|
||||
)
|
||||
.testTag(TestTags.richTextEditor),
|
||||
contentAlignment = Alignment.CenterStart,
|
||||
) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user