microsoft / playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
https://playwright.dev
Apache License 2.0
63.91k stars 3.46k forks source link

[Bug]: Redirect after Azure Entra / AAD - B2C Login fails with dotnet / Docker in Azure dev ops pipeline #31548

Open gauravkhuraana opened 5 days ago

gauravkhuraana commented 5 days ago

Version

1.45 ( via docker jammy)

Steps to reproduce

Steps to reproduce

Create a Blazor Server app with activated azure ad authentication as described here or Pick up any app which has B2C Enabled

Try to do a login via playwright in docker dotnet

Expected behavior

Redirect to the home page of the application after validation via B2C

Actual behavior

it never lands on the home page and system fails with expect etc error as home page never came IN traces I can see after sign in button is pressed home page never loads

all the cases where we are validating just home page works well

Additional context

The problem is similar as shown here but our is with 1.45 docker / dotnet

https://github.com/microsoft/playwright-dotnet/issues/2884

Environment

System:
 Containerized Docker 

 pool:
   vmImage: 'ubuntu-latest'
 container: mcr.microsoft.com/playwright/dotnet:v1.45.0-jammy

Test run ok in local machine without docker without any issue but in docker container in azure dev ops pipeline it fails with error as actual application page does not load and fails in B2C
mxschmitt commented 4 days ago

I'm unfortunately not able to create a app registration in our tenant (due to compliance) / have a test entra directory available. Would it be possible to share a deployed setup somewhere which we can use? Ideally something we just run with dotnet test?