update FileDisplayActivityIT

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2020-07-17 09:38:32 +02:00
parent faab13ca92
commit d1adb2bf74
No known key found for this signature in database
GPG Key ID: 0E00D4D47D0C5AF7
3 changed files with 10 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -3,8 +3,8 @@
if [ $# -lt 2 ]; then
echo "1: record: true/false
2: class name
3: method name"
3: method name"
exit
fi
@ -20,7 +20,7 @@ cd ../../../
if [ $1 == "true" ] ; then
record="-Precord"
else
else
record=""
fi
@ -30,6 +30,8 @@ else
method="#$3"
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

View File

@ -68,9 +68,10 @@ public class FileDisplayActivityIT extends AbstractIT {
@Test
@ScreenshotTest
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();
}
@ -82,9 +83,8 @@ public class FileDisplayActivityIT extends AbstractIT {
onView(withId(R.id.drawer_layout)).perform(DrawerActions.open());
waitForIdleSync();
shortSleep();
sut.getListOfFilesFragment().setFabEnabled(false);
sut.getListOfFilesFragment().setEmptyListLoadingMessage();
Screenshot.snapActivity(sut).record();
}