mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 11:59:12 +03:00
Private val is better.
This commit is contained in:
parent
4dc01fcfa6
commit
f604b1d384
5 changed files with 4 additions and 9 deletions
|
@ -51,8 +51,7 @@ import im.vector.app.withIdlingResource
|
|||
import timber.log.Timber
|
||||
|
||||
class ElementRobot {
|
||||
|
||||
var features: VectorFeatures = DefaultVectorFeatures()
|
||||
private val features: VectorFeatures = DefaultVectorFeatures()
|
||||
|
||||
fun onboarding(block: OnboardingRobot.() -> Unit) {
|
||||
block(OnboardingRobot())
|
||||
|
|
|
@ -27,8 +27,7 @@ import im.vector.app.features.VectorFeatures
|
|||
class NewRoomRobot(
|
||||
var createdRoom: Boolean = false
|
||||
) {
|
||||
|
||||
private var features: VectorFeatures = DefaultVectorFeatures()
|
||||
private val features: VectorFeatures = DefaultVectorFeatures()
|
||||
|
||||
fun createNewRoom(block: CreateNewRoomRobot.() -> Unit) {
|
||||
if (features.isNewAppLayoutEnabled()) {
|
||||
|
|
|
@ -33,7 +33,6 @@ import im.vector.app.features.DefaultVectorFeatures
|
|||
import im.vector.app.waitForView
|
||||
|
||||
class OnboardingRobot {
|
||||
|
||||
private val defaultVectorFeatures = DefaultVectorFeatures()
|
||||
|
||||
fun crawl() {
|
||||
|
|
|
@ -33,8 +33,7 @@ import im.vector.app.features.VectorFeatures
|
|||
import im.vector.app.features.roomdirectory.RoomDirectoryActivity
|
||||
|
||||
class RoomListRobot {
|
||||
|
||||
private var features: VectorFeatures = DefaultVectorFeatures()
|
||||
private val features: VectorFeatures = DefaultVectorFeatures()
|
||||
|
||||
fun openRoom(roomName: String, block: RoomDetailRobot.() -> Unit) {
|
||||
clickOn(roomName)
|
||||
|
|
|
@ -33,8 +33,7 @@ import im.vector.app.features.VectorFeatures
|
|||
import org.hamcrest.Matchers
|
||||
|
||||
class SpaceRobot {
|
||||
|
||||
private var features: VectorFeatures = DefaultVectorFeatures()
|
||||
private val features: VectorFeatures = DefaultVectorFeatures()
|
||||
|
||||
fun createSpace(isFirstSpace: Boolean, block: SpaceCreateRobot.() -> Unit) {
|
||||
if (features.isNewAppLayoutEnabled()) {
|
||||
|
|
Loading…
Reference in a new issue