So, I run tests on Cypress, but my company now decided to switch to B2C Azure AD , so now my login automated test on cypress doesnt work anymore. Therefore, I went to my google friend to search for solutions, and most people seems to recommend using puppeteer to grab the login token and return it to cypress, so that it can resume the next tests.
The problem, however, is that on Local Storage or Session Storage (tab "Application" of the devtools), at no moment there is any "key" or "value", so there is never any token there - Not before the login, not during the login, not after the login. They are always empty. From all examples I saw, people always grab the token from Local Storage.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…