mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Fix compilation errors while trying to run instrumentation tests. (#3850)
This commit is contained in:
parent
dea629c2c4
commit
7caf73fb4b
3 changed files with 17 additions and 15 deletions
|
|
@ -23,7 +23,7 @@ class WelcomeActivityTest {
|
|||
|
||||
@Test
|
||||
fun ifBetaShowsSkipButton() {
|
||||
if (ConfigUtils.isBetaFlavour()) {
|
||||
if (ConfigUtils.isBetaFlavour) {
|
||||
onView(withId(R.id.finishTutorialButton))
|
||||
.check(matches(isDisplayed()))
|
||||
}
|
||||
|
|
@ -31,7 +31,7 @@ class WelcomeActivityTest {
|
|||
|
||||
@Test
|
||||
fun ifProdHidesSkipButton() {
|
||||
if (!ConfigUtils.isBetaFlavour()) {
|
||||
if (!ConfigUtils.isBetaFlavour) {
|
||||
onView(withId(R.id.finishTutorialButton))
|
||||
.check(matches(not(isDisplayed())))
|
||||
}
|
||||
|
|
@ -39,7 +39,7 @@ class WelcomeActivityTest {
|
|||
|
||||
@Test
|
||||
fun testBetaSkipButton() {
|
||||
if (ConfigUtils.isBetaFlavour()) {
|
||||
if (ConfigUtils.isBetaFlavour) {
|
||||
onView(withId(R.id.finishTutorialButton))
|
||||
.perform(ViewActions.click())
|
||||
assert(activityRule.activity.isDestroyed)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue