-
Notifications
You must be signed in to change notification settings - Fork 1
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
Create calendar page layout and set up navigation #25
Conversation
Was seeing the following issues when I run tests in NavigationTest: - android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.theperiodpurse.test/androidx.test.core.app.InstrumentationActivityInvoker$EmptyActivity}; have you declared this activity in your AndroidManifest.xml, or does your intent not match its declared <intent-filter>? - android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.theperiodpurse.test/androidx.test.core.app.InstrumentationActivityInvoker$BootstrapActivity}; have you declared this activity in your AndroidManifest.xml, or does your intent not match its declared <intent-filter>? Referred to android/android-test#196 for the fix. Looks like this is fixed in androidx.test:core:1.5.0-alpha02.
@Test | ||
fun appNavHost_clickCalendarFABOnSettingsScreen_navigatesToCalendarScreen() { | ||
navigateToSettingsScreen() | ||
composeTestRule.onNodeWithContentDescription("fab") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There might be a better way of getting the FAB node. It doesn't have text on it so I had to use something like contentDescription. We could look into test tags/making contentDescriptions more standardized
Don't think the AndroidTests (where the navigation tests are) are running on CI since we're only running https://developer.android.com/studio/test/command-line#run-tests-with-gradle |
Yes, you can add that to the job in the workflow |
Something we have to think about is whether its okay to change the CI VM from |
In https://github.com/marketplace/actions/android-emulator-runner, there is a section on reducing startup time through AVD snapshot caching. Maybe that can reduce the 20 minutes? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, the code is very clean 👍
Closes #3 and closes #4.
Added common bottom navigation bar to
CommonComponents.kt
Added Calendar Tab layout to
CalendarScreen.kt
Created
NavigationGraph.kt
to organize routes.Notes:
develop
and this branch, and it wasn't possible to have 2 NavHosts, so I moved the routes defined by @kevinle623 toNavigationGraph.kt
. See commit b8c78b4caf9cdffb3ae699579e9dc21ffd32784candroidx.test.ext:junit
from1.1.3
to1.1.4
to resolve issue seen in e148cd1536f05b72d60bc9c23dfd94b8e47fea55