Opt-in skips: Update tests

This commit is contained in:
2020-11-18 22:26:45 -06:00
parent d594d3b085
commit b674d14b49
4 changed files with 12 additions and 1 deletions

View File

@@ -56,6 +56,7 @@ public class HistoryChartTest extends BaseViewTest
today = new Timestamp(DateUtils.getStartOfToday());
chart = new HistoryChart(targetContext);
chart.setSkipEnabled(true);
chart.setCheckmarks(habit.getCheckmarks().getAllValues());
chart.setColor(PaletteUtils.getAndroidTestColor(habit.getColor()));
measureView(chart, dpToPixels(400), dpToPixels(200));

View File

@@ -52,6 +52,7 @@ public class CheckmarkWidgetTest extends BaseViewTest
super.setUp();
setTheme(R.style.WidgetTheme);
prefs.setWidgetOpacity(255);
prefs.setSkipEnabled(true);
habit = fixtures.createVeryLongHabit();
checkmarks = habit.getCheckmarks();