Skip to content

Commit

Permalink
Making SecurityScanShouldPass pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Piedone committed Nov 15, 2023
1 parent c5fc663 commit 4fbd32a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Lombiq.Tests.UI.Samples/Tests/SecurityScanningTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Lombiq.Tests.UI.SecurityScanning;
using Lombiq.Tests.UI.Services;
using OpenQA.Selenium;
using Shouldly;
using System;
using System.Threading.Tasks;
using Xunit;
Expand All @@ -23,10 +24,8 @@ public SecurityScanningTests(ITestOutputHelper testOutputHelper)
[Theory, Chrome]
public Task SecurityScanShouldPass(Browser browser) =>
ExecuteTestAfterSetupAsync(
async context =>
{
await context.RunAndAssertBaselineSecurityScanAsync();
},
async context => await context.RunAndAssertBaselineSecurityScanAsync(
assertSecurityScanResult: sarifLog => sarifLog.Runs[0].Results.Count.ShouldBe(118)),
browser);

// Overriding the default setup so we can have a simpler site, simplifying the security scan for the purpose of this
Expand Down

0 comments on commit 4fbd32a

Please sign in to comment.