Skip to content

[Awaiting checklist] [Due for payment 2025-06-23] [$250][Back nav] LHN - On tapping device back button to close troubleshoot box from LHN, navigated out of site #58383

Closed

Description

@jponikarchuk

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: V9.1.12-5
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: N
Email or phone of affected tester (no customers): N
Issue reported by: Applause Internal Team
Device used: Redminote 10s android 13
App Component: User Settings

Action Performed:

  1. Open a new tab and go to https://staging.new.expensify.com/home
  2. Login with an account
  3. Perform a 4 finger gesture
  4. Tap device back button

Expected Result:

On tapping device back button to close troubleshoot box from LHN, troubleshoot box must be closed.

Actual Result:

On tapping device back button to close troubleshoot box from LHN, user navigated out of the site.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6769744_1741875111681.Screenrecorder-2025-03-13-19-33-05-338.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021900248434420942939
  • Upwork Job ID: 1900248434420942939
  • Last Price Increase: 2025-03-13
  • Automatic offers:
    • nyomanjyotisa | Contributor | 106559557
Issue OwnerCurrent Issue Owner: @garrettmknight

Activity

  1. added
    Bug
    Daily
    on Mar 13, 2025
  2. melvin-bot commented on Mar 13, 2025

    @melvin-bot

    Triggered auto assignment to @garrettmknight (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  3. changed the title [-]LHN - On tapping device back button to close trouble shoot box from LHN, navigated out of site[/-] [+]LHN - On tapping device back button to close troubleshoot box from LHN, navigated out of site[/+] on Mar 13, 2025
  4. nyomanjyotisa commented on Mar 13, 2025

    @nyomanjyotisa
    Member

    Please re-state the problem that we are trying to solve in this issue.

    LHN - On tapping device back button to close troubleshoot box from LHN, navigated out of site

    What is the root cause of that problem?

    We don't pass the shouldHandleNavigationBack prop to this Modal

    What changes do you think we should make in order to solve the problem?

    Pass shouldHandleNavigationBack here without isMobileChrome() since the issue is on Desktop web as well

    And it will cause another issue where the modal will appear again after we close/goback, because we use toggleTestToolsModal to the onClose prop

    We should create closeTestToolsModal function and pass it to the onClose instead of using toggle function, like we did in all other places

    function closeTestToolsModal() {
        if (isTestToolsModalOpen) {
            Onyx.set(ONYXKEYS.IS_TEST_TOOLS_MODAL_OPEN, false);
        }
    }
    
            <Modal
                isVisible={!!isTestToolsModalOpen}
                type={CONST.MODAL.MODAL_TYPE.CENTERED_SMALL}
                onClose={closeTestToolsModal}
                shouldHandleNavigationBack
            >
    

    What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

    None

    What alternative solutions did you explore? (Optional)

  5. added
    External
    on Mar 13, 2025
  6. changed the title [-]LHN - On tapping device back button to close troubleshoot box from LHN, navigated out of site[/-] [+][$250] LHN - On tapping device back button to close troubleshoot box from LHN, navigated out of site[/+] on Mar 13, 2025
  7. melvin-bot commented on Mar 13, 2025

    @melvin-bot
  8. added
    Help Wanted
    on Mar 13, 2025
  9. melvin-bot commented on Mar 13, 2025

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @hungvu193 (External)

  10. 89 remaining items

  11. changed the title [-][Due for payment 2025-06-23] [$250][Back nav] LHN - On tapping device back button to close troubleshoot box from LHN, navigated out of site[/-] [+][Awaiting checklist] [Due for payment 2025-06-23] [$250][Back nav] LHN - On tapping device back button to close troubleshoot box from LHN, navigated out of site[/+] on Jun 25, 2025
  12. hungvu193 commented on Jun 26, 2025

    @hungvu193
    Contributor

    BugZero Checklist:

    • [Contributor] Classify the bug:
    Bug classification

    Source of bug:

    • 1a. Result of the original design (eg. a case wasn't considered)
    • 1b. Mistake during implementation
    • 1c. Backend bug
    • 1z. Other:

    Where bug was reported:

    • 2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
    • 2b. Reported on staging (eg. found during regression or PR testing)
    • 2d. Reported on a PR
    • 2z. Other:

    Who reported the bug:

    • 3a. Expensify user
    • 3b. Expensify employee
    • 3c. Contributor
    • 3d. QA
    • 3z. Other:
    • [Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.

      Link to comment: N/A. This issue is an edge case that we weren't aware of while implementing TestToolModal with the Modal approach.

    • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.

      Link to discussion: N/A

    • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

    Regression Test Proposal

    Precondition:

    Test:

    1. Login with any account.
    2. Copy the url and paste into new tab, press Enter.
    3. Press command + K on the web to show the TestTool screen.
    4. Press browser back button.
    5. Verify that TestTool page disappears.

    Do we agree 👍 or 👎

  13. garrettmknight commented on Jun 27, 2025

    @garrettmknight
    Contributor

    Thanks! Request when you're ready.

  14. JmillsExpensify commented on Jun 27, 2025

    @JmillsExpensify
    Contributor

    Payment summary:

  15. melvin-bot commented on Jun 30, 2025

    @melvin-bot

    @garrettmknight Whoops! This issue is 2 days overdue. Let's get this updated quick!

  16. melvin-bot commented on Jun 30, 2025

    @melvin-bot

    @garrettmknight Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  17. melvin-bot commented on Jul 2, 2025

    @melvin-bot

    @garrettmknight Eep! 4 days overdue now. Issues have feelings too...

  18. garrettmknight commented on Jul 3, 2025

    @garrettmknight
    Contributor

    $125 approved for @hungvu193

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions