diff --git a/tests/Berufsschule_HAM.E2ETests/GroupsPageTests.cs b/tests/Berufsschule_HAM.E2ETests/GroupsPageTests.cs index c93ce7b..78d9e9b 100644 --- a/tests/Berufsschule_HAM.E2ETests/GroupsPageTests.cs +++ b/tests/Berufsschule_HAM.E2ETests/GroupsPageTests.cs @@ -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); diff --git a/tests/Berufsschule_HAM.E2ETests/HomePageTests.cs b/tests/Berufsschule_HAM.E2ETests/HomePageTests.cs index 25c6a5a..aed83af 100644 --- a/tests/Berufsschule_HAM.E2ETests/HomePageTests.cs +++ b/tests/Berufsschule_HAM.E2ETests/HomePageTests.cs @@ -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")); diff --git a/tests/Berufsschule_HAM.E2ETests/InventoryPageTests.cs b/tests/Berufsschule_HAM.E2ETests/InventoryPageTests.cs index 80503d4..3158f14 100644 --- a/tests/Berufsschule_HAM.E2ETests/InventoryPageTests.cs +++ b/tests/Berufsschule_HAM.E2ETests/InventoryPageTests.cs @@ -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); diff --git a/tests/Berufsschule_HAM.E2ETests/LocationsPageTests.cs b/tests/Berufsschule_HAM.E2ETests/LocationsPageTests.cs index c334d47..cca68f3 100644 --- a/tests/Berufsschule_HAM.E2ETests/LocationsPageTests.cs +++ b/tests/Berufsschule_HAM.E2ETests/LocationsPageTests.cs @@ -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); diff --git a/tests/Berufsschule_HAM.E2ETests/UsersPageTests.cs b/tests/Berufsschule_HAM.E2ETests/UsersPageTests.cs index 859323b..082c16f 100644 --- a/tests/Berufsschule_HAM.E2ETests/UsersPageTests.cs +++ b/tests/Berufsschule_HAM.E2ETests/UsersPageTests.cs @@ -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);