-
Notifications
You must be signed in to change notification settings - Fork 759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixed allscreens sanity test for enabled app layout flag #7020
Conversation
@@ -9,6 +9,7 @@ | |||
android:id="@+id/groupListView" | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:minHeight="195dp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when animation are disabled (for ui tests) for some reason dialog is not properly measure in 50% chances. This min height is the sum of height of 3 items in list and this is minimal amount of items to be shown for non-empty staye (all chat, 1 space, create space)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strange. Thanks for explaining.
@@ -101,11 +101,11 @@ class UiAllScreensSanityTest { | |||
|
|||
val spaceName = UUID.randomUUID().toString() | |||
elementRobot.space { | |||
createSpace { | |||
createSpace(true) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional: Could add named parameter to make it clearer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, some minor remarks and suggestions.
@@ -84,33 +84,56 @@ class ElementRobot { | |||
} | |||
|
|||
fun settings(shouldGoBack: Boolean = true, block: SettingsRobot.() -> Unit) { | |||
openDrawer() | |||
clickOn(R.id.homeDrawerHeaderSettingsView) | |||
if (features.isNewAppLayoutEnabled()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for supporting both mode.
|
||
class NewRoomRobot( | ||
var createdRoom: Boolean = false | ||
) { | ||
|
||
var features: VectorFeatures = DefaultVectorFeatures() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var features: VectorFeatures = DefaultVectorFeatures() | |
private val features: VectorFeatures = DefaultVectorFeatures() |
import im.vector.app.features.roomdirectory.RoomDirectoryActivity | ||
|
||
class RoomListRobot { | ||
|
||
var features: VectorFeatures = DefaultVectorFeatures() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var features: VectorFeatures = DefaultVectorFeatures() | |
private val features: VectorFeatures = DefaultVectorFeatures() |
waitUntilDialogVisible(withId(R.id.inviteByMxidButton)) | ||
waitUntilActivityVisible<RoomDetailActivity> { | ||
waitUntilDialogVisible(withId(R.id.inviteByMxidButton)) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to double check, is it OK that the change is not under features.isNewAppLayoutEnabled()
condition?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, no matter of flag enabled/disabled that was failing for me locally without this change
fun createSpace(block: SpaceCreateRobot.() -> Unit) { | ||
openDrawer() | ||
clickOn(R.string.create_space) | ||
var features: VectorFeatures = DefaultVectorFeatures() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var features: VectorFeatures = DefaultVectorFeatures() | |
private val features: VectorFeatures = DefaultVectorFeatures() |
@@ -9,6 +9,7 @@ | |||
android:id="@+id/groupListView" | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:minHeight="195dp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strange. Thanks for explaining.
Kudos, SonarCloud Quality Gate passed!
|
Fail test will be handled later, we need to merge this PR. |
Type of change
Content
updates all screens ui test for new app layout
Motivation and context
closes #7019