mfrachet / cypress-audit

⚡ Run Lighthouse and Pa11y audits directly in your E2E test suites
https://mfrachet.github.io/cypress-audit/
MIT License
352 stars 43 forks source link

3rd party authentication scenario: lighthouse runs the login page on a separate new tab #236

Open kmock930 opened 10 months ago

kmock930 commented 10 months ago

Hi guys, I tried to look into this guide https://github.com/mfrachet/cypress-audit/issues/65 (and many similar ones on the internet) but still cannot resolve my issue. Basically, I am writing performance test cases in Cypress for my website. It launches from a third-party Amazon Cognito sign-in page. So when I go to my website, at first it will redirect me to the Cognito sign-in page, and then after signing in, I will be redirected back to the home page of my website. What I want to test is the performance metrics of different actions performed on my website. But no matter what, I have to go through the login process. Here's the problem that I encounter:

So my question here is:

Thanks. Feel free to comment. PS Since my codes are private, I am unfortunately unable to share in the community, but feel free to arrange meetings with me to review and solve it together. Look forward to any solutions! 💯