From cc27c37c1ea37b5b43b38e29bada75d1cf12f163 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Thu, 18 Nov 2021 18:50:51 +0000 Subject: [PATCH] fixing ktlint errors --- .../androidTest/java/im/vector/app/ui/robot/ElementRobot.kt | 6 ++++-- .../java/im/vector/app/ui/robot/RoomSettingsRobot.kt | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/vector/src/androidTest/java/im/vector/app/ui/robot/ElementRobot.kt b/vector/src/androidTest/java/im/vector/app/ui/robot/ElementRobot.kt index 60a6f7c110..99af7851ef 100644 --- a/vector/src/androidTest/java/im/vector/app/ui/robot/ElementRobot.kt +++ b/vector/src/androidTest/java/im/vector/app/ui/robot/ElementRobot.kt @@ -28,8 +28,8 @@ import com.adevinta.android.barista.interaction.BaristaDrawerInteractions.openDr import im.vector.app.EspressoHelper import im.vector.app.R import im.vector.app.espresso.tools.waitUntilActivityVisible -import im.vector.app.espresso.tools.waitUntilViewVisible import im.vector.app.espresso.tools.waitUntilDialogVisible +import im.vector.app.espresso.tools.waitUntilViewVisible import im.vector.app.features.createdirect.CreateDirectRoomActivity import im.vector.app.features.home.HomeActivity import im.vector.app.features.login.LoginActivity @@ -105,7 +105,9 @@ class ElementRobot { }.isSuccess if (expectSignOutWarning != isShowingSignOutWarning) { - Timber.w("Unexpected sign out flow, expected warning to be: ${expectSignOutWarning.toWarningType()} but was ${isShowingSignOutWarning.toWarningType()}") + val expected = expectSignOutWarning.toWarningType() + val actual = isShowingSignOutWarning.toWarningType() + Timber.w("Unexpected sign out flow, expected warning to be: $expected but was $actual") } if (isShowingSignOutWarning) { diff --git a/vector/src/androidTest/java/im/vector/app/ui/robot/RoomSettingsRobot.kt b/vector/src/androidTest/java/im/vector/app/ui/robot/RoomSettingsRobot.kt index e02732a727..2c57dd058d 100644 --- a/vector/src/androidTest/java/im/vector/app/ui/robot/RoomSettingsRobot.kt +++ b/vector/src/androidTest/java/im/vector/app/ui/robot/RoomSettingsRobot.kt @@ -26,8 +26,8 @@ import com.adevinta.android.barista.interaction.BaristaDialogInteractions.clickD import com.adevinta.android.barista.interaction.BaristaListInteractions.clickListItem import im.vector.app.R import im.vector.app.espresso.tools.waitUntilActivityVisible -import im.vector.app.espresso.tools.waitUntilViewVisible import im.vector.app.espresso.tools.waitUntilDialogVisible +import im.vector.app.espresso.tools.waitUntilViewVisible import im.vector.app.features.roommemberprofile.RoomMemberProfileActivity class RoomSettingsRobot {