mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-15 01:35:07 +08:00
Private val is better.
This commit is contained in:
parent
4dc01fcfa6
commit
f604b1d384
@ -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 New Issue
Block a user