Skip to content

Commit

Permalink
Update dependencies and fix ui test
Browse files Browse the repository at this point in the history
  • Loading branch information
Christine Emrich committed May 20, 2018
1 parent 404e301 commit 8165cc0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
7 changes: 3 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ dependencies {
// tests
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support:support-annotations:27.1.1'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test:rules:1.0.1'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test:rules:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1', {
exclude group: 'com.android.support', module: 'support-annotations'
}
Expand All @@ -51,8 +51,7 @@ dependencies {
exclude group: 'com.android.support', module: 'design'
exclude group: 'com.android.support', module: 'recyclerview-v7'
}
// do not update until 3.0.2 release: https://davidtruxall.com/set-up-espresso-accessibility/
androidTestImplementation 'com.android.support.test.espresso:espresso-accessibility:3.0.0'
androidTestImplementation 'com.android.support.test.espresso:espresso-accessibility:3.0.2'

// support
implementation 'com.android.support:appcompat-v7:27.1.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


import android.content.pm.ActivityInfo;
import android.support.test.espresso.accessibility.AccessibilityChecks;
import android.support.test.espresso.contrib.DrawerActions;
import android.support.test.espresso.contrib.DrawerMatchers;
import android.support.test.espresso.contrib.NavigationViewActions;
Expand Down Expand Up @@ -39,10 +40,9 @@ public class MainUiTest {

@BeforeClass
public static void enableAccessibilityChecks() {
// TODO: re-enable as soon as 3.0.2 is released
//AccessibilityChecks.enable()
// .setRunChecksFromRootView(true)
// .setThrowExceptionForErrors(false);
AccessibilityChecks.enable()
.setRunChecksFromRootView(true)
.setThrowExceptionForErrors(false);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.0'
classpath 'com.android.tools.build:gradle:3.1.2'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down

0 comments on commit 8165cc0

Please sign in to comment.