Skip to content
This repository was archived by the owner on Dec 29, 2023. It is now read-only.
This repository was archived by the owner on Dec 29, 2023. It is now read-only.

Investigate redirection via navigation guard error #120

Description

@ximon18

As part of resolving NLnetLabs/krill#603 Cypress was configured to ignore an error being thrown by the Lagosta JavaScript while running the Cypress tests. The error message was Redirected when going from "/onboarding" to "/interstitial" via a navigation guard.

Is it really safe to ignore this or does this hint at an actual underlying problem?

To test, comment out the following code in tests/ui/cypress/support/index.js (currently only in the Krill dev branch):

if (err.message.includes('Redirected when going from')) {
    // This happens when going from "/onboarding" to "/interstitial" via a navigation guard and is triggered
    // when logging out of Krill.
    // TODO: Is it safe to ignore this or is this pointing to a real bug in Lagosta?
    console.log("Krill UI Test: Ignoring 'Redirected when going from' exception")
    return false
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions