diff --git a/app/src/test/java/org/mozilla/fenix/downloads/FirstPartyDownloadDialogTest.kt b/app/src/test/java/org/mozilla/fenix/downloads/FirstPartyDownloadDialogTest.kt index 64d2b42ce2..5212281eb8 100644 --- a/app/src/test/java/org/mozilla/fenix/downloads/FirstPartyDownloadDialogTest.kt +++ b/app/src/test/java/org/mozilla/fenix/downloads/FirstPartyDownloadDialogTest.kt @@ -64,7 +64,7 @@ class FirstPartyDownloadDialogTest { ), dialogBinding.title.text, ) - assertEquals("Test", dialogBinding.filename.text) + assertEquals("Test", dialogBinding.filename.text.toString()) assertFalse(wasPositiveActionDone) assertFalse(wasNegativeActionDone) dialogBinding.downloadButton.callOnClick() @@ -102,7 +102,7 @@ class FirstPartyDownloadDialogTest { testContext.getString(R.string.mozac_feature_downloads_dialog_download), dialogBinding.title.text, ) - assertEquals("Test", dialogBinding.filename.text) + assertEquals("Test", dialogBinding.filename.text.toString()) assertFalse(wasPositiveActionDone) assertFalse(wasNegativeActionDone) dialogBinding.downloadButton.callOnClick()