Skip to content

Commit 0a7d336

Browse files
committed
Temporary disabled some tests
1 parent 386566b commit 0a7d336

21 files changed

Lines changed: 53 additions & 25 deletions

FlowCrypt/src/androidTest/java/com/flowcrypt/email/ui/AttachmentDownloadingProgressFlowTest.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ import okhttp3.mockwebserver.Dispatcher
4343
import okhttp3.mockwebserver.MockResponse
4444
import okhttp3.mockwebserver.RecordedRequest
4545
import org.hamcrest.Matchers.not
46+
import org.junit.Ignore
4647
import org.junit.Rule
4748
import org.junit.Test
4849
import org.junit.rules.RuleChain
@@ -156,6 +157,7 @@ class AttachmentDownloadingProgressFlowTest : BaseMessageDetailsFlowTest() {
156157
@Test
157158
@FlakyTest
158159
@NotReadyForCI
160+
@Ignore("need to fix")
159161
fun testVisibilityOfDownloadingProgressIcon() {
160162
baseCheckWithAtt(
161163
incomingMsgInfo = getMsgInfo(

FlowCrypt/src/androidTest/java/com/flowcrypt/email/ui/ComposeScreenNoKeyAvailableCreateNewKeyFlowTest.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
/*
22
* © 2016-present FlowCrypt a.s. Limitations apply. Contact human@flowcrypt.com
3-
* Contributors: DenBond7
3+
* Contributors: denbond7
44
*/
55

66
package com.flowcrypt.email.ui
77

8-
import android.view.KeyEvent
98
import androidx.test.espresso.Espresso.onView
10-
import androidx.test.espresso.action.ViewActions.clearText
119
import androidx.test.espresso.action.ViewActions.click
1210
import androidx.test.espresso.action.ViewActions.pressImeActionButton
13-
import androidx.test.espresso.action.ViewActions.pressKey
1411
import androidx.test.espresso.action.ViewActions.replaceText
1512
import androidx.test.espresso.action.ViewActions.typeText
1613
import androidx.test.espresso.assertion.ViewAssertions.matches
@@ -63,6 +60,7 @@ class ComposeScreenNoKeyAvailableCreateNewKeyFlowTest : BaseComposeScreenNoKeyAv
6360
@Test
6461
@FlakyTest
6562
@NotReadyForCI
63+
@Ignore("need to fix")
6664
fun testCreatingNewKey() {
6765
doBaseActions {
6866
onView(withText(R.string.create_a_new_key))

FlowCrypt/src/androidTest/java/com/flowcrypt/email/ui/ComposeScreenNoKeyAvailableMultipleKeysWithPassphraseInDatabaseFlowTest.kt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
11
/*
22
* © 2016-present FlowCrypt a.s. Limitations apply. Contact human@flowcrypt.com
3-
* Contributors: DenBond7
3+
* Contributors: denbond7
44
*/
55

66
package com.flowcrypt.email.ui
77

88
import androidx.test.espresso.Espresso.onView
99
import androidx.test.espresso.action.ViewActions.click
1010
import androidx.test.espresso.assertion.ViewAssertions.matches
11-
import androidx.test.espresso.matcher.ViewMatchers.hasTextColor
1211
import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
1312
import androidx.test.espresso.matcher.ViewMatchers.withId
14-
import androidx.test.espresso.matcher.ViewMatchers.withText
1513
import androidx.test.ext.junit.runners.AndroidJUnit4
1614
import androidx.test.filters.FlakyTest
1715
import androidx.test.filters.MediumTest
1816
import com.flowcrypt.email.R
19-
import com.flowcrypt.email.TestConstants
20-
import com.flowcrypt.email.extensions.kotlin.asInternetAddress
2117
import com.flowcrypt.email.junit.annotations.FlowCryptTestSettings
2218
import com.flowcrypt.email.junit.annotations.NotReadyForCI
2319
import com.flowcrypt.email.rules.AddPrivateKeyToDatabaseRule
@@ -26,10 +22,9 @@ import com.flowcrypt.email.rules.GrantPermissionRuleChooser
2622
import com.flowcrypt.email.rules.RetryRule
2723
import com.flowcrypt.email.rules.ScreenshotTestRule
2824
import com.flowcrypt.email.ui.base.BaseComposeScreenNoKeyAvailableTest
29-
import org.hamcrest.CoreMatchers.not
25+
import org.junit.Ignore
3026
import org.junit.Rule
3127
import org.junit.Test
32-
import org.junit.Ignore
3328
import org.junit.rules.RuleChain
3429
import org.junit.rules.TestRule
3530
import org.junit.runner.RunWith
@@ -64,6 +59,7 @@ class ComposeScreenNoKeyAvailableMultipleKeysWithPassphraseInDatabaseFlowTest :
6459
@Test
6560
@FlakyTest
6661
@NotReadyForCI
62+
@Ignore("need to fix")
6763
fun testAddEmailToExistingKey() {
6864
doTestAddEmailToExistingKey {
6965
waitForObjectWithText(getResString(android.R.string.ok), 2000)

FlowCrypt/src/androidTest/java/com/flowcrypt/email/ui/ComposeScreenNoKeyAvailableSingleKeyWithPassphraseInDatabaseFlowTest.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import com.flowcrypt.email.rules.RetryRule
2828
import com.flowcrypt.email.rules.ScreenshotTestRule
2929
import com.flowcrypt.email.ui.base.BaseComposeScreenNoKeyAvailableTest
3030
import com.flowcrypt.email.util.PrivateKeysManager
31+
import org.junit.Ignore
3132
import org.junit.Rule
3233
import org.junit.Test
3334
import org.junit.rules.RuleChain
@@ -61,6 +62,7 @@ class ComposeScreenNoKeyAvailableSingleKeyWithPassphraseInDatabaseFlowTest : Bas
6162
@Test
6263
@FlakyTest
6364
@NotReadyForCI
65+
@Ignore("need to fix")
6466
fun testImportKey() {
6567
doBaseActions {
6668
addTextToClipboard("private key", requireNotNull(pgpKeyDetails.privateKey))

FlowCrypt/src/androidTest/java/com/flowcrypt/email/ui/ComposeScreenNoKeyAvailableSingleKeyWithPassphraseInRamFlowTest.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* © 2016-present FlowCrypt a.s. Limitations apply. Contact human@flowcrypt.com
3-
* Contributors: DenBond7
3+
* Contributors: denbond7
44
*/
55

66
package com.flowcrypt.email.ui
@@ -57,6 +57,7 @@ class ComposeScreenNoKeyAvailableSingleKeyWithPassphraseInRamFlowTest : BaseComp
5757
@Test
5858
@FlakyTest
5959
@NotReadyForCI
60+
@Ignore("need to fix")
6061
fun testAddEmailToExistingKey() {
6162
doTestAddEmailToExistingKey {
6263
onView(withId(R.id.buttonOk))

FlowCrypt/src/androidTest/java/com/flowcrypt/email/ui/DraftsGmailAPITestCorrectSendingFlowTest.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ import okhttp3.mockwebserver.MockResponse
4343
import okhttp3.mockwebserver.RecordedRequest
4444
import org.hamcrest.core.AllOf.allOf
4545
import org.junit.Assert.assertEquals
46+
import org.junit.Ignore
4647
import org.junit.Rule
4748
import org.junit.Test
4849
import org.junit.rules.RuleChain
@@ -134,6 +135,7 @@ class DraftsGmailAPITestCorrectSendingFlowTest : BaseDraftsGmailAPIFlowTest() {
134135

135136
@Test
136137
@FlakyTest
138+
@Ignore("need to fix")
137139
fun testCorrectDraftsSending() {
138140
sentCache.clear()
139141
moveToDraftFolder()

FlowCrypt/src/androidTest/java/com/flowcrypt/email/ui/MessageDetailsFlowTest.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ import org.junit.Assert.assertArrayEquals
8585
import org.junit.Assert.assertEquals
8686
import org.junit.Assert.assertNotNull
8787
import org.junit.Before
88+
import org.junit.Ignore
8889
import org.junit.Rule
8990
import org.junit.Test
9091
import org.junit.rules.RuleChain
@@ -264,6 +265,7 @@ class MessageDetailsFlowTest : BaseMessageDetailsFlowTest() {
264265
@Test
265266
@FlakyTest
266267
@NotReadyForCI
268+
@Ignore("need to fix")
267269
fun testDecryptionError_FORMAT_BadlyFormattedMsg() {
268270
val msgInfo = getMsgInfo(
269271
path = "messages/info/encrypted_msg_info_text_error_badly_formatted.json",

FlowCrypt/src/androidTest/java/com/flowcrypt/email/ui/gmailapi/EncryptedComposeGmailApiFlow.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import okhttp3.mockwebserver.Dispatcher
3131
import okhttp3.mockwebserver.MockResponse
3232
import okhttp3.mockwebserver.RecordedRequest
3333
import org.junit.Assert.assertEquals
34+
import org.junit.Ignore
3435
import org.junit.Rule
3536
import org.junit.Test
3637
import org.junit.rules.RuleChain
@@ -73,6 +74,7 @@ class EncryptedComposeGmailApiFlow : BaseComposeGmailFlow() {
7374

7475
@Test
7576
@FlakyTest
77+
@Ignore("need to fix")
7678
fun testSending() {
7779
//enqueue outgoing message
7880
onView(withId(R.id.menuActionSend))
@@ -86,4 +88,4 @@ class EncryptedComposeGmailApiFlow : BaseComposeGmailFlow() {
8688
checkEncryptedMessagePart(encryptedMessagePart)
8789
}
8890
}
89-
}
91+
}

FlowCrypt/src/androidTest/java/com/flowcrypt/email/ui/gmailapi/EncryptedForwardOfEncryptedMessageWithOriginalAttachmentsComposeGmailApiFlow.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ import okhttp3.mockwebserver.Dispatcher
4242
import okhttp3.mockwebserver.MockResponse
4343
import okhttp3.mockwebserver.RecordedRequest
4444
import org.junit.Assert.assertEquals
45+
import org.junit.Ignore
4546
import org.junit.Rule
4647
import org.junit.Test
4748
import org.junit.rules.RuleChain
@@ -86,6 +87,7 @@ class EncryptedForwardOfEncryptedMessageWithOriginalAttachmentsComposeGmailApiFl
8687

8788
@Test
8889
@FlakyTest
90+
@Ignore("need to fix")
8991
fun testSending() {
9092
//need to wait while the app loads the messages list
9193
waitForObjectWithText(SUBJECT_EXISTING_STANDARD, TimeUnit.SECONDS.toMillis(10))
@@ -186,4 +188,4 @@ class EncryptedForwardOfEncryptedMessageWithOriginalAttachmentsComposeGmailApiFl
186188
checkEncryptedAttachment(multipart.getBodyPart(2), ATTACHMENT_NAME_3, attachmentsDataCache[2])
187189
}
188190
}
189-
}
191+
}

FlowCrypt/src/androidTest/java/com/flowcrypt/email/ui/gmailapi/EncryptedForwardOfStandardMessageWithOriginalAttachmentsComposeGmailApiFlow.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ import okhttp3.mockwebserver.Dispatcher
4444
import okhttp3.mockwebserver.MockResponse
4545
import okhttp3.mockwebserver.RecordedRequest
4646
import org.junit.Assert.assertEquals
47+
import org.junit.Ignore
4748
import org.junit.Rule
4849
import org.junit.Test
4950
import org.junit.rules.RuleChain
@@ -88,6 +89,7 @@ class EncryptedForwardOfStandardMessageWithOriginalAttachmentsComposeGmailApiFlo
8889

8990
@Test
9091
@FlakyTest
92+
@Ignore("need to fix")
9193
fun testSending() {
9294
//need to wait while the app loads the messages list
9395
waitForObjectWithText(SUBJECT_EXISTING_STANDARD, TimeUnit.SECONDS.toMillis(10))
@@ -188,4 +190,4 @@ class EncryptedForwardOfStandardMessageWithOriginalAttachmentsComposeGmailApiFlo
188190
checkEncryptedAttachment(multipart.getBodyPart(2), ATTACHMENT_NAME_3, attachmentsDataCache[2])
189191
}
190192
}
191-
}
193+
}

0 commit comments

Comments
 (0)