Ignore https errors

This commit is contained in:
jheaps
2025-09-24 14:15:03 -06:00
parent 86888b21d2
commit b6990a30b7
2 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -55,7 +55,8 @@ public class TestConfiguration
Width = Playwright.Viewport.Width, Width = Playwright.Viewport.Width,
Height = Playwright.Viewport.Height 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 BrowserTimeout { get; set; } = 30000;
public float ActionTimeout { get; set; } = 10000; public float ActionTimeout { get; set; } = 10000;
public bool EnableVideoRecording { get; set; } = false; public bool EnableVideoRecording { get; set; } = false;
public bool IgnoreHTTPSErrors { get; set; } = false;
} }
public class ViewportSettings public class ViewportSettings
+2 -1
View File
@@ -8,7 +8,8 @@
}, },
"BrowserTimeout": 60000, "BrowserTimeout": 60000,
"ActionTimeout": 30000, "ActionTimeout": 30000,
"EnableVideoRecording": true "EnableVideoRecording": true,
"IgnoreHTTPSErrors": true
}, },
"TestSettings": { "TestSettings": {
"BaseUrl": "https://localhost:7118", "BaseUrl": "https://localhost:7118",