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

[Bug]: Cannot navigate to "For you" from "Interests" if opened through search flow #997

Open
3 tasks done
rozkminiacz opened this issue Oct 24, 2023 · 1 comment
Open
3 tasks done
Labels
bug Something isn't working

Comments

@rozkminiacz
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Is there a StackOverflow question about this issue?

  • I have searched StackOverflow

What happened?

A bug happened!

If you open "Interests" section using search flow, you cannot navigate to "For you" section using bottom nav.

May be similar to:
#867

Maestro flow:

maestro-record.2.mp4

flow.yml

appId: com.google.samples.apps.nowinandroid
---
- clearState
- launchApp:
    permissions: { all: deny }
- tapOn:
    id: "com.android.permissioncontroller:id/permission_allow_button"
- runFlow: "search_flow.yml"

- tapOn: "For you"
- assertVisible: "What are you interested in?"

search_flow.yml

appId: com.google.samples.apps.nowinandroid
---
- tapOn: "Search"
- inputText: "publish"
- assertVisible: "Publishing & Distribution"
- tapOn: "Publishing & Distribution"
- assertVisible: "Everything to do with publishing and distributing your app, including Google Play."

- scrollUntilVisible:
    element: "Evolution of Crash Management.*"
    direction: DOWN

Relevant logcat output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@rozkminiacz rozkminiacz added the bug Something isn't working label Oct 24, 2023
@rozkminiacz rozkminiacz changed the title [Bug]: [Bug]: Cannot navigate to "For you" from "Interests" if opened through search flow Oct 25, 2023
@chakshuharsh
Copy link

I believe that this issue is due to topLevelNavOptions in NiaAppState which is causing this navigation bug
I tried removing them in function calls and now we can easily navigate to every topLevelDestination even opened through search flow when (topLevelDestination) { FOR_YOU -> navController.navigateToForYou() BOOKMARKS -> navController.navigateToBookmarks() INTERESTS -> navController.navigateToInterestsGraph() } @tunjid, @SimonMarquis am I correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants