Skip to content

Commit

Permalink
Update src/Playwright.Tests/BrowserContextCSPTests.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt authored Jul 13, 2023
1 parent 9447fa4 commit 44932e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Playwright.Tests/BrowserContextCSPTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public async Task ShouldBypassCSPHeader()
{
var page = await context.NewPageAsync();
await page.GotoAsync(Server.EmptyPage);
var exception = await PlaywrightAssert.ThrowsAsync<PlaywrightException>(() => page.AddScriptTagAsync(new() { Content = "window.__injected = 42;" }));
await PlaywrightAssert.ThrowsAsync<PlaywrightException>(() => page.AddScriptTagAsync(new() { Content = "window.__injected = 42;" }));
Assert.Null(await page.EvaluateAsync("window.__injected"));
}

Expand Down

0 comments on commit 44932e5

Please sign in to comment.