Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Your test are loading..." keep showing when clicking on login button #27989

Closed
PranjalRsystems opened this issue Oct 6, 2023 · 2 comments
Closed
Labels
stale no activity on this issue for a long period

Comments

@PranjalRsystems
Copy link

Current behavior

I am new to cypress. I am trying to execute some steps on a salesforce app though cypress.

I am trying to login on this URL - "https://servicetitan--cpqdev0830.sandbox.my.salesforce.com" which is working fine but after clicking on login button it is redirecting to another URL - "https://servicetitan--cpqdev0830.sandbox.lightning.force.com/lightning/page/home". At this point my test runner gets into an infinite reload mode and nothing shows up in the logs too.

Also the element inspector doesn't work on this page.

Attaching the video of the execution below -

Cypress_Loading_issue.mp4

Desired behavior

The test runner should not get reloaded when moving from one URL to another and the logs should also gets generated.

Test code to reproduce

Test case file -

import { LoginPage } from "./pages/login_page"

const loginpage = new LoginPage

it('POM', function(){

// Cypress.on('uncaught:exception', (err, runnable) => {
// console.log(err);
// return false;
// })
cy.visit('/')
loginpage.enterUsername('[email protected]')
loginpage.enterPassword('anudeep@169')
loginpage.clickLogin()
loginpage.clickSetup()
})

Web Page FIle -

export class LoginPage{

username_textbox = '#username'
password_textbox = '#password'
login_button = '#Login'
setup_button = 'a[class*="setup "]'

enterUsername(username){
cy.get(this.username_textbox).type(username)

}

enterPassword(password){
cy.get(this.password_textbox).type(password)

}

clickLogin(){
cy.get(this.login_button).click()

}

clickSetup(){
cy.get(this.setup_button).click()

}

}

Cypress.config file

const { defineConfig } = require("cypress");

module.exports = defineConfig({
e2e: {
defaultCommandTimeout:20000,
setupNodeEvents(on, config) {
// implement node event listeners here
},
baseUrl : 'https://servicetitan--cpqdev0830.sandbox.my.salesforce.com'
},
});

Cypress Version

13.3.0

Node version

16.20.2

Operating System

Windows 11

Debug Logs

No response

Other

No response

@cypress-app-bot
Copy link
Collaborator

This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.

@cypress-app-bot cypress-app-bot added the stale no activity on this issue for a long period label Apr 4, 2024
@cypress-app-bot
Copy link
Collaborator

This issue has been closed due to inactivity.

@cypress-app-bot cypress-app-bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale no activity on this issue for a long period
Projects
None yet
Development

No branches or pull requests

2 participants