Skip to content

Commit 87ee4f8

Browse files
Update PageObjectHtmlValidateExtensionsTests
1 parent bd6536c commit 87ee4f8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/Atata.HtmlValidation.IntegrationTests/PageObjectHtmlValidateExtensionsTests.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using Atata.Cli.HtmlValidate;
1+
using System.Runtime.InteropServices;
2+
using Atata.Cli.HtmlValidate;
23

34
namespace Atata.HtmlValidation.IntegrationTests;
45

@@ -45,7 +46,12 @@ public void ValidateHtml_WithErrors_AsWarning()
4546
private static OrdinaryPage GoToTestPage(string name)
4647
{
4748
string filePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "TestPages", name);
48-
string url = "file:///" + filePath;
49+
50+
string urlPrefix = RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.Windows)
51+
? "file:///"
52+
: "file://";
53+
54+
string url = urlPrefix + filePath;
4955

5056
return Go.To<OrdinaryPage>(url: url);
5157
}

0 commit comments

Comments
 (0)