Repository navigation
[New arch] [Modularization] Tests and cleanup - #2728
Conversation
4d2e43b to
60a87d0
Compare
| ) | ||
| ) | ||
|
|
||
| onView(withText("Sheldon")).check(matches(isDisplayed())) |
There was a problem hiding this comment.
you can use just once onView(withText("Sheldon")) if you do it
onView(withText("Sheldon"))
.check(matches(isDisplayed()))
.check(matches(hasSibling(withId(R.id.unshareButton))))
...
There was a problem hiding this comment.
by the way, I think this is text is not good because you are repeating onView(withText("Sheldon")).check(matches(isDisplayed())) several times.
| ) | ||
| ) | ||
|
|
||
| onView(withText("Friends (group)")).check(matches(isDisplayed())) |
| val calendar = GregorianCalendar() | ||
| calendar.timeInMillis = expirationDate | ||
|
|
||
| val formatter: DateFormat = SimpleDateFormat("MMM dd, yyyy") |
There was a problem hiding this comment.
just curious, are you using this format for Spanish users??
There was a problem hiding this comment.
No, we use dd mm yyyy for Spanish users
There was a problem hiding this comment.
Then, running a device in Spanish, it will fail
| ) | ||
| private var userSharesList = listOf( | ||
| OC_SHARE.copy(sharedWithDisplayName = "Batman"), | ||
| OC_SHARE.copy(sharedWithDisplayName = "Jocker") |
| val calendar = GregorianCalendar() | ||
| calendar.timeInMillis = expirationDate | ||
|
|
||
| val formatter: DateFormat = SimpleDateFormat("MMM dd, yyyy") |
There was a problem hiding this comment.
Then, running a device in Spanish, it will fail
| implementation fileTree(dir: 'libs', include: ['*.jar']) | ||
| implementation project(':owncloudDomain') | ||
| implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion" | ||
| implementation "androidx.lifecycle:lifecycle-livedata:2.0.0" |
There was a problem hiding this comment.
you should use the global livedata version
There was a problem hiding this comment.
We tried it with 2.1.0 but it triggered a mess of dependencies. Anyway, I've moved 2.0.0 version to the root build.gradle file
| import com.owncloud.android.presentation.ui.sharing.fragments.ShareFragmentListener | ||
| import com.owncloud.android.testing.SingleFragmentActivity | ||
|
|
||
| class TestShareFileActivity : SingleFragmentActivity(), ShareFragmentListener { |
There was a problem hiding this comment.
I don't find my previous comment. If you had a dependency with an activity, it would be great to have an interface ActivityProvider and be able to mock it. But now it is done in that way hehe
dbc9e18 to
1e9168f
Compare

Implements #2701
Needs owncloud/android-library#282