Skip to content

Commit ea3e3d3

Browse files
update the sample code in playwrighttesting (#47135)
* update the sample code * changes something in mpg to trigger the mgmt ci * update snippets
1 parent ddfca56 commit ea3e3d3

File tree

6 files changed

+9
-10
lines changed

6 files changed

+9
-10
lines changed

sdk/playwrighttesting/Azure.Developer.MicrosoftPlaywrightTesting.NUnit/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Create a file `PlaywrightServiceSetup.cs` in the root directory with the below c
5555
```C# Snippet:Sample2_SetDefaultAuthenticationMechanism
5656
using Azure.Developer.MicrosoftPlaywrightTesting.NUnit;
5757

58-
namespace PlaywrightTests; // Remember to change this as per your project namespace
58+
namespace PlaywrightTests.Sample2; // Remember to change this as per your project namespace
5959
6060
[SetUpFixture]
6161
public class PlaywrightServiceSetup : PlaywrightServiceNUnit {};

sdk/playwrighttesting/Azure.Developer.MicrosoftPlaywrightTesting.NUnit/samples/Sample1_CustomisingServiceParameters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ dotnet test --settings .runsettings
4242

4343
This issue only impacts the reporting feature. Currently, the service provides minimal support for the following [Azure Credential types.](https://learn.microsoft.com/dotnet/api/overview/azure/identity-readme?view=azure-dotnet#credential-classes)
4444

45-
Along with this, we also support passing a Managed Identity ClientId to be used along with `DefaultAzureCredential` and `ManagedIdentityCredential`.
45+
Along with this, we also support passing a Managed Identity ClientId to be used along with `DefaultAzureCredential` and `ManagedIdentityCredential`.
4646

4747
If you only want to use cloud-hosted browsers along with your tests, you can disable the reporting feature by removing the logger from the runsettings file and then modify the `PlaywrightServiceSetup.cs` file as per the following.
4848

@@ -51,7 +51,7 @@ using Azure.Core;
5151
using Azure.Developer.MicrosoftPlaywrightTesting.NUnit;
5252
using Azure.Identity;
5353

54-
namespace PlaywrightTests;
54+
namespace PlaywrightTests.Sample1; // Remember to change this as per your project namespace
5555
5656
[SetUpFixture]
5757
public class PlaywrightServiceSetup : PlaywrightServiceNUnit

sdk/playwrighttesting/Azure.Developer.MicrosoftPlaywrightTesting.NUnit/samples/Sample2_SetDefaultAuthenticationMechanism.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This guide will walk you through the steps to integrate your Playwright project
1111
```C# Snippet:Sample2_SetDefaultAuthenticationMechanism
1212
using Azure.Developer.MicrosoftPlaywrightTesting.NUnit;
1313

14-
namespace PlaywrightTests; // Remember to change this as per your project namespace
14+
namespace PlaywrightTests.Sample2; // Remember to change this as per your project namespace
1515
1616
[SetUpFixture]
1717
public class PlaywrightServiceSetup : PlaywrightServiceNUnit {};
@@ -54,4 +54,4 @@ Run Playwright tests against browsers managed by the service using the configura
5454

5555
```dotnetcli
5656
dotnet test --settings .runsettings
57-
```
57+
```

sdk/playwrighttesting/Azure.Developer.MicrosoftPlaywrightTesting.NUnit/tests/samples/Sample1_CustomisingServiceParameters.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using Azure.Developer.MicrosoftPlaywrightTesting.NUnit;
77
using Azure.Identity;
88

9-
namespace PlaywrightTests;
9+
namespace PlaywrightTests.Sample1; // Remember to change this as per your project namespace
1010

1111
[SetUpFixture]
1212
#if SNIPPET
@@ -23,4 +23,4 @@ public PlaywrightServiceSetup() : base(managedIdentityCredential) {}
2323
public Sample1ServiceSetup() : base(managedIdentityCredential) {}
2424
#endif
2525
}
26-
#endregion
26+
#endregion

sdk/playwrighttesting/Azure.Developer.MicrosoftPlaywrightTesting.NUnit/tests/samples/Sample2_SetDefaultAuthenticationMechanism.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
#region Snippet:Sample2_SetDefaultAuthenticationMechanism
55
using Azure.Developer.MicrosoftPlaywrightTesting.NUnit;
66

7-
namespace PlaywrightTests; // Remember to change this as per your project namespace
7+
namespace PlaywrightTests.Sample2; // Remember to change this as per your project namespace
88

99
[SetUpFixture]
1010
#if SNIPPET
1111
public class PlaywrightServiceSetup : PlaywrightServiceNUnit {};
1212
#else
1313
public class Sample2ServiceSetup : PlaywrightServiceNUnit { };
1414
#endif
15-
#endregion
15+
#endregion

sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/src/autorest.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ skip-csproj: true
1818
modelerfour:
1919
flatten-payloads: false
2020
use-model-reader-writer: true
21-
use-write-core: true
2221

2322
#mgmt-debug:
2423
# show-serialized-names: true

0 commit comments

Comments
 (0)