Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2020-09-08 12:46:26 +02:00
parent a6c898d2a5
commit 1a32e9b268
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7
3 changed files with 17 additions and 9 deletions

View file

@ -58,7 +58,7 @@ class FileDetailFragmentStaticServerIT : AbstractIT() {
@Test
@ScreenshotTest
fun showDetails_Activities() {
fun showDetailsActivities() {
val sut = testActivityRule.launchActivity(null)
sut.addFragment(FileDetailFragment.newInstance(file, user, 0))
@ -68,7 +68,7 @@ class FileDetailFragmentStaticServerIT : AbstractIT() {
@Test
@ScreenshotTest
fun showDetails_Sharing() {
fun showDetailsSharing() {
val sut = testActivityRule.launchActivity(null)
sut.addFragment(FileDetailFragment.newInstance(file, user, 1))

View file

@ -75,13 +75,13 @@ class FileDetailSharingFragmentIT : AbstractIT() {
@Test
@ScreenshotTest
fun listShares_file_none() {
fun listSharesFileNone() {
show(file)
}
@Test
@ScreenshotTest
fun listShares_file_resharing_not_allowed() {
fun listSharesFileResharingNotAllowed() {
file.permissions = ""
show(file)
@ -89,7 +89,8 @@ class FileDetailSharingFragmentIT : AbstractIT() {
@Test
@ScreenshotTest
fun listShares_file_allShareTypes() {
@Suppress("MagicNumber")
fun listSharesFileAllShareTypes() {
OCShare(file.decryptedRemotePath).apply {
remoteId = 1
shareType = ShareType.USER
@ -171,8 +172,9 @@ class FileDetailSharingFragmentIT : AbstractIT() {
}
@Test
@Suppress("MagicNumber")
// public link and email are handled the same way
fun publicLink_optionMenu_Folder() {
fun publicLinkOptionMenuFolder() {
val sut = FileDetailSharingFragment.newInstance(file, user)
activity.addFragment(sut)
shortSleep()
@ -312,8 +314,9 @@ class FileDetailSharingFragmentIT : AbstractIT() {
}
@Test
@Suppress("MagicNumber")
// public link and email are handled the same way
fun publicLink_optionMenu_File() {
fun publicLinkOptionMenuFile() {
val sut = FileDetailSharingFragment.newInstance(file, user)
activity.addFragment(sut)
shortSleep()
@ -390,12 +393,13 @@ class FileDetailSharingFragmentIT : AbstractIT() {
}
@Test
@Suppress("MagicNumber")
// also applies for
// group
// conversation
// circle
// federated share
fun user_optionMenu_File() {
fun userOptionMenuFile() {
val sut = FileDetailSharingFragment.newInstance(file, user)
activity.addFragment(sut)
shortSleep()
@ -447,12 +451,13 @@ class FileDetailSharingFragmentIT : AbstractIT() {
}
@Test
@Suppress("MagicNumber")
// also applies for
// group
// conversation
// circle
// federated share
fun user_optionMenu_Folder() {
fun userOptionMenuFolder() {
val sut = FileDetailSharingFragment.newInstance(file, user)
activity.addFragment(sut)
shortSleep()
@ -529,6 +534,7 @@ class FileDetailSharingFragmentIT : AbstractIT() {
}
@Test
@Suppress("MagicNumber")
fun testReadOnlySharePermissions() {
val sut = FileDetailSharingFragment()
@ -560,6 +566,7 @@ class FileDetailSharingFragmentIT : AbstractIT() {
}
@Test
@Suppress("MagicNumber")
fun testFileDropSharePermissions() {
val sut = FileDetailSharingFragment()

View file

@ -42,6 +42,7 @@ class OCFileListFragmentStaticServerIT : AbstractIT() {
@Test
@ScreenshotTest
@Suppress("MagicNumber")
fun showFiles() {
val sut = testActivityRule.launchActivity(null)