Remove Image From Upload Wizard (#5636)

* Added Remove Icon to Image Thumnails

* fix

* fix

* fix tests
This commit is contained in:
Shashank Kumar 2024-03-24 14:02:56 +05:30 committed by GitHub
parent 78a53fd40d
commit f404ac9b47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 43 additions and 8 deletions

View file

@ -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()