diff --git a/JoshHeaps.Net.UiTests/TestConfiguration.cs b/JoshHeaps.Net.UiTests/TestConfiguration.cs index 5b29399..3082e2f 100644 --- a/JoshHeaps.Net.UiTests/TestConfiguration.cs +++ b/JoshHeaps.Net.UiTests/TestConfiguration.cs @@ -55,7 +55,8 @@ public class TestConfiguration Width = Playwright.Viewport.Width, Height = Playwright.Viewport.Height }, - RecordVideoDir = Playwright.EnableVideoRecording ? Path.Combine(Directory.GetCurrentDirectory(), "test-results", "videos") : null + RecordVideoDir = Playwright.EnableVideoRecording ? Path.Combine(Directory.GetCurrentDirectory(), "test-results", "videos") : null, + IgnoreHTTPSErrors = Playwright.IgnoreHTTPSErrors }; } @@ -78,6 +79,7 @@ public class PlaywrightSettings public float BrowserTimeout { get; set; } = 30000; public float ActionTimeout { get; set; } = 10000; public bool EnableVideoRecording { get; set; } = false; + public bool IgnoreHTTPSErrors { get; set; } = false; } public class ViewportSettings diff --git a/JoshHeaps.Net.UiTests/appsettings.CI.json b/JoshHeaps.Net.UiTests/appsettings.CI.json index 826ed24..d58b6ff 100644 --- a/JoshHeaps.Net.UiTests/appsettings.CI.json +++ b/JoshHeaps.Net.UiTests/appsettings.CI.json @@ -8,7 +8,8 @@ }, "BrowserTimeout": 60000, "ActionTimeout": 30000, - "EnableVideoRecording": true + "EnableVideoRecording": true, + "IgnoreHTTPSErrors": true }, "TestSettings": { "BaseUrl": "https://localhost:7118",