-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added more logging information for linux tests debugging on GitHub Ac…
…tions
- Loading branch information
Showing
3 changed files
with
38 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/Tests/Riganti.Selenium.Core.Samples.Tests/SeleniumManagerTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using Newtonsoft.Json; | ||
using OpenQA.Selenium; | ||
|
||
[TestClass] | ||
public class SeleniumManagerTests | ||
{ | ||
[TestMethod] | ||
public void GetBinariesVersion104() | ||
{ | ||
var data1 = SeleniumManager.BinaryPaths("--browser firefox --driver geckodriver --browser-version 104"); | ||
Console.WriteLine("Firefox binaries: " + JsonConvert.SerializeObject(data1)); | ||
Assert.IsNotNull(data1["browser_path"]); | ||
Assert.IsNotNull(data1["driver_path"]); | ||
|
||
var data2 = SeleniumManager.BinaryPaths("--browser chrome --driver chromedriver --browser-version 104"); | ||
Console.WriteLine("Chrome binaries: " + JsonConvert.SerializeObject(data2)); | ||
Assert.IsNotNull(data2["browser_path"]); | ||
Assert.IsNotNull(data2["driver_path"]); | ||
} | ||
|
||
[TestMethod] | ||
public void GetBinariesVersionStable() | ||
{ | ||
var data1 = SeleniumManager.BinaryPaths("--browser firefox --driver geckodriver --browser-version stable"); | ||
Console.WriteLine("Firefox binaries: " + JsonConvert.SerializeObject(data1)); | ||
Assert.IsNotNull(data1["browser_path"]); | ||
Assert.IsNotNull(data1["driver_path"]); | ||
|
||
var data2 = SeleniumManager.BinaryPaths("--browser chrome --driver chromedriver --browser-version stable"); | ||
Console.WriteLine("Chrome binaries: " + JsonConvert.SerializeObject(data2)); | ||
Assert.IsNotNull(data2["browser_path"]); | ||
Assert.IsNotNull(data2["driver_path"]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters