I’m trying a page visit using the following Cypress code. However, the page occasionally does not load correctly because Cypress is blocking the cross-origin API request to Magnolia CMS (https://www.magnolia-cms.com/), where the page content is loaded. The application front-end has been created in React.
describe('example to-do app', () => {
beforeEach(() => {
cy.visit('https://lz1public-uat.staysuregroup.com/')
cy.wait(10000)
})
it('Verify Page Visit', () => {
console.log('Visit completed')
})
})
I’m running the test in Chrome with following cypress tags in cypress.config.js
chromeWebSecurity: false,
experimentalModifyObstructiveThirdPartyCode: true,