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

Page Load takes a long time time to finish when "experimentalSourceRewriting" is set to true. #7669

Closed
axleross09 opened this issue Jun 11, 2020 · 4 comments
Labels
type: duplicate This issue or pull request already exists

Comments

@axleross09
Copy link

axleross09 commented Jun 11, 2020

Current behavior:

Whenever I set "experimentalSourceRewriting" to true in my Env Config, Page Load keeps on loading after signing in to the page even though in the Browser window, The page has loaded completely.

image

This will eventually time out and will stop the testing and will not proceed the next steps of the testing.

Desired behavior:

Page Load will complete and proceed to the other steps.

Test code to reproduce

it('Add Valid Company Details with Required Fields only', () => {
  var Companyname = chance.company()
  cy.log(Companyname)

  Cypress.on('window:before:load', (win) => {
    Object.defineProperty(win, 'self', {
      get: () => {
        return window.top
      }
    })
  })

  cy.login()
  cy.wait(5000)
  cy.visit('/admin/insites/#/crm/add-company', { timeout: 60000 })
  cy.reload()
  cy.log(Companyname)
  cy.get('.large-4:nth-child(2) > .hydrated > .ins-input-wrap > .ins-sw-in > .input-wrap > .ins-form-field').type(Companyname)
  cy.get('.ins-button-options-wrap > .button-wrap > .ins-button > div > .btn__label').click()
})

Please note that I am using Chance.js to generate Strings and created a Custom Command for the whole login process.

Versions

Cypress 4.8, Mac OS Catalina, Chrome Version 83.0.4103.61

@learnuser
Copy link

Good evening - Just wanted to check if this defect is on your road map anytime in near future?
Thanks for all your work and making cypress awesome!

@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 May 17, 2023
@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 Jun 2, 2023
@jennifer-shehane
Copy link
Member

Duplicate of #7565

@jennifer-shehane jennifer-shehane marked this as a duplicate of #7565 Apr 30, 2024
@jennifer-shehane jennifer-shehane added type: duplicate This issue or pull request already exists and removed type: bug stage: needs investigating Someone from Cypress needs to look at this type: performance 🏃‍♀️ Performance related experiment: source rewriting Issues when using experimentalSourceRewriting stale no activity on this issue for a long period labels Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

5 participants