microsoft / playwright-testing-service

MIT License
83 stars 13 forks source link

[BUG]:Wrong tenant selected during login #83

Closed wi5nia closed 1 month ago

wi5nia commented 10 months ago

Describe the bug When I go to https://playwright.microsoft.com/ and click "Sign in" I use my account: tom...@...ive.com. The problem is that the website want's to use a tenant to which my account is no longer linked to thus I can't login.

When I do the same thing in private mode it works (although it selects the first tenant it can find on the list instead of my default one but at least I get to the Playright portal.

I've already tried cleaning up cookies (multiple times and yes - all cookies) and still nothing.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://playwright.microsoft.com/
  2. Click "Sign in"
  3. Use account tom...@...ive.com

Expected behavior The login process to finish in the Playright portal preferable with the default tenant selected.

Screenshots

image image

Additional context Using Edge on MacOs - all latest versions.

AB#1923149

prakash-amit commented 10 months ago

Hi @wi5nia,

Thanks for reporting this issue.

We wanted some inputs from your side to help figure out exact issue you are facing:

  1. Can you confirm if you are able to login and see screen similar to second screen in non-private mode and then you are trying to switch tenant or you are not able to proceed further from account selection window as shown in first screenshot.
  2. If login is not successful as I can see in first screenshot, could you open network tab ( Command+Option+I and select network tab) before trying login, See if https://management.azure.com/tenants?api-version=2022-09-01 call is made and in response list are you getting the unlinked tenant as first tenant.

Thanks for your support! cc @vanshisingh

wi5nia commented 10 months ago
  1. I am not able to log-in in a non-inprivate window. It always ends up on the 1st screen I posted. The second screen is from an in-private window where btw Playright selects the first tenant on the list and not the one which is my default in Azure portal.
  2. I've checked and I don't see a call to such an url. I can share a screen recording privately with you if you reach out.
vvs11 commented 1 month ago

Hi @wi5nia Are you still seeing this issue? We have made several updates to improve the experience in this flow. Let us know if this still exists.

wi5nia commented 1 month ago

No, because now the directory switcher in Playwright works like it should :)