Skip to content

Commit

Permalink
Merge pull request #864 from bcgov/ricander
Browse files Browse the repository at this point in the history
Disabled Headless mode. Updated Scenario bindings for ViewAggregatedL…
  • Loading branch information
ychung-mot authored Dec 11, 2024
2 parents 9c288ad + 6391bc4 commit 7f5a506
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Feature: ViewAggregatedListings
Link to a feature: https://hous-hpb.atlassian.net/browse/DSS-505

@LandingPage
@ViewAggregatedListings
Scenario: ViewAggregatedListings
#User Authentication
#Given that I am an authenticated user "<UserName>" with the necessary permissions to view listings View listings (listing_read) and the expected result is
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public SeleniumSpecFlowHooks(IObjectContainer container)
public void SetupDrivers()
{
CleanupDrivers();
SeleniumDriver webDriver = new SeleniumDriver(SeleniumDriver.DRIVERTYPE.CHROME, Headless:true);
SeleniumDriver webDriver = new SeleniumDriver(SeleniumDriver.DRIVERTYPE.CHROME, Headless: false);
webDriver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(5);

_Container.RegisterInstanceAs<SeleniumDriver>(webDriver);
Expand Down
1 change: 1 addition & 0 deletions Test/UITest/SpecFlowProjectBDD/SpecFlowProjectBDD.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="Selenium.Support" Version="4.16.2" />
<PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="130.0.6723.6900" />
<PackageReference Include="Selenium.WebDriver.GeckoDriver" Version="0.35.0" />
<PackageReference Include="Selenium.WebDriver.MSEdgeDriver" Version="131.0.2903.48" />
<PackageReference Include="SpecFlow.Plus.LivingDocPlugin" Version="3.9.57" />
<PackageReference Include="SpecFlow.NUnit" Version="3.9.74" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
namespace SpecFlowProjectBDD.StepDefinitions
{
[Binding]
[Scope(Scenario = "ViewAggregatedListings")]
public class UploadListingDataPlatformUser
{
private IDriver _Driver;
Expand Down
7 changes: 7 additions & 0 deletions Test/UITest/TestFrameWork/TestDriver/SeleniumDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ public SeleniumDriver(DRIVERTYPE DriverType, bool Headless = false)
}
case DRIVERTYPE.FIREFOX:
{
var options = new FirefoxOptions();
options.SetLoggingPreference(LogType.Driver, LogLevel.All);
options.AddArgument("--ignore-ssl-errors=yes");
options.AddArgument("--ignore-certificate-errors");
options.AddArgument("--start-maximized");
if (Headless)
options.AddArgument("--headless");
Driver = new FirefoxDriver(assemblyDirectory);
break;
}
Expand Down
1 change: 1 addition & 0 deletions Test/UITest/TestFrameWork/TestFrameWork.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<PackageReference Include="Selenium.Support" Version="4.16.2" />
<PackageReference Include="Selenium.WebDriver" Version="4.16.2" />
<PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="130.0.6723.6900" />
<PackageReference Include="Selenium.WebDriver.GeckoDriver" Version="0.35.0" />
<PackageReference Include="Selenium.WebDriver.MSEdgeDriver" Version="131.0.2903.48" />
</ItemGroup>

Expand Down

0 comments on commit 7f5a506

Please sign in to comment.