Skip to content

Commit 0047b9d

Browse files
committed
Fixed some test
1 parent 0d884c7 commit 0047b9d

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import com.flowcrypt.email.util.exception.CommonConnectionException
3232
import com.google.gson.Gson
3333
import okhttp3.mockwebserver.MockResponse
3434
import okhttp3.mockwebserver.RecordedRequest
35+
import org.hamcrest.Matchers.anyOf
3536
import org.hamcrest.Matchers.containsString
3637
import org.hamcrest.Matchers.`is`
3738
import org.hamcrest.Matchers.not
@@ -187,7 +188,14 @@ class FesDuringSetupEnterpriseFlowTest : BaseFesDuringSetupFlowTest() {
187188
fun testFesAvailableSSLError() {
188189
setupAndClickSignInButton(genMockGoogleSignInAccountJson(EMAIL_FES_SSL_ERROR))
189190
//as our mock server support only flowcrypt.test and flowcrypt.example we will receive
190-
onView(withText(containsString("No address associated with hostname")))
191+
onView(
192+
withText(
193+
anyOf(
194+
containsString("No address associated with hostname"),
195+
containsString("Hostname fes.wrongssl.test not verified")
196+
)
197+
)
198+
)
191199
.inRoot(withDecorView(not(`is`(decorView))))
192200
.check(matches(isDisplayed()))
193201
}

0 commit comments

Comments
 (0)