|
|
@ -4,6 +4,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
package org.mozilla.fenix.experimentintegration
|
|
|
|
package org.mozilla.fenix.experimentintegration
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import android.content.pm.ActivityInfo
|
|
|
|
import org.junit.After
|
|
|
|
import org.junit.After
|
|
|
|
import org.junit.Before
|
|
|
|
import org.junit.Before
|
|
|
|
import org.junit.Rule
|
|
|
|
import org.junit.Rule
|
|
|
@ -26,6 +27,7 @@ class SurveyExperimentIntegrationTest {
|
|
|
|
isJumpBackInCFREnabled = false,
|
|
|
|
isJumpBackInCFREnabled = false,
|
|
|
|
isPWAsPromptEnabled = false,
|
|
|
|
isPWAsPromptEnabled = false,
|
|
|
|
isTCPCFREnabled = false,
|
|
|
|
isTCPCFREnabled = false,
|
|
|
|
|
|
|
|
isDeleteSitePermissionsEnabled = true,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
@Before
|
|
|
|
@Before
|
|
|
@ -69,4 +71,13 @@ class SurveyExperimentIntegrationTest {
|
|
|
|
verifyExperimentExists(experimentName)
|
|
|
|
verifyExperimentExists(experimentName)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
|
|
|
fun checkSurveyLandscapeLooksCorrect() {
|
|
|
|
|
|
|
|
activityTestRule.activity.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE
|
|
|
|
|
|
|
|
browserScreen {
|
|
|
|
|
|
|
|
verifySurveyNoThanksButton()
|
|
|
|
|
|
|
|
verifySurveyButton()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|