Skip to content

Commit 26c1dfc

Browse files
committed
setting headless to true
1 parent 5406c43 commit 26c1dfc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

UiTests/AnyOrgOrPersonalUiTest/AnyOrgOrPersonalTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public async Task ChallengeUser_MicrosoftIdFlow_LocalApp_ValidEmailPasswordCreds
5252
// Arrange Playwright setup, to see the browser UI set Headless = false.
5353
const string TraceFileName = TraceFileClassName + "_LoginLogout";
5454
using IPlaywright playwright = await Playwright.CreateAsync();
55-
IBrowser browser = await playwright.Chromium.LaunchAsync(new() { Headless = false });
55+
IBrowser browser = await playwright.Chromium.LaunchAsync(new() { Headless = true });
5656
IBrowserContext context = await browser.NewContextAsync(new BrowserNewContextOptions { IgnoreHTTPSErrors = true });
5757
await context.Tracing.StartAsync(new() { Screenshots = true, Snapshots = true, Sources = true });
5858
IPage page = await context.NewPageAsync();

UiTests/B2CUiTest/B2CUiTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public async Task B2C_ValidCreds_LoginLogout()
7171
// Playwright setup. To see browser UI, set 'Headless = false'.
7272
const string TraceFileName = TraceClassName + "_TodoAppFunctionsCorrectly";
7373
using IPlaywright playwright = await Playwright.CreateAsync();
74-
IBrowser browser = await playwright.Chromium.LaunchAsync(new() { Headless = false });
74+
IBrowser browser = await playwright.Chromium.LaunchAsync(new() { Headless = true });
7575
IBrowserContext context = await browser.NewContextAsync(new BrowserNewContextOptions { IgnoreHTTPSErrors = true });
7676
await context.Tracing.StartAsync(new() { Screenshots = true, Snapshots = true, Sources = true });
7777

0 commit comments

Comments
 (0)