mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 06:51:55 +00:00
Expanded RetryFact to all facts
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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"));
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user