update FileDisplayActivityIT
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
faab13ca92
commit
d1adb2bf74
Binary file not shown.
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
@ -3,8 +3,8 @@
|
|||||||
if [ $# -lt 2 ]; then
|
if [ $# -lt 2 ]; then
|
||||||
echo "1: record: true/false
|
echo "1: record: true/false
|
||||||
2: class name
|
2: class name
|
||||||
3: method name"
|
3: method name"
|
||||||
|
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -20,7 +20,7 @@ cd ../../../
|
|||||||
|
|
||||||
if [ $1 == "true" ] ; then
|
if [ $1 == "true" ] ; then
|
||||||
record="-Precord"
|
record="-Precord"
|
||||||
else
|
else
|
||||||
record=""
|
record=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -30,6 +30,8 @@ else
|
|||||||
method="#$3"
|
method="#$3"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
./gradlew gplayDebugExecuteScreenshotTests $record -Pandroid.testInstrumentationRunnerArguments.class=$class$method
|
./gradlew gplayDebugExecuteScreenshotTests $record \
|
||||||
|
-Pandroid.testInstrumentationRunnerArguments.annotation=com.owncloud.android.utils.ScreenshotTest \
|
||||||
|
-Pandroid.testInstrumentationRunnerArguments.class=$class$method
|
||||||
|
|
||||||
sed -i s'#<bool name="is_beta">true</bool>#<bool name="is_beta">false</bool>#'g src/main/res/values/setup.xml
|
sed -i s'#<bool name="is_beta">true</bool>#<bool name="is_beta">false</bool>#'g src/main/res/values/setup.xml
|
||||||
|
@ -68,9 +68,10 @@ public class FileDisplayActivityIT extends AbstractIT {
|
|||||||
@Test
|
@Test
|
||||||
@ScreenshotTest
|
@ScreenshotTest
|
||||||
public void open() {
|
public void open() {
|
||||||
Activity sut = activityRule.launchActivity(null);
|
FileDisplayActivity sut = activityRule.launchActivity(null);
|
||||||
|
|
||||||
shortSleep();
|
sut.getListOfFilesFragment().setFabEnabled(false);
|
||||||
|
sut.getListOfFilesFragment().setEmptyListLoadingMessage();
|
||||||
|
|
||||||
Screenshot.snapActivity(sut).record();
|
Screenshot.snapActivity(sut).record();
|
||||||
}
|
}
|
||||||
@ -82,9 +83,8 @@ public class FileDisplayActivityIT extends AbstractIT {
|
|||||||
|
|
||||||
onView(withId(R.id.drawer_layout)).perform(DrawerActions.open());
|
onView(withId(R.id.drawer_layout)).perform(DrawerActions.open());
|
||||||
|
|
||||||
waitForIdleSync();
|
|
||||||
shortSleep();
|
|
||||||
sut.getListOfFilesFragment().setFabEnabled(false);
|
sut.getListOfFilesFragment().setFabEnabled(false);
|
||||||
|
sut.getListOfFilesFragment().setEmptyListLoadingMessage();
|
||||||
|
|
||||||
Screenshot.snapActivity(sut).record();
|
Screenshot.snapActivity(sut).record();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user