Cant login to my app using Cypress

1
Hi all, I am using Cypress testing on my Mendix app, but this test won’t log in : /// <reference types="cypress" /> context('Actions', () => { it('should go all the way', () => { cy.visit('http://localhost:8080'); cy.get('#usernameInput').type('myLogin'); cy.get('#passwordInput').type('myPassword'); cy.get('#loginButton').click(); }) }) After clicking the login button, it waits for a new page indefinitely. Note that when I use a wrong username or password, I receive the usual error message. Logs in Mendix’s console are as follows: It seems that after logging in, it tries to redirect to __/index.html (which of course doesn’t exist). Have you ever encountered this issue ? Thanks in advance, Etienne
asked
1 answers
0

Use

    cy.get('.username').type('MxAdmin');
    cy.get('.password').type('1');
    cy.get('.submit').click();

Depends on the classes used in your version, but this one works with 7.23.x

answered