Cypress and Adobe Analytics Failure
I am using Cypress automation, at the moment I am testing/writing tests for Analytics. With Google Analytics I was easily able to write my tests using cy.intercept() function and was successfully able to assert Google Analytics. But... with Adobe Analtics the cy.intercept() function doesn't see Adobe Analytics. I been researching solutions with no luck, 1. there is very little info 2. their solutions suggest to use cy.interept(). Here is what I have so far:
The prior steps are to login the website and turn on Adobe Analytics. Then I am supposed to assert that Adobe Analytics are up and running. I am using this:
cy.intercept('POST', 'your_website', { statusCode: 200 }).as('adobe-analytics')
cy.wait(5000)
cy.log('**Step 6**')
cy.waitForStableDOM({timeout: 55000})
cy.wait(5000)
cy.wait('@adobe-analytics').get('@adobe-analytics')
.then((xhr) =>{
console.log("Adobe-Analytics Response:", xhr)
})
