File tree Expand file tree Collapse file tree
FlowCrypt/src/androidTest/java/com/flowcrypt/email/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ import com.flowcrypt.email.util.exception.CommonConnectionException
3232import com.google.gson.Gson
3333import okhttp3.mockwebserver.MockResponse
3434import okhttp3.mockwebserver.RecordedRequest
35+ import org.hamcrest.Matchers.anyOf
3536import org.hamcrest.Matchers.containsString
3637import org.hamcrest.Matchers.`is`
3738import 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 }
You can’t perform that action at this time.
0 commit comments