Expanded RetryFact to all facts

This commit is contained in:
2025-11-15 23:11:48 +01:00
parent 72b0ecf04f
commit d6b81aa362
5 changed files with 13 additions and 13 deletions

View File

@@ -21,7 +21,7 @@ public class GroupsPageTests : IDisposable
serverProcess = app.Result;
}
[Fact]
[RetryFact(5)]
public void GroupsPage_ShouldShowButton()
{
AppHelper.Login(_driver);
@@ -29,7 +29,7 @@ public class GroupsPageTests : IDisposable
_driver.FindElement(By.CssSelector("button[data-bs-target=\"#createGroupModal\"]"));
}
[Fact]
[RetryFact(5)]
public void GroupsPage_ShouldShowCreateViewModal()
{
AppHelper.Login(_driver);

View File

@@ -22,7 +22,7 @@ public class HomePageTests : IDisposable
serverProcess = app.Result;
}
[Fact]
[RetryFact(5)]
public void HomePage_ShouldShowLoginPage()
{
_driver.Navigate().GoToUrl(serverUrl);
@@ -30,14 +30,14 @@ public class HomePageTests : IDisposable
Assert.True(loginForm.Displayed);
}
[Fact]
[RetryFact(5)]
public void HomePage_ShouldSucceedLogin()
{
AppHelper.Login(_driver);
Assert.Contains("/Home/Index", _driver.Url);
}
[Fact]
[RetryFact(5)]
public void HomePage_ShouldSucceedLoginAndLogout()
{
AppHelper.Login(_driver);
@@ -51,7 +51,7 @@ public class HomePageTests : IDisposable
Assert.Contains("/Home/Login", _driver.Url);
}
[Fact]
[RetryFact(5)]
public void HomePage_ShouldContainButtons()
{
_driver.Navigate().GoToUrl(new Uri(serverUri, "/Home/Index"));

View File

@@ -22,7 +22,7 @@ public class InventoryPageTests : IDisposable
serverProcess = app.Result;
}
[Fact]
[RetryFact(5)]
public void InventoryPage_ShouldShowButtons()
{
AppHelper.Login(_driver);
@@ -99,7 +99,7 @@ public class InventoryPageTests : IDisposable
Assert.True(AppHelper.TryRetryFindSuccessToast(_driver));
}
[Fact]
[RetryFact(5)]
public void InventoryPage_ShouldLeadToAssetPage()
{
AppHelper.Login(_driver);
@@ -110,7 +110,7 @@ public class InventoryPageTests : IDisposable
Assert.Contains("/Home/Assets", _driver.Url);
}
[Fact]
[RetryFact(5)]
public void InventoryPage_ShouldShowPrintModal()
{
AppHelper.Login(_driver);

View File

@@ -21,7 +21,7 @@ public class LocationsPageTests : IDisposable
serverProcess = app.Result;
}
[Fact]
[RetryFact(5)]
public void LocationsPage_ShouldShowButton()
{
AppHelper.Login(_driver);
@@ -29,7 +29,7 @@ public class LocationsPageTests : IDisposable
_driver.FindElement(By.CssSelector("button[data-bs-target=\"#createModal\"]"));
}
[Fact]
[RetryFact(5)]
public void LocationsPage_ShouldShowCreateViewModal()
{
AppHelper.Login(_driver);

View File

@@ -22,7 +22,7 @@ public class UsersPageTests : IDisposable
serverProcess = app.Result;
}
[Fact]
[RetryFact(5)]
public void UsersPage_ShouldShowButton()
{
AppHelper.Login(_driver);
@@ -30,7 +30,7 @@ public class UsersPageTests : IDisposable
_driver.FindElement(By.CssSelector("button[data-bs-target=\"#createModal\"]"));
}
[Fact]
[RetryFact(5)]
public void UsersPage_ShouldShowCreateViewModal()
{
AppHelper.Login(_driver);