mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Remove Image From Upload Wizard (#5636)
* Added Remove Icon to Image Thumnails * fix * fix * fix tests
This commit is contained in:
parent
78a53fd40d
commit
f404ac9b47
5 changed files with 43 additions and 8 deletions
|
|
@ -157,7 +157,6 @@ class UploadPresenterTest {
|
|||
deletePictureBaseTest()
|
||||
uploadableFiles.add(uploadableFile)
|
||||
uploadPresenter.deletePictureAtIndex(0)
|
||||
verify(view).showHideTopCard(false)
|
||||
verify(repository).deletePicture(ArgumentMatchers.anyString())
|
||||
}
|
||||
|
||||
|
|
@ -169,7 +168,6 @@ class UploadPresenterTest {
|
|||
deletePictureBaseTest()
|
||||
uploadableFiles.add(uploadableFile)
|
||||
uploadPresenter.deletePictureAtIndex(0)
|
||||
verify(view).showHideTopCard(false)
|
||||
verify(repository).deletePicture(ArgumentMatchers.anyString())
|
||||
verify(view).showMessage(ArgumentMatchers.anyInt())//As there is only one while which we are asking for deletion, upload should be cancelled and this flow should be triggered
|
||||
verify(view).finish()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue