Azure / Azure/playwright-workspaces

[BUG] No Option to use local Browser for debugging .NET/NUnit

Open
#46 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
No language data
Stars
14
Forks
18
Avg merge
1h 18m
Merged PRs (30d)
2

Description

## 🐞 Describe the bug

The new .NET/NUnit package `Azure.Developer.Playwright.NUnit` (v 1.0.0) does not provide any option to override the browser configuration to use a local browser for debugging. It always uses cloud hosted browsers even when debugging locally, which worked by default in the MPT platform.

As per the documentation, there was a configurable option available in the [preview version](https://learn.microsoft.com/mt-mt/dotnet/api/azure.developer.playwright.playwrightservicebrowserclientoptions.usecloudhostedbrowsers?view=azure-dotnet-preview) of the library, to override this behavior via `UseCloudHostedBrowsers` setting in `TestRunParameters`, but for some reason it was removed in the GA release.

Can you please suggest/provide a configurable option to debug tests using a locally installed playwright browser? Currently we have to workaround it with preprocessor directive in the C#, but that's not a clean approach.

## ✅ Expected behavior

Should allow configurable setting to use Local Browser instead of a Cloud Browser for test debugging.

## 🔁 To reproduce

Steps to reproduce the behavior:
1. Configure the app as per the sample provided for .NET/NUnit.
2. Try debugging a test, the test starts execution in a cloud browser.
3. There is no way to change this behavior without updating the code.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.