Skip to content

Laravel route "login" does not exist. #55

@troccoli

Description

@troccoli

I'm using Cypress 10, which may be relevant, and version 2.2.1 of this package.

I have a simple test to check the login form works

describe('Login', function () {
    it('redirects to the home page once logged in', function () {
        cy.visit({route: 'login'})
            .get('#email').type('super-admin@example.com')
            .get('#password').type('password')
            .get('[type="submit"]').click()
            .url().should('eq', Cypress.config().baseUrl + '/');
    });
});

The test passes, but I get the message Laravel route "login" does not exist.

Screenshot 2022-06-04 at 15 31 05

It clearly exists so I'm not sure what is that about. Besides, the message in an assertion and it's green, which indicates it's not an error (which is correct).

Could it be that maybe the package is trying to assert the route exist rather than it doesn't?

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