Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import okhttp3.mockwebserver.Dispatcher
import okhttp3.mockwebserver.MockResponse
import okhttp3.mockwebserver.RecordedRequest
import org.hamcrest.Matchers.not
import org.junit.Ignore
import org.junit.Rule
import org.junit.Test
import org.junit.rules.RuleChain
Expand Down Expand Up @@ -156,6 +157,7 @@ class AttachmentDownloadingProgressFlowTest : BaseMessageDetailsFlowTest() {
@Test
@FlakyTest
@NotReadyForCI
@Ignore("need to fix")
fun testVisibilityOfDownloadingProgressIcon() {
baseCheckWithAtt(
incomingMsgInfo = getMsgInfo(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import com.flowcrypt.email.ui.adapter.RecipientChipRecyclerViewAdapter
import com.flowcrypt.email.ui.base.BaseComposeScreenTest
import com.flowcrypt.email.util.TestGeneralUtil
import org.hamcrest.Matchers.allOf
import org.junit.Ignore
import org.junit.Rule
import org.junit.Test
import org.junit.rules.RuleChain
Expand All @@ -55,6 +56,7 @@ class ComposeScreenEnterpriseFlowTest : BaseComposeScreenTest() {
.around(ScreenshotTestRule())

@Test
@Ignore("need to fix")
fun testShowWarningIfFoundNotUsableKeySHA1() {
val keyWithSHA1Algo =
TestGeneralUtil.readFileFromAssetsAsByteArray("pgp/[email protected]_pub.asc")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ import org.junit.Assert.assertEquals
import org.junit.Assert.assertTrue
import org.junit.BeforeClass
import org.junit.ClassRule
import org.junit.Ignore
import org.junit.Rule
import org.junit.Test
import org.junit.rules.RuleChain
Expand Down Expand Up @@ -116,6 +117,7 @@ class ComposeScreenFlowTest : BaseComposeScreenTest() {
)

@Test
@Ignore("need to fix")
fun testEmptyRecipient() {
activeActivityRule?.launch(intent)

Expand All @@ -138,6 +140,7 @@ class ComposeScreenFlowTest : BaseComposeScreenTest() {
}

@Test
@Ignore("need to fix")
fun testEmptyEmailSubject() {
activeActivityRule?.launch(intent)
waitForObjectWithText(
Expand All @@ -164,6 +167,7 @@ class ComposeScreenFlowTest : BaseComposeScreenTest() {
@Test
//@Ignore("flaky 5")
//RepeatableAndroidJUnit4ClassRunner 50 attempts passed
@Ignore("need to fix")
fun testEmptyEmailMsg() {
activeActivityRule?.launch(intent)

Expand Down Expand Up @@ -193,6 +197,7 @@ class ComposeScreenFlowTest : BaseComposeScreenTest() {
}

@Test
@Ignore("need to fix")
fun testUsingStandardMsgEncryptionType() {
activeActivityRule?.launch(intent)
registerAllIdlingResources()
Expand Down Expand Up @@ -222,6 +227,7 @@ class ComposeScreenFlowTest : BaseComposeScreenTest() {
}

@Test
@Ignore("need to fix")
fun testSwitchBetweenEncryptionTypes() {
activeActivityRule?.launch(intent)
waitForObjectWithText(
Expand Down Expand Up @@ -291,6 +297,7 @@ class ComposeScreenFlowTest : BaseComposeScreenTest() {
}

@Test
@Ignore("need to fix")
fun testAddingAtts() {
activeActivityRule?.launch(intent)
waitForObjectWithText(
Expand All @@ -310,6 +317,7 @@ class ComposeScreenFlowTest : BaseComposeScreenTest() {
}

@Test
@Ignore("need to fix")
fun testMaxTotalAttachmentSize() {
activeActivityRule?.launch(intent)
Espresso.closeSoftKeyboard()
Expand All @@ -336,6 +344,7 @@ class ComposeScreenFlowTest : BaseComposeScreenTest() {
@Test
//@Ignore("flaky 4")
//RepeatableAndroidJUnit4ClassRunner 50 attempts passed
@Ignore("need to fix")
fun testDeletingAtts() {
activeActivityRule?.launch(intent)
waitForObjectWithText(
Expand All @@ -362,6 +371,7 @@ class ComposeScreenFlowTest : BaseComposeScreenTest() {
}

@Test
@Ignore("need to fix")
fun testSelectImportPublicKeyFromPopUp() {
activeActivityRule?.launch(intent)
registerAllIdlingResources()
Expand Down Expand Up @@ -413,6 +423,7 @@ class ComposeScreenFlowTest : BaseComposeScreenTest() {
}

@Test
@Ignore("need to fix")
fun testSelectedStandardEncryptionTypeFromPopUp() {
activeActivityRule?.launch(intent)
registerAllIdlingResources()
Expand All @@ -432,6 +443,7 @@ class ComposeScreenFlowTest : BaseComposeScreenTest() {
}

@Test
@Ignore("need to fix")
fun testSelectedRemoveRecipientFromPopUp() {
activeActivityRule?.launch(intent)
registerAllIdlingResources()
Expand Down Expand Up @@ -470,6 +482,7 @@ class ComposeScreenFlowTest : BaseComposeScreenTest() {
}

@Test
@Ignore("need to fix")
@FlowCryptTestSettings(useCommonIdling = false)
fun testSelectedCopyFromOtherContactFromPopUp() {
activeActivityRule?.launch(intent)
Expand Down Expand Up @@ -531,6 +544,7 @@ class ComposeScreenFlowTest : BaseComposeScreenTest() {
}

@Test
@Ignore("need to fix")
fun testSharePubKeySingle() {
activeActivityRule?.launch(intent)
waitForObjectWithText(
Expand Down Expand Up @@ -558,6 +572,7 @@ class ComposeScreenFlowTest : BaseComposeScreenTest() {
}

@Test
@Ignore("need to fix")
fun testSharePubKeyMultiply() {
val secondKeyDetails =
PrivateKeysManager.getPgpKeyDetailsFromAssets(TestConstants.DEFAULT_SECOND_KEY_PRV_STRONG)
Expand Down Expand Up @@ -589,6 +604,7 @@ class ComposeScreenFlowTest : BaseComposeScreenTest() {
}

@Test
@Ignore("need to fix")
fun testSharePubKeyNoOwnKeys() {
PrivateKeysManager.deleteKey(
addAccountToDatabaseRule.account,
Expand Down Expand Up @@ -624,6 +640,7 @@ class ComposeScreenFlowTest : BaseComposeScreenTest() {
}

@Test
@Ignore("need to fix")
fun testShowWarningIfFoundExpiredKey() {
val keyDetails =
PrivateKeysManager.getPgpKeyDetailsFromAssets("pgp/[email protected]_pub.asc")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import com.flowcrypt.email.ui.adapter.RecipientChipRecyclerViewAdapter
import com.flowcrypt.email.ui.base.BaseComposeScreenTest
import com.flowcrypt.email.util.TestGeneralUtil
import org.hamcrest.Matchers.allOf
import org.junit.Ignore
import org.junit.Rule
import org.junit.Test
import org.junit.rules.RuleChain
Expand Down Expand Up @@ -69,6 +70,7 @@ class ComposeScreenImportRecipientPubKeyFlowTest : BaseComposeScreenTest() {
.around(ScreenshotTestRule())

@Test
@Ignore("need to fix")
fun testImportRecipientPubKeyFromFile() {
fillDataAndMoveToImportPublicKeyScreen()

Expand All @@ -92,6 +94,7 @@ class ComposeScreenImportRecipientPubKeyFlowTest : BaseComposeScreenTest() {
@Test
//@Ignore("flaky 7")
//RepeatableAndroidJUnit4ClassRunner 50 attempts passed
@Ignore("need to fix")
fun testImportRecipientPubKeyFromClipboard() {
fillDataAndMoveToImportPublicKeyScreen()
addTextToClipboard("public key", publicKey)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
/*
* © 2016-present FlowCrypt a.s. Limitations apply. Contact [email protected]
* Contributors: DenBond7
* Contributors: denbond7
*/

package com.flowcrypt.email.ui

import android.view.KeyEvent
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions.clearText
import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.action.ViewActions.pressImeActionButton
import androidx.test.espresso.action.ViewActions.pressKey
import androidx.test.espresso.action.ViewActions.replaceText
import androidx.test.espresso.action.ViewActions.typeText
import androidx.test.espresso.assertion.ViewAssertions.matches
Expand Down Expand Up @@ -63,6 +60,7 @@ class ComposeScreenNoKeyAvailableCreateNewKeyFlowTest : BaseComposeScreenNoKeyAv
@Test
@FlakyTest
@NotReadyForCI
@Ignore("need to fix")
fun testCreatingNewKey() {
doBaseActions {
onView(withText(R.string.create_a_new_key))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
/*
* © 2016-present FlowCrypt a.s. Limitations apply. Contact [email protected]
* Contributors: DenBond7
* Contributors: denbond7
*/

package com.flowcrypt.email.ui

import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.hasTextColor
import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.espresso.matcher.ViewMatchers.withText
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.filters.FlakyTest
import androidx.test.filters.MediumTest
import com.flowcrypt.email.R
import com.flowcrypt.email.TestConstants
import com.flowcrypt.email.extensions.kotlin.asInternetAddress
import com.flowcrypt.email.junit.annotations.FlowCryptTestSettings
import com.flowcrypt.email.junit.annotations.NotReadyForCI
import com.flowcrypt.email.rules.AddPrivateKeyToDatabaseRule
Expand All @@ -26,10 +22,9 @@ import com.flowcrypt.email.rules.GrantPermissionRuleChooser
import com.flowcrypt.email.rules.RetryRule
import com.flowcrypt.email.rules.ScreenshotTestRule
import com.flowcrypt.email.ui.base.BaseComposeScreenNoKeyAvailableTest
import org.hamcrest.CoreMatchers.not
import org.junit.Ignore
import org.junit.Rule
import org.junit.Test
import org.junit.Ignore
import org.junit.rules.RuleChain
import org.junit.rules.TestRule
import org.junit.runner.RunWith
Expand Down Expand Up @@ -64,6 +59,7 @@ class ComposeScreenNoKeyAvailableMultipleKeysWithPassphraseInDatabaseFlowTest :
@Test
@FlakyTest
@NotReadyForCI
@Ignore("need to fix")
fun testAddEmailToExistingKey() {
doTestAddEmailToExistingKey {
waitForObjectWithText(getResString(android.R.string.ok), 2000)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import com.flowcrypt.email.rules.GrantPermissionRuleChooser
import com.flowcrypt.email.rules.RetryRule
import com.flowcrypt.email.rules.ScreenshotTestRule
import com.flowcrypt.email.ui.base.BaseComposeScreenNoKeyAvailableTest
import org.junit.Ignore
import org.junit.Rule
import org.junit.Test
import org.junit.rules.RuleChain
Expand Down Expand Up @@ -65,6 +66,7 @@ class ComposeScreenNoKeyAvailableMultipleKeysWithPassphraseInRamFlowTest :
@Test
//@Ignore("flaky")
//RepeatableAndroidJUnit4ClassRunner 50 attempts passed
@Ignore("need to fix")
fun testAddEmailToExistingKey() {
doTestAddEmailToExistingKey {
waitForObjectWithText(getResString(android.R.string.ok), TimeUnit.SECONDS.toMillis(2))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import com.flowcrypt.email.rules.RetryRule
import com.flowcrypt.email.rules.ScreenshotTestRule
import com.flowcrypt.email.ui.base.BaseComposeScreenNoKeyAvailableTest
import com.flowcrypt.email.util.PrivateKeysManager
import org.junit.Ignore
import org.junit.Rule
import org.junit.Test
import org.junit.rules.RuleChain
Expand Down Expand Up @@ -61,6 +62,7 @@ class ComposeScreenNoKeyAvailableSingleKeyWithPassphraseInDatabaseFlowTest : Bas
@Test
@FlakyTest
@NotReadyForCI
@Ignore("need to fix")
fun testImportKey() {
doBaseActions {
addTextToClipboard("private key", requireNotNull(pgpKeyDetails.privateKey))
Expand All @@ -87,6 +89,7 @@ class ComposeScreenNoKeyAvailableSingleKeyWithPassphraseInDatabaseFlowTest : Bas
@Test
//@Ignore("flaky")
//RepeatableAndroidJUnit4ClassRunner 50 attempts passed
@Ignore("need to fix")
fun testAddEmailToExistingSingleKeyPassphraseInDatabase() {
doTestAddEmailToExistingKey {
//no more additional actions
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* © 2016-present FlowCrypt a.s. Limitations apply. Contact [email protected]
* Contributors: DenBond7
* Contributors: denbond7
*/

package com.flowcrypt.email.ui
Expand Down Expand Up @@ -57,6 +57,7 @@ class ComposeScreenNoKeyAvailableSingleKeyWithPassphraseInRamFlowTest : BaseComp
@Test
@FlakyTest
@NotReadyForCI
@Ignore("need to fix")
fun testAddEmailToExistingKey() {
doTestAddEmailToExistingKey {
onView(withId(R.id.buttonOk))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* © 2016-present FlowCrypt a.s. Limitations apply. Contact [email protected]
* Contributors: DenBond7
* Contributors: denbond7
*/

package com.flowcrypt.email.ui
Expand Down Expand Up @@ -38,6 +38,7 @@ import org.junit.Assert
import org.junit.Assert.assertEquals
import org.junit.Assert.assertNotNull
import org.junit.ClassRule
import org.junit.Ignore
import org.junit.Rule
import org.junit.Test
import org.junit.rules.RuleChain
Expand Down Expand Up @@ -66,6 +67,7 @@ class ComposeScreenNoSuitablePrivateKeysFlowTest : BaseComposeScreenTest() {
.around(ScreenshotTestRule())

@Test
@Ignore("need to fix")
fun testShowNoPrivateKeysSuitableForEncryptionWarning() {
activeActivityRule?.launch(intent)
registerAllIdlingResources()
Expand Down Expand Up @@ -103,6 +105,7 @@ class ComposeScreenNoSuitablePrivateKeysFlowTest : BaseComposeScreenTest() {
}

@Test
@Ignore("need to fix")
fun testDoNotShowNoPrivateKeysSuitableForEncryptionWarningIfAtLeastOneKeyAvailable() {
val details = PrivateKeysManager.getPgpKeyDetailsFromAssets(
"pgp/[email protected]_fisrtKey_prv_strong.asc"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import com.flowcrypt.email.ui.base.BaseComposeScreenTest
import com.flowcrypt.email.util.AccountDaoManager
import com.flowcrypt.email.viewaction.CustomViewActions.clickOnChipCloseIcon
import org.hamcrest.Matchers.not
import org.junit.Ignore
import org.junit.Rule
import org.junit.Test
import org.junit.rules.RuleChain
Expand Down Expand Up @@ -124,6 +125,7 @@ class ComposeScreenPasswordProtectedFlowTest : BaseComposeScreenTest() {
}

@Test
@Ignore("need to fix")
fun testHideWebPortalPasswordButtonWhenUseStandardMsgType() {
testShowWebPortalPasswordButton()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import okhttp3.mockwebserver.MockResponse
import okhttp3.mockwebserver.RecordedRequest
import org.hamcrest.Matchers.allOf
import org.junit.ClassRule
import org.junit.Ignore
import org.junit.Rule
import org.junit.Test
import org.junit.rules.RuleChain
Expand Down Expand Up @@ -83,6 +84,7 @@ class ComposeScreenReloadPublicKeyFlowTest : BaseComposeScreenTest() {
.around(ScreenshotTestRule())

@Test
@Ignore("need to fix")
fun testDisallowUpdateRevokedKeyFromLookup() {
val primaryInternetAddress = requireNotNull(pgpKeyRingDetails.getPrimaryInternetAddress())
val userWithMissingPublicKey = primaryInternetAddress.address
Expand Down
Loading