Skip to content

Commit f7814ad

Browse files
authored
Feature/auto release (#138)
* #18 Fix pipeline to create releases on GitHub * #127 Fix code smells
1 parent fc190e9 commit f7814ad

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

Aquality.Selenium/src/Aquality.Selenium/Configurations/RetryConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public RetryConfiguration(JsonFile settingsFile)
2424

2525
private int GetIntFromSettings(string name)
2626
{
27-
return settingsFile.GetValue<int>($".retry.{name}");;
27+
return settingsFile.GetValue<int>($".retry.{name}");
2828
}
2929

3030
public int Number { get; }

Aquality.Selenium/src/Aquality.Selenium/Configurations/WebDriverSettings/DriverSettings.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,22 +61,22 @@ public virtual string DownloadDir
6161

6262
protected void SetCapabilities(DriverOptions options, Action<string, object> addCapabilityMethod = null)
6363
{
64-
foreach(var capability in BrowserCapabilities)
64+
foreach (var capability in BrowserCapabilities)
6565
{
6666
try
6767
{
6868
var defaultAddCapabilityMethod = addCapabilityMethod ?? options.AddAdditionalCapability;
6969
defaultAddCapabilityMethod(capability.Key, capability.Value);
7070
}
71-
catch(ArgumentException exception)
71+
catch (ArgumentException exception)
7272
{
7373
if(exception.Message.StartsWith("There is already an option"))
7474
{
7575
SetKnownProperty(options, capability, exception);
7676
}
7777
else
7878
{
79-
throw exception;
79+
throw;
8080
}
8181
}
8282
}

Aquality.Selenium/src/Aquality.Selenium/Elements/ElementSupplier.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ namespace Aquality.Selenium.Elements
1111
/// <param name="name">Element name</param>
1212
/// <param name="state">Element state</param>
1313
/// <returns>Element instance of type T</returns>
14-
public delegate T ElementSupplier<T>(By locator, string name, ElementState state) where T : IElement;
14+
public delegate T ElementSupplier<out T>(By locator, string name, ElementState state) where T : IElement;
1515
}

Aquality.Selenium/src/Aquality.Selenium/Utilities/ElementActionRetrier.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Aquality.Selenium.Utilities
88
/// <summary>
99
/// Retries an action or function when <see cref="StaleElementReferenceException"/> or <see cref="InvalidElementStateException"/> occures.
1010
/// </summary>
11-
internal sealed class ElementActionRetrier
11+
internal static class ElementActionRetrier
1212
{
1313
/// <summary>
1414
/// Retries the action when <see cref="StaleElementReferenceException"/> or <see cref="InvalidElementStateException"/> occures.

azure-pipelines.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ steps:
6464
repositoryName: 'aquality-automation/aquality-selenium-dotnet'
6565
action: 'create'
6666
tag: 'v$(GitVersion.NuGetVersion)'
67-
title: 'v$(GitVersion.NuGetVersion)'
68-
tagSource: 'auto'
67+
tagSource: 'manual'
6968
isPreRelease: contains(variables['GitVersion.NuGetVersion'], '-')
7069
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))

0 commit comments

Comments
 (0)