Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix part of #3602 Added label for HomeActivity #3850

Merged
merged 22 commits into from
Nov 17, 2021
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
0a445ba
Label added for HomeActivity
vrajdesai78 Sep 27, 2021
edcbefb
HomeActivity removed from label exemptions
vrajdesai78 Sep 28, 2021
820c1bd
Removed translatable=false
vrajdesai78 Sep 29, 2021
ea83bd0
Test created for HomeActivity
vrajdesai78 Sep 29, 2021
dc92bc2
Merge branch 'add-label-for-homeactivity' of https://github.com/vrajd…
vrajdesai78 Sep 29, 2021
53bbb7a
Merge branch 'develop' into add-label-for-homeactivity
vrajdesai78 Sep 29, 2021
69adfff
removed summary value
vrajdesai78 Oct 12, 2021
9a9cdd6
Update deploymentTargetDropDown.xml
vrajdesai78 Oct 19, 2021
abcd039
Update deploymentTargetDropDown.xml
vrajdesai78 Oct 19, 2021
f304f1d
Updated testcase
vrajdesai78 Oct 19, 2021
9e580fd
Updated strings.xml
vrajdesai78 Oct 26, 2021
445304d
Delete deploymentTargetDropDown.xml
vrajdesai78 Nov 1, 2021
05a3e52
ActivityTestRule removed
vrajdesai78 Nov 1, 2021
dd5c371
Merge branch 'add-label-for-homeactivity' of https://github.com/vrajd…
vrajdesai78 Nov 1, 2021
7da2231
multiple home string removed
vrajdesai78 Nov 11, 2021
825695e
.idea/runConfigurations.xml file reverted back
vrajdesai78 Nov 12, 2021
1b7ea3e
Removed unused imports
vrajdesai78 Nov 12, 2021
af264b5
reformated code
vrajdesai78 Nov 12, 2021
08b7ae1
Fixed unnecessary changes
vrajdesai78 Nov 13, 2021
680c4e2
String.xml updated
vrajdesai78 Nov 13, 2021
3385770
removed changes from strings.xml
vrajdesai78 Nov 13, 2021
d113c5b
strings.xml updated removed unncessary changes
vrajdesai78 Nov 13, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updated testcase
  • Loading branch information
vrajdesai78 committed Oct 19, 2021
commit f304f1d6117afd90f12748851eed2126f7675538
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.recyclerview.widget.RecyclerView
import androidx.test.core.app.ActivityScenario
import androidx.test.core.app.ActivityScenario.launch
import androidx.test.core.app.ApplicationProvider
import androidx.test.espresso.Espresso.onView
Expand All @@ -29,6 +30,7 @@ import androidx.test.espresso.matcher.ViewMatchers.isRoot
import androidx.test.espresso.matcher.ViewMatchers.withEffectiveVisibility
import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.espresso.matcher.ViewMatchers.withText
import androidx.test.ext.junit.rules.ActivityScenarioRule
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.rule.ActivityTestRule
import com.google.common.truth.Truth.assertThat
Expand Down Expand Up @@ -231,13 +233,12 @@ class HomeActivityTest {

@Test
fun testHomeActivity_hasCorrectActivityLabel() {
rt4914 marked this conversation as resolved.
Show resolved Hide resolved
activityTestRule.launchActivity(
createHomeActivityIntent(
internalProfileId
)
)
val title = activityTestRule.activity.title
assertThat(title).isEqualTo(context.getString(R.string.home_activity_title))
launch(HomeActivity::class.java).use { scenario ->
scenario.onActivity { activity ->
val title = activity.title
assertThat(title).isEqualTo(context.getString(R.string.home_activity_title))
}
}
}

@Test
Expand Down