cypress: I can't log in on an application while in cypress

Current behavior

Hello, I launch a web page to test some steps then I click a new page link which opens the linked document in the same frame as it was clicked. (_self)

Then after web page loads

Given('login maximo successfully', () => {
			cy.get('#username').type('username')
			cy.get('#password').type('password')
			cy.get('#loginbutton').click()
})

this is the web page that I try to log in with cypress. image You can see there are no error messages or something interesting. image image

username and password are correct, when I use my own browser and when I try to join as manually it login without problem. cypress writes username and password then clicks login but just

(form sub)–submitting form– (page load)–page loaded–

wrotes on the cypress log.

Desired behavior

i want to cypress login as i do manually.

Test code to reproduce

Given(‘login maximo successfully’, () => { cy.get(‘#username’).type(‘username’) cy.get(‘#password’).type(‘password’) cy.get(‘#loginbutton’).click() })

Cypress Version

10.4.0

Node version

v18.6.0

Operating System

windows

Debug Logs

No response

Other

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 19 (7 by maintainers)

Most upvoted comments

hello unfortunately, no.

Hi @Bariscanates404 , have you found a solution for your problem. I have the same issue but with actual version 12.4.1 and also was in previous versions. I can confirm your szenario and the result. for me it did the same . The button is clickable and forward me to another url when I do that outside of cypress but inside cypress nothing will be happend and the test is green. It will be helpfull when you share your state untill now and how you did that. Thanks!