-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improvement: Longer walk-though for baseline profile generation
- Loading branch information
Showing
8 changed files
with
163 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
androidTest/src/main/java/com/artemchep/test/feature/generator.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.artemchep.test.feature | ||
|
||
import androidx.test.uiautomator.UiDevice | ||
|
||
@JvmInline | ||
value class FeatureGenerator( | ||
val device: UiDevice, | ||
) | ||
|
||
val UiDevice.generatorFeature get() = FeatureGenerator(this) | ||
|
||
fun FeatureGenerator.ensureGeneratorScreen() = | ||
device.coreFeature.launchScreen( | ||
actionButtonResource = "nav_bar:generator", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
androidTest/src/main/java/com/artemchep/test/feature/sends.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.artemchep.test.feature | ||
|
||
import androidx.test.uiautomator.UiDevice | ||
|
||
@JvmInline | ||
value class FeatureSends( | ||
val device: UiDevice, | ||
) | ||
|
||
val UiDevice.sendsFeature get() = FeatureSends(this) | ||
|
||
fun FeatureSends.ensureSendsScreen() = | ||
device.coreFeature.launchScreen( | ||
actionButtonResource = "nav_bar:sends", | ||
) |
15 changes: 15 additions & 0 deletions
15
androidTest/src/main/java/com/artemchep/test/feature/settings.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.artemchep.test.feature | ||
|
||
import androidx.test.uiautomator.UiDevice | ||
|
||
@JvmInline | ||
value class FeatureSettings( | ||
val device: UiDevice, | ||
) | ||
|
||
val UiDevice.settingsFeature get() = FeatureSettings(this) | ||
|
||
fun FeatureSettings.ensureSettingsScreen() = | ||
device.coreFeature.launchScreen( | ||
actionButtonResource = "nav_bar:settings", | ||
) |
15 changes: 15 additions & 0 deletions
15
androidTest/src/main/java/com/artemchep/test/feature/watchtower.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.artemchep.test.feature | ||
|
||
import androidx.test.uiautomator.UiDevice | ||
|
||
@JvmInline | ||
value class FeatureWatchtower( | ||
val device: UiDevice, | ||
) | ||
|
||
val UiDevice.watchtowerFeature get() = FeatureWatchtower(this) | ||
|
||
fun FeatureWatchtower.ensureWatchtowerScreen() = | ||
device.coreFeature.launchScreen( | ||
actionButtonResource = "nav_bar:watchtower", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.artemchep.test.util | ||
|
||
import androidx.test.uiautomator.UiDevice | ||
|
||
/** Always waits for a given time */ | ||
fun UiDevice.wait(ms: Long) { | ||
wait( | ||
{ null }, | ||
ms, | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters