Skip to content
Snippets Groups Projects
Commit aee47c45 authored by Mohamed Metwalli's avatar Mohamed Metwalli
Browse files

Add locale change rule in UI tests

parent d69c1cfa
No related branches found
No related tags found
No related merge requests found
...@@ -14,17 +14,23 @@ import io.mockk.MockKAnnotations ...@@ -14,17 +14,23 @@ import io.mockk.MockKAnnotations
import io.mockk.impl.annotations.MockK import io.mockk.impl.annotations.MockK
import org.junit.After import org.junit.After
import org.junit.Before import org.junit.Before
import org.junit.Rule
import org.junit.Test import org.junit.Test
import org.junit.runner.RunWith import org.junit.runner.RunWith
import testhelpers.BaseUITest import testhelpers.BaseUITest
import testhelpers.Screenshot import testhelpers.Screenshot
import tools.fastlane.screengrab.Screengrab import tools.fastlane.screengrab.Screengrab
import tools.fastlane.screengrab.locale.LocaleTestRule
@RunWith(AndroidJUnit4::class) @RunWith(AndroidJUnit4::class)
class OnboardingDeltaInteroperabilityFragmentTest : BaseUITest() { class OnboardingDeltaInteroperabilityFragmentTest : BaseUITest() {
@MockK lateinit var viewModel: OnboardingDeltaInteroperabilityFragmentViewModel @MockK lateinit var viewModel: OnboardingDeltaInteroperabilityFragmentViewModel
@Rule
@JvmField
val localeTestRule = LocaleTestRule()
@Before @Before
fun setup() { fun setup() {
MockKAnnotations.init(this, relaxed = true) MockKAnnotations.init(this, relaxed = true)
......
...@@ -16,17 +16,23 @@ import io.mockk.MockKAnnotations ...@@ -16,17 +16,23 @@ import io.mockk.MockKAnnotations
import io.mockk.impl.annotations.MockK import io.mockk.impl.annotations.MockK
import org.junit.After import org.junit.After
import org.junit.Before import org.junit.Before
import org.junit.Rule
import org.junit.Test import org.junit.Test
import org.junit.runner.RunWith import org.junit.runner.RunWith
import testhelpers.BaseUITest import testhelpers.BaseUITest
import testhelpers.Screenshot import testhelpers.Screenshot
import tools.fastlane.screengrab.Screengrab import tools.fastlane.screengrab.Screengrab
import tools.fastlane.screengrab.locale.LocaleTestRule
@RunWith(AndroidJUnit4::class) @RunWith(AndroidJUnit4::class)
class OnboardingFragmentTest : BaseUITest() { class OnboardingFragmentTest : BaseUITest() {
@MockK lateinit var viewModel: OnboardingFragmentViewModel @MockK lateinit var viewModel: OnboardingFragmentViewModel
@Rule
@JvmField
val localeTestRule = LocaleTestRule()
@Before @Before
fun setUp() { fun setUp() {
MockKAnnotations.init(this, relaxed = true) MockKAnnotations.init(this, relaxed = true)
......
...@@ -14,17 +14,23 @@ import io.mockk.MockKAnnotations ...@@ -14,17 +14,23 @@ import io.mockk.MockKAnnotations
import io.mockk.impl.annotations.MockK import io.mockk.impl.annotations.MockK
import org.junit.After import org.junit.After
import org.junit.Before import org.junit.Before
import org.junit.Rule
import org.junit.Test import org.junit.Test
import org.junit.runner.RunWith import org.junit.runner.RunWith
import testhelpers.BaseUITest import testhelpers.BaseUITest
import testhelpers.Screenshot import testhelpers.Screenshot
import tools.fastlane.screengrab.Screengrab import tools.fastlane.screengrab.Screengrab
import tools.fastlane.screengrab.locale.LocaleTestRule
@RunWith(AndroidJUnit4::class) @RunWith(AndroidJUnit4::class)
class OnboardingNotificationsFragmentTest : BaseUITest() { class OnboardingNotificationsFragmentTest : BaseUITest() {
@MockK lateinit var viewModel: OnboardingNotificationsViewModel @MockK lateinit var viewModel: OnboardingNotificationsViewModel
@Rule
@JvmField
val localeTestRule = LocaleTestRule()
@Before @Before
fun setup() { fun setup() {
MockKAnnotations.init(this, relaxed = true) MockKAnnotations.init(this, relaxed = true)
......
...@@ -13,17 +13,23 @@ import io.mockk.MockKAnnotations ...@@ -13,17 +13,23 @@ import io.mockk.MockKAnnotations
import io.mockk.impl.annotations.MockK import io.mockk.impl.annotations.MockK
import org.junit.After import org.junit.After
import org.junit.Before import org.junit.Before
import org.junit.Rule
import org.junit.Test import org.junit.Test
import org.junit.runner.RunWith import org.junit.runner.RunWith
import testhelpers.BaseUITest import testhelpers.BaseUITest
import testhelpers.Screenshot import testhelpers.Screenshot
import tools.fastlane.screengrab.Screengrab import tools.fastlane.screengrab.Screengrab
import tools.fastlane.screengrab.locale.LocaleTestRule
@RunWith(AndroidJUnit4::class) @RunWith(AndroidJUnit4::class)
class OnboardingPrivacyFragmentTest : BaseUITest() { class OnboardingPrivacyFragmentTest : BaseUITest() {
@MockK lateinit var viewModel: OnboardingPrivacyViewModel @MockK lateinit var viewModel: OnboardingPrivacyViewModel
@Rule
@JvmField
val localeTestRule = LocaleTestRule()
@Before @Before
fun setup() { fun setup() {
MockKAnnotations.init(this, relaxed = true) MockKAnnotations.init(this, relaxed = true)
......
...@@ -14,17 +14,23 @@ import io.mockk.MockKAnnotations ...@@ -14,17 +14,23 @@ import io.mockk.MockKAnnotations
import io.mockk.impl.annotations.MockK import io.mockk.impl.annotations.MockK
import org.junit.After import org.junit.After
import org.junit.Before import org.junit.Before
import org.junit.Rule
import org.junit.Test import org.junit.Test
import org.junit.runner.RunWith import org.junit.runner.RunWith
import testhelpers.BaseUITest import testhelpers.BaseUITest
import testhelpers.Screenshot import testhelpers.Screenshot
import tools.fastlane.screengrab.Screengrab import tools.fastlane.screengrab.Screengrab
import tools.fastlane.screengrab.locale.LocaleTestRule
@RunWith(AndroidJUnit4::class) @RunWith(AndroidJUnit4::class)
class OnboardingTestFragmentTest : BaseUITest() { class OnboardingTestFragmentTest : BaseUITest() {
@MockK lateinit var viewModel: OnboardingTestViewModel @MockK lateinit var viewModel: OnboardingTestViewModel
@Rule
@JvmField
val localeTestRule = LocaleTestRule()
@Before @Before
fun setup() { fun setup() {
MockKAnnotations.init(this, relaxed = true) MockKAnnotations.init(this, relaxed = true)
......
...@@ -14,17 +14,23 @@ import io.mockk.MockKAnnotations ...@@ -14,17 +14,23 @@ import io.mockk.MockKAnnotations
import io.mockk.impl.annotations.MockK import io.mockk.impl.annotations.MockK
import org.junit.After import org.junit.After
import org.junit.Before import org.junit.Before
import org.junit.Rule
import org.junit.Test import org.junit.Test
import org.junit.runner.RunWith import org.junit.runner.RunWith
import testhelpers.BaseUITest import testhelpers.BaseUITest
import testhelpers.Screenshot import testhelpers.Screenshot
import tools.fastlane.screengrab.Screengrab import tools.fastlane.screengrab.Screengrab
import tools.fastlane.screengrab.locale.LocaleTestRule
@RunWith(AndroidJUnit4::class) @RunWith(AndroidJUnit4::class)
class OnboardingTracingFragmentTest : BaseUITest() { class OnboardingTracingFragmentTest : BaseUITest() {
@MockK lateinit var viewModel: OnboardingTracingFragmentViewModel @MockK lateinit var viewModel: OnboardingTracingFragmentViewModel
@Rule
@JvmField
val localeTestRule = LocaleTestRule()
@Before @Before
fun setup() { fun setup() {
MockKAnnotations.init(this, relaxed = true) MockKAnnotations.init(this, relaxed = true)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment